/* Estilos para NeuroEduc - Colores Oficiales según Guía de Marca */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Open+Sans:wght@400;600;700&display=swap');

:root {
  --brand-blue: #145F94;
  --brand-blue-hover: #0f4973;
  --brand-gold: #E9BE41;
  --brand-gold-hover: #d4a933;
  --brand-soft-blue: #8FA1BB;
  --brand-light-blue: #E8F6FD;
  --brand-cream: #FFF08F;
  --brand-cream-light: #FFFCD8;
  
  --bg-main: #fcfbf9;
  --bg-card: #ffffff;
  --text-dark: #1d252d;
  --text-muted: #5a6573;
  --border-light: #e2e8f0;
  
  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 10px 30px rgba(20, 95, 148, 0.08);
  --shadow-hover: 0 15px 35px rgba(20, 95, 148, 0.15);
  
  --font-heading: 'Montserrat', sans-serif;
  --font-subheading: 'Open Sans', sans-serif;
  --font-body: 'Montserrat', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-main);
  color: var(--text-dark);
  font-family: var(--font-body);
  line-height: 1.6;
}

/* Header / Navegación Centrada */
.header {
  background: #ffffff;
  border-bottom: 2px solid var(--brand-light-blue);
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 15px rgba(20, 95, 148, 0.05);
}

.header-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}

.logo-container {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  max-height: 65px;
  width: auto;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 22px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-link {
  text-decoration: none;
  color: var(--brand-blue);
  font-family: var(--font-subheading);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  padding: 6px 4px;
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-gold);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--brand-gold);
  border-radius: 2px;
}

/* Hero Section */
.hero {
  padding: 60px 20px;
  text-align: center;
  max-width: 850px;
  margin: 0 auto;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--brand-blue);
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero p {
  font-family: var(--font-subheading);
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--brand-blue);
  color: #ffffff;
  padding: 15px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  box-shadow: 0 4px 15px rgba(20, 95, 148, 0.25);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary:hover {
  background-color: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(20, 95, 148, 0.35);
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: #25d366;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
}

.btn-secondary {
  display: inline-block;
  background-color: var(--brand-gold);
  color: var(--brand-blue);
  padding: 10px 22px;
  border-radius: 30px;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease, transform 0.2s ease;
  text-align: center;
}

.btn-secondary:hover {
  background-color: var(--brand-gold-hover);
  transform: translateY(-2px);
}

/* Layout General */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.1rem;
  color: var(--brand-blue);
  text-align: center;
  margin-bottom: 10px;
}

.section-subtitle {
  font-family: var(--font-subheading);
  text-align: center;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 40px auto;
  font-size: 1.05rem;
}

/* Grillas y Tarjetas */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.card-img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.card-body {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--brand-blue);
  margin-bottom: 10px;
  font-weight: 700;
}

.card-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Secciones Informativas Especiales */
.info-box {
  background-color: var(--brand-light-blue);
  border-left: 5px solid var(--brand-blue);
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 40px;
}

.info-box h3 {
  font-family: var(--font-heading);
  color: var(--brand-blue);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.info-box p {
  color: var(--text-dark);
  font-size: 1rem;
  line-height: 1.7;
}

/* Modal de Productos */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(20, 95, 148, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  max-width: 600px;
  width: 100%;
  border-radius: var(--radius-lg);
  padding: 30px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-muted);
}

.gallery-main {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 15px;
  background-color: var(--brand-light-blue);
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.thumb-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb-img.active {
  border-color: var(--brand-gold);
}

/* Brevo Wrapper */
.brevo-wrapper {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  max-width: 600px;
  margin: 0 auto;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  border-top: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 60px;
  background-color: #ffffff;
}


/* Estilos adicionales para Ejes Grid (4 items) y Recuadros Destacados */
.grid-4-ejes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.eje-item {
  background: var(--bg-card);
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease;
}

.eje-item:hover {
  transform: translateY(-3px);
}

.eje-item .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.eje-item h4 {
  font-family: var(--font-heading);
  color: var(--brand-blue);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.eje-item p {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.divider-title {
  text-align: center;
  font-family: var(--font-heading);
  color: var(--brand-blue);
  font-size: 1.6rem;
  margin: 40px 0 10px 0;
}

.val-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  background: var(--brand-light-blue);
  color: var(--brand-blue);
  border-radius: 20px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.val-badge-neuro {
  background: #e0f2fe;
  color: #0369a1;
}

.val-badge-psi {
  background: var(--brand-cream-light);
  color: #b45309;
}


/* Estilos Nativos para el Formulario de Brevo (Descargas) */
.brevo-native-container {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-soft);
  max-width: 580px;
  margin: 0 auto;
}

.form-group-brevo {
  margin-bottom: 20px;
  text-align: left;
}

.form-label-brevo {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand-blue);
  margin-bottom: 6px;
}

.form-input-brevo {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-dark);
  background-color: var(--bg-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.form-input-brevo:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(20, 95, 148, 0.15);
  background-color: #ffffff;
}


/* Botón Flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 25px;
  right: 25px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 32px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.whatsapp-float svg {
  width: 34px;
  height: 34px;
  fill: #ffffff;
}


/* Estilos Adicionales Footer y Redes Sociales V11 */
.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}
.social-links {
  display: flex;
  gap: 16px;
  align-items: center;
}
.social-links a {
  color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-links a:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}
