/*
Theme Name: Esni Web Chile
Theme URI: https://esni.cl
Author: QCSoft
Author URI: https://qcsoft.com.ar
Description: Tema WordPress para web Chile.
Version: 1.0
License: GPL v2
Text Domain: esni-web-chile
*/

body {
  font-family: "Raleway", sans-serif;
  overflow-x: hidden;
}

/* ==========================================
   FONDO GRIS WRAPPER
========================================== */

.fondo-gris-wrapper {
  background-color: #b5afa2;
  position: relative;
  overflow: hidden;
}

.fondo-gris-wrapper .seccion-principal {
  position: relative;
  z-index: 2;
}

.fondo-gris-wrapper .container-fluid {
  position: relative;
  z-index: 1;
}

.boton-acceso-directo {
  font-family: "Raleway", Sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1em;

  color: #c51a1b;
  padding-left: 10px;
}

/* ==========================================
   NAVBAR PRINCIPAL
========================================== */

.navbar {
  background-color: #b5afa2 !important;
  padding: 0;
  min-height: 60px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================
   MENU PRINCIPAL
========================================== */

.navbar-nav {
  /*gap: 5px;*/
}

.navbar-nav > .menu-item {
  position: relative;
}

.navbar-nav > .menu-item > a {
  display: block;
  padding: 18px 16px;
  color: #ffffff;
  text-decoration: none;
  transition: all .3s ease;
  white-space: nowrap;
  font-family: Roboto;
  font-size: 20px;
  font-weight: 200;
  font-style: normal;
  letter-spacing: 0px;
}

/* Hover */

.navbar-nav > .menu-item > a:hover {
  background-color: #b5afa2;
  color: #ffffff;
}

/* Item Activo */

.current-menu-item > a,
.current_page_item > a,
.current-menu-ancestor > a {
  background-color: #b5afa2;
  color: #fff;
}

/* ==========================================
   ITEMS CON SUBMENU
========================================== */

.menu-item-has-children > a::after {
  content: "▼";
  font-size: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ==========================================
   SUBMENU
========================================== */

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 260px;

  padding: 0;
  margin: 0;

  list-style: none;

  background: rgba(60, 60, 60, 0.9);

  border-radius: 0 0 8px 8px;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);

  opacity: 0;
  visibility: hidden;

  transform: translateY(10px);

  transition: all 0.25s ease;

  z-index: 999;
}

/* Mostrar submenu */

.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ==========================================
   LINKS SUBMENU
========================================== */

.sub-menu li {
  border-bottom: 1px solid #f0f0f0;
}

.sub-menu li:last-child {
  border-bottom: none;
}

.sub-menu a {
  display: block;
  padding: 12px 18px;

  color: #606060;
  text-decoration: none;

  font-size: 14px;

  transition: all 0.3s ease;
}

.sub-menu a:hover {
  background: #f5f8fc;
  color: #606060 !important;
  padding-left: 24px;
}

/* ==========================================
   BOTON HAMBURGUESA
========================================== */

.navbar-toggler {
  border: none;
  padding: 10px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* ==========================================
   SECCION PRINCIPAL
========================================== */

.seccion-principal {
  position: relative;
  padding: 0;
}

.texto-banner {
  position: absolute;
  left: 45%;
  top: 90px;
  transform: translateY(-5%);
  transform: translateX(-45%);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.texto-banner a {
  text-decoration: none;
  color: #c51a1b;
  font-family: "Raleway", Sans-serif;
  font-size: 45px;
  font-weight: 600;
  line-height: 0.9em;
}

.texto-banner span {
  margin-top: 10px;
  color: #706f6f;
  font-family: "Raleway", Sans-serif;
  font-size: 30px;
  font-weight: bold;
  line-height: 1em;
}

/* ==========================================
   RESPONSIVE - MONITORES GRANDES (>19 pulgadas / 1920px+)
========================================== */

@media (min-width: 1920px) {
  .navbar {
    min-height: 70px;
  }

  .navbar-nav > .menu-item > a {
    font-size: 26px;
    padding: 20px 20px;
  }

  .texto-banner {
    top: 120px;
  }

  .texto-banner a {
    font-size: 55px;
  }

  .texto-banner span {
    font-size: 36px;
  }
}

/* ==========================================
   RESPONSIVE - TABLET HORIZONTAL (landscape: 1024px - 1199px)
========================================== */

@media (min-width: 1024px) and (max-width: 1199px) {
  .navbar-nav > .menu-item > a {
    font-size: 18px;
    padding: 16px 12px;
  }

  .texto-banner a {
    font-size: 38px;
  }

  .texto-banner span {
    font-size: 26px;
  }
}

/* ==========================================
   RESPONSIVE - TABLET VERTICAL (portrait: 768px - 1023px)
========================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .navbar {
    padding: 8px 0;
  }

  .navbar-nav > .menu-item > a {
    font-size: 16px;
    padding: 14px 10px;
  }

  .texto-banner {
    top: 60px;
  }

  .texto-banner a {
    font-size: 32px;
  }

  .texto-banner span {
    font-size: 22px;
  }
}

/* ==========================================
   RESPONSIVE - TABLET Y MOVIL (max-width: 991px)
========================================== */

@media (max-width: 991px) {
  .navbar {
    padding: 10px 0;
  }

  .navbar-nav {
    gap: 0;
  }

  .navbar-nav > .menu-item > a {
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .sub-menu {
    position: static;

    opacity: 1;
    visibility: visible;

    transform: none;

    box-shadow: none;

    border-radius: 0;

    width: 100%;

    display: none;

    background: #00254d;
  }

  .menu-item-has-children:hover > .sub-menu {
    display: block;
  }

  .sub-menu a {
    color: #ffffff;
    padding-left: 35px;
    background: #00254d;
  }

  .sub-menu a:hover {
    background: #003d7a;
    color: #ffffff;
  }
}

/* ==========================================
   RESPONSIVE - MOVIL HORIZONTAL (landscape: 576px - 767px)
========================================== */

@media (min-width: 576px) and (max-width: 767px) {
  .navbar-nav > .menu-item > a {
    font-size: 16px;
    padding: 12px 14px;
  }

  .texto-banner {
    left: 50%;
    top: 40px;
  }

  .texto-banner a {
    font-size: 28px;
  }

  .texto-banner span {
    font-size: 18px;
  }
}

/* ==========================================
   RESPONSIVE - MOVIL VERTICAL (portrait: max-width: 575px)
========================================== */

@media (max-width: 575px) {
  .navbar {
    min-height: 50px;
  }

  .navbar-nav > .menu-item > a {
    font-size: 15px;
    padding: 12px 16px;
  }

  .texto-banner {
    left: 20px;
    top: 20px;
  }

  .texto-banner a {
    font-size: 1.5rem;
  }

  .texto-banner span {
    font-size: 0.9rem;
  }
}

/* ==========================================
   RESPONSIVE - MOVIL PEQUEÑO (max-width: 480px)
========================================== */

@media (max-width: 480px) {
  .navbar-nav > .menu-item > a {
    font-size: 14px;
    padding: 10px 14px;
  }

  .texto-banner a {
    font-size: 1.2rem;
  }

  .texto-banner span {
    font-size: 0.75rem;
  }
}
