/* ===========================
   RESET & BASE
=========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ===========================
   CONTAINER
=========================== */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ===========================
   HEADER
=========================== */
.header {
  background: #f8f9fa;
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 85px;
  width: auto;
}

/* ===========================
   NAVIGATION
=========================== */
.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
}

.nav-links li {
  position: relative;
}

.nav-links a {
  position: relative;
  color: black;
  text-decoration: none;
  font-weight: bold;
  padding: 8px 15px;
  transition: color 0.3s;
}

.nav-links a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  left: 0;
  bottom: -4px;
  background: #007bff;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: #007bff;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Dropdown */
.dropdown-menu,
.dropdown-submenu {
  display: none;
  position: absolute;
  background: #fff;
  border: 1px solid #ddd;
  list-style: none;
  padding: 10px 0;
  margin: 0;
  z-index: 2000;
  min-width: 220px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 4px;
}

.dropdown-menu li a,
.dropdown-submenu li a {
  display: block;
  padding: 8px 15px;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.3s;
}

.dropdown-menu li a:hover,
.dropdown-submenu li a:hover {
  background: #f4f4f4;
  color: #007bff;
}

.dropdown:hover > .dropdown-menu { display: block; }
.dropdown-sub:hover > .dropdown-submenu { display: block; top: 0; left: 100%; }


/* ===========================
   HERO
=========================== */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
}

/* Capas de fondo para el efecto de transición */
.hero-background,
.hero-background.next {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  filter: brightness(0.55); 
}

/* Imagen inicial visible */
.hero-background {
  background-image: url("img/hero.jpg");
  opacity: 1;
}

/* La siguiente imagen empieza oculta */
.hero-background.next {
  opacity: 0;
}

/* Capa de oscurecimiento superior */
.hero-overlay {
  background: rgba(0, 0, 0, 0.55); 
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 20px;
}

/* Texto dentro del hero */
.hero-text h2 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

.hero-text p {
  font-size: 1.3rem;
  margin-bottom: 25px;
  max-width: 700px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 0.5s;
}

.hero-text .btn {
  padding: 14px 30px;
  font-weight: bold;
  font-size: 1rem;
  background: #0077b6;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
  animation-delay: 1s;
}

.hero-text .btn:hover {
  background: #023e8a;
}

/* Animación del texto */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ===========================
   BUTTONS
=========================== */
.btn {
  display: inline-block;
  padding: 12px 25px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  border-radius: 4px;
}

/* Unified primary button style (used for "Enviar" and "Reservar Asesoría") */
.btn-primary {
  background: #007bff;
  color: white;
  font-size: 1rem;
  padding: 14px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
  display: block;
  transition: background 0.3s, transform 0.12s;
}

.btn-primary:hover { background: #0056b3; transform: translateY(-1px); }

/* ===========================
   SERVICES
=========================== */
.services {
  padding: 80px 20px;
  text-align: center;
  background: #f4f4f4;
}

.section-title {
  font-size: 2.5rem;
  color: #023e8a;
  margin-bottom: 40px;
}

.service-items {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* Tarjetas */
.service-item {
  background: #fff;
  padding: 30px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex: 1 1 280px;
  max-width: 320px;
  border-top: 4px solid transparent;

  /* Animación base */
  opacity: 0;
  transform: translateY(60px) scale(0.95);
  transition: 
    opacity 0.8s ease-out,
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.15s ease-out,
    border-top 0.15s ease-out;
}

/* Cuando se hace visible */
.service-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Hover */
.service-item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 22px rgba(0,0,0,0.18);
  border-top: 4px solid #0077b6;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out !important;
    box-shadow: 
    0 10px 22px rgba(0,0,0,0.18),
    0 0 10px rgba(0,119,182,0.4); /* efecto brillante sutil azul */
}


.service-item i {
  font-size: 2.7rem;
  color: #0077b6;
  margin-bottom: 15px;
}

.service-item h3 {
  margin-bottom: 12px;
  color: #023e8a;
  font-weight: 600;
}

.service-item p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
}

.service-item.visible:nth-child(1) { transition-delay: 0.1s; }
.service-item.visible:nth-child(2) { transition-delay: 0.2s; }
.service-item.visible:nth-child(3) { transition-delay: 0.3s; }
.service-item.visible:nth-child(4) { transition-delay: 0.4s; }
.service-item.visible:nth-child(5) { transition-delay: 0.5s; }
.service-item.visible:nth-child(6) { transition-delay: 0.6s; }

/* ===========================
   ABOUT
=========================== */
.about {
  padding: 80px 20px;
  text-align: center;
  background: #f5faff;
}

.section-title {
  font-size: 2.5rem;
  color: #023e8a;
  margin-bottom: 10px;
}

.about-subtitle {
  display: inline-block;
  background-color: #007bff;
  color: white;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.about-description {
  max-width: 850px;
  margin: 0 auto 50px auto;
  font-size: 1.15rem;
  line-height: 1.7;
  color: #333;
}

/* Tarjetas de valores */
.values-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

.value-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  width: 260px;
  padding: 25px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card i {
  font-size: 2.5rem;
  color: #0077b6;
  margin-bottom: 15px;
}

.value-card h4 {
  color: #023e8a;
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.value-card p {
  font-size: 1rem;
  color: #555;
  line-height: 1.5;
}

.value-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}


/* ===========================
   CONTACT
=========================== */
.contact {
  padding: 60px 20px;
  text-align: center;
  background: #f5faff;
}

/* Titles & subtitles used in contact and asesoría */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}

