* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
body {
    background: #d9d9d9;
    color: #fff;
    line-height: 1.5;
}

/* === HEADER COMPLETO === */
header {
    display: flex;
    flex-direction: column;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* Nivel superior: logo + redes */
.header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 5%;
  background: #fff;
}

/* CONTENEDOR DEL LOGO: rectángulo horizontal + recorte */
.header-top .logo-link {
display: block;
width: clamp(140px, 16vw, 220px);  /* ancho flexible */
height: clamp(40px, 6vw, 70px);    /* más bajito → sensación rectangular */
overflow: hidden;                  /* recorta lo que se salga */
}

/* IMAGEN DEL LOGO: que llene el rectángulo y se recorte */
.header-top .logo-link img {
width: 100%;
height: 100%;
object-fit: cover;                 /* recorta para llenar el área */
display: block;
transition: transform 0.3s ease;
}

.header-top .logo-link img:hover {
  transform: scale(1.06);
}
.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #000;
    margin-left: 15px;
    font-size: 1.1rem;
    transition: color 0.3s ease, transform 0.3s ease;
}
.social-icons a:hover {
    transform: scale(1.4);
    color: #f3b334;
}

/* Nivel inferior: banner nav + iconos */
.banner-nav {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 5%;
    background: linear-gradient(to right, #266b58, #31cda8);
  
}
.banner-nav nav {
    display: flex;
    justify-content: center;
    flex: 1;
    gap: 25px;
}
.banner-nav nav a {
    text-decoration: none;
    color: #fff;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}
.banner-nav nav a:hover {
    color: #000;
}

/* prioridad segura para los enlaces del menú de login */
.banner-nav .icons .login-menu,
.login-dropdown .login-menu {
  background: #fff; /* asegúrate fondo blanco */
}

.banner-nav .icons .login-menu a,
.login-dropdown .login-menu a {
  color: #000 !important;          /* negro visible */
  font-weight: 500;
  display: block;
  padding: 6px 0;
  transition: color 0.18s ease, transform 0.12s ease;
}

.banner-nav .icons .login-menu a:hover,
.login-dropdown .login-menu a:hover {
  color: #f3b334 !important;       /* dorado al hover */
  transform: scale(1.03);
}

/* Hamburger responsive */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}
.hamburger span {
    height: 3px;
    width: 25px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
}
#nav.active {
    display: flex;
    flex-direction: column;
}

/* Iconos header */
.banner-nav .icons {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto;
}
.banner-nav .icons a,
.banner-nav .icons i {
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease, transform 0.3s ease;
}
.banner-nav .icons a:hover,
.banner-nav .icons i:hover {
    transform: scale(1.1);
    color: #000;
}

/* Search */
.search-container {
    position: relative;
}
.search-container input {
    width: 0;
    opacity: 0;
    padding: 6px 10px;
    border: none;
    border-radius: 20px;
    outline: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}
.search-container.active input {
    width: 180px;
    opacity: 1;
    margin-right: 8px;
}

