* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: #0d0d0d;
  color: #ffffff;
  scroll-behavior: smooth;
}

.barra {
  background: #1f1f20;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo img {
  height: 70px;   /* tamaño del alto fijo */
  width: auto;    /* mantiene proporción */
  border-radius: 2px; /* opcional: esquinas redondeadas */
  object-fit: contain;
}

.menu a {
  color: #cccccc;
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.3s;
}

.menu a:hover {
  color: #567ebb;
}


.fondo {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  overflow: hidden;
  z-index: 0;
}

/* Carrusel de fondos con varias imágenes */
.fondo::before {
  content: "";
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  opacity: 0.4;
  z-index: -1;

  animation: cambioFondo 18s infinite; /* 6s cada imagen */
}

@keyframes cambioFondo {
  0%   { background-image: url("img/_MG_8527.JPG"); }
  33%  { background-image: url("img/_MG_8831.JPG"); }
  66%  { background-image: url("img/_MG_8589.JPG"); }
  100% { background-image: url("img/_MG_8849.JPG"); }
}

.texto-inicio {
  padding: 2rem;
  border-radius: 10px;
  text-align: center;
  max-width: 600px;
}

.texto-inicio h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem; /* agrega espacio debajo del título */
  color: #ffffff;
}

.texto-inicio h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem; /* espacio antes del botón */
  color: #ffffff;
}

.btn-primary {
  background-color: #007bff;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem; /* seguridad extra por si faltara margen */
  transition: background 0.3s;
}

.btn-primary:hover {
  background-color: #0056b3;
}

.sobre-mi {
  padding: 4rem 2rem;
  text-align: center;
}
.sobre-mi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 2rem;
  background-color: #dce0e6; /* color de tu paleta */
}

.sobre-mi .columna.texto {
  flex: 1.3; /* el texto ocupa más espacio */
  line-height: 1.8;
  font-size: 1.1rem;
  text-align: justify;
  color: #1e1e1e;
}

.sobre-mi .columna.multimedia {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.sobre-mi video.video1 {
  width: 100%;
  max-width: 600px; /* límite para que no se agrande demasiado */
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Responsivo */
@media (max-width: 900px) {
  .sobre-mi {
    flex-direction: column;
  }
  .sobre-mi .columna.texto,
  .sobre-mi .columna.multimedia {
    flex: 1;
    width: 100%;
  }
}


/*.servicio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.servicio-item {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 8px;
  color: #cccccc;
}

.servicios {
  padding: 4rem 2rem;
  text-align: center;
}

.servicios img {
    height: 100px;
    padding-bottom: 1rem;
}


.servicios h2 {
  color: #007bff;
  margin-bottom: 1rem;
} */

.planes {
  padding: 4rem 2rem;
  background-color: #dce0e6; /* color1 */
  color: #1f1f20; /* color5 */
  text-align: center;
}

.planes h2 {
  color: #567ebb; /* color3 */
  margin-bottom: 1rem;
}

.planes .intro {
  max-width: 800px;
  margin: 0 auto 2rem;
  line-height: 1.6;
  color: #1f1f20;
}

.planes .situaciones {
  list-style: "✔️ ";
  max-width: 700px;
  margin: 1rem auto 2rem;
  text-align: left;
  padding-left: 1rem;
  color: #1f1f20;
}

.beneficios {
  background-color: #1f1f20; /* color2 */
  padding: 1.5rem;
  border-radius: 10px;
  margin: 2rem auto;
  max-width: 1200px;
  text-align: left;
  color: white;
}

.beneficios h3 {
  margin-bottom: 1rem;
  color: #dce0e6;
}

.beneficios ul {
  list-style: "⭐ ";
  padding-left: 1rem;
}

.planes-grid {
  display: flex;
  flex-direction: column; /* uno abajo del otro */
  gap: 2rem;
  margin-top: 2rem;
  align-items: center; /* los centra en pantalla */
}

.aviso-pago {
  background-color: #2b4c7e; /* azul de tu paleta */
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  margin: 1rem 0;
}


.plan-card {
  width: 100%;
  max-width: 1200px; /* para que no sean demasiado anchos */
  background-color: #1f1f20; /* color2 */
  padding: 2rem;
  border-radius: 12px;
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.plan-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}


.plan-card h2 {
  color: #dce0e6; /* color5 */
  margin-bottom: 0.5rem;
}

.plan-card p {
  margin-bottom: 1rem;
  color: #dce0e6;
}

.plan-card ul {
  list-style: "➡️ ";
  text-align: left;
  margin-bottom: 1.5rem;
  padding-left: 1rem;
  color: #dce0e6;
}

.plan-img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.btn-primary {
  background-color: #567ebb; /* color3 */
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #606d80; /* color4 */
}


/* 📌 FOOTER */
footer {
  background-color: #1f1f20; /* color1: más oscuro */
  color: #dce0e6; /* gris claro */
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

footer a {
  color: #567ebb; /* azul medio */
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #2b4c7e; /* azul fuerte */
}

footer .redes a {
  color: #dce0e6; /* gris claro */
  font-size: 1rem;
  margin-top: 0.5rem;
  display: inline-block;
  transition: color 0.3s;
}

footer .redes a:hover {
  color: #567ebb; /* azul medio */
}


/* 📌 BOTÓN FLOTANTE WHATSAPP */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366; /* verde whatsapp */
  color: #fff;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none !important; /* ✅ elimina la rayita */
  transition: transform 0.3s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


/* 📩 Sección de contacto */
#contacto {
  background-color: #dce0e6; /* color5: gris claro */
  color: #1f1f20; /* color1: texto oscuro */
  padding: 4rem 2rem;
  text-align: left;
}

#contacto h2 {
  color: #2b4c7e; /* color2: azul fuerte */
  font-size: 2rem;
  margin-bottom: 2rem;
  text-align: center;
}

#contacto form {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contacto input,
#contacto textarea {
  padding: 1rem;
  border: 1px solid #606d80; /* color4: gris azulado */
  border-radius: 8px;
  background-color: #ffffff; /* fondo blanco en los campos */
  color: #1f1f20; /* texto oscuro */
  font-size: 1rem;
}

