:root {
  --ink: #0f2742;
  --ink-soft: #526274;
  --paper: #f7f8f3;
  --white: #fff;
  --green: #21a447;
  --green-dark: #147b34;
  --green-soft: #e6f5e9;
  --blue: #123b69;
  --line: #dfe5dc;
  --shadow: 0 20px 55px rgba(15, 39, 66, .12);
  --radius: 28px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Manrope", system-ui, sans-serif; line-height: 1.65; }
body.menu-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #f1b64b; outline-offset: 3px; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; background: var(--ink); color: white; border-radius: 10px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; color: var(--green-dark); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; line-height: 1.05; }
h1 { font-size: clamp(3.3rem, 8vw, 7.2rem); letter-spacing: -.045em; }
h2 { font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.035em; }
h3 { font-size: 1.55rem; }
.lead { color: var(--ink-soft); font-size: clamp(1.05rem, 2vw, 1.22rem); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.muted { color: var(--ink-soft); }

.site-header { position: fixed; z-index: 100; inset: 0 0 auto; transition: .25s ease; }
.site-header.scrolled { background: rgba(247,248,243,.94); border-bottom: 1px solid rgba(15,39,66,.08); box-shadow: 0 10px 30px rgba(15,39,66,.08); backdrop-filter: blur(16px); }
.nav { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: -.03em; }
.brand-mark { width: 46px; height: 46px; border-radius: 14px; object-fit: cover; filter: saturate(.9) contrast(1.05); }
.brand-name small { display: block; margin-top: -3px; color: var(--green-dark); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 10px 12px; color: #35485c; font-size: .9rem; font-weight: 700; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
.nav-cta { padding: 11px 18px !important; color: white !important; background: var(--blue) !important; }
.menu-btn { display: none; position: relative; z-index: 3; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); }
.menu-btn span { display: block; width: 20px; height: 2px; margin: 4px auto; background: currentColor; transition: .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.site-header:not(.scrolled) .brand-name { color: white; }
.site-header:not(.scrolled) .brand-name small { color: #8ee29d; }
.site-header:not(.scrolled) .nav-links a:not(.nav-cta) { color: rgba(255,255,255,.82); }
.site-header:not(.scrolled) .nav-links a:not(.nav-cta):hover,
.site-header:not(.scrolled) .nav-links a[aria-current="page"] { color: white; background: rgba(255,255,255,.14); }
.site-header:not(.scrolled) .menu-btn { color: white; border-color: rgba(255,255,255,.25); background: rgba(15,39,66,.35); }

.hero { position: relative; min-height: 760px; display: grid; align-items: end; overflow: hidden; margin: 0; border-radius: 0; color: white; background: #0d3157; }
body[data-page="inicio"] .hero { min-height: 100svh; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,29,51,.9), rgba(6,29,51,.38)), var(--hero) center/cover; }
.hero::after { content: ""; position: absolute; width: 460px; height: 460px; right: -120px; top: -80px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(255,255,255,.035), 0 0 0 160px rgba(255,255,255,.025); }
.hero-content { position: relative; z-index: 1; max-width: 850px; padding-top: 180px; padding-bottom: 92px; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 680px; color: rgba(255,255,255,.82); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.page-hero { min-height: 510px; }
.page-hero .hero-content { padding-bottom: 72px; }

.btn { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 9px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; font-weight: 800; transition: transform .2s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: white; background: var(--green); box-shadow: 0 12px 28px rgba(33,164,71,.25); }
.btn-primary:hover { background: var(--green-dark); }
.btn-light { color: var(--ink); background: white; }
.btn-outline { border-color: var(--line); background: transparent; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--green-dark); font-weight: 800; }
.text-link:hover { gap: 12px; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 8px 25px rgba(15,39,66,.05); }
.card-body { padding: 28px; }
.card-image { width: 100%; height: 270px; object-fit: cover; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card-lift { transition: transform .25s, box-shadow .25s; }
.card-lift:hover { transform: translateY(-7px); box-shadow: var(--shadow); }
.feature-card { padding: 32px; }
.icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 24px; border-radius: 16px; color: var(--green-dark); background: var(--green-soft); font-weight: 900; }
.icon svg { width: 24px; height: 24px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.split-media { position: relative; }
.split-media img { width: 100%; min-height: 520px; object-fit: cover; border-radius: var(--radius); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 34px; }
.stat { padding: 20px; border-left: 3px solid var(--green); background: white; border-radius: 0 16px 16px 0; }
.stat strong { display: block; font-family: "DM Serif Display", serif; font-size: 2rem; line-height: 1; }
.band { color: white; background: var(--blue); }
.band .eyebrow, .band .lead { color: rgba(255,255,255,.75); }
.band-card { padding: 38px; border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.check-list { padding: 0; list-style: none; }
.check-list li { position: relative; padding: 9px 0 9px 30px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }

.catalog-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 34px; }
.catalog-intro { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 48px; margin-bottom: 42px; }
.catalog-intro h2 { margin-bottom: 0; }
.catalog-intro .lead { margin-bottom: 8px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font-weight: 800; }
.filter.active { color: white; border-color: var(--blue); background: var(--blue); }
.filter span { margin-left: 5px; opacity: .68; font-size: .78rem; }
.catalog-search-label { display: grid; gap: 7px; color: var(--ink-soft); font-size: .78rem; font-weight: 800; }
.search { min-width: min(100%, 280px); padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.catalog-count { margin: -16px 0 26px; color: var(--ink-soft); font-size: .9rem; }
.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card[hidden] { display: none; }
.product-card .card-image { height: 220px; object-fit: contain; padding: 14px; background: white; }
.product-card .card-body { display: flex; min-height: 270px; flex-direction: column; }
.product-card .product-meta { margin-top: auto; }
.product-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.product-heading .tag { margin: 0; }
.product-code { color: var(--ink-soft); font-size: .78rem; font-weight: 900; }
.product-image-placeholder { display: grid; height: 220px; place-items: center; padding: 24px; color: var(--ink-soft); background: repeating-linear-gradient(135deg, #f5f7f3, #f5f7f3 12px, #edf1eb 12px, #edf1eb 24px); text-align: center; font-size: .82rem; font-weight: 800; }
.product-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tag { display: inline-block; padding: 5px 10px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: .76rem; font-weight: 900; text-transform: uppercase; }
.empty-state { display: none; padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }

.logo-cloud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sector { padding: 28px 18px; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: white; font-weight: 800; }
.quote { position: relative; padding: 34px; }
.quote::before { content: "“"; position: absolute; right: 25px; top: 6px; color: var(--green-soft); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.quote p { position: relative; font-size: 1.05rem; }

.article-card time { color: var(--ink-soft); font-size: .85rem; }
.article-card details { margin-top: 16px; }
.article-card summary { color: var(--green-dark); font-weight: 800; cursor: pointer; }
.article-card details p { margin-top: 14px; }

.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; }
.contact-list { display: grid; gap: 14px; }
.contact-item { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.contact-item strong { display: block; margin-bottom: 4px; }
.form-card { padding: 38px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; font-size: .88rem; font-weight: 800; }
.field input, .field select, .field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbd5cc; border-radius: 12px; color: var(--ink); background: white; }
.field textarea { min-height: 140px; resize: vertical; }
.form-status { min-height: 24px; margin: 16px 0 0; color: var(--green-dark); font-weight: 700; }
.notice { padding: 16px 18px; border-radius: 14px; color: #6c5318; background: #fff4d6; font-size: .9rem; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 34px; padding: 50px; border-radius: var(--radius); color: white; background: linear-gradient(120deg, var(--blue), #176340); }
.cta h2 { max-width: 700px; margin-bottom: 8px; font-size: clamp(2.1rem, 4vw, 3.5rem); }
.cta p { margin-bottom: 0; color: rgba(255,255,255,.75); }
.site-footer { padding: 72px 0 30px; background: #0b2036; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 60px; }
.site-footer .brand { color: white; }
.site-footer h3 { color: white; font-size: 1.1rem; font-family: Manrope, sans-serif; font-weight: 900; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: white; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.floating-contact { position: fixed; z-index: 80; right: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 9px; padding: 13px 18px; border-radius: 999px; color: white; background: var(--green-dark); box-shadow: var(--shadow); font-weight: 900; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .reveal { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  .section { padding: 72px 0; }
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(86vw, 390px); padding: 110px 28px 28px; flex-direction: column; align-items: stretch; background: var(--paper); box-shadow: -20px 0 60px rgba(15,39,66,.18); transform: translateX(105%); transition: transform .3s ease; }
  .site-header:not(.scrolled) .nav-links a:not(.nav-cta) { color: #35485c; }
  .site-header:not(.scrolled) .nav-links a:not(.nav-cta):hover,
  .site-header:not(.scrolled) .nav-links a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 16px; font-size: 1rem; }
  .nav-cta { text-align: center; margin-top: 8px; }
  .hero { min-height: 680px; }
  body[data-page="inicio"] .hero { min-height: 100svh; }
  .page-hero { min-height: 460px; }
  .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-intro { grid-template-columns: 1fr; gap: 12px; }
  .split, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .split-media img { min-height: 400px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1/-1; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .nav { min-height: 76px; }
  .brand-mark { width: 40px; height: 40px; }
  .hero { min-height: 650px; margin: 0; border-radius: 0; }
  body[data-page="inicio"] .hero { min-height: 100svh; }
  .hero-content { padding-top: 140px; padding-bottom: 65px; }
  .hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .page-hero { min-height: 420px; }
  .grid-4, .grid-3, .grid-2, .form-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .catalog-tools { align-items: stretch; }
  .catalog-search-label, .search { width: 100%; }
  .field.full { grid-column: auto; }
  .stat-row { grid-template-columns: 1fr; }
  .logo-cloud { grid-template-columns: 1fr 1fr; }
  .cta { align-items: flex-start; padding: 34px 26px; flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid > :first-child { grid-column: auto; }
  .footer-bottom { flex-direction: column; }
  .floating-contact span { display: none; }
  .floating-contact { width: 52px; height: 52px; padding: 0; justify-content: center; }
  .form-card { padding: 24px; }
}
