/* VARIABLES DE COLOR */
:root {
  --color-azul: #2E3192;
  --color-verde: #6FB23E;
  --color-naranja: #F7931E;
  --color-amarillo: #FFD43B;
  --color-morado: #8B5CF6;
  --color-texto: #333;
  --color-gris: #f9f9f9;
  --color-blanco: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  background-color: var(--color-gris);
  color: var(--color-texto);
  line-height: 1.6;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* NAVBAR */
.navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: bold;
  font-size: 1.5rem;
  color: var(--color-azul);
  text-decoration: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: var(--color-azul);
  transition: all 0.3s ease;
  position: relative;
  padding: 5px 0;
}

.nav-links a:hover {
  color: var(--color-naranja);
  text-decoration: underline;
}

/* HERO */
.hero {
  background: url('img/herobanner.jpg');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 180px 20px 120px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
  font-weight: 700;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 35px;
  /*text-shadow: 2px 2px 4px rgba(0,0,0,0.5);*/
   text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.hero-tags {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 35px;
}

.tag {
  background: rgba(255, 255, 255, 0.8);
  color: var(--color-azul);
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  border: none;
  box-shadow: none;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.tag:hover {
  opacity: 1;
}

.btn {
  display: inline-block;
  background: var(--color-amarillo);
  color: var(--color-azul);
  padding: 16px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(255, 212, 59, 0.4);
}

.btn:hover {
  background: var(--color-naranja);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(247, 147, 30, 0.5);
}

.price-tag {
  display: inline-block;
  margin-left: 15px;
  background: white;
  color: var(--color-azul);
  padding: 16px 30px;
  border-radius: 50px;
  font-weight: bold;
  font-size: 1.3rem;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* SECCIONES */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 20px 20px;
}

.section-title {
  text-align: center;
  color: var(--color-azul);
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 50px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 5px;
  background: linear-gradient(90deg, var(--color-naranja), var(--color-amarillo));
  border-radius: 3px;
}

/* QUÉ ES */
.quees-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 30px;
  margin-top: 0px;
}

.quees-item {
  background: white;
  padding: 30px 20px;
  border-radius: 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.quees-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--color-verde), var(--color-azul));
  transform: scaleX(0);
  transition: transform 0.4s ease;
}

.quees-item:hover::before {
  transform: scaleX(1);
}

.quees-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(46, 49, 146, 0.15);
}

.quees-item h3 {
  color: var(--color-verde);
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.quees-item img {
  width: 200px;             /* tamaño visual pequeño */
  height: auto;            /* mantiene proporción */
  display: block;          /* centra correctamente */
  margin: 0 auto 15px;     /* centra y da espacio debajo */
  border-radius: 10px;     /* bordes suaves */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* sutil relieve */
  object-fit: contain;     /* evita deformación */
}

/* BENEFICIOS */
.benefits-grid {
  display: grid;
  gap: 25px;
  max-width: 800px;
  margin: 50px auto 0;
}

.benefit {
  background: white;
  padding: 25px 30px;
  border-radius: 15px;
  border-left: 6px solid var(--color-verde);
  box-shadow: 0 5px 20px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 1.5rem;
}

.benefit:nth-child(2) {
  border-left-color: var(--color-naranja);
}

.benefit:nth-child(3) {
  border-left-color: var(--color-morado);
}

.benefit:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.benefit-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

/* GALERÍA */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  margin-top: 50px;
}

.galeria-item {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  background: var(--color-azul);
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
}

.galeria-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.3s ease;
  cursor: zoom-in;
}

.galeria-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

/* TESTIMONIOS */
.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.testimonio {
  background: linear-gradient(180deg, #ffffff 0%, #f9f9ff 100%);
  border-left: 6px solid var(--color-verde);
  padding: 35px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(46, 49, 146, 0.1);
  position: relative;
  transition: all 0.3s ease;
}

.testimonio::before {
  content: '“';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--color-verde);
  font-family: Georgia, serif;
  opacity: 0.2;
}

