/* Efecto de desplazamiento suave */
html {
    scroll-behavior: smooth;
}
/* Fuente general */
body {
    font-family: 'Century Gothic', sans-serif;
    background: linear-gradient(to bottom, #f5e9ff, #111);
    color: #808080;
    margin: 0;
    padding: 0;
    text-align: center;
}

/* Título principal */
.titulo h1 {
    font-size: 3em;
    margin: 20px 0 5px;
    color: #5c3f58;
}

.titulo h3 {
    margin: 0;
    color: #666;
}

/* Panel de navegación */
nav ul {
list-style-type: none;
padding: 0;
margin: 20px 0;
display: flex;
justify-content: center;
gap: 30px;
}

nav ul li a {
        text-decoration: none;
    color: #808080;
    background-color: #d9c9f2;
    padding: 10px 20px;
    border-radius: 30px;
    transition: background-color 0.3s ease;
    font-weight: bold;
    border: 1px solid #834c88;
}

nav ul li a:hover {
    background-color: #a989d4;
    color: #fff;
}

/* Secciones generales */
section {
    margin: 50px auto;
    padding: 40px;
    width: 80%;
    border: 2px solid #ccc;
    border-radius: 20px;
    background-color: #ffffffdd;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* Imágenes */
.img-responsive {
    width: 80%;
    max-width: 600px;
    border-radius: 15px;
    margin-top: 20px;
}

.img-circular {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #a989d4;
    margin: 20px 0;
}

/* Lista de servicios como botones */
#servicios ul {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

#servicios ul li {
    background-color: #d9c9f2;
    margin: 10px auto;
    padding: 10px 20px;
    display: inline-block;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    border: 1px solid #999;
}

#servicios ul li:hover {
    background-color: #a989d4;
    color: #fff;
}

/* Video */
#video video {
    margin-top: 20px;
    border: 3px solid #a989d4;
    border-radius: 15px;
}

/* Footer */
footer {
    background-color: #111;
    color: #ccc;
    padding: 20px;
    font-size: 0.9em;
    margin-top: 50px;
}
/* ===== FORMULARIO ===== */
.formulario-contacto {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
}

.formulario-contacto label {
    font-weight: bold;
    color: #333;
}

.formulario-contacto input,
.formulario-contacto textarea {
    padding: 10px;
    border: 1px solid #aaa;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Century Gothic', sans-serif;
}

.formulario-contacto button {
    background-color: #a989d4;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
    background-color: #8a6bbd;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    nav ul {
        flex-wrap: wrap;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 0.9em;
    }
    section {
        width: 95%;
        padding: 20px;
    }
    nav ul {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .titulo h1 {
        font-size: 2em;
    }
    .img-responsive {
        width: 100%;
    }
    .img-circular {
        width: 150px;
        height: 150px;
    }
}
/* ---------- Acordeón de servicios ---------- */
.servicios-accordion {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  text-align: left; /* el contenido interno se lee mejor alineado a la izquierda */
}

.servicio {
  background-color: #ffffffdd;
  border: 2px solid #ccc;
  border-radius: 16px;
  margin: 14px 0;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,.08);
}

/* Oculta el marcador por defecto del summary */
.servicio summary::-webkit-details-marker { display: none; }
.servicio summary { list-style: none; }

/* Botón/hipervínculo del acordeón */
.servicio > summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: #808080;
  background: #d9c9f2; /* lila bajito */
  border-bottom: 1px solid #bbb;
  position: relative;
  transition: background-color .25s ease, color .25s ease;
  border-radius: 16px; /* que luzca como botón */
}

/* Indicador + / – al lado derecho */
.servicio > summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 900;
  color: #808080;
}

/* Estado abierto */
.servicio[open] > summary {
  background: #a989d4; /* lila más oscuro al abrir */
  color: #fff;
  border-bottom-color: transparent;
}
.servicio[open] > summary::after {
  content: "–";
  color: #fff;
}

/* Cuerpo de la descripción */
.servicio-descripcion {
  padding: 18px 20px 22px;
  background: #fff;
  color: #555;
  line-height: 1.6;
}

/* Accesible al enfocar con teclado */
.servicio > summary:focus {
  outline: 3px solid #a989d4;
  outline-offset: 2px;
  border-radius: 16px;
}

