/* =========================================
   CONOCIMIENTO GANADERO — Main Stylesheet
   Mobile-first · Light / Dark themes
   ========================================= */

/* — Light theme (default) — */
:root {
  --bg-body:         #f8f7f3;
  --bg-card:         #ffffff;
  --bg-nav:          #ffffff;
  --bg-section-alt:  #eeecea;
  --text-primary:    #0d0d0d;
  --text-secondary:  #555555;
  --text-muted:      #888888;
  --border:          #e0ddd6;
  --nav-link:        rgba(0,0,0,0.62);
  --nav-link-hover:  #0d0d0d;
  --nav-shadow:      0 2px 12px rgba(0,0,0,0.08);
  --logo-filter:     brightness(0);
  --card-bg:         #ffffff;
  --card-border:     #e0ddd6;

  /* Fixed palette */
  --color-white:        #ffffff;
  --color-black:        #0d0d0d;
  --color-dark:         #181818;
  --color-accent:       #6c22d4;
  --color-accent-hover: #5a1ab8;
  --color-accent-light: #8a4fe0;

  --font-display: 'Suez One', serif;
  --font-body:    'Open Sans', sans-serif;
  --font-ui:      'Barlow', sans-serif;
  --nav-h:        64px;
  --radius:       4px;
  --transition:   0.22s ease;
}

/* — Dark theme overrides — */
[data-theme="dark"] {
  --bg-body:         #0d0d0d;
  --bg-card:         #1e1e1e;
  --bg-nav:          #0d0d0d;
  --bg-section-alt:  #181818;
  --text-primary:    #f0eeea;
  --text-secondary:  rgba(255,255,255,0.65);
  --text-muted:      #888888;
  --border:          #333333;
  --nav-link:        rgba(255,255,255,0.72);
  --nav-link-hover:  #ffffff;
  --nav-shadow:      0 4px 24px rgba(0,0,0,0.5);
  --logo-filter:     brightness(0) invert(1);
  --card-bg:         #1e1e1e;
  --card-border:     #333333;
}

/* — Reset — */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg-body);
  color: var(--text-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* — Typography — */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; }
p { font-family: var(--font-body); }

/* — Container (mobile-first: tight padding) — */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}
.container--narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  text-align: center;
}
@media (min-width: 640px) {
  .container,
  .container--narrow { padding: 0 2rem; }
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border-color: var(--color-accent);
}
.btn--primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  transform: translateY(-1px);
}
/* outline on dark bg (hero, contact section) */
.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--color-white);
  background: rgba(255,255,255,0.08);
}
/* ghost used in nav auth area */
.btn--ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  font-size: 0.78rem;
  padding: 0.4rem 0.9rem;
}
.btn--ghost:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
}
.btn--sm  { font-size: 0.78rem; padding: 0.45rem 1rem; }
.btn--lg  { font-size: 0.95rem; padding: 1rem 2.2rem; }

/* =========================================
   THEME TOGGLE
   ========================================= */
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  color: var(--nav-link);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: var(--bg-section-alt);
  color: var(--nav-link-hover);
}
.theme-toggle svg { width: 18px; height: 18px; flex-shrink: 0; }
.theme-toggle__sun  { display: none; }
.theme-toggle__moon { display: block; }
[data-theme="dark"] .theme-toggle__sun  { display: block; }
[data-theme="dark"] .theme-toggle__moon { display: none; }

/* =========================================
   NAV  (mobile-first)
   ========================================= */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.nav.scrolled {
  box-shadow: var(--nav-shadow);
}
.nav__inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .nav__inner { padding: 0 2rem; gap: 2rem; }
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
.nav__logo-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: var(--logo-filter);
  transition: filter var(--transition);
}
.nav__logo-text {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  line-height: 1.2;
  transition: color var(--transition);
}
.nav__logo-text strong { font-weight: 700; }

/* Desktop nav links — hidden on mobile by default */
.nav__links {
  display: none;
  align-items: center;
  margin-left: auto;
}
@media (min-width: 640px) {
  .nav__links { display: flex; }
}
.nav__links > li > a {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--nav-link);
  padding: 0 1rem;
  height: var(--nav-h);
  line-height: var(--nav-h);
  transition: color var(--transition), background var(--transition);
}
.nav__links > li > a:hover,
.nav__links > li.active > a {
  color: var(--nav-link-hover);
  background: var(--color-accent);
  color: var(--color-white);
}

/* Nav auth — hidden on mobile */
.nav__auth {
  display: none;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}
@media (min-width: 640px) {
  .nav__auth { display: flex; }
}
/* Auth button adapted to nav bg */
.nav__auth .btn--outline {
  color: var(--nav-link);
  border-color: var(--border);
}
.nav__auth .btn--outline:hover {
  color: var(--nav-link-hover);
  border-color: var(--text-muted);
  background: var(--bg-section-alt);
}

.nav__user-menu {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--color-accent);
}
.nav__user-name {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: var(--nav-link);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Hamburger — visible only on mobile */
.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
  padding: 4px;
  flex-shrink: 0;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition);
}
@media (min-width: 640px) {
  .nav__hamburger { display: none; }
}