.testimonio:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(111, 178, 62, 0.25);
}

.testimonio p {
  font-style: italic;
  color: #333;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* QUIEN SOY */
.quiensoy-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  align-items: center;
  background: white;
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.1);
  margin-top: 50px;
}

.quiensoy-img {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(46, 49, 146, 0.2);
  background: var(--color-gris);
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quiensoy-text h3 {
  color: var(--color-azul);
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.quiensoy-text p {
  margin-bottom: 15px;
  line-height: 1.8;
}

.quiensoy-text .tagline {
  font-weight: bold;
  color: var(--color-verde);
  font-size: 1.3rem;
  margin-top: 25px;
}

/* FORMULARIO */
.form-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  padding: 20px 0;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

form label {
  font-weight: 600;
  color: var(--color-azul);
  margin-bottom: -10px;
}

form input {
  padding: 15px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

form input:focus {
  outline: none;
  border-color: var(--color-verde);
  box-shadow: 0 0 0 3px rgba(111, 178, 62, 0.1);
}

form button {
  background: var(--color-verde);
  color: white;
  font-weight: bold;
  padding: 16px 30px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(111, 178, 62, 0.3);
}

form button:hover {
  background: var(--color-naranja);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(247, 147, 30, 0.4);
}

/* FOOTER */
footer {
  background: var(--color-azul);
  color: white;
  text-align: center;
  padding: 15px 20px;
  margin-top: 50px;
}

footer p {
  font-size: 1rem;
  opacity: 0.9;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1.1rem;
  }

  .hero-tags {
    flex-direction: column;
    align-items: center;
  }

  .price-tag {
    margin-left: 0;
    margin-top: 15px;
  }

  .section-title {
    font-size: 2rem;
  }

  .quiensoy-content {
    grid-template-columns: 1fr;
    padding: 30px;
  }

  .quees-grid,
  .testimonios-grid,
  .galeria-grid {
    grid-template-columns: 1fr;
  }
}

/* ICONOS FLOTANTES*/
.social-float-group {
  position: fixed;
  bottom: 25px;
  right: 25px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.social-float-group a {
  background: var(--color-verde);
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 20px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-float-group a img {
  width: 25px;
  height: 25px;
  filter: brightness(0) invert(1);
}

.social-float-group a:hover {
  transform: scale(1.1);
  background: var(--color-naranja);
}

.social-footer {
  margin-bottom: 15px;
}

.social-footer a img {
  width: 26px;
  height: 26px;
  margin: 0 10px;
  filter: brightness(0) invert(1); /* hace que sean blancos en el fondo azul */
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.social-footer a img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.arrow-icon {
  filter: brightness(0) invert(1);
}

/* --- SECCIÓN DE VIDEOS --- */
.videos-section {
  max-width: 1150px;    /* un poco más ancha */
  margin: 60px auto;
  padding: 50px 40px;
  background-color: #fdfdfd;
  border-radius: 24px;   /* bordes redondeados del fondo */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); /* sombra suave */
  text-align: center;
}
.videos-section h2 {
  font-size: 2.5rem;
  color: var(--color-azul);
  margin-bottom: 10px;
}

.videos-section p {
  font-size: 1.1rem;
  color: #444;
  margin-bottom: 40px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* hasta 3 columnas */
  gap: 30px;
  justify-items: center;
  margin-bottom: 40px;
}

.video-item iframe {
  width: 100%;
  max-width: 400px; /* más angosto */
  height: 225px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.youtube-btn {
  display: inline-block;
  background-color: #ff0000; /* Rojo YouTube */
  color: #fff;
  font-weight: bold;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.youtube-btn:hover {
  background-color: #cc0000;
}

/* --- Responsividad --- */
@media (max-width: 768px) {
  .video-item iframe {
    max-width: 100%;
    height: 200px;
  }
}

/* --- HEADER / NAV --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  z-index: 1100;
}

.nav-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand { 
	display: flex; align-items:center; text-decoration:none; 
	}
	
.brand-logo { 
	height: 85px; 
	width: auto; 
	display:block; 
}
	

/* desktop nav */
.main-nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-azul);
  font-weight: 600;
  padding: 6px 0;
  transition: color .2s ease;
}

.main-nav a:hover { color: var(--color-naranja); }

.main-nav .cta {
  background: var(--color-amarillo);
  color: var(--color-azul);
  padding: 8px 18px;
  border-radius: 40px;
  box-shadow: 0 6px 18px rgba(255,212,59,0.2);
}

/* hamburger */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
}

/* ensure page content sits below fixed header */
.hero { padding-top: 120px; } /* keep some space for header */

/* MOBILE */
@media (max-width: 768px) {
  .menu-toggle { 
		display: inline-block; 
	}
	
  .brand-logo {
    height: 55px;       /* se mantiene bien en móviles */
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    top: 64px;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    gap: 0;
    border-top: 3px solid var(--color-amarillo);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 8px 0;
    z-index: 1099;
  }

  .main-nav.show { display: flex; animation: slideDown .25s ease; }
  .main-nav a { width: 100%; padding: 14px 0; border-bottom: 1px solid #f4f4f4; text-align:center; }
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-6px); } to { opacity:1; transform: translateY(0); }
  }

  /* Keep hero padding smaller on mobile */
  .hero { padding-top: 110px; }
}

/* === ÍCONOS FLOTANTES (Facebook, Instagram y "Ir arriba") === */
.floating-icons {
  position: fixed;
  right: 25px;
  bottom: 25px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  z-index: 2500;
}

.floating-icons a,
.floating-icons button {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #6d982e; /* 💚 Fondo verde del logo */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

/* íconos dentro de los botones */
.floating-icons a img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1); /* los pone blancos sobre el fondo verde */
}