/* Opcional: animación sutil del contenido (no height, para evitar saltos) */
.servicio-descripcion {
  animation: fadeIn .25s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-2px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ===== MENÚ GENERAL ===== */
.navbar {
  display: flex;
  justify-content: flex-end; /* Todo a la derecha */
  align-items: center;
  padding: 15px 30px;
  background-color: #d9c9f2; /* lila bajito */
  border-bottom: 2px solid #a989d4;
  position: relative;
}

/* Lista de menú (PC) */
.menu {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li a {
  text-decoration: none;
  color: #808080;
  padding: 8px 15px;
  border-radius: 20px;
  transition: background 0.3s ease;
  font-weight: bold;
}

.menu li a:hover {
  background-color: #a989d4;
  color: #fff;
}

/* Ícono hamburguesa */
.menu-icon {
  display: none;
  font-size: 1.8em;
  cursor: pointer;
  color: #808080;
}

/* Checkbox oculto */
.menu-toggle {
  display: none;
}

/* ===== MODO RESPONSIVE ===== */
@media (max-width: 768px) {
  /* Ocultar menú horizontal y mostrar hamburguesa */
  .menu {
    display: none;
    flex-direction: column;
    background-color: #d9c9f2;
    position: absolute;
    top: 60px;
    right: 30px;
    width: 200px;
    padding: 15px 0;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  }
/* Asegurar que el nav y el menú hamburguesa estén por encima del banner */
nav {
  position: relative;
  z-index: 1000; /* más alto que el banner */
}

.menu-hamburguesa {
  position: absolute; /* o fixed si lo quieres fijo en pantalla */
  top: 20px; /* ajusta según tu diseño */
  right: 20px;
  z-index: 1001; /* aún más alto que el nav */
}

/* Cuando el menú se despliega en móviles */
nav ul {
  position: absolute;
  top: 60px; /* debajo del ícono hamburguesa */
  right: 0;
  z-index: 1002; /* aseguramos que quede encima del banner */
}

  /* Mostrar menú cuando el checkbox está activo */
  .menu-toggle:checked + .menu-icon + .menu {
    display: flex;
  }

  /* Mostrar hamburguesa */
  .menu-icon {
    display: block;
  }
}
/* Video responsive */
#video video {
  max-width: 100%;   /* Que nunca sea más grande que el contenedor */
  height: auto;      /* Mantiene la proporción original */
  border: 3px solid #a989d4;
  border-radius: 15px;
}
@media (max-width: 768px) {
  #video video {
    width: 100%;
  }
}
/* ====== BANNER ANIMADO ====== */
.banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16/7;                /* proporción responsiva */
  min-height: 280px;                  /* altura mínima en móviles */
  max-height: 520px;                  /* límite en pantallas grandes */
  overflow: hidden;
  border-radius: 20px;
  margin: 30px auto;
  width: clamp(90%, 1000px, 1200px);  /* centrado y ancho fluido */
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* Todas las imágenes se apilan y se van mostrando por 'fade' */
.banner img {
  position: absolute;
  inset: 0;                           /* top/right/bottom/left:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: bannerFade 20s infinite; /* dura 20s el ciclo completo */
  filter: contrast(1.05) saturate(1.04);
}

/* Delays para cada imagen (ajusta si agregas/quitas) */
.banner img:nth-child(1) { animation-delay: 0s;  }
.banner img:nth-child(2) { animation-delay: 5s;  }
.banner img:nth-child(3) { animation-delay: 10s; }
.banner img:nth-child(4) { animation-delay: 15s; }

/* Animación tipo 'crossfade' */
@keyframes bannerFade {
  0%   { opacity: 0; }
  5%   { opacity: 1; }
  25%  { opacity: 1; }
  30%  { opacity: 0; }
  100% { opacity: 0; }
}

/* Pausa al pasar el mouse (en desktop) */
.banner:hover img {
  animation-play-state: paused;
}

/* Texto superpuesto del banner */
.banner-caption {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 10%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient( to bottom, rgba(0,0,0,.10), rgba(0,0,0,.45) );
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

.banner-caption h2 {
  margin: 0 0 6px;
  font-family: 'Century Gothic', sans-serif;
  font-weight: 700;
  letter-spacing: .5px;
}

.banner-caption p {
  margin: 0;
  font-weight: 500;
  opacity: .95;
  letter-spacing: .3px;
}

/* Responsivo: tamaños del caption */
@media (max-width: 768px) {
  .banner { aspect-ratio: 16/9; max-height: 420px; }
  .banner-caption h2 { font-size: 1.1rem; }
  .banner-caption p  { font-size: .9rem; }
}

@media (max-width: 480px) {
  .banner { min-height: 220px; max-height: 340px; }
  .banner-caption {
    left: 50%;
    bottom: 8%;
    transform: translateX(-50%);
    padding: 8px 12px;
  }
  .banner-caption h2 { font-size: 1rem; }
  .banner-caption p  { font-size: .85rem; }
}
/* ==== BANNER RESPONSIVE ==== */
.banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 15px;
  margin: 20px auto;
  max-width: 1200px;
  aspect-ratio: 16 / 9; /* Mantiene proporción automáticamente */
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
}

/* Las imágenes se adaptan a todo el espacio */
.banner img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ajusta y llena el contenedor */
  opacity: 0;
  animation: bannerFade 20s infinite;
}

/* Crossfade para 4 imágenes */
.banner img:nth-child(1) { animation-delay: 0s; }
.banner img:nth-child(2) { animation-delay: 5s; }
.banner img:nth-child(3) { animation-delay: 10s; }
.banner img:nth-child(4) { animation-delay: 15s; }

