/* ==== BASE ==== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", sans-serif;
}

body {
  background: #f8f8f8;
  color: #333;
  line-height: 1.6;
}

/* ==== HEADER ==== */
header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 2rem;
  flex-wrap: nowrap;
}

/* Botón menú hamburguesa (solo aparece en móviles) */
/* .menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #fff;
}

@media (max-width: 768px) {
  nav ul.menu {
    display: none;
    flex-direction: column;
    background: #0d1b2a;
    position: absolute;
    top: 70px;
    right: 0;
    width: 200px;
    border-radius: 5px;
    padding: 1rem;
  }

  nav ul.menu.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }
}
 */

/* Logo + título */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo {
  height: 60px;
  width: auto;
}

.site-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: #0d1b2a;
  margin: 0;
  white-space: nowrap;
}

/* ==== MENÚ ==== */
.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  align-items: center;
  transition: max-height 0.3s ease;
}

.menu li {
  position: relative;
}

.menu a {
  text-decoration: none;
  color: #222;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.menu a:hover {
  color: #8C1C2A;
}

/* ==== SUBMENÚ ==== */
.submenu .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  list-style: none;
  padding: 10px 0;
  display: none;
  min-width: 200px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 6px;
}

.submenu:hover .dropdown {
  display: block;
}

.dropdown a {
  display: block;
  padding: 10px 15px;
  color: #333;
  transition: background 0.3s;
}

.dropdown a:hover {
  background: #f5f5f5;
  color: #8C1C2A;
}

/* === Flecha para submenú === */
.submenu > a::after {
  content: "▾"; /* flechita hacia abajo */
  margin-left: 8px;
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

/* Cuando está activo (submenú abierto), la flecha rota */
.submenu.open > a::after {
  transform: rotate(180deg);
}



/* ==== MENU HAMBURGUESA ==== */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #222;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 900px) {
  .menu {
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background: #fff;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid #ddd;
  }

  .menu.active {
    max-height: 400px;
  }

  .menu li {
    text-align: center;
    margin: 10px 0;
  }

  .submenu .dropdown {
    position: static;
    box-shadow: none;
    border-radius: 0;
  }

  .menu-toggle {
    display: block;
  }
}

/* ==== SLIDER ==== */
.slider {
  position: relative;
  height: 90vh;
  overflow: hidden;
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  min-width: 100%;        /* 🔹 garantiza que cada slide ocupe todo el ancho */
  position: relative; /* Necesario para overlay */
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff; /* Cambié a blanco para mejor contraste */
}

/* Oscurecer fondo */
.slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3); /* Ajusta opacidad: 0.3 = sutil */
  z-index: 1;
}

/* Para que el texto esté encima del overlay */
.caption {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 80%; /* para que no quede muy ancho */
}


.caption h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1.3;
}

.caption p {
  font-size: 1.2rem;
}

.controls {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 30px; /* margen para que no pegue al borde */
  box-sizing: border-box;
}


.controls span {
  cursor: pointer;
  font-size: 2rem;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  padding: 8px;
  border-radius: 50%;
}

@media (max-width: 768px) {
  .slider {
    height: 60vh;
  }

  .caption h2 {
    font-size: 1.8rem;
  }

  .caption p {
    font-size: 1rem;
  }
}

/* ==== SECCIONES ==== */
section {
  padding: 3rem 2rem;
  width: 100%;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin: 40px 0 20px;
  font-weight: bold;
  color: #333;
}

.section-title.white {
  color: #fff;
}

section p {
  font-size: 1rem;
  color: #fff;
}

/* ==== SECCIÓN NOTARIO ==== */
.notario-container {
  display: flex;
  align-items: stretch; /* 🔹 Hace que ambos divs tengan la misma altura */
  gap: 20px;
  padding: 3rem 2rem;
  background: #0d1b2a;
}

.notario-texto {
  flex: 1;
  color: #fff;
  display: flex;            /* 🔹 Ocupa toda la altura */
  flex-direction: column;   /* 🔹 Mantiene estructura vertical */
  justify-content: center;  /* 🔹 Centra verticalmente el texto */
}

.notario-imagen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.notario-imagen img {
  width: 100%;
  height: 100%;   /* 🔹 Se ajusta al alto del contenedor */
  object-fit: cover;
  border-radius: 12px;
}

/* Versión responsive (móviles) */
@media (max-width: 900px) {
  .notario-container {
    flex-direction: column;
  }

  .notario-imagen {
    margin-top: 20px;
    height: auto; /* 🔹 Para que en móvil no quede forzada la altura */
  }
}

