/* ==========================================================================
   INFANCIA REAL — Institutional Design System & Editorial Styles
   ========================================================================== */

/* BRAND DESIGN TOKENS */
:root {
  /* Color Palette */
  --primary-blue: #315477;
  --deep-blue: #243E59;
  --soft-blue: #EAF0F5;
  --gold-accent: #C49A50;
  --ivory-bg: #FAF7F1;
  --white: #FFFFFF;
  --text-dark: #28323D;
  --text-muted: #536273;
  --border-light: rgba(49, 84, 119, 0.12);

  /* Typography */
  --font-serif: 'Libre Baskerville', Georgia, serif;
  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Layout & Spacing */
  --max-width: 1180px;
  --header-height: 80px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  /* Shadows & Transitions */
  --shadow-subtle: 0 4px 20px rgba(36, 62, 89, 0.05);
  --shadow-hover: 0 10px 30px rgba(36, 62, 89, 0.09);
  --transition: all 0.25s ease-in-out;
}

/* RESET & BASE STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background-color: var(--ivory-bg);
  line-height: 1.65;
  font-size: 1.125rem; /* 18px body text as requested */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* TYPOGRAPHY */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--deep-blue);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.25rem); /* 34px to 52px */
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem); /* 28px to 40px */
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  max-width: 70ch; /* Optimal reading line length */
}

a {
  color: var(--primary-blue);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-accent);
}

/* CONTAINER */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* COMPACT HEADER & NAVIGATION */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(250, 247, 241, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand-logo-link {
  display: flex;
  align-items: center;
}

.brand-logo {
  height: 52px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links-list {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  padding: 0.4rem 0.6rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover, .nav-link.active-nav {
  color: var(--primary-blue);
  background-color: var(--soft-blue);
}

/* LANGUAGE SWITCHER */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  background-color: var(--soft-blue);
  padding: 0.25rem;
  border-radius: 20px;
  border: 1px solid var(--border-light);
}

.lang-btn {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 14px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background-color: var(--deep-blue);
  color: var(--white);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-align: center;
}

.btn-primary {
  background-color: var(--deep-blue);
  color: var(--white) !important;
  box-shadow: 0 4px 12px rgba(36, 62, 89, 0.15);
}

.btn-primary:hover {
  background-color: var(--primary-blue);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(36, 62, 89, 0.25);
}

.btn-secondary {
  background-color: var(--white);
  color: var(--deep-blue) !important;
  border: 1px solid var(--border-light);
}

.btn-secondary:hover {
  background-color: var(--soft-blue);
  border-color: var(--primary-blue);
}

.btn-gold {
  background-color: var(--gold-accent);
  color: var(--white) !important;
}

.btn-gold:hover {
  background-color: #b08742;
}

/* PAGE VIEWS SYSTEM */
.page-view {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
  padding-bottom: 4rem;
}

.page-view.active-view {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SECTIONS & EDITORIAL LAYOUT */
.section-padding {
  padding: 4.5rem 0;
}

.section-soft {
  background-color: var(--soft-blue);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.section-white {
  background-color: var(--white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-accent);
  margin-bottom: 0.75rem;
}

.lead-text {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* HERO EDITORIAL COMPOSITION */
.hero-editorial {
  padding: 4rem 0 3.5rem;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-text-content {
  max-width: 640px;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin: 2rem 0 1.5rem;
  flex-wrap: wrap;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-note::before {
  content: "✦";
  color: var(--gold-accent);
}

.editorial-card-graphic {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-subtle);
  position: relative;
  overflow: hidden;
}

.editorial-card-graphic::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, var(--primary-blue), var(--gold-accent));
}

/* HERO MEDIA CARD */
.hero-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border-light);
  background-color: var(--white);
}

.hero-media-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-media-card:hover .hero-media-img {
  transform: scale(1.02);
}

.hero-media-badge {
  position: absolute;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-blue);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero-media-badge .badge-dot {
  color: var(--gold-accent);
}

/* SPLIT EDITORIAL MEDIA BLOCKS */
.split-editorial-media {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.split-editorial-media.reverse {
  grid-template-columns: 1.2fr 1fr;
}

.split-media-img-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
}

.editorial-feature-img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-md);
}

.split-media-text h3 {
  color: var(--deep-blue);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* INFOGRAPHIC CARD */
.infographic-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  text-align: center;
}

.infographic-img {
  width: 100%;
  max-width: 950px;
  height: auto;
  border-radius: var(--radius-md);
  margin: 0 auto;
  display: block;
}

