/* ===========================================================
   Policlínico Apóstol San Judas Tadeo — estilos compartidos
   =========================================================== */
:root {
  --green-900: #0f3d2e;
  --green-800: #155741;
  --green-700: #1b6e52;
  --green-600: #228b66;
  --green-500: #2fa67c;
  --green-300: #8fd6bb;
  --green-100: #d8f0e6;
  --green-50:  #eef8f3;

  --mint-bg:   #f3faf6;
  --white:     #ffffff;
  --ink:       #11211b;
  --ink-soft:  #4a5d54;
  --line:      #dfece6;

  --red:       #d8473b;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --text-hero: clamp(2.4rem, 1.2rem + 4.6vw, 5rem);
  --text-h2:   clamp(1.8rem, 1.1rem + 2.4vw, 3rem);
  --text-h3:   clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
  --space-section: clamp(4rem, 2.6rem + 5.5vw, 8rem);

  --radius: 16px;
  --radius-lg: 26px;
  --shadow-sm: 0 2px 8px rgba(15, 61, 46, 0.06);
  --shadow-md: 0 16px 40px -18px rgba(15, 61, 46, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(15, 61, 46, 0.45);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --topbar-h: 40px;
  --nav-h: 74px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + var(--topbar-h) + 6px); }
body { font-family: var(--font-body); color: var(--ink); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 92vw); margin-inline: auto; }
.grain { position: fixed; inset: 0; z-index: 9999; pointer-events: none; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--font-body); font-weight: 600; font-size: 0.96rem; padding: 0.8rem 1.45rem; border-radius: 100px; border: 0; cursor: pointer; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; }
.btn-wa { background: var(--green-700); color: #fff; box-shadow: var(--shadow-md); }
.btn-wa:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); background: var(--green-800); }
.btn-ghost { background: transparent; color: var(--green-800); border: 1.5px solid var(--green-300); }
.btn-ghost:hover { background: var(--green-50); transform: translateY(-3px); }
.btn-light { background: #fff; color: var(--green-800); box-shadow: var(--shadow-sm); }
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-white { background: #fff; color: var(--green-800); }
.btn-white:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- topbar ---------- */
.topbar { background: var(--green-900); color: rgba(255,255,255,0.85); height: var(--topbar-h); display: flex; align-items: center; font-size: 0.82rem; position: fixed; top: 0; left: 0; right: 0; z-index: 101; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.topbar .tb-left { display: flex; align-items: center; gap: 1.4rem; }
.topbar .tb-emergency { display: inline-flex; align-items: center; gap: 0.45rem; font-weight: 600; color: #fff; }
.topbar .tb-emergency svg { width: 15px; height: 15px; color: var(--green-300); }
.topbar .tb-emergency .blink { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(216,71,59,0.6); animation: pulse 2s infinite; }
.topbar .tb-right { display: flex; align-items: center; gap: 1.3rem; }
.topbar a { color: rgba(255,255,255,0.85); display: inline-flex; align-items: center; gap: 0.4rem; transition: color 0.25s; }
.topbar a:hover { color: #fff; }
.topbar a svg { width: 14px; height: 14px; color: var(--green-300); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(216,71,59,0.55); } 70% { box-shadow: 0 0 0 8px rgba(216,71,59,0); } 100% { box-shadow: 0 0 0 0 rgba(216,71,59,0); } }

/* ---------- navbar ---------- */
header.nav { position: fixed; top: var(--topbar-h); left: 0; right: 0; z-index: 100; height: var(--nav-h); display: flex; align-items: center; background: rgba(255,255,255,0.9); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
header.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner { width: min(1200px, 92vw); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.brand { display: flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 44px; height: 44px; border-radius: 13px; flex: none; background: linear-gradient(140deg, var(--green-600), var(--green-800)); display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm); }
.brand-mark svg { width: 24px; height: 24px; }
.brand-text strong { font-family: var(--font-display); font-size: 1.02rem; font-weight: 600; display: block; line-height: 1.1; color: var(--green-900); }
.brand-text span { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }

.nav-links { display: flex; align-items: center; gap: 1.5rem; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--ink-soft); position: relative; transition: color 0.25s; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--green-600); transition: width 0.3s var(--ease); }
.nav-links a:hover { color: var(--green-800); }
.nav-links a:hover::after { width: 100%; }
.nav-links a[aria-current="page"] { color: var(--green-800); font-weight: 700; }
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-cta { display: flex; align-items: center; gap: 0.7rem; }
.menu-toggle { display: none; background: none; border: 0; cursor: pointer; color: var(--green-800); }

/* ---------- HERO carousel (home) ---------- */
.hero { position: relative; margin-top: calc(var(--topbar-h) + var(--nav-h)); }
.carousel { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform 0.7s var(--ease); }
.slide { min-width: 100%; position: relative; }
.slide-bg { position: absolute; inset: 0; z-index: 0; }
.slide-1 .slide-bg { background: radial-gradient(70% 90% at 75% 10%, var(--green-700), var(--green-900)); }
.slide-2 .slide-bg { background: radial-gradient(70% 90% at 20% 20%, var(--green-600), var(--green-800)); }
.slide-3 .slide-bg { background: radial-gradient(80% 100% at 85% 90%, var(--green-800), var(--green-900)); }
.slide-bg::after { content: ""; position: absolute; inset: 0; opacity: 0.5; background:
  radial-gradient(40% 50% at 90% 15%, rgba(143,214,187,0.25), transparent 60%),
  radial-gradient(45% 55% at 5% 85%, rgba(255,255,255,0.07), transparent 60%); }
.slide-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.22; mix-blend-mode: luminosity; }
.slide-inner { position: relative; z-index: 1; width: min(1200px, 92vw); margin-inline: auto; padding: clamp(3.5rem, 7vw, 7rem) 0 clamp(6rem, 9vw, 9rem); color: #fff; }
.slide-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-300); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 0.45rem 0.95rem; border-radius: 100px; }
.slide-eyebrow svg { width: 15px; height: 15px; }
.slide h2 { font-size: var(--text-hero); color: #fff; margin: 1.3rem 0 0; max-width: 16ch; font-weight: 600; }
.slide h2 em { font-style: italic; color: var(--green-300); }
.slide p { font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.25rem); color: rgba(255,255,255,0.85); max-width: 44ch; margin: 1.3rem 0 2rem; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.car-arrow { position: absolute; top: 42%; z-index: 5; width: 50px; height: 50px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.16); backdrop-filter: blur(6px); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.car-arrow:hover { background: rgba(255,255,255,0.3); transform: scale(1.08); }
.car-arrow svg { width: 24px; height: 24px; }
.car-prev { left: clamp(0.5rem, 2vw, 1.6rem); }
.car-next { right: clamp(0.5rem, 2vw, 1.6rem); }
.car-dots { position: absolute; bottom: clamp(2.2rem, 4vw, 3rem); left: 50%; transform: translateX(-50%); z-index: 5; display: flex; gap: 0.6rem; }
.car-dots button { width: 11px; height: 11px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.4); cursor: pointer; transition: background 0.3s, width 0.3s; }
.car-dots button.active { background: #fff; width: 30px; border-radius: 100px; }

/* ---------- page hero (interior pages) ---------- */
.page-hero { margin-top: calc(var(--topbar-h) + var(--nav-h)); position: relative; overflow: hidden; background: radial-gradient(80% 120% at 80% 0%, var(--green-700), var(--green-900)); color: #fff; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: 0.5; background: radial-gradient(40% 60% at 92% 10%, rgba(143,214,187,0.25), transparent 60%); }
.page-hero .ph-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.2; mix-blend-mode: luminosity; }
.page-hero .wrap { position: relative; z-index: 1; padding: clamp(2.6rem, 5vw, 4.2rem) 0 clamp(3rem, 5vw, 4.5rem); }
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.82rem; color: rgba(255,255,255,0.7); margin-bottom: 1.1rem; flex-wrap: wrap; }
.breadcrumb a { color: rgba(255,255,255,0.85); transition: color 0.25s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb svg { width: 14px; height: 14px; opacity: 0.6; }
.breadcrumb .current { color: var(--green-300); font-weight: 600; }
.page-hero .ph-eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-300); background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); padding: 0.4rem 0.9rem; border-radius: 100px; margin-bottom: 1rem; }
.page-hero .ph-eyebrow svg { width: 15px; height: 15px; }
.page-hero h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.6rem); color: #fff; max-width: 20ch; }
.page-hero h1 em { font-style: italic; color: var(--green-300); }
.page-hero p { color: rgba(255,255,255,0.85); max-width: 52ch; margin-top: 1.1rem; font-size: 1.08rem; }