/* Form */
.contact form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 500px;
  margin: 20px auto;
}

.contact input,
.contact textarea,
.contact select {
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
  background: #fff;
  color: #333;
  font-family: inherit;
}

/* Placeholder uniforme */
.contact input::placeholder,
.contact textarea::placeholder,
.contact select:invalid {
  color: #777;
  font-size: 1rem;
}

/* El select tendrá gris claro como placeholder */
.contact select:invalid {
  color: #777;
}

/* Texto seleccionado en el select normal en negro */
.contact select option {
  color: #333;
}

/* Efecto hover/focus igual para todos */
.contact input:focus,
.contact textarea:focus,
.contact select:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.25);
  outline: none;
}


/* ===========================
   CONTACT DIVIDER
=========================== */
.contact-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0 25px;
  text-align: center;
  color: #555;
}

.contact-divider::before,
.contact-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ccc;
  margin: 0 15px;
}

.contact-divider p {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
  white-space: nowrap;
}


/* ===========================
   CALENDLY POPUP
=========================== */
#calendly-popup {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.calendly-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  width: 95%;
  position: relative;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 20px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s;
}
.close-btn:hover { color: #007bff; }

/* small helper for calendly text */
.calendly-wrapper { margin-top: 30px; }
.calendly-wrapper p { font-size: 1.1rem; margin-bottom: 20px; color: #333; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: #0d1b2a;
  color: #ffffff;
  padding: 40px 20px 20px;
  font-size: 0.95rem;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo { text-align: center; }
.footer-logo img { width: 130px; margin-bottom: 20px; }
.footer-description { font-size: 0.9rem; line-height: 1.5; color: #cccccc; }

.footer-contact h4,
.footer-social h4,
.footer-map h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  color: #00b4d8;
}

.footer-contact p,
.footer-social ul,
.footer-map { margin: 0; padding: 0; list-style: none; }

.footer-contact a { color: #ffffff; text-decoration: none; }
.footer-social ul li { margin-bottom: 8px; }
.footer-social a { color: #ffffff; text-decoration: none; transition: color 0.3s ease; }
.footer-social a:hover { color: #00b4d8; }
.footer-social i { margin-right: 8px; }

.footer-map iframe { border-radius: 10px; box-shadow: 0 0 10px rgba(0,0,0,0.3); }

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #22303c;
  padding-top: 15px;
  font-size: 0.85rem;
  color: #cccccc;
}

/* ===========================
   FLAGS
=========================== */
.flags {
  position: absolute;
  top: 15px;
  right: 20px;
  display: flex;
  gap: 10px;
  background: none;
  border: none;
}

.flags img {
  width: 30px;
  height: 20px;
  cursor: pointer;
  transition: transform 0.2s ease;
  border: none;
}

.flags img:hover { transform: scale(1.1); }

/* ===========================
   WHATSAPP FLOAT
=========================== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  color: white;
  font-size: 34px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  cursor: pointer;
  z-index: 1000;
  transition: transform 0.3s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 10px rgba(0,0,0,0.4);
}

/* ===========================
   ACCESSIBILITY & SMALL SCREEN ADJUSTMENTS
=========================== */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 3px solid rgba(0,123,255,0.25);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .container { width: 95%; }
  .hero-text h2 { font-size: 2.2rem; }
  .hero-text p { font-size: 1.05rem; }
  .footer-container { gap: 20px; }
}

@media (max-width: 600px) {
  .nav-links { gap: 12px; }
  .hero { height: 70vh; }
  .service-items { gap: 20px; }
  .section-title { font-size: 1.6rem; }
  .btn-primary { max-width: 100%; }
  .contact form { margin: 10px auto; padding: 0 12px; }
}


/* ===========================================================
   RESPONSIVE MENU (corregido y simplificado)
=========================================================== */

/* Ocultar icono hamburguesa por defecto */
.menu-toggle {
  display: none;
}

/* Estilos móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    position: absolute;
    top: 50px;       /* un poco más abajo para no tapar el logo */
    right: 20px;     /* alineado a la derecha */
    font-size: 1.9rem;
    color: #000;     /* icono negro */
    cursor: pointer;
    z-index: 2000;
  }

  /* Menú desplegable */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100px; 
    right: 0;
    background: #fff;
    width: 100%;
    text-align: left;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 0 0 15px 15px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 20px;
  }

  .nav-links a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    display: block;
    padding: 10px 0;
  }

/* Submenús en móviles: se muestran dentro del flujo */
.dropdown-menu,
.dropdown-submenu {
  display: none;
  flex-direction: column;
  background: #f9f9f9;
  border-left: 3px solid #007bff;
  margin: 5px 0 0 15px;
  padding: 10px 0 10px 10px;
  width: auto;
  position: static; /* evita que se “flote” como ventana */
  box-shadow: none;
  border-radius: 0;
}

