/* 🎨 Reset general */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 🎨 Estilos base */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(to bottom, #F8F9FA, #ffffff);
    color: #1A3E6B;
    line-height: 1.6;
}

/* 🔝 Encabezado */
.top-bar {
    background: linear-gradient(135deg, #08947d 0%, #08947d9d 100%);
    color: white;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.social a {
    margin-left: 15px;
    display: inline-block;
    transition: transform 0.3s;
}

.social a:hover {
    transform: translateY(-3px);
}

.social img {
    height: 28px;
    width: 28px;
    object-fit: contain;
}

.whatsapp-link .whatsapp-img {
    content: url("../src/whatsapps.png");
    /* Imagen normal */
    transition: 0.3s ease-in-out;
    /* Suaviza el cambio */
}

.whatsapp-link:hover .whatsapp-img {
    content: url("../src/whatsappc.png");
    /* Imagen al pasar el cursor */
}

.facebook-link .facebook-img {
    content: url("../src/facebooks.png");
    /* Imagen normal */
    transition: 0.3s ease-in-out;
    /* Suaviza el cambio */
}

.facebook-link:hover .facebook-img {
    content: url("../src/facebookc.png");
    /* Imagen al pasar el cursor */
}

.instagram-link .instagram-img {
    content: url("../src/instagrams.png");
    /* Imagen normal */
    transition: 0.3s ease-in-out;
    /* Suaviza el cambio */
}

.instagram-link:hover .instagram-img {
    content: url("../src/instagramc.png");
    /* Imagen al pasar el cursor */
}

.tiktok-link .tiktok-img {
    content: url("../src/tik-toks.png");
    /* Imagen normal */
    transition: 0.3s ease-in-out;
    /* Suaviza el cambio */
}

.tiktok-link:hover .tiktok-img {
    content: url("../src/tik-tokc.png");
    /* Imagen al pasar el cursor */
}

/*----------------------------------*/

/* 🧭 Menú de navegación */
.main-nav {
    background-color: #08947d73;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin: 0px;
    padding: 10px 40px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.logo img {
    height: 70px;
    transition: transform 0.3s;
}

.logo img:hover {
    transform: scale(1.05);
}

.main-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    color: #F8F9FA;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 10px 5px;
    position: relative;
    transition: color 0.3s;
}

.main-nav a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s;
    border-radius: 3px;
}

.main-nav a:hover {
    color: #08947d;
}

.main-nav a:hover:after {
    width: 100%;
}

.main-nav a.active {
    color: #08947d;
}

.main-nav a.active:after {
    width: 100%;
}

/*--------------------------------------------*/

.promo-banner {
  position: relative;
  height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 20px;
}

/* Video de fondo */
.promo-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Gradiente encima del video */
.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Gradiente de arriba hacia abajo, semi-transparente */
  background: linear-gradient(rgba(193,202,213,0.8), rgba(69,108,156,0.8));
  z-index: 1;
}

/* Contenido encima del video y gradiente */
.promo-content {
  position: relative;
  z-index: 2;
  color: white;
}

.promo-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
     color: #ffffff;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.promo-content p {
    font-size: 1.5rem;
    max-width: 900px;
    margin-bottom: 30px;
    font-style: oblique;
     color: #f9d852;
    border-bottom: #f9d852 3px solid;
    padding: 0 10px;
}



/*--------------------------------------------*/