@keyframes bannerFade {
  0%, 100% { opacity: 0; }
  5%, 25% { opacity: 1; }
  30% { opacity: 0; }
}

/* Texto superpuesto */
.banner-caption {
  position: absolute;
  z-index: 2;
  bottom: 10%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  padding: 10px 15px;
  border-radius: 10px;
}

/* === RESPONSIVE MEDIA QUERIES === */

/* Tablets */
@media (max-width: 768px) {
  .banner {
    aspect-ratio: 16 / 10; /* un poco más alto en tablets */
  }
  .banner-caption h2 { font-size: 1.3rem; }
  .banner-caption p { font-size: 0.95rem; }
}

/* Celulares */
@media (max-width: 480px) {
  .banner {
    aspect-ratio: 16 / 12; /* más alto para que el contenido se vea completo */
  }
  .banner-caption {
    padding: 6px 10px;
    font-size: 0.9rem;
  }
  .banner-caption h2 { font-size: 1rem; }
  .banner-caption p { font-size: 0.8rem; }
}

/* ===== SECCIÓN PLANES ===== */
#planes {
  background: #ffffffdd;
  border: 2px solid #ccc;
  border-radius: 20px;
  padding: 50px 20px;
  margin: 50px auto;
  width: 90%;
  box-shadow: 0 0 20px rgba(0,0,0,.15);
  position: relative;
}

#planes h2 {
  font-size: 2em;
  color: #834c88;
  margin-bottom: 10px;
}

.planes-subtitulo {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 40px;
}

/* Contenedor de los planes */
.planes-contenedor {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
}

/* Tarjeta individual de plan */
.plan-card {
  background: #fff;
  border: 2px solid #d9c9f2;
  border-radius: 18px;
  width: 280px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,.1);
  transition: transform .3s ease, box-shadow .3s ease;
  position: relative;
}

.plan-card img {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 15px;
}

.plan-card h3 {
  color: #834c88;
  font-size: 1.3em;
  margin-bottom: 12px;
}

.plan-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
  margin: 15px 0;
  color: #555;
}

.plan-card ul li {
  margin-bottom: 8px;
  position: relative;
  padding-left: 20px;
}

.plan-card ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #834c88;
}

.plan-card .precio {
  font-size: 1.2em;
  font-weight: bold;
  color: #a989d4;
  margin: 15px 0;
}

.plan-card button {
  background: #a989d4;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
  transition: background .3s ease;
}

.plan-card button:hover {
  background: #834c88;
}

/* Beneficios extra */
.planes-beneficios {
  margin-top: 40px;
  font-size: 1em;
  color: #333;
  font-weight: 500;
}

.planes-beneficios p {
  margin: 6px 0;
}


/* Mensaje superpuesto con animaciones y glow */
.planes-mensaje {
  position: absolute;
  top: -20px;
  right: 20px;
  background: #834c88;
  color: #fff; 
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  transform: rotate(1deg);
  z-index: 1000;

  /* Animaciones */
  animation: bounceIn 1s ease, pulse 2s infinite 1s;
  /* el "1s" después de infinite es el delay → empieza a latir cuando termine el rebote */
}

/* Rebote al aparecer */
@keyframes bounceIn {
  0%   { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  60%  { transform: scale(1.1) rotate(2deg); opacity: 1; }
  80%  { transform: scale(0.95) rotate(0deg); }
  100% { transform: scale(1) rotate(1deg); }
}

/* Latido infinito sutil */
@keyframes pulse {
  0%, 100% { transform: scale(1) rotate(1deg); }
  50%      { transform: scale(1.05) rotate(1deg); }
}
.planes-mensaje * {
  background: transparent !important; /* 👈 elimina fondos raros heredados */
  color: #fff !important;             /* 👈 fuerza blanco */
}


.planes-mensaje h2 {
  margin: 0;
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .planes-contenedor {
    flex-direction: column;
    align-items: center;
  }
  .planes-mensaje {
    position: static;
    margin: 20px auto;
    transform: none;
  }
}
.plan-card:hover {
  transform: scale(1.07);
  box-shadow: 0 12px 24px rgba(0,0,0,.2);
  border-color: #834c88;
}
#form-status {
  font-size: 1em;
  text-align: center;
  margin-top: 10px;
  transition: all 0.3s ease;
}
/* Contenedor del título con logo */
.titulo {
  display: flex;
  align-items: center;
  justify-content: center; /* centra todo el bloque en la página */
  gap: 2px; /* espacio entre logo y texto */
  margin: 20px 0;
}

/* Logo */
.titulo .logo {
  width: 150px;   /* ajusta según tu diseño */
  height: auto;
}

/* Texto */
.texto-titulo h1 {
  font-size: 3em;
  margin: 0;
  color: #5c3f58;
}

.texto-titulo h3 {
  margin: 0;
  color: #666;
}

/* Responsive: en pantallas pequeñas logo arriba */
@media (max-width: 600px) {
  .titulo {
    flex-direction: column;
    text-align: center;
  }
}