/* ---------- QUICK HUB ---------- */
.hub { width: min(1200px, 92vw); margin: -4.5rem auto 0; position: relative; z-index: 10; }
.hub-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: clamp(1.6rem, 3vw, 2.4rem); }
.hub-title { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-size: 1.15rem; color: var(--green-900); margin-bottom: 1.4rem; }
.hub-title svg { width: 22px; height: 22px; color: var(--green-600); }
.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.hub-item { display: flex; flex-direction: column; gap: 0.7rem; padding: 1.3rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--mint-bg); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.3s, background 0.3s; }
.hub-item:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-300); background: #fff; }
.hub-item .hi { width: 48px; height: 48px; border-radius: 13px; background: var(--green-700); color: #fff; display: grid; place-items: center; transition: background 0.3s; }
.hub-item:hover .hi { background: var(--green-600); }
.hub-item .hi svg { width: 24px; height: 24px; }
.hub-item strong { font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--green-900); }
.hub-item span { font-size: 0.84rem; color: var(--ink-soft); }
.hub-item .arrow { margin-top: auto; display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.82rem; font-weight: 600; color: var(--green-700); }
.hub-item .arrow svg { width: 15px; height: 15px; transition: transform 0.3s; }
.hub-item:hover .arrow svg { transform: translateX(4px); }