/* ==== MISION / VISION / VALORES ==== */
.info-container {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 20px;
  padding: 40px 20px;
  background-color: #fff;
  flex-wrap: wrap;
}

.info-container section {
  flex: 1 1 30%;
  background-color: #8C1C2A;
  color: #ffffff;
  text-align: center;
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
}

.info-container section:hover {
  transform: translateY(-5px);
}

.info-container .section-title {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #e0e1dd;
}

@media (max-width: 900px) {
  .info-container {
    flex-direction: column;
  }
  .info-container section {
    flex: 1 1 100%;
  }
}


/* === Frase + Video === */
.frase-video {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: #f9f9f9;
  text-align: center; /* centra contenido en su caja */
}

/* Columna de la frase */
.frase {
  flex: 1 1 500px;
  max-width: 600px;
  animation: fadeInLeft 1.5s ease;
  transition: transform 0.3s ease, color 0.3s ease;
  margin: 0 auto; /* centra en su columna */
}

/* Título */
.frase h2 {
  font-size: 2.2rem;
  color: #8C1C2A;
  margin-bottom: 15px;
  font-weight: bold;
  transition: color 0.3s ease;
}

/* Texto */
.frase p {
  font-size: 1.15rem;
  line-height: 1.6;
  color: #444;
  transition: color 0.3s ease;
}

/* Efecto hover */
.frase:hover {
  transform: scale(1.05);
}

.frase:hover h2 {
  color: #B22234; /* tono más vivo al pasar el mouse */
}

.frase:hover p {
  color: #000;
}

/* Columna del video */
.video {
  flex: 1 1 500px;
  max-width: 600px;
}

.video iframe {
  width: 100%;
  height: 315px;
  border-radius: 12px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.video video {
  width: 100%;
  max-width: 560px; /* límite máximo */
  height: auto;     /* mantiene proporción */
  display: block;
  margin: 0 auto;   /* centrado */
  border-radius: 10px; /* opcional: esquinas redondeadas */
}


/* Animación de entrada */
@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}



/* ==== FOOTER ==== */
footer {
  background: #0d1b2a;
  color: #fff;
  padding-top: 20px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.footer-section {
  flex: 1 1 100px;
  margin: 10px;
}

.footer-section h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #A97C37;
}

.footer-section p,
.footer-section a {
  font-size: 0.95rem;
  color: #ddd;
}

.footer-section a:hover {
  color: #fff;
}

.footer-section .libro-img {
  width: 150px;
  transition: transform 0.3s ease;
}

.footer-section .libro-img:hover {
  transform: scale(1.05);
}

.footer-copy {
  text-align: center;
  padding: 10px 0;
  border-top: 1px solid #444;
  font-size: 14px;
  margin-top: 20px;
  color: #bbb;
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    text-align: center;
    padding: 10px 15px;
  }

  .footer-section {
    margin: 5px 0;
  }

  .footer-section h4 {
    margin-bottom: 0.5rem;
  }

  .social-icons {
    justify-content: center;
  }
}

/* Redes sociales */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: white;
  font-size: 1.3rem;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icons a:hover {
  color: #A97C37;
  transform: scale(1.1);
}

/* Íconos de métodos de pago */
.payment-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 5px;
}

/* Estilo general en laptop/desktop */
.payment-icons img {
  height: 35px;
  width: auto;
  transition: transform 0.3s;
}

.payment-icons img:hover {
  transform: scale(1.1);
}

/* Ajuste en pantallas pequeñas */
@media (max-width: 768px) {
  .payment-icons {
    justify-content: center; /* centra horizontalmente */
    flex-wrap: wrap; /* permite que se acomoden en varias líneas si no entran */
  }
}


/* ==== WHATSAPP ==== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #25d366;
  color: white;
  font-size: 28px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
  text-decoration: none;   /* ✅ Quita el subrayado */
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ==== FORMULARIO ==== */
.formulario {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.formulario h2 {
  text-align: center;
  margin-bottom: 1rem;
  color: #0d1b2a;
}

.formulario form {
  display: flex;
  flex-direction: column;
}

.formulario label {
  margin-top: 1rem;
  font-weight: bold;
}

.formulario input,
.formulario textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 0.3rem;
  font-size: 1rem;
}

.formulario button {
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: #0d1b2a;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
}

.formulario button:hover {
  background: #1e3554;
}

/* ==== POPUP ==== */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.popup-content {
  background: #fff;
  border-radius: 10px;
  max-width: 600px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: popupFade 0.4s ease;
}

@keyframes popupFade {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.popup-content img {
  width: 100%;
  border-radius: 10px;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: #333;
  cursor: pointer;
}

@media (max-width: 768px) {
  .popup-content {
    max-width: 90%;
  }
}
