/**
 * include.css - Estilos exclusivos para top.php, header.php, cta.php y footer.php
 * Corregido: añadidas reglas faltantes de .main-header y menú
 */

/* ==================================================
   0. Contenedor principal del header (faltaba)
   ================================================== */
.main-header {
  position: relative;
  left: 0px;
  top: 0px;
  z-index: 999;
  width: 100%;
  transition: all 500ms ease;
}

/* ==================================================
   1. Header Top (top.php)
   ================================================== */
.main-header .header-top {
  position: relative;
  background: none;
  width: 100%;
  box-shadow: 0 0 100px 40px black;
}

.main-header .header-top .top-left {
  position: relative;
  float: left;
}

.main-header .header-top .social li {
  position: relative;
  float: left;
  margin-right: 4px;
}
.main-header .header-top .social li:last-child {
  margin-right: 0px;
}
.main-header .header-top .social li a {
  position: relative;
  display: inline-block;
  font-size: 14px;
  height: 48px;
  width: 50px;
  line-height: 48px;
  background: #f2f2f2;
  color: #000;
  text-align: center;
}
.main-header .header-top .social li a:hover {
  background: #e94f1b;
  color: #ffffff;
}

.main-header .header-top .top-right {
  position: relative;
  float: right;
}
.main-header .header-top .top-right li {
  position: relative;
  float: left;
  padding: 0px 0px 0px 25px;
  margin: 15px 28px 0px 0px;
  font-size: 16px;
  color: #222222;
  font-weight: 400;
}
.main-header .header-top .top-right li a {
  font-weight: 700;
  color: #222;
}
.main-header .header-top .top-right li a:hover {
  color: #e94f1b;
}
.main-header .header-top .top-right li:nth-child(2) a {
  font-weight: 400;
}
.main-header .header-top .top-right li i {
  position: absolute;
  left: 0px;
  top: 6px;
  font-size: 20px;
}
.main-header .header-top li a.upper-btn {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: #da3f0b;
  padding: 12px 28px;
  line-height: 24px;
  text-align: center;
}
.main-header .header-top li a.upper-btn:hover {
  background: #fff;
  color: #fff;
}
.main-header .header-top .top-right li:last-child {
  padding: 0px;
  margin: 0px;
}

/* Versión desktop: fondo naranja diagonal */
@media only screen and (min-width: 1024px) {
  .main-header .header-top::before {
    border-color: #f15a27 transparent;
    border-style: solid;
    border-width: 49px 0 0 45px;
    content: "";
    right: 0px;
    position: absolute;
    top: 0;
    width: 65%;
  }
  .main-header .header-top .top-right li {
    color: #fff;
  }
  .main-header .header-top .top-right li a {
    color: #fff;
  }
  .main-header .header-top .top-right li a:hover {
    color: #222;
  }
}

/* ==================================================
   2. Header Bottom / Menú (header.php)
   ================================================== */
.header-bottom {
  position: relative;
  background: transparent;
  left: 0px;
  bottom: 0px;
  width: 100%;
}
.header-bottom .nav-outer {
  position: absolute;
  left: 0px;
  top: 0px;
  width: 100%;
  padding: 26px 0px 0px 0px;
}
.header-bottom .logo-outer {
  position: relative;
  float: left;
  padding: 28px 0px 18px 0px;
}
.header-bottom .menu-area {
  position: relative;
  float: right;
}
.header-bottom .outer-box {
  position: relative;
  padding: 29px 5px 0px 2px;
  float: left;
}
.header-bottom .outer-box .search-outer {
  position: relative;
  display: inline-block;
}

.main-menu {
  position: relative;
  display: block;
  float: left;
}
.main-menu .navbar-collapse {
  padding: 0px;
}
.main-menu .navigation > li {
  position: relative;
  float: left;
  margin: 0px 16px;
}
.main-header .menu-column {
  padding: 0px;
}
.main-menu .navigation > li > a {
  position: relative;
  display: block;
  font-size: 16px;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  line-height: 26px;
  font-weight: 500;
  opacity: 1;
  text-transform: uppercase;
  padding: 31px 0px 29px 0px;
  transition: all 500ms ease;
}
.main-menu .navigation > li > a:hover {
  color: #e94f1b;
}
.main-menu .navigation > li > ul {
  position: absolute;
  left: 0px;
  top: 100%;
  width: 250px;
  z-index: 100;
  display: none;
  background: #ffffff;
  border-top: 3px solid #e94f1b;
  box-shadow: 0px 0px 10px rgba(0,0,0,0.10);
}
.main-menu .navigation > li > ul > li {
  position: relative;
  width: 100%;
  padding: 7px 30px;
  border-bottom: 1px solid #e5e5e5;
  transition: all 500ms ease;
}
.main-menu .navigation > li > ul > li:last-child {
  border-bottom: none;
}
.main-menu .navigation > li > ul > li > a {
  position: relative;
  display: block;
  font-family: 'Poppins', sans-serif;
  padding: 6px 0px;
  line-height: 24px;
  font-size: 15px;
  color: #222222;
  font-weight: 400;
  text-align: left;
  text-transform: uppercase;
  transition: all 500ms ease;
}
.main-menu .navigation > li > ul > li:hover {
  background: #e94f1b;
  border-bottom: 1px solid #e94f1b;
}
.main-menu .navigation > li > ul > li:hover a {
  color: #ffffff;
}
.main-menu .navigation > li > ul > li:last-child:hover {
  border-bottom: none;
}
.main-menu .navigation > li.dropdown:hover > ul {
  visibility: visible;
  opacity: 1;
  display: block;
}
.main-menu .navbar-collapse > ul li.dropdown .dropdown-btn {
  position: absolute;
  right: 0px;
  top: 0px;
  font-size: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  width: 50px;
  height: 47px;
  line-height: 47px;
  text-align: center;
  cursor: pointer;
  z-index: 5;
  display: none;
}
.navbar-header {
  display: none;
}

/* Submenú de segundo nivel */
.main-menu .navigation > li > ul > li > ul {
  position: absolute;
  left: 100%;
  top: 0%;
  width: 230px;
  z-index: 100;
  display: none;
  padding: 0px 0px;
  background-color: #ffffff;
  border-top: 3px solid #e94f1b;
  box-shadow: 2px 2px 5px 1px rgba(0,0,0,0.05), -2px 0px 5px 1px rgba(0,0,0,0.05);
}
.main-menu .navigation li > ul > li.dropdown:hover > ul {
  visibility: visible;
  opacity: 1;
  top: 0;
  margin: 0px;
  display: block;
}
.main-menu .navigation > li > ul > li > ul > li {
  position: relative;
  width: 100%;
  margin: 0px;
  border-bottom: 1px solid #e5e5e5;
}
.main-menu .navigation > li > ul > li > ul > li:last-child {
  border-bottom: none;
}
.main-menu .navigation > li > ul > li > ul > li > a {
  position: relative;
  display: block;
  padding: 10px 18px;
  line-height: 24px;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  text-transform: uppercase;
  color: #222222 !important;
  transition: all 500ms ease;
}
.main-menu .navigation > li > ul > li > ul > li:hover > a {
  color: #ffffff !important;
  background: #e94f1b;
}
.main-menu .navigation > li > ul > li.dropdown > a:after {
  position: absolute;
  content: "\f105";
  font-size: 16px;
  color: #222;
  top: 6px;
  right: -12px;
  font-family: 'Font Awesome 5 Free';
  font-weight: 600;
  cursor: pointer;
  transition: all 500ms ease;
}
.main-menu .navigation > li > ul > li.dropdown:hover > a:after {
  color: #ffffff;
}

/* Sticky Header */
.sticky-header {
  position: fixed;
  opacity: 0;
  visibility: hidden;
  background: #ffffff;
  left: 0px;
  top: 0px;
  border-bottom: 1px solid #e0e0e0;
  width: 100%;
  z-index: 0;
  transition: all 500ms ease;
}
.fixed-header .sticky-header {
  z-index: 999;
  opacity: 1;
  visibility: visible;
  animation-name: fadeInDown;
  animation-duration: 500ms;
  animation-timing-function: linear;
  animation-iteration-count: 1;
}
.sticky-header .main-menu .navigation > li {
  margin: 0px;
}
.sticky-header .main-menu .navigation > li > a {
  padding: 12px 20px 12px 20px;
  margin: 10px 0;
  color: #222222;
}
.sticky-header .main-menu .navigation > li.current > a,
.sticky-header .main-menu .navigation > li:hover > a {
  background: #e94f1b;
  color: #ffffff;
}
.sticky-header .logo-box {
  position: relative;
  float: left;
  margin-top: 10px;
}
.sticky-header .menu-area {
  position: relative;
  float: right;
}

/* ==================================================
   2b. Aseguramiento de submenús anidados (dropdowns)
   ================================================== */

/* Aseguramos que los <ul> de segundo nivel se posicionen absolutamente */
.main-menu .navigation > li > ul > li {
    position: relative; /* Necesario para que el submenú absoluto se posicione respecto a este li */
}

.main-menu .navigation > li > ul > li > ul {
    position: absolute;
    left: 100%;
    top: 0;
    width: 230px;
    background: #ffffff;
    border-top: 3px solid #e94f1b;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Mostrar el submenú al hacer hover sobre el li padre */
.main-menu .navigation > li > ul > li:hover > ul {
    opacity: 1;
    visibility: visible;
}

/* Ajuste fino: si el submenú es muy largo, evitar que se salga de la pantalla */
@media (max-width: 1200px) {
    .main-menu .navigation > li > ul > li > ul {
        left: auto;
        right: 100%;
    }
}

/* Mejorar el comportamiento del dropdown principal */
.main-menu .navigation > li.dropdown > ul {
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: block !important; /* Forzamos que esté en bloque pero invisible */
}

.main-menu .navigation > li.dropdown:hover > ul {
    opacity: 1;
    visibility: visible;
}

/* ==================================================
   3. Call to Action (cta.php)
   ================================================== */
.call-to-action {
  position: relative;
  width: 100%;
  padding: 20px 0px 20px 0px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  background-attachment: fixed;
  background: #f4f4f4;
}
.call-to-action .call-content {
  position: relative;
  float: left;
  padding: 3px 0px 0px 0px;
}
.call-to-action .call-content .title {
  position: relative;
  font-size: 24px;
  line-height: 34px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #ffffff;
  margin-bottom: 1px;
  font-weight: 200;
  font-style: italic;
}
.call-to-action .call-content .text {
  position: relative;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
}
.call-to-action .inner-content .link {
  position: relative;
  float: right;
  margin-top: 7px;
}
.call-to-action .inner-content .link .btn-style-one {
  padding: 15px 30px;
}
.call-to-action .inner-content .link .btn-style-one:hover {
  background: #ffffff;
  color: #e94f1b;
}
@media only screen and (max-width: 1200px) {
  .call-to-action::before {
    position: absolute;
    content: '';
    background: rgba(233, 79, 27, 1);
    width: 100%;
    height: 100%;
    left: 0px;
    top: 0px;
    border: 0;
  }
}
@media (min-width: 1200px) {
  .call-to-action .inner-content .link .btn-style-one {
    background: #ffffff;
    border: 2px solid #e94f1b;
    color: #e94f1b;
    font-weight: bold;
  }
  .call-to-action .inner-content .link .btn-style-one:hover {
    background: #e94f1b !important;
    color: #ffffff !important;
  }
}

/* ==================================================
   4. Footer (footer.php) y Cookie Banner
   ================================================== */
.main-footer {
  position: relative;
  background: #03131a;
  color: #999999;
}
.footer-top {
  position: relative;
  padding: 110px 0px 93px 0px;
}
.footer-top .logo-widget {
  position: relative;
  margin-top: -8px;
}
.footer-top .logo-widget .footer-logo {
  position: relative;
  margin-bottom: 10px;
  display: block;
  text-align: center;
}
.footer-top .logo-widget .text {
  margin-bottom: 23px;
}
.footer-top .logo-widget .info-box li {
  position: relative;
  display: block;
  margin-bottom: 1px;
}
.footer-top .logo-widget .info-box li:last-child {
  margin-bottom: 0px;
}
.footer-top .logo-widget .info-box li a,
.footer-top .logo-widget .address {
  color: #cccccc;
}
.footer-top .logo-widget .info-box li a:hover {
  color: #e94f1b;
}
.footer-top .logo-widget .address {
  line-height: 24px;
}
.footer-top .logo-widget .info-box {
  position: relative;
  margin-bottom: 24px;
}
.footer-top .footer-title h4 {
  position: relative;
  color: #ffffff;
  font-weight: 500;
  padding-top: 9px;
  margin-bottom: 24px;
}
.footer-top .footer-title h4:before {
  position: absolute;
  content: '';
  background: #e94f1b;
  width: 15px;
  height: 3px;
  left: 0px;
  top: 0px;
}
.footer-top .service-widget .service-list li {
  position: relative;
  display: block;
  padding: 0px 0px 0px 23px;
  margin-bottom: 4px;
}
.footer-top .service-widget .service-list li:before {
  position: absolute;
  left: 0px;
  top: 1px;
  content: "\f152";
  font-family: 'Font Awesome 5 Free';
  font-size: 12px;
  color: #e94f1b;
  font-weight: 700;
}
.footer-top .service-widget .service-list li:last-child {
  margin-bottom: 0px;
}
.footer-top .service-widget .service-list li a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-family: 'PT Sans', sans-serif;
  font-weight: 400;
  color: #999999;
}
.footer-top .service-widget .service-list li a:hover {
  color: #e94f1b;
}
.footer-top .service-widget {
  margin-left: 27px;
}
.footer-top .post-widget .post {
  position: relative;
  margin-bottom: 33px;
}
.footer-top .post-widget .post:last-child {
  margin-bottom: 0px;
}
.footer-top .post-widget .post .text a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  font-family: 'PT Sans', sans-serif;
  color: #999999;
  margin-bottom: 8px;
}
.footer-top .post-widget .post .text a:hover {
  color: #e94f1b;
}
.footer-top .post-widget .post .post-date {
  position: relative;
  font-size: 12px;
  font-family: 'Poppins', sans-serif;
  color: #e94f1b;
}
.footer-top .post-widget {
  margin-right: 15px;
}
.footer-top .newsletter-widget .text {
  margin-bottom: 26px;
}
.footer-top .newsletter-widget .newsletter-form .form-group {
  position: relative;
  margin-bottom: 40px;
}
.footer-top .newsletter-widget .newsletter-form .form-group input[type='email'] {
  width: 100%;
  height: 52px;
  background: #ffffff;
  padding: 10px 50px 10px 20px;
  border: 2px solid #ffffff;
  transition: all 500ms ease;
}
.footer-top .newsletter-widget .newsletter-form .form-group input[type='email']:focus {
  border: 2px solid #e94f1b;
}
.footer-top .newsletter-widget .newsletter-form .form-group button {
  position: absolute;
  top: 15px;
  right: 21px;
  background: transparent;
  font-size: 18px;
  color: #e94f1b;
  cursor: pointer;
}
.footer-top .newsletter-widget .footer-social li {
  position: relative;
  float: left;
  margin-right: 4px;
}
.footer-top .newsletter-widget .footer-social li:last-child {
  margin-right: 0px;
}
.footer-top .newsletter-widget .footer-social li a {
  position: relative;
  display: inline-block;
  font-size: 16px;
  color: #ffffff;
  width: 50px;
  height: 50px;
  text-align: center;
  line-height: 50px;
  background: #27343a;
}
.footer-top .newsletter-widget .footer-social li a:hover {
  background: #e94f1b;
}
.main-footer .footer-bottom {
  position: relative;
  padding: 41px 0px 45px 0px;
  border-top: 1px solid #252c2e;
}

/* Cookie Banner */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #333;
  color: white;
  padding: 15px;
  text-align: center;
  font-size: 14px;
  z-index: 1000;
}
#cookie-banner p {
  color: #ffffff !important;
  font-size: 14px;
  line-height: 20px;
}
#cookie-banner a {
  color: #f1c40f;
  text-decoration: none;
}
#cookie-banner button {
  background-color: #f1c40f;
  color: #333;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  margin-left: 20px;
}
#cookie-banner button:hover {
  background-color: #e67e22;
}