/* 📎 Footer */
.site-footer {
    background: linear-gradient(135deg, #1A3E6B 0%, #9A6735 100%);
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
    margin-top: 60px;
}

/*----------------------------------------------*/

/* ================================
   📱 Responsivo Global
   ================================ */

/* ===== Tablets (≤ 1024px) ===== */
@media (max-width: 1024px) {

  /* 🔝 Encabezado */
  .top-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .top-bar span {
    margin-left: 20px;
  }

  .main-nav {
    flex-direction: column;
    padding: 10px;
    text-align: center;
  }

  .main-nav ul {
    margin-top: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    justify-content: center;
    
  }

  .main-nav li a {
    padding: 5px;
    font-size: 15px;
  }

  /* INDEX */
  .hero {
    flex-direction: column;
    padding: 20px;
    gap: 20px;
  }

  .hero img { height: auto; }
  #eslogan {
    font-size: 1.2rem;
    margin: 10px auto;
    text-align: center;
    width: 90%;
  }

  .promos {
    flex-direction: column;
    align-items: center;
  }
  .promo { width: 100%; }

  .promo-banner h1 { font-size: 2.5rem; } .promo-banner p { font-size: 1.2rem; }

  #mapa {
    display: flex;
    flex-direction: column;
    padding: 0;
    margin: 10px 0;
  }
    #mapa-iframe { width: 100%; }
    #mapa-text { width: 100%; }

  /* TESTIMONIOS */
  .videos-container {
    grid-template-columns: repeat(2, 1fr); /* Tablet: 2 columnas */
    gap: 20px;
  }

  .testimonios-banner h2 {
    font-size: 2rem;
  }

  .testimonios-banner p {
    font-size: 1.1rem;
  }

  .video-card {
    padding: 15px;
  }

  .video-card video {
    border-radius: 8px;
  }

  /* TIPS */
  .tips-container { gap: 20px; }
  .tip-card {
    width: 300px;
    padding: 20px;
  }
  .tips-interactivos h2 { font-size: 2rem; }
  .tips-interactivos > p { font-size: 1rem; }

  /* SERVICIOS */
  .servicios-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* ===== Móviles grandes (≤ 768px) ===== */
@media (max-width: 768px) {

  /* 🔝 Encabezado */
  .top-bar {
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    flex-direction: column;
    gap: 10px;
  }

  /* INDEX */
  .hero { padding: 15px; }
  #eslogan { font-size: 1rem; }

  /* TESTIMONIOS */
  .videos-container {
    grid-template-columns: 1fr; /* Móvil: 1 columna */
    gap: 15px;
  }

  .testimonios-banner h2 {
    font-size: 1.8rem;
  }

  .testimonios-banner p {
    font-size: 1rem;
  }

  .video-card {
    padding: 12px;
  }

  .video-card video {
    border-radius: 6px;
  }

  /* TIPS */
  .tips-container {
    flex-direction: column;
    align-items: center;
  }
  .tip-card {
    width: 100%;
    max-width: 400px;
  }
  .tip-card h3 { font-size: 1.4rem; }
  .tip-card p { font-size: 0.95rem; }
  .interactive-element { min-height: 150px; }

  /* SERVICIOS */
  .servicios-grid { grid-template-columns: 1fr; }
}

/* ===== Móviles pequeños (≤ 480px) ===== */
@media (max-width: 480px) {
  body { font-size: 0.9rem; }

  /* INDEX */
  .hero { padding: 10px; }
  .promo { font-size: 1rem; padding: 15px; }
  #mapa-iframe iframe { height: 200px; }

  /* TESTIMONIOS */
 .testimonios-banner h2 {
    font-size: 1.6rem;
  }

  .testimonios-banner p {
    font-size: 0.95rem;
  }

  .video-card {
    padding: 10px;
  }

  .video-card video {
    border-radius: 4px;
  }

  /* TIPS */
  .tips-banner { padding: 60px 15px; }
  .tips-banner h1 { font-size: 1.8rem; }
  .tips-banner p { font-size: 0.9rem; }
  .cta-button { font-size: 1rem; padding: 12px 25px; }
  .tip-card { padding: 15px; border-radius: 10px; }
  .tip-icon { font-size: 2rem; margin-bottom: 15px; }
  .tip-card h3 { font-size: 1.2rem; }
  .tip-card p { font-size: 0.85rem; }

  /* SERVICIOS */
  .servicios h2 { font-size: 1.8rem; }
  .servicio-card h3 { font-size: 1.2rem; }
  .servicio-card p { font-size: 0.9rem; }
}