/* ---------- sections ---------- */
section.block { padding-block: var(--space-section); position: relative; }
.section-head { max-width: 58ch; margin-bottom: clamp(2.4rem, 4vw, 3.6rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-600); margin-bottom: 0.9rem; }
.kicker::before { content: ""; width: 26px; height: 2px; background: var(--green-300); }
.section-head.center .kicker::before { display: none; }
h2 { font-size: var(--text-h2); color: var(--green-900); }
.section-head p { margin-top: 1rem; color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- home teasers ---------- */
.tint { background: linear-gradient(180deg, var(--white), var(--mint-bg)); }
.teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.teaser { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; overflow: hidden; }
.teaser .teaser-img { margin: -2rem -1.8rem 1.3rem; height: 160px; overflow: hidden; position: relative; }
.teaser .teaser-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(15,61,46,0.25)); }
.teaser .teaser-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.teaser:hover .teaser-img img { transform: scale(1.07); }
.teaser:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.teaser .ti { width: 56px; height: 56px; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 1.3rem; }
.teaser .ti svg { width: 28px; height: 28px; }
.teaser h3 { color: var(--green-900); font-size: var(--text-h3); margin-bottom: 0.6rem; }
.teaser p { color: var(--ink-soft); font-size: 0.98rem; flex: 1; }
.teaser .arrow { margin-top: 1.2rem; display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; font-weight: 600; color: var(--green-700); }
.teaser .arrow svg { width: 16px; height: 16px; transition: transform 0.3s; }
.teaser:hover .arrow svg { transform: translateX(4px); }

/* ---------- about ---------- */
.about-intro { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 4vw, 4rem); align-items: start; margin-bottom: clamp(3rem, 5vw, 5rem); }
.about-intro .lead-text { font-family: var(--font-display); font-size: clamp(1.3rem, 1rem + 1.3vw, 1.85rem); line-height: 1.35; color: var(--green-900); font-weight: 500; }
.about-intro .body-text { color: var(--ink-soft); font-size: 1.05rem; }
.about-intro .body-text p + p { margin-top: 1rem; }
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.mvv-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.8rem; box-shadow: var(--shadow-sm); transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; position: relative; overflow: hidden; }
.mvv-card::after { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--green-600), var(--green-300)); transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease); }
.mvv-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-md); border-color: var(--green-100); }
.mvv-card:hover::after { transform: scaleX(1); }
.mvv-icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; margin-bottom: 1.3rem; }
.mvv-icon svg { width: 28px; height: 28px; }
.mvv-card h3 { color: var(--green-900); font-size: var(--text-h3); margin-bottom: 0.7rem; }
.mvv-card p { color: var(--ink-soft); font-size: 0.98rem; }
.values-list { list-style: none; display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.4rem; }
.values-list li { font-size: 0.86rem; font-weight: 600; color: var(--green-800); background: var(--green-50); border: 1px solid var(--green-100); padding: 0.4rem 0.8rem; border-radius: 100px; }