/* Mobile menu open state */
.nav__links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-nav);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  gap: 0;
  box-shadow: var(--nav-shadow);
}
.nav__links.open > li > a {
  height: auto;
  line-height: 1;
  padding: 0.9rem 1.5rem;
}

/* =========================================
   HERO
   ========================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--color-black);
}
.hero__media {
  position: absolute;
  inset: 0;
  background-image: url('../assets/hero-bg.jpg');
  background-size: cover;
  background-position: center 30%;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13,13,13,0.52) 35%,
    rgba(13,13,13,0.18) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 3rem) 1.25rem 4rem;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}
@media (min-width: 640px) {
  .hero__content { padding: calc(var(--nav-h) + 5rem) 2rem 6rem; }
}
.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.2s forwards;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 6vw, 5rem);
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: 1.25rem;
  max-width: 700px;
  opacity: 0;
  animation: fadeUp 0.7s 0.4s forwards;
}
.hero__title em {
  font-style: normal;
  color: var(--color-accent-light);
}
.hero__subtitle {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.55s forwards;
}
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  opacity: 0;
  animation: fadeUp 0.7s 0.7s forwards;
}
.hero__actions .btn { width: 100%; justify-content: center; }
@media (min-width: 480px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  .hero__actions .btn { width: auto; }
}
.hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero__scroll-indicator span {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.4));
  animation: scrollPulse 1.8s infinite;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes scrollPulse {
  0%,100% { opacity: 0.3; transform: scaleY(0.8); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* =========================================
   SECTIONS (shared)
   ========================================= */
.section { padding: 4rem 0; }
@media (min-width: 640px) { .section { padding: 6rem 0; } }

.section--light   { background: var(--bg-body); }
.section--dark    { background: var(--color-dark); }
.section--accent  { background: var(--color-accent); }

.section__header { max-width: 680px; }
.section__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.section__eyebrow--light { color: rgba(255,255,255,0.6); }
.section__title {
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  margin-bottom: 1.25rem;
  color: var(--text-primary);
}
.section__title--light { color: var(--color-white); }
.section__lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 620px;
  line-height: 1.75;
}
@media (min-width: 640px) {
  .section__lead { font-size: 1.05rem; }
}
.section__lead--light { color: rgba(255,255,255,0.8); }

/* =========================================
   SERVICES GRID  (mobile-first: 1 col)
   ========================================= */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 2.5rem;
  border: 1px solid var(--card-border);
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: 1fr 1fr; margin-top: 3rem; }
}
@media (min-width: 900px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Featured grid: always 2 cols from 480px, never 3 */
.services-grid--featured {
  margin-top: 3rem;
}
@media (min-width: 480px) {
  .services-grid--featured { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .services-grid--featured { grid-template-columns: 1fr 1fr; }
}

.service-card {
  padding: 2rem 1.5rem;
  border: 1px solid var(--card-border);
  background: var(--bg-card);
  transition: background var(--transition), box-shadow var(--transition);
}
@media (min-width: 640px) {
  .service-card { padding: 2.5rem 2rem; }
}
.service-card:hover {
  background: var(--bg-section-alt);
}
.service-card--featured {
  border-top: 3px solid var(--color-accent);
}
.service-card--featured .service-card__number {
  font-size: 0.75rem;
}
.service-card__number {
  font-family: var(--font-ui);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}
.service-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.service-card--featured .service-card__title {
  font-size: 1.25rem;
}
.service-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.service-card__link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  transition: color var(--transition);
}
.service-card__link:hover { color: var(--color-accent-hover); }

/* Collapsible extra services */
.services-more {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.4s ease;
}
.services-more.open {
  max-height: 1000px;
}
.services-more .services-grid {
  margin-top: 0;
  border-top: none;
}

/* "Ver más" toggle button */
.services-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 1.75rem auto 0;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  transition: color var(--transition);
  padding: 0.5rem;
}
.services-toggle:hover { color: var(--color-accent-hover); }
.services-toggle__arrow {
  display: inline-block;
  transition: transform 0.3s ease;
}
.services-toggle[aria-expanded="true"] .services-toggle__arrow {
  transform: rotate(180deg);
}

/* =========================================
   TEAM GRID  (mobile-first: 1 col)
   ========================================= */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
@media (min-width: 640px) {
  .team-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.75rem;
    margin-top: 3rem;
  }
}
@media (min-width: 900px) {
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
}
.team-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 2rem 1.5rem;
  border-radius: var(--radius);
  transition: box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
@media (min-width: 640px) {
  .team-card { padding: 2.5rem 2rem; }
}
.team-card:hover {
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}
.team-card__photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  margin-bottom: 1.1rem;
  border: 3px solid var(--color-accent);
}
.team-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}
.team-card__role {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 0.9rem;
}
.team-card__bio {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.1rem;
}
.team-card__link {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-accent);
  transition: color var(--transition);
}
.team-card__link:hover { color: var(--color-accent-hover); }