/* Hover general */
.floating-icons a:hover,
.floating-icons button:hover {
  transform: scale(1.1);
  background: var(--color-naranja);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* === BOTÓN IR ARRIBA (SOLECITO) === */
#btnTop {
  background-image: url('favicon-32x32.png'); /* 🌞 tu favicon */
  background-repeat: no-repeat;
  background-position: center;
  background-size: 70%;
  display: none; /* aparece con scroll */
}

/* mostrar solo cuando se hace scroll */
body.scrolled #btnTop {
  display: flex;
}

/* responsive */
@media (max-width: 600px) {
  .floating-icons {
    right: 15px;
    bottom: 15px;
    gap: 10px;
  }

  .floating-icons a,
  .floating-icons button {
    width: 46px;
    height: 46px;
  }

  .floating-icons a img {
    width: 22px;
    height: 22px;
  }
}

/* === ÍCONOS DEL FOOTER === */
.footer-social {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.15); /* fondo suave */
  transition: all 0.3s ease;
}

.footer-social a img {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1); /* blancos sobre fondo azul */
}

.footer-social a:hover {
  background-color: var(--color-verde); /* cambia al verde del logo */
  transform: scale(1.15);
}

/* === DESCRIPCIÓN DEL LIBRO === */
.descripcion-libro {
  max-width: 900px;        /* ancho máximo para buena lectura */
  margin: 40px auto 0;     /* centrado y separación del resto */
  font-size: 1.15em;       /* tamaño legible pero no exagerado */
  line-height: 1.4;        /* aire entre líneas */
  text-align: justify;     /* justificación completa */
  color: #333;             /* color de texto neutro */
  text-wrap: balance;      /* mejora el flujo de texto (soporte moderno) */
}

/* Destacar la primera frase */
.descripcion-libro strong {
  color: var(--color-verde);           /* verde del logo */
  font-weight: 700;
}