/* ---------- servicios ---------- */
.service-block { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.service-visual { background: linear-gradient(155deg, var(--green-800), var(--green-900)); border-radius: var(--radius-lg); padding: 2.5rem; color: #fff; box-shadow: var(--shadow-md); position: relative; overflow: hidden; align-self: stretch; display: flex; flex-direction: column; justify-content: center; }
.service-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 100% 0%, rgba(143,214,187,0.22), transparent 60%); }
.service-visual .tag { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-300); margin-bottom: 1rem; position: relative; }
.service-visual h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.3rem); margin-bottom: 1rem; position: relative; }
.service-visual p { color: rgba(255,255,255,0.85); position: relative; font-size: 1rem; }
.digesa-chip { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 1.6rem; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: 14px; padding: 0.8rem 1.1rem; position: relative; }
.digesa-chip svg { width: 26px; height: 26px; color: var(--green-300); flex: none; }
.digesa-chip strong { display: block; font-family: var(--font-body); font-size: 0.92rem; }
.digesa-chip small { color: rgba(255,255,255,0.7); font-size: 0.78rem; }
.service-detail h3 { color: var(--green-900); font-size: var(--text-h3); margin-bottom: 1rem; }
.service-detail > p { color: var(--ink-soft); font-size: 1.04rem; margin-bottom: 1.8rem; }
.eval-label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-600); margin-bottom: 1rem; }
.eval-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 0.9rem; }
.eval-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.35s; }
.eval-card:hover { transform: translateY(-5px); border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.eval-card .num { font-family: var(--font-display); font-size: 1.1rem; color: var(--green-500); font-weight: 600; }
.eval-card h4 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 700; color: var(--green-900); margin: 0.4rem 0 0.35rem; }
.eval-card p { font-size: 0.84rem; color: var(--ink-soft); line-height: 1.45; }
.service-2 { margin-top: clamp(2.5rem, 4vw, 4rem); background: var(--green-50); border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: clamp(2rem, 3vw, 3rem); display: grid; grid-template-columns: auto 1fr; gap: 1.6rem; align-items: center; }
.service-2 .s2-icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; color: var(--green-700); display: grid; place-items: center; box-shadow: var(--shadow-sm); flex: none; }
.service-2 .s2-icon svg { width: 32px; height: 32px; }
.service-2 .s2-tag { color: var(--green-600); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.service-2 h3 { color: var(--green-900); font-size: var(--text-h3); margin: 0.3rem 0 0.5rem; }
.service-2 p { color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- exámenes ---------- */
.exams-dark { background: var(--green-900); color: #fff; }
.exams-dark h2 { color: #fff; }
.exams-dark .kicker { color: var(--green-300); }
.exams-dark .section-head p { color: rgba(255,255,255,0.7); }
.exam-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.1rem; }
.exam-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius); padding: 1.7rem 1.3rem; text-align: center; transition: transform 0.4s var(--ease), background 0.3s, border-color 0.3s; }
.exam-card:hover { transform: translateY(-7px); background: rgba(255,255,255,0.1); border-color: var(--green-300); }
.exam-card .ei { width: 58px; height: 58px; border-radius: 16px; background: rgba(143,214,187,0.14); color: var(--green-300); display: grid; place-items: center; margin: 0 auto 1rem; transition: background 0.3s, color 0.3s; }
.exam-card:hover .ei { background: var(--green-300); color: var(--green-900); }
.exam-card .ei svg { width: 28px; height: 28px; }
.exam-card h4 { font-family: var(--font-body); font-size: 0.98rem; font-weight: 600; color: #fff; }

/* ---------- estándares ---------- */
.std-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.std-card { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.8rem, 3vw, 2.6rem); background: #fff; box-shadow: var(--shadow-sm); }
.std-card.accent { background: linear-gradient(160deg, var(--green-50), var(--white)); border-color: var(--green-100); }
.std-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.5rem; }
.std-head .si { width: 50px; height: 50px; border-radius: 14px; background: var(--green-700); color: #fff; display: grid; place-items: center; flex: none; }
.std-head .si svg { width: 25px; height: 25px; }
.std-head h3 { color: var(--green-900); font-size: var(--text-h3); }
.std-list { list-style: none; display: flex; flex-direction: column; gap: 0.9rem; }
.std-list li { display: flex; align-items: flex-start; gap: 0.75rem; color: var(--ink-soft); font-size: 1rem; }
.std-list li svg { width: 20px; height: 20px; color: var(--green-600); flex: none; margin-top: 3px; }

/* ---------- acreditación ---------- */
.accred-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); padding: clamp(2rem, 4vw, 3.5rem); box-shadow: var(--shadow-md); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: center; position: relative; overflow: hidden; }
.accred-seal { text-align: center; }
.seal-ring { width: 150px; height: 150px; border-radius: 50%; margin: 0 auto 1.2rem; display: grid; place-items: center; background: radial-gradient(circle, var(--green-50), var(--white)); border: 3px solid var(--green-300); position: relative; box-shadow: var(--shadow-sm); }
.seal-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px dashed var(--green-300); opacity: 0.6; }
.seal-ring svg { width: 62px; height: 62px; color: var(--green-700); }
.accred-seal .vigente { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.8rem; font-weight: 700; color: var(--green-700); background: var(--green-50); border: 1px solid var(--green-100); padding: 0.4rem 0.9rem; border-radius: 100px; }
.accred-seal .vigente .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--green-500); box-shadow: 0 0 0 0 rgba(47,166,124,0.5); animation: pulse 2s infinite; }
.accred-info h3 { color: var(--green-900); font-size: var(--text-h3); margin-bottom: 1.3rem; }
.accred-rows { display: grid; gap: 1rem; }
.accred-row { display: grid; grid-template-columns: 150px 1fr; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.accred-row:last-child { border-bottom: 0; padding-bottom: 0; }
.accred-row dt { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); }
.accred-row dd { color: var(--ink); font-weight: 500; }

