/* =========================================================
   ENCORE — Landing Page Specific Styles (100% Mockup Fidelity)
   ========================================================= */

/* ── Hero Landing ────────────────────────────────────────── */
.hero-landing {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--color-dark);
  padding-top: 120px;
  padding-bottom: var(--space-20);
}

.hero-landing__bg {
  position: absolute;
  inset: 0;
  background-image: url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?w=1800&q=80');
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.hero-landing__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(11,42,51,0.85) 0%, rgba(11,42,51,0.4) 60%, rgba(11,42,51,0.2) 100%);
}

.hero-landing__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.hero-landing__line {
  width: 40px;
  height: 1px;
  background: var(--color-cream);
  margin-bottom: var(--space-6);
  opacity: 0.6;
}

.hero-landing__title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.5rem);
  color: #fff;
  line-height: 1.05;
  margin-bottom: var(--space-6);
  font-weight: 400;
}

.hero-landing__desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,.8);
  margin-bottom: var(--space-10);
  line-height: 1.6;
  max-width: 480px;
}

.hero-search-pill {
  background: #fff;
  border-radius: 999px;
  display: flex;
  align-items: center;
  padding: 6px 6px 6px 20px;
  max-width: 500px;
}

.hero-search-pill svg {
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
}

.hero-search-pill input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0 16px;
  font-size: 14px;
  outline: none;
  color: var(--color-dark);
}

.hero-search-pill input::placeholder {
  color: var(--color-text-muted);
}

.hero-search-pill button {
  background: var(--color-burgundy);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s;
}
.hero-search-pill button:hover { transform: scale(1.05); }

/* Categories Bar */
.hero-landing__categories {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 2rem 0;
  border-top: 1px solid rgba(255,255,255,.1);
  background: linear-gradient(to top, rgba(11,42,51,0.8), transparent);
}

.hero-categories-list {
  display: flex;
  gap: 3rem;
  overflow-x: auto;
  scrollbar-width: none;
}

.hero-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.hero-category:hover, .hero-category.active { color: #fff; }
.hero-category svg { width: 24px; height: 24px; color: var(--color-burgundy); }
.hero-category.active svg { color: var(--color-burgundy); }

/* Script Overlay */
.hero-script {
  position: absolute;
  right: 10%;
  top: 40%;
  font-family: var(--font-script);
  font-size: clamp(4rem, 8vw, 8rem);
  color: rgba(255,255,255,.3);
  transform: rotate(-10deg);
  pointer-events: none;
  line-height: 0.8;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 1;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  right: 2rem;
  bottom: 4rem;
  color: rgba(255,255,255,.5);
  font-size: 10px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,.3);
}

/* ── Generic Section Typography ── */
.section-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
  display: block;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  color: var(--color-dark);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 400;
}

.section-desc {
  font-size: 15px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}
.link-arrow svg {
  border: 1px solid var(--color-dark);
  border-radius: 50%;
  padding: 4px;
  width: 28px;
  height: 28px;
  transition: transform 0.2s;
}
.link-arrow:hover svg { transform: translateX(4px); }


/* ── Section: Eventos que Inspiran ── */
.section-events {
  padding: 6rem 0;
  background: var(--color-cream);
}

.events-layout {
  display: grid;
  gap: 4rem;
}

@media(min-width: 768px) {
  .events-layout { grid-template-columns: 300px 1fr; }
}

.events-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.event-card { text-decoration: none; display: flex; flex-direction: column; }
.event-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1rem; }
.event-card h4 { color: var(--color-dark); font-size: 15px; font-weight: 500; margin-bottom: 0.25rem; }
.event-card p { color: var(--color-text-muted); font-size: 13px; }


/* ── Section: Cómo Funciona ── */
.section-how {
  display: grid;
  background: var(--color-cream);
}
@media(min-width: 768px) {
  .section-how { grid-template-columns: 1fr 1fr; }
}