.infographic-caption {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* COURSE VIDEO */
.course-video-wrapper {
  margin: 2rem auto;
  max-width: 680px;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.course-video-wrapper video {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-subtle);
  display: block;
  background: #000000;
}

/* TWO PATHS CARDS */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.path-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.inline-link {
  font-weight: 700;
  color: var(--primary-blue);
  margin-top: 1.25rem;
  display: inline-block;
}

.inline-link:hover {
  color: var(--gold-accent);
}

/* STEPS LIST */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin: 2.5rem 0;
}

.step-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border-left: 4px solid var(--gold-accent);
  box-shadow: var(--shadow-subtle);
}

.step-box h4 {
  font-family: var(--font-serif);
  color: var(--deep-blue);
  font-size: 1.2rem;
}

/* TOPICS CHIPS */
.topics-chips-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.topic-chip {
  background-color: var(--white);
  border: 1px solid var(--border-light);
  padding: 0.65rem 1.25rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

/* VALUES GRID */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.value-card h4 {
  color: var(--primary-blue);
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

/* FOUNDERS PROFILE CARDS */
.founders-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.founder-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.founder-card h3 {
  color: var(--deep-blue);
  margin-bottom: 0.25rem;
}

.founder-role {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin-bottom: 1.25rem;
}

/* FAQ ACCORDION BOXES */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.faq-item {
  background-color: var(--white);
  padding: 1.75rem 2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.faq-item h4 {
  color: var(--deep-blue);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.faq-item p {
  margin-bottom: 0;
  color: var(--text-muted);
}

/* DETOX DIGITAL COURSE CARD */
.course-card-box {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 3rem;
  max-width: 780px;
  margin: 0 auto;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.course-tag {
  display: inline-block;
  background-color: var(--soft-blue);
  color: var(--primary-blue);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.price-tag {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  color: var(--deep-blue);
  margin: 1.5rem 0;
}

.notice-box {
  background-color: var(--soft-blue);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--deep-blue);
  margin-bottom: 1.5rem;
  border-left: 3px solid var(--primary-blue);
}

/* FORM STYLING */
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3.5rem;
}

.form-wrapper {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-subtle);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-blue);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid rgba(49, 84, 119, 0.25);
  border-radius: var(--radius-sm);
  background-color: var(--ivory-bg);
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px rgba(49, 84, 119, 0.15);
  background-color: var(--white);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-notice-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.form-feedback {
  margin-top: 1.25rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  display: none;
}

.feedback-success {
  background-color: #e6f4ea;
  color: #137333;
  border: 1px solid #ceead6;
}

.feedback-error {
  background-color: #fce8e6;
  color: #c5221f;
  border: 1px solid #fad2cf;
}

.contact-info-card {
  background-color: var(--white);
  padding: 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.info-item {
  margin-bottom: 1.5rem;
}

.info-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--gold-accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.2rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background-color: #25D366;
  color: #FFFFFF !important;
  font-family: var(--font-sans);
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  transition: var(--transition);
  text-decoration: none;
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

.btn-whatsapp:hover {
  background-color: #20ba56;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  color: #FFFFFF !important;
}

.btn-whatsapp svg {
  flex-shrink: 0;
}

/* FOOTER */
.site-footer {
  background-color: var(--ivory-bg);
  color: var(--deep-blue);
  padding: 3.5rem 0 2rem;
  border-top: 3px solid var(--gold-accent);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.25rem;
}

.footer-logo-link {
  display: inline-block;
  transition: transform 0.2s ease;
}

.footer-logo-link:hover {
  transform: scale(1.03);
}

.footer-logo {
  height: 60px;
  width: auto;
  display: block;
}

.footer-desc {
  max-width: 540px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: var(--deep-blue);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
}

.footer-nav a:hover {
  opacity: 1;
  color: var(--gold-accent);
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
  font-size: 0.85rem;
  color: var(--text-muted);
  width: 100%;
  display: flex;
  justify-content: space-between;
}

/* MOBILE TOGGLE & RESPONSIVE */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--deep-blue);
  cursor: pointer;
  padding: 0.4rem;
}

@media (max-width: 960px) {
  .hero-editorial {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .grid-2, .grid-3, .founders-grid, .contact-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background-color: var(--ivory-bg);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-hover);
    display: none;
  }

  .main-nav.mobile-open {
    display: flex;
  }

  .nav-links-list {
    flex-direction: column;
    width: 100%;
    text-align: center;
  }

  .split-editorial-media,
  .split-editorial-media.reverse {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    padding: 1.75rem;
  }

  .hero-media-img {
    height: 300px;
  }
}