#contacto input::placeholder,
#contacto textarea::placeholder {
  color: #606d80; /* gris azulado */
}

#contacto button {
  background-color: #2b4c7e; /* color2: azul fuerte */
  color: #ffffff;
  border: none;
  padding: 1rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}

#contacto button:hover {
  background-color: #567ebb; /* color3: azul medio */
}


.testimonios {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #dce0e6; /* paleta */
}

.testimonios h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #2b4c7e;
}

.testimonios .subtexto {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: #606d80;
}

.carrusel-fotos {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.contenedor-fotos {
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.foto {
  min-width: 100%;
  transition: opacity 0.5s;
}

.foto img {
  width: 100%;
  display: block;
  border-radius: 12px;
}

/* Flechas */
.flecha {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  z-index: 10;
}

.flecha:hover {
  background: rgba(0,0,0,0.7);
}

.flecha.anterior-foto { left: 10px; }
.flecha.siguiente-foto { right: 10px; }

/* Responsivo */
@media (max-width: 768px) {
  .testimonios h2 {
    font-size: 1.5rem;
  }
  .testimonios .subtexto {
    font-size: 1rem;
  }
}



/* --- OPTIMIZACIÓN MÓVIL --- */
@media (max-width: 768px) {
  /* Textos principales */
  h1 {
    font-size: 2rem;
    text-align: center;
  }

  h2 {
    font-size: 1.5rem;
    text-align: center;
  }

  p {
    font-size: 1rem;
    line-height: 1.6;
  }

  /* Sección inicio */
  .texto-inicio {
    text-align: center;
    padding: 0 1rem;
  }

  .btn-primary {
    font-size: 1rem;
    padding: 12px 20px;
    display: inline-block;
  }

  /* Sobre mí → columna a filas */
  .sobre-mi {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .sobre-mi .columna {
    width: 100%;
    margin-bottom: 1.5rem;
  }

  .sobre-mi video {
    max-width: 100%;
    border-radius: 10px;
  }

  /* Planes → de grid a lista */
  .planes-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0 1rem;
  }

  .plan {
    width: 100%;
  }

  /* Carrusel de fotos */
  .carrusel img {
    width: 100%;
    height: auto;
    border-radius: 10px;
  }

  .carrusel button {
    font-size: 1.5rem;
    padding: 8px;
  }

  /* Contacto */
  .contacto form {
    padding: 1rem;
  }

  input, textarea, button {
    font-size: 1rem;
  }

  /* Footer */
  footer {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.5rem 1rem;
  }
}


/* --- ANIMACIONES SUAVES --- */

/* Fade-in general */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botones */
.btn-primary {
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
  background-color: #0056b3; /* azul más oscuro (ajustalo a tu paleta) */
  transform: scale(1.05);
}

/* Planes */
.plan {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.plan:hover {
  transform: translateY(-8px);
  box-shadow: 0px 6px 20px rgba(0,0,0,0.15);
}

/* Carrusel */
.carrusel img {
  transition: opacity 0.8s ease-in-out;
}

/* ============================= */
/* MENÚ HAMBURGUESA - MOBILE */
/* ============================= */

.hamburguesa {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburguesa span {
  background: white;
  height: 3px;
  width: 25px;
  margin: 4px 0;
  border-radius: 5px;
}

/* MOBILE */
@media (max-width: 768px) {
  .hamburguesa {
    display: flex;
  }

  .menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #1f1f20;
    flex-direction: column;
    width: 100%;
    display: none;
    text-align: center;
  }

  .menu a {
    padding: 1rem;
    border-top: 1px solid #333;
    margin: 0;
  }

  .menu.activo {
    display: flex;
  }
}