.how-left {
  background: url('https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1200&q=80') center/cover;
  padding: 6rem 2rem;
  position: relative;
  display: flex;
  align-items: center;
}
.how-left::before {
  content: ''; position: absolute; inset: 0; background: linear-gradient(to right, rgba(11,42,51,.9) 0%, rgba(11,42,51,.4) 100%);
}
.how-left__content { position: relative; z-index: 1; max-width: 400px; margin-left: auto; color: #fff; padding-right: 2rem;}
.how-left .section-title { color: #fff; }
.how-left .link-arrow { color: #fff; }
.how-left .link-arrow svg { border-color: #fff; }

.how-right {
  padding: 6rem 2rem;
  position: relative;
  background: var(--color-cream);
  overflow: hidden;
}
.how-right::before {
  content:''; position: absolute; top: 0; right: 0; bottom: 0; width: 40%;
  background: url('https://images.unsplash.com/photo-1549451371-64aa98a6f660?auto=format&fit=crop&w=800&q=80') center/cover;
  border-top-left-radius: 50% 100%;
  border-bottom-left-radius: 50% 100%;
  opacity: 0.4;
  mix-blend-mode: multiply;
}
.how-right__content { position: relative; z-index: 1; max-width: 400px; }
.how-steps { display: flex; flex-direction: column; gap: 2rem; margin: 3rem 0; }
.how-step { display: flex; gap: 1rem; }
.how-step__num { 
  width: 40px; height: 40px; border-radius: 50%; background: var(--color-dark); color: #fff; 
  display: flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; 
}
.how-step.active .how-step__num { background: var(--color-burgundy); }
.how-step h4 { font-size: 15px; color: var(--color-dark); font-weight: 500; margin-bottom: 0.25rem; }
.how-step p { font-size: 13px; color: var(--color-text-secondary); }
.how-script { position: absolute; right: 10%; top: 20%; font-family: var(--font-script); font-size: 6rem; color: rgba(11,42,51,.1); transform: rotate(-10deg); }

/* ── Section: Cores (Providers) ── */
.section-cores { padding: 6rem 0; background: var(--color-cream-light); }
.cores-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 3rem; flex-wrap: wrap; gap: 1rem;}
.cores-header__left { max-width: 500px; }
.cores-nav { display: flex; gap: 1rem; }
.cores-nav button { background: none; border: 1px solid var(--color-text-muted); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;}

.cores-grid {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  padding-bottom: 2rem;
  scrollbar-width: none;
}
.core-card {
  min-width: 260px;
  background: #fff;
  padding: 0.75rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}
.core-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-md); margin-bottom: 1rem; }
.core-card__fav { position: absolute; top: 1.5rem; right: 1.5rem; color: #fff; background: none; border: none; cursor: pointer; }
.core-card__info { padding: 0 0.5rem 0.5rem; }
.core-card h4 { font-size: 15px; color: var(--color-dark); font-weight: 500; margin-bottom: 0.25rem; }
.core-card__cat { font-size: 12px; color: var(--color-text-muted); margin-bottom: 0.75rem; display: block;}
.core-card__rating { font-size: 12px; color: var(--color-text-secondary); display: flex; align-items: center; gap: 4px; }
.core-card__rating svg { color: #f59e0b; fill: #f59e0b; width: 12px; height: 12px; }

/* ── Section: Stats ── */
.section-stats {
  background: url('https://images.unsplash.com/photo-1542382257-80da354e6378?auto=format&fit=crop&w=1800&q=80') center/cover;
  position: relative;
  padding: 6rem 0;
  color: #fff;
}
.section-stats::before { content: ''; position: absolute; inset: 0; background: rgba(11,42,51,.9); }
.stats-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 3rem; align-items: center; }
.stat-item { display: flex; flex-direction: column; gap: 0.5rem; }
.stat-num { font-family: var(--font-serif); font-size: 3rem; font-weight: 300; }
.stat-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,.6); }
.stat-divider { width: 1px; height: 60px; background: rgba(255,255,255,.2); display: none; }
@media(min-width: 768px) { .stat-divider { display: block; } }