.dropdown-menu.open,
.dropdown-submenu.open {
  display: flex;
}

.dropdown-menu a,
.dropdown-submenu a {
  color: #000;
  font-size: 0.95rem;
  padding: 8px 15px;
}

/* Icono ▾ / ▸ opcional para indicar que se puede abrir */
.dropdown > a::after,
.dropdown-sub > a::after {
  float: right;
  font-size: 0.9rem;
  margin-left: 8px;
}
}

/* Pequeños móviles (menor a 480px) */
@media (max-width: 480px) {
  .service-item,
  .value-card {
    max-width: 90%;
    padding: 20px;
  }

  .footer-map iframe {
    height: 150px;
  }
}


/* Pequeños móviles (menor a 480px) */
@media (max-width: 480px) {
  .service-item,
  .value-card {
    max-width: 90%;
    padding: 20px;
  }

  .footer-map iframe {
    height: 150px;
  }
}

/* ===========================================================
   SECCIÓN INFORMATIVA MODERNA
============================================================== */

.info-section {
  position: relative;
  background: linear-gradient(180deg, #f5faff 0%, #ffffff 100%);
  padding: 100px 20px 120px;
  overflow: hidden;
}

.info-intro {
  max-width: 750px;
  margin: 0 auto 70px;
  color: #444;
  font-size: 1.1rem;
  line-height: 1.7;
}

.info-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: #ffffff;
  border-radius: 60px;
  padding: 40px 50px;
  max-width: 900px;
  box-shadow: 0 8px 25px rgba(0, 63, 125, 0.1);
  transition: all 0.3s ease;
  position: relative;
}


.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 35px rgba(0, 63, 125, 0.2);
}

.info-card img {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover; 
  background: none;  
  padding: 0;       
  transition: transform 0.3s ease;
}


.info-card:hover img {
  transform: scale(1.1);
}

.info-card-content {
  text-align: left;
}

.info-card h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: inherit;
}

.info-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: inherit;
}

@media (max-width: 768px) {
  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
    border-radius: 30px;
  }

  .info-card:nth-child(even) {
    flex-direction: column;
    background: #ffffff;
  }

  .info-card img {
    width: 70px;
    height: 70px;
  }
}


/* ===========================================================
   SECCIÓN FAQ CON PESTAÑAS
=========================================================== */

.faq-section {
  background: #f4f4f4;
  padding: 80px 20px;
  text-align: center;
}

.faq-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 40px;
}

.faq-tab {
  background: #f0f6ff;
  border: 2px solid #003f7d;
  color: #003f7d;
  padding: 10px 20px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
}

.faq-tab.active,
.faq-tab:hover {
  background: #003f7d;
  color: #fff;
}

.faq-content {
  display: none;
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}

.faq-content.active {
  display: block;
}

.faq-item {
  background: #f9fbff;
  border-radius: 12px;
  padding: 20px 25px;
  margin-bottom: 15px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0,63,125,0.15);
}

.faq-item h3 {
  color: #003f7d;
  font-size: 1.1rem;
  position: relative;
  padding-right: 25px;
}

.faq-item p {
  display: none;
  margin-top: 10px;
  color: #333;
  line-height: 1.6;
}

.faq-item.active p {
  display: block;
}

@media (max-width: 768px) {
  .faq-tabs {
    flex-direction: column;
    gap: 8px;
  }

  .faq-tab {
    width: 100%;
  }
}

/* ===========================================================
   SECCIÓN DE TESTIMONIOS CON CARRUSEL
=========================================================== */
.testimonials {
  background: linear-gradient(180deg, #ffffff 0%, #f4f4f4 100%);
  padding: 100px 20px;
  text-align: center;
  overflow: hidden;
}

.testimonials .section-title {
  color: #333;
  margin-bottom: 10px;
}

.testimonials .section-subtitle {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 50px;
}

/* Carrusel */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1000px;
  margin: 0 auto;
}

.testimonial-track {
  display: flex;
  transition: transform 0.8s ease-in-out;
}

.testimonial-card {
  flex: 0 0 100%;
  box-sizing: border-box;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0,63,125,0.1);
  padding: 40px 30px;
  margin: 0 10px;
  text-align: left;
}

.testimonial-content p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 25px;
  position: relative;
}

.testimonial-content p::before {
  content: "“";
  font-size: 3rem;
  color: #0077b6;
  position: absolute;
  left: -10px;
  top: -10px;
  opacity: 0.15;
}

.testimonial-footer {
  display: flex;
  align-items: center;
  gap: 15px;
}

.testimonial-footer img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.testimonial-footer h4 {
  font-size: 1.1rem;
  color: #003f7d;
  margin-bottom: 4px;
}

.testimonial-footer span {
  font-size: 0.9rem;
  color: #666;
}

/* Dots */
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 25px;
}

.testimonial-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  cursor: pointer;
  transition: background 0.3s;
}

.testimonial-dots .dot.active {
  background: #0077b6;
}

@media (max-width: 768px) {
  .testimonial-card {
    padding: 30px 20px;
  }
}