/* ---------- contacto ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); align-items: stretch; }
.contact-info { display: flex; flex-direction: column; gap: 1.1rem; }
.ci-card { display: flex; align-items: flex-start; gap: 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), border-color 0.3s; }
.ci-card:hover { transform: translateY(-4px); border-color: var(--green-300); }
.ci-card .ci-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.ci-card .ci-icon svg { width: 22px; height: 22px; }
.ci-card .ci-label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-600); margin-bottom: 0.25rem; }
.ci-card a, .ci-card p { color: var(--ink); font-weight: 500; word-break: break-word; }
.ci-card a:hover { color: var(--green-700); }
.contact-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 0.5rem; }
.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); min-height: 420px; height: 100%; }
.map-frame iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: saturate(1.05); }
.closing { text-align: center; margin-top: clamp(3rem, 5vw, 5rem); }
.closing p { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.8vw, 2.3rem); color: var(--green-800); font-style: italic; max-width: 22ch; margin: 0 auto; line-height: 1.25; }

/* ---------- pager (connect pages) ---------- */
.pager { border-top: 1px solid var(--line); }
.pager .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-block: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.pager a { display: flex; align-items: center; gap: 0.9rem; max-width: 46%; padding: 1.1rem 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.pager a:hover { transform: translateY(-4px); border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.pager a.next { margin-left: auto; text-align: right; flex-direction: row-reverse; }
.pager a .pg-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.pager a .pg-ic svg { width: 21px; height: 21px; }
.pager a small { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-soft); }
.pager a strong { font-family: var(--font-body); color: var(--green-900); font-size: 1.02rem; }

/* ---------- footer ---------- */
footer { background: var(--green-900); color: rgba(255,255,255,0.78); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 2.2rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand .brand-mark { background: rgba(255,255,255,0.12); }
.footer-brand .brand-text strong { color: #fff; }
.footer-brand .brand-text span { color: rgba(255,255,255,0.6); }
.footer-brand p { margin-top: 1.2rem; font-size: 0.94rem; max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-300); margin-bottom: 1.1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a, .footer-col li { color: rgba(255,255,255,0.78); font-size: 0.92rem; transition: color 0.25s; }
.footer-col a:hover { color: #fff; }
.footer-col .fline { display: flex; align-items: flex-start; gap: 0.6rem; }
.footer-col .fline svg { width: 17px; height: 17px; color: var(--green-300); flex: none; margin-top: 3px; }
.footer-socials { display: flex; gap: 0.7rem; margin-top: 1.4rem; }
.footer-socials a { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,0.08); display: grid; place-items: center; transition: background 0.3s, transform 0.3s; }
.footer-socials a:hover { background: var(--green-600); transform: translateY(-3px); }
.footer-socials svg { width: 19px; height: 19px; color: #fff; }
.footer-bottom { padding-top: 1.8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; font-size: 0.84rem; color: rgba(255,255,255,0.55); }

/* ---------- floating whatsapp ---------- */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(37,211,102,0.6); transition: transform 0.35s var(--ease); animation: fabIn 0.6s var(--ease) 1s both; }
.fab:hover { transform: scale(1.08); }
.fab svg { width: 30px; height: 30px; color: #fff; }
@keyframes fabIn { from { transform: scale(0); } to { transform: scale(1); } }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-toggle { display: grid; place-items: center; }
  .nav-cta .btn-ghost { display: none; }
  .hub-grid { grid-template-columns: repeat(2, 1fr); }
  .teaser-grid, .about-intro, .service-block, .std-grid, .accred-card, .contact-grid { grid-template-columns: 1fr; }
  .mvv-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .accred-row { grid-template-columns: 130px 1fr; }
  .service-2 { grid-template-columns: 1fr; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: 1.2rem 6%; gap: 1.1rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); align-items: flex-start; }
  .nav-links.open a { font-size: 1.02rem; }
}
@media (max-width: 680px) {
  .topbar .tb-right { display: none; }
  .topbar .wrap { justify-content: center; }
  .car-arrow { display: none; }
  .pager a { max-width: 100%; width: 100%; }
}
@media (max-width: 560px) {
  .hub-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .accred-row { grid-template-columns: 1fr; gap: 0.25rem; }
  .footer-bottom { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .slides { transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
}

/* ---------- brand logo (image) ---------- */
/* Navbar: ícono limpio (logo-icon.png). Footer: logo completo (logo.png). */
.brand-logo { height: 54px; width: auto; object-fit: contain; display: block; }
.brand-fallback { display: none; align-items: center; gap: 0.7rem; }
.footer-logo { background: #fff; border-radius: 14px; padding: 0.7rem 0.95rem; display: inline-block; box-shadow: var(--shadow-sm); }
.footer-logo img { height: 58px; width: auto; display: block; }

/* ---------- galería de instalaciones ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.gallery-item { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); aspect-ratio: 4 / 3; margin: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem 1.2rem 1rem; color: #fff; font-weight: 600; font-size: 0.96rem; background: linear-gradient(transparent, rgba(15, 61, 46, 0.88)); display: flex; align-items: center; gap: 0.5rem; }
.gallery-item figcaption svg { width: 18px; height: 18px; color: var(--green-300); }
@media (max-width: 980px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- foto en about ---------- */
.about-photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); margin-top: 1.6rem; aspect-ratio: 16 / 10; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- franja de confianza (stats) ---------- */
.trust-strip { border-block: 1px solid var(--line); background: #fff; }
.trust-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: clamp(1.8rem, 3vw, 2.6rem); }
.trust-item { display: flex; align-items: center; gap: 0.9rem; justify-content: center; }
.trust-item .tn { font-family: var(--font-display); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem); font-weight: 600; color: var(--green-700); line-height: 1; }
.trust-item .tt { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); text-transform: uppercase; line-height: 1.3; max-width: 12ch; }
.trust-item .ti-badge { width: 44px; height: 44px; border-radius: 12px; background: var(--green-50); color: var(--green-700); display: grid; place-items: center; flex: none; }
.trust-item .ti-badge svg { width: 22px; height: 22px; }
@media (max-width: 980px) { .trust-strip .wrap { grid-template-columns: repeat(2, 1fr); } .trust-item { justify-content: flex-start; } }

/* ---------- proceso (cómo trabajamos) ---------- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.process-step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem 1.6rem 1.8rem; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.3s; }
.process-step:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--green-300); }
.process-step .ps-num { font-family: var(--font-display); font-size: 3rem; font-weight: 600; line-height: 1; color: var(--green-100); position: absolute; top: 1.1rem; right: 1.3rem; transition: color 0.3s; }
.process-step:hover .ps-num { color: var(--green-300); }
.process-step .ps-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--green-700); color: #fff; display: grid; place-items: center; margin-bottom: 1.2rem; }
.process-step .ps-icon svg { width: 26px; height: 26px; }
.process-step h3 { font-size: 1.1rem; color: var(--green-900); margin-bottom: 0.5rem; }
.process-step p { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 980px) { .process-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-grid { grid-template-columns: 1fr; } }

/* ---------- video band (IA) ---------- */
.video-band { position: relative; overflow: hidden; background: var(--green-900); }
.video-band video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.9; }
.video-band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(15,61,46,0.88), rgba(21,87,65,0.66)); }
.video-band .wrap { position: relative; z-index: 1; padding-block: clamp(4rem, 8vw, 7rem); text-align: center; color: #fff; }
.video-band .kicker { color: var(--green-300); justify-content: center; }
.video-band .kicker::before { display: none; }
.video-band h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.video-band p { color: rgba(255,255,255,0.85); max-width: 48ch; margin: 1rem auto 2rem; }
.video-band .cta-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* ---------- banda CTA corporativa ---------- */
.cta-band { background: linear-gradient(135deg, rgba(21,87,65,0.86), rgba(15,61,46,0.94)), url('img/ai-cta-band.png'); background-size: cover; background-position: center; color: #fff; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 85% 20%, rgba(143,214,187,0.18), transparent 60%); }

/* ---------- fondo IA suave en secciones ---------- */
.ai-soft { background: linear-gradient(rgba(243,250,246,0.92), rgba(243,250,246,0.97)), url('img/ai-hero-abstract.png'); background-size: cover; background-position: center; }
.cta-band .wrap { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: clamp(3rem, 5vw, 4.5rem); flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.6rem); max-width: 22ch; }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 0.6rem; max-width: 44ch; }
.cta-band .cta-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
@media (max-width: 760px) { .cta-band .wrap { flex-direction: column; align-items: flex-start; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s, box-shadow 0.3s; }
.faq-item[open] { border-color: var(--green-300); box-shadow: var(--shadow-sm); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; cursor: pointer; font-weight: 600; color: var(--green-900); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-display); font-size: 1.5rem; color: var(--green-600); flex: none; transition: transform 0.3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- cotizador WhatsApp ---------- */
.quote-card { background: #fff; border: 1px solid var(--green-100); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: clamp(1.8rem, 3vw, 2.5rem); }
.quote-card h3 { color: var(--green-900); font-size: var(--text-h3); margin-bottom: 0.4rem; }
.quote-card > p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.4rem; }
.quote-form { display: grid; gap: 1rem; }
.quote-form label { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green-700); display: block; margin-bottom: 0.35rem; }
.quote-form input, .quote-form select { width: 100%; padding: 0.85rem 1rem; border: 1.5px solid var(--line); border-radius: 12px; font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--mint-bg); transition: border-color 0.25s, background 0.25s; }
.quote-form input:focus, .quote-form select:focus { outline: none; border-color: var(--green-500); background: #fff; }
.quote-form .btn { justify-content: center; width: 100%; }
.quote-form small { color: var(--ink-soft); font-size: 0.78rem; text-align: center; }

/* ---------- refinamiento global ---------- */
::selection { background: var(--green-300); color: var(--green-900); }
:focus-visible { outline: 3px solid var(--green-500); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--green-600) var(--green-50); }
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--green-50); }
body::-webkit-scrollbar-thumb { background: var(--green-600); border-radius: 100px; border: 3px solid var(--green-50); }
@media (max-width: 980px) { .brand-logo { height: 46px; } }
@media (max-width: 420px) { .brand-logo { height: 40px; } }