/* ── Section: Inspiración ── */
.section-blog { padding: 6rem 0; background: var(--color-cream); }
.blog-layout { display: grid; gap: 4rem; }
@media(min-width: 768px) { .blog-layout { grid-template-columns: 300px 1fr; } }
.blog-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.blog-card { position: relative; text-decoration: none; }
.blog-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; margin-bottom: 1rem; }
.blog-card__tag { position: absolute; top: 1rem; left: 1rem; background: rgba(0,0,0,.5); color: #fff; font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em; padding: 4px 8px; }
.blog-card__fav { position: absolute; top: 1rem; right: 1rem; color: #fff; }
.blog-card p { font-size: 14px; color: var(--color-dark); line-height: 1.4; }


/* Fixes for SVGs in Hero Search */
.hero-search-pill button svg {
  color: #fff;
  width: 18px;
  height: 18px;
}

/* Fix SVG sizing in cards just in case */
.core-card__fav svg, .blog-card__fav svg {
  width: 20px;
  height: 20px;
}

.core-card__rating svg {
  width: 12px;
  height: 12px;
}

/* Fix Navbar Mobile Stacking */
.navbar__tagline-desktop { display: none; }
.desktop-only { display: none !important; }

@media (min-width: 1024px) {
  .navbar__tagline-desktop { display: inline; }
  .desktop-only { display: inline-flex !important; }
}

/* Allow hero content to align left safely */
.hero-landing__content {
  align-items: flex-start;
  text-align: left;
}

/* Update watermark script */
.hero-script {
  font-size: clamp(2rem, 4vw, 3.5rem); /* reduced size */
  right: -5%; /* moved further right */
  top: 35%;
}

/* Ensure hero content aligns perfectly left */
.hero-landing__content {
  margin-left: 0;
  padding-left: 0;
}

/* Adjust Search Pill Size */
.hero-search-pill {
  max-width: 850px;
  padding: 10px 10px 10px 24px;
}
.hero-search-pill input {
  font-size: 16px;
  padding: 0 20px;
}
.hero-search-pill button {
  width: 48px;
  height: 48px;
}
.hero-search-pill button svg {
  width: 22px;
  height: 22px;
}

/* Fix Category Icons Color */
.hero-category svg {
  color: #fff !important;
}
.hero-category.active svg {
  color: #fff !important;
}

/* Separate search pill from hero text */
.hero-landing__desc {
  margin-bottom: 3.5rem !important;
}

/* Fix width constraint on hero container so search pill can actually grow */
.hero-landing__content {
  max-width: 900px !important;
}

.hero-search-pill {
  width: 100%;
  max-width: 850px !important;
}

/* Force override of logo height constrained by main.css */
.navbar__logo {
  height: 49px !important;
  width: auto !important;
}

/* Update hero background image */
.hero-landing__bg {
  background-image: url('../assets/hero/mesa_hero.png') !important;
}

/* Remove the decorative line above the hero title */
.hero-landing__line {
  display: none !important;
}

/* Adjust Hero Categories (Services) font size and spacing */
.hero-category {
  font-size: 13.5px !important;
}
.hero-categories-list {
  gap: 3.6rem !important;
}

/* Reduce Search Pill width by 20% */
.hero-search-pill {
  max-width: 680px !important;
}

/* Remove line above hero categories */
.hero-landing__categories {
  border-top: none !important;
}

/* Move watermark left to prevent cutting */
.hero-script {
  right: 5% !important;
}

/* Hide mobile hamburger menu on desktop */
@media (min-width: 1024px) {
  .mobile-menu__toggle {
    display: none !important;
  }
}

/* Ensure categories wrap instead of scrolling horizontally */
.hero-categories-list {
  overflow-x: visible !important;
  flex-wrap: wrap !important;
}

/* Hard constraint to prevent any accidental horizontal scrolling on the page */
html, body {
  overflow-x: hidden !important;
  width: 100%;
}

/* Fixes for "Eventos que inspiran" section */
.section-subtitle {
  font-size: 12.5px !important;
}

.events-left {
  display: flex;
  flex-direction: column;
  justify-content: center; /* Center vertically with respect to the right images */
}

@media(min-width: 768px) {
  /* Give the left column more space so the title stays on exactly 2 lines */
  .events-layout { 
    grid-template-columns: 380px 1fr !important; 
  }
}

@media(min-width: 1024px) {
  .events-layout { 
    grid-template-columns: 450px 1fr !important; 
  }
}

/* Fixes for "Cómo funciona" section */
.how-step h4 {
  font-size: 16px !important;
  font-weight: 700 !important;
}

.how-script {
  font-size: 3.5rem !important; /* Approx 50% of the original 6rem */
  right: 2% !important; /* Moved strictly to the right without clipping */
}

/* Force left alignment for the "Ideas. Personas. Experiencias" block */
.how-left__content {
  margin-left: 0 !important;
  text-align: left !important;
}

/* Center align the Cores header block vertically */
.cores-header {
  align-items: center !important;
}

/* Remove bottom padding to eliminate space between cards and next section */
.section-cores {
  padding-bottom: 0 !important;
}
.cores-grid {
  padding-bottom: 1rem !important; /* Minimal padding just for box-shadows to not be clipped */
  margin-bottom: 0 !important;
}

/* Remove max-width constraint so the title stays on exactly 2 lines even if it overlaps background graphics */
.how-right__content {
  max-width: 100% !important;
  width: 100%;
}

.how-right__content .section-title {
  /* Force exactly the breaks defined by <br> on desktop */
  white-space: nowrap; 
}

@media(max-width: 768px) {
  .how-right__content .section-title {
    white-space: normal; /* allow wrapping on mobile so it doesnt overflow horizontally */
  }
}

/* Force Cores title to exactly 2 lines by preventing wrap and removing max-width */
.cores-header__left {
  max-width: 100% !important;
}
.cores-header__left .section-title {
  white-space: nowrap !important;
}

/* Explicitly zero out ALL bottom spacing in the Cores section */
.section-cores {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}
.cores-grid {
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

@media(max-width: 768px) {
  .cores-header__left .section-title {
    white-space: normal !important;
  }
}

/* Fix padding on mobile for the center block */
@media(max-width: 768px) {
  .cores-header__center {
    padding-left: 0 !important;
  }
}

/* Increase numbers by 25% in stats and how-to steps */
.stat-num {
  font-size: 3.75rem !important;
}

.how-step__num {
  width: 50px !important;
  height: 50px !important;
  font-size: 16px !important;
}

/* Fixes for Blog / Inspiración Section */
.blog-layout {
  align-items: stretch; /* ensure grid columns have the same total height */
}

.blog-grid {
  /* Reduce min width so 3 images can fit in one row even with a wider left column */
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
}

@media(min-width: 768px) {
  .blog-layout { 
    grid-template-columns: 380px 1fr !important; 
  }
}

@media(min-width: 1024px) {
  .blog-layout { 
    grid-template-columns: 450px 1fr !important; 
  }
}
.blog-layout .section-title {
  white-space: nowrap !important;
}

@media(max-width: 768px) {
  .blog-layout .section-title {
    white-space: normal !important;
  }
}

/* Fixes to ensure text is never stuck to borders in cards */
.core-card__info {
  padding: 0 1.25rem 1.25rem !important;
}

.core-card h4 {
  margin-top: 0.5rem !important;
}