/* =========================================
   CONTACT OPTIONS
   ========================================= */
.contact-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 480px) {
  .contact-options { flex-direction: row; justify-content: center; }
}
.btn--email {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border-color: rgba(255,255,255,0.35);
}
.btn--email:hover {
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.08);
}

/* =========================================
   STATEMENT STRIP
   ========================================= */
.statement {
  padding: 2.5rem 0;
  background: var(--color-accent);
  text-align: center;
}
.statement__text {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  max-width: 780px;
  margin: 0 auto;
}
.statement__text em {
  font-style: normal;
  color: var(--color-white);
  font-weight: 700;
}
.statement__br { display: none; }
@media (min-width: 640px) {
  .statement__br { display: inline; }
  .statement { padding: 3rem 0; }
}

/* =========================================
   IMPACT FLOW SECTION
   ========================================= */
.impact-section {
  background: var(--bg-body);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.impact-center {
  text-align: center;
}
.impact-section .section__title {
  text-align: center;
  margin-bottom: 3rem;
}

/* Mobile: vertical stack */
.impact-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.impact-flow__input {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.1rem 2rem;
  text-align: center;
}
.impact-flow__input-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  line-height: 1.4;
}

.impact-flow__middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.25rem 0;
}
.impact-flow__line {
  width: 2px;
  height: 28px;
  background: var(--card-border);
}
.impact-flow__line--arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--card-border);
  margin: 0 auto;
}
.impact-flow__badge {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  color: var(--color-accent);
  line-height: 1;
  padding: 0.25rem 0;
}

.impact-flow__outputs {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  width: 100%;
  max-width: 320px;
}
.impact-flow__result {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--card-border);
}
.impact-flow__result:last-child { border-bottom: none; }
.impact-flow__up {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* Desktop: horizontal flow */
@media (min-width: 640px) {
  .impact-flow {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0;
  }
  .impact-flow__middle {
    flex-direction: row;
    align-items: center;
    padding: 0 0.25rem;
  }
  .impact-flow__line {
    width: 40px;
    height: 2px;
  }
  .impact-flow__line--arrow::after {
    border-top: none;
    border-left: 8px solid var(--card-border);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: none;
    margin: 0;
  }
  .impact-flow__outputs {
    width: auto;
    max-width: none;
  }
  .impact-flow__result {
    padding: 1rem 1.5rem;
  }
}

/* Buttons on purple (section--accent) background */
.section--accent .btn--primary {
  background: var(--color-white);
  color: var(--color-accent);
  border-color: var(--color-white);
}
.section--accent .btn--primary:hover {
  background: rgba(255,255,255,0.9);
  border-color: var(--color-white);
  transform: translateY(-1px);
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--color-black);
  border-top: 1px solid #222;
  padding: 2.5rem 0;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    text-align: left;
    gap: 2rem;
  }
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer__logo {
  width: 26px;
  height: 26px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}
.footer__brand-name {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
}
.footer__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
@media (min-width: 640px) {
  .footer__nav { flex-direction: row; gap: 1.5rem; align-items: flex-start; }
}
.footer__nav a {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}
.footer__nav a:hover { color: rgba(255,255,255,0.8); }
.footer__copy {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

/* =========================================
   INNER PAGE — shared layout
   ========================================= */
.page-header {
  background: var(--color-dark);
  padding: calc(var(--nav-h) + 2.5rem) 1.25rem 2.5rem;
  border-bottom: 1px solid #333;
}
@media (min-width: 640px) {
  .page-header { padding: calc(var(--nav-h) + 3rem) 2rem 3rem; }
}
.page-header__eyebrow {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent-light);
  margin-bottom: 0.75rem;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  color: var(--color-white);
}
.page-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}
@media (min-width: 640px) {
  .page-content { padding: 4rem 2rem; }
}

/* =========================================
   TOOLS GRID (inner pages)
   ========================================= */
.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.5rem;
  justify-content: center;
}
.tool-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.5rem 1.75rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  min-width: 140px;
  color: var(--color-white);
}
.tool-card:hover {
  background: rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.tool-card__icon { font-size: 1.6rem; }
.tool-card__name {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================================
   AUTH MODAL
   ========================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  padding: 1.25rem;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--color-accent);
  padding: 2.5rem 2rem;
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius);
  text-align: center;
}
.modal__logo {
  width: 52px;
  margin: 0 auto 1.25rem;
  filter: var(--logo-filter);
}
.modal__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.modal__subtitle {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.modal__close {
  position: absolute;
  top: 1rem; right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
}

/* =========================================
   LOCKED TOOL STATE
   ========================================= */
.tool-locked {
  text-align: center;
  padding: 4rem 1.25rem;
}
@media (min-width: 640px) {
  .tool-locked { padding: 5rem 2rem; }
}
.tool-locked__icon { font-size: 3rem; margin-bottom: 1rem; }
.tool-locked__title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}
.tool-locked__text {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}