/* Login desplegable */
.login-dropdown {
    position: relative;
}
.login-menu {
    display: none;
    position: absolute;
    top: 40px;
    right: 0;
    background: #fff;
    color: #333;
    border-radius: 12px;
    padding: 12px 18px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
    white-space: nowrap;
    opacity: 0;
    transform: translateY(-10px);
    z-index: 1000;
}
.login-menu a {
    display: block;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 6px 0;
    transition: color 0.3 ease;
}
.login-menu a:hover {
    color: #f3b334;
}
.login-dropdown.active .login-menu {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* === SECCIÓN CONTACTO === */
.contacto-section {
  background-color: #fff;
  padding: 60px 8%;
  color: #222;
  text-align: center;
}

.contacto-header {
  background: #31cda8;
  color: #fff;
  padding: 40px 20px;
  border-radius: 16px;
  margin-bottom: 50px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.contacto-header h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.contacto-header p {
  font-size: 1rem;
  line-height: 1.6;
}

.contacto-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  justify-content: center;
}

.contacto-card {
  background-color: #f8f8f8;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contacto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.contacto-card h3 {
  color: #266b58;
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.contacto-card p {
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.contacto-mail {
  font-weight: 600;
  color: #266b58;
}

.contacto-mail a {
  color: #266b58;
  text-decoration: none;
  transition: color 0.3s ease;
}

.contacto-mail a:hover {
  color: #31cda8;
}

.contacto-mail i {
  margin-right: 8px;
  color: #31cda8;
}

.contacto-tel {
  font-weight: bold;
  color: #000;
}

.contacto-horario {
  font-size: 0.9rem;
  color: #555;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .contacto-header h2 {
    font-size: 1.6rem;
  }
  .contacto-container {
    gap: 25px;
  }
}

/* Contenedor general con fondo gris */
.contacto-completo {
  background-color: #d9d9d9;
  padding: 40px 8%;
  border-radius: 16px;
  margin: 40px 0;
  box-shadow: 0 6px 25px rgba(0,0,0,0.15);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 50px;
}

/* Información corporativa */
.contacto-info h2 {
  font-size: 2rem;
  color: #31cda8;
  text-align: left;
  margin-bottom: 20px;
}

.contacto-info p {
  font-size: 1rem;
  text-align: left;
  margin-bottom: 15px;
  line-height: 1.6;
}

.contacto-info a {
  color: #266b58;
  text-decoration: none;
}

.contacto-info a:hover {
  color: #31cda8;
}

/* Mapa */
.contacto-mapa iframe {
  border-radius: 16px;
  width: 100%;
  height: 100%;
  min-height: 400px;
  box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

/* Responsive */
@media (max-width: 768px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .contacto-mapa iframe {
    min-height: 300px;
  }
}

/* === FOOTER === */
.footer {
    background:#fff;
    color: #000;
    padding: 40px 5%;
    font-family: Arial, sans-serif;
}
.footer-row {
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 25px;
}
.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    position: relative;
}
.footer-links h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 40px;
    height: 2px;
    background: #000;
}
.footer-links.small-col h4 {
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.footer-links.small-col .footer-payments h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #000;
    font-weight: 600;
    text-align: center;
}
.footer-links ul {
    list-style: none;
    padding: 0;
}
.footer-links ul li {
    margin-bottom: 10px;
}
.footer-links ul li a {
    color: #000;
    text-decoration: none;
    transition: 0.3s;
}
.footer-links ul li a:hover {
    color: #266b58;
    padding: 2px 6px;
    border-radius: 4px;
}
.footer-links.small-col .social-link a {
    margin-right: 10px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: #fff;
    color: #000;
    border-radius: 50%;
    transition: 0.3s ease;
}
.footer-links.small-col .social-link a:hover {
    transform: scale(1.3);
    background: #fff;
    color: #266b58;
}
.footer-payments {
    margin-top: 20px;
    text-align: center;
}
.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}
.payment-icons div {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.payment-icons div img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: transform 0.3s;
}
.payment-icons div img:hover {
    filter: brightness(0) invert(1);
}
.footer-bottom {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #000;
}
.footer-bottom .direccion {
    margin-bottom: 5px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .banner-nav nav {
        display: none;
        flex-direction: column;
        gap: 15px;
        background: #222;
        padding: 15px;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
    }
    #nav.active {
        display: flex;
    }
    .hamburger {
        display: flex;
    }
    .footer-row {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 25px;
    }
    .footer-links.small-col {
        margin: 0 auto;
    }
    .footer-links ul {
        display: inline-block; 
    }
    .footer-links ul li {
        margin-bottom: 8px;
    }
    .footer-payments {
        margin-top: 15px;
    }
    .payment-icons {
        justify-content: center;
    }
    .footer-links.small-col .social-link a {
        margin: 0 6px;
        margin-bottom: 10px;
    }
    .footer-bottom {
        margin-top: 20px;
        font-size: 0.8rem;
    }
}
