/* ────────────────────────────────────────────────────
   OnlyBordados Medellín — Estilos globales
   Compartido entre todas las páginas
──────────────────────────────────────────────────── */

/* ── ROOT VARIABLES ── */
@font-face {
    font-family: 'Outfit';
    src: url('/assets/fonts/outfit-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}
@font-face {
    font-family: 'Playfair Display';
    src: url('/assets/fonts/playfair-display-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
}

:root {
    --c-teal: #166B6C; --c-teal-dark: #0E5354; --c-teal-light: rgba(22,107,108,0.08);
    --c-lime: #527A24; --c-lime-dark: #3F611B;
    --c-white: #FFFFFF; --c-bg: #F5F5F5;
    --c-title: #1A1A1A; --c-body: #555555;
    --c-border: #E8E8E8; --c-shadow: rgba(0,0,0,0.07);
}

/* ── BASE ── */
body { background-color: var(--c-white); overflow-x: hidden; color: var(--c-body); font-family: 'Outfit', Arial, sans-serif; line-height: 1.7; }
h1,h2,h3,h4,h5,h6 { color: var(--c-title); }
[hidden] { display:none !important; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--c-bg); }
::-webkit-scrollbar-thumb { background: var(--c-teal); border-radius: 3px; }
html { scroll-behavior: smooth; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0; }
::selection { background: rgba(43,175,176,0.18); color: var(--c-title); }
.footer-logo { height: 52px; width: auto; }
.counter-value { font-variant-numeric: tabular-nums; }

/* ── DIVIDER LINES ── */
.gold-line { height: 2px; background: linear-gradient(90deg, transparent, var(--c-teal), transparent); border-radius: 2px; }
.gold-line-left { height: 2px; background: linear-gradient(90deg, var(--c-teal), transparent); border-radius: 2px; }

/* ── NAVBAR ── */
.nav-logo-img { height: 48px; width: auto; object-fit: contain; transition: all 0.3s ease; }
.navbar.scrolled .nav-logo-img { height: 40px; }
@media (max-width: 640px) { .nav-logo-img { height: 40px; } .navbar.scrolled .nav-logo-img { height: 36px; } }
.navbar { transition: all 0.35s ease; background: var(--c-white); border-bottom: 1px solid var(--c-border); }
.navbar.scrolled {
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    padding-top: 0.5rem; padding-bottom: 0.5rem;
}
.nav-link { color: #1A1A1A; transition: color 0.2s; font-size: 0.875rem; font-weight: 500; font-family: 'Outfit', Arial, sans-serif; }
.nav-link:hover { color: var(--c-teal); }
.nav-link.active { color: var(--c-teal); font-weight: 600; }
.footer-link { color: #555555; transition: color 0.2s ease; text-decoration: none; }
.footer-link:hover { color: var(--c-teal); }
.site-legal-bar { max-width:80rem; margin:1.25rem auto 0; padding-top:1rem; border-top:1px solid var(--c-border); display:flex; justify-content:center; flex-wrap:wrap; gap:.75rem 1.25rem; }
.site-legal-bar a { color:#595959; font-size:.75rem; text-underline-offset:3px; }
.site-legal-bar a:hover { color:var(--c-teal); }

/* ── MOBILE MENU ── */
.mobile-menu { transform: translateX(100%); visibility:hidden; transition:transform 0.4s cubic-bezier(0.23,1,0.32,1), visibility 0s linear 0.4s; }
.mobile-menu.open { transform:translateX(0); visibility:visible; transition-delay:0s; }
.menu-overlay { position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity 0.35s ease; }
.menu-overlay.active { opacity: 1; pointer-events: auto; }
.glass-strong { background: #ffffff; border-left: 1px solid var(--c-border); box-shadow: -8px 0 40px rgba(0,0,0,0.08); }

/* ── HERO ── */
#inicio { background:#F8FAF8; border-bottom:1px solid rgba(22,107,108,.09); }
.home-hero { min-height:100dvh; display:flex; align-items:center; padding:7.75rem 1.5rem 4.5rem; overflow:hidden; }
.home-hero-shell { position:relative; z-index:1; width:100%; max-width:1280px; margin:0 auto; display:grid; grid-template-columns:minmax(0, .92fr) minmax(28rem, 1.08fr); align-items:center; gap:clamp(3rem, 5.5vw, 5rem); }
.home-hero-copy { max-width:39rem; }
.home-hero-kicker { display:flex; align-items:center; gap:.65rem; margin:0; color:#3F5C5C; font-size:.76rem; font-weight:600; letter-spacing:.04em; }
.home-hero-kicker span { width:1.8rem; height:1px; flex:0 0 auto; background:var(--c-teal); }
.home-hero-copy h1 { margin:1.45rem 0 1.35rem; font-family:'Outfit', Arial, sans-serif; }
.home-hero-brand, .home-hero-promise { display:block; text-wrap:balance; }
.home-hero-brand { color:var(--c-title); font-size:clamp(3.35rem, 4.6vw, 4.7rem); font-weight:700; line-height:.92; letter-spacing:-.06em; }
.home-hero-brand span { color:var(--c-teal); }
.home-hero-promise { max-width:14ch; margin-top:.85rem; color:var(--c-title); font-size:clamp(2.05rem, 3vw, 3.05rem); font-weight:600; line-height:1.04; letter-spacing:-.045em; }
.home-hero-lead { max-width:37rem; margin:0; color:#444; font-size:clamp(1rem, 1.4vw, 1.08rem); line-height:1.7; text-wrap:pretty; }
.home-hero-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1.25rem; margin-top:2rem; }
.home-hero-actions .cta-btn { min-height:3.2rem; padding:.9rem 1.65rem; border-radius:999px; font-size:.76rem; }
.home-text-link { color:var(--c-teal); font-size:.87rem; font-weight:700; text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:5px; transition:color .2s ease; }
.home-text-link:hover { color:var(--c-teal-dark); }
.home-hero-note { margin:1rem 0 0; color:#595959; font-size:.78rem; }
.home-proof-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:0; max-width:35rem; margin:2.2rem 0 0; padding:1.3rem 0 0; border-top:1px solid var(--c-border); }
.home-proof-grid div { padding:0 1.25rem; border-left:1px solid var(--c-border); }
.home-proof-grid div:first-child { padding-left:0; border-left:0; }
.home-proof-grid dt { color:var(--c-title); font-family:'Outfit', Arial, sans-serif; font-size:1.4rem; font-weight:700; line-height:1; font-variant-numeric:tabular-nums; }
.home-proof-grid dd { margin:.4rem 0 0; color:#595959; font-size:.66rem; line-height:1.3; text-transform:uppercase; letter-spacing:.08em; }
.home-hero-visual { width:100%; display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:.85rem; }
.home-gallery-heading { grid-column:1 / -1; display:flex; justify-content:space-between; align-items:center; padding:0 .15rem; color:#536565; font-size:.67rem; font-weight:600; letter-spacing:.11em; text-transform:uppercase; }
.home-gallery-card { position:relative; min-width:0; margin:0; overflow:hidden; background:#DFE8E5; isolation:isolate; }
.home-gallery-card::after { content:''; position:absolute; inset:0; z-index:1; pointer-events:none; box-shadow:inset 0 0 0 1px rgba(255,255,255,.24); }
.home-gallery-card img { width:100%; height:100%; object-fit:cover; transition:transform .55s cubic-bezier(.23,1,.32,1); }
.home-gallery-card:hover img { transform:scale(1.025); }
.home-gallery-card figcaption { position:absolute; inset:auto 0 0; z-index:2; display:flex; align-items:flex-end; justify-content:space-between; gap:1rem; padding:2.7rem 1.1rem .9rem; color:#fff; font-size:.67rem; line-height:1.3; background:linear-gradient(transparent, rgba(11,25,25,.78)); }
.home-gallery-card figcaption strong { font-size:.76rem; font-weight:600; }
.home-gallery-card figcaption span { color:rgba(255,255,255,.78); text-align:right; }
.home-gallery-feature { grid-column:1 / -1; min-height:18.5rem; border-radius:1.35rem .45rem .45rem .45rem; }
.home-gallery-feature img { object-position:center 54%; }
.home-gallery-detail { min-height:10.75rem; border-radius:.45rem; }
.home-gallery-detail:last-child { border-radius:.45rem .45rem 1.35rem .45rem; }
.home-gallery-feature + .home-gallery-detail img { object-position:center 32%; }
@media (max-width:960px) {
    .home-hero { min-height:auto; padding-top:7.5rem; }
    .home-hero-shell { grid-template-columns:1fr; }
    .home-hero-copy { max-width:46rem; }
    .home-hero-visual { max-width:46rem; }
}
@media (max-width:560px) {
    .home-hero { padding:6.75rem 1rem 3.75rem; }
    .home-hero-kicker { font-size:.7rem; }
    .home-hero-copy h1 { margin-top:1.25rem; }
    .home-hero-brand { font-size:clamp(2.7rem, 13vw, 3.55rem); }
    .home-hero-promise { max-width:15ch; margin-top:.7rem; font-size:clamp(1.85rem, 8.5vw, 2.35rem); }
    .home-hero-actions { align-items:stretch; flex-direction:column; }
    .home-hero-actions .cta-btn { width:100%; }
    .home-text-link { align-self:flex-start; }
    .home-proof-grid div { padding:0 .75rem; }
    .home-proof-grid dt { font-size:1.25rem; }
    .home-proof-grid dd { font-size:.6rem; letter-spacing:.05em; }
    .home-hero-visual { gap:.55rem; }
    .home-gallery-heading { margin-bottom:.15rem; font-size:.59rem; }
    .home-gallery-feature { min-height:13.5rem; border-radius:1rem .35rem .35rem .35rem; }
    .home-gallery-detail { min-height:8.5rem; border-radius:.35rem; }
    .home-gallery-detail:last-child { border-radius:.35rem .35rem 1rem .35rem; }
    .home-gallery-card figcaption { display:block; padding:2.4rem .75rem .65rem; }
    .home-gallery-card figcaption strong { display:block; font-size:.68rem; }
    .home-gallery-card figcaption span { display:none; }
}
.hero-logo-img { max-width: 380px; width: 85%; height: auto; filter: drop-shadow(0 12px 40px rgba(43,175,176,0.15)) drop-shadow(0 4px 12px rgba(0,0,0,0.07)); }
@media (min-width: 768px) { .hero-logo-img { max-width: 440px; } }
@media (min-width: 1024px) { .hero-logo-img { max-width: 500px; } }
@keyframes heroFloat { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }
.hero-logo-float { animation:none; }

/* ── HERO PATTERN ── */
.hero-pattern { position:absolute; top:0; left:0; width:100%; height:100%; opacity:0.025; pointer-events:none;
    background-image: repeating-linear-gradient(0deg,transparent,transparent 48px,#2BAFB0 48px,#2BAFB0 49px), repeating-linear-gradient(90deg,transparent,transparent 48px,#2BAFB0 48px,#2BAFB0 49px); }

/* ── STITCH ── */
.stitch-line { stroke-dasharray:12, 8; animation:none; }
@keyframes stitch { to { stroke-dashoffset: -40; } }

/* ── PARTICLES ── */
.particle { display:none; }
.particle:nth-child(1){background:#2BAFB0;} .particle:nth-child(2){background:#8DC63F;}
.particle:nth-child(3){background:#2BAFB0;} .particle:nth-child(4){background:#8DC63F;}
@keyframes float-particle { 0%,100%{opacity:0;transform:translateY(0) scale(0);} 50%{opacity:0.45;transform:translateY(-70px) scale(1);} }

/* ── GLASS (section cards) ── */
.glass { background: var(--c-white); border: 1px solid var(--c-border); box-shadow: 0 4px 24px rgba(43,175,176,0.06), 0 1px 3px rgba(30,138,139,0.04); border-radius: 16px; }
.glass-dark { background: var(--c-title); border: 1px solid rgba(43,175,176,0.2); box-shadow: 0 20px 60px rgba(0,0,0,0.2); }

/* ── BUTTONS ── */
.cta-btn { position:relative; overflow:hidden; display:inline-flex; align-items:center; justify-content:center; font-weight:600; font-family:'Outfit',Arial,sans-serif; text-transform:uppercase; letter-spacing:0.12em; transition:all 0.3s cubic-bezier(0.23,1,0.32,1); cursor:pointer; }
.cta-btn::before { content:''; position:absolute; top:0; left:-110%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.25),transparent); transition:left 0.5s; }
.cta-btn:hover::before { left:110%; }
.cta-btn:active { transform: translateY(1px) scale(0.985); transition: transform 0.1s ease-out; }

.btn-primary { background:var(--c-teal) !important; color:#fff !important; border:2px solid var(--c-teal) !important; box-shadow:0 4px 16px rgba(22,107,108,0.2); }
.btn-primary:hover { background:var(--c-teal-dark) !important; border-color:var(--c-teal-dark) !important; box-shadow:0 8px 24px rgba(14,83,84,0.24) !important; transform:translateY(-2px); }

.btn-outline { background:transparent !important; color:var(--c-teal) !important; border:2px solid var(--c-teal) !important; }
.btn-outline:hover { background:var(--c-teal) !important; color:#fff !important; transform:translateY(-2px); box-shadow:0 8px 24px rgba(43,175,176,0.28) !important; }

/* ── SECTION BADGE ── */
.section-badge { display:inline-flex; align-items:center; gap:8px; background:rgba(43,175,176,0.08); border:1px solid rgba(43,175,176,0.22); border-radius:100px; padding:5px 16px; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--c-teal); font-weight:600; font-family:'Outfit',Arial,sans-serif; }
.section-badge-gold { display:inline-flex; align-items:center; gap:8px; background:rgba(141,198,63,0.08); border:1px solid rgba(141,198,63,0.25); border-radius:100px; padding:5px 16px; font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:var(--c-lime-dark); font-weight:600; font-family:'Outfit',Arial,sans-serif; }

/* ── GRADIENT TEXT ── */
.text-gradient-vibrant, .text-gradient-gold { color:var(--c-teal); -webkit-text-fill-color:currentColor; }

/* ── CARDS / LEVITATE ── */
.levitate { transition:transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s cubic-bezier(0.23,1,0.32,1); }
.levitate:hover { transform:translateY(-8px); box-shadow:0 20px 48px rgba(43,175,176,0.12), 0 8px 16px rgba(0,0,0,0.07); }
.service-icon { transition:all 0.4s cubic-bezier(0.23,1,0.32,1); }
.levitate:hover .service-icon { transform:scale(1.06); }
.service-summary-grid { display:grid; grid-template-columns:repeat(12, minmax(0,1fr)); gap:1.5rem; }
.service-summary-grid > a { grid-column:span 6; text-align:left; }
.service-summary-grid > a:nth-child(4n + 1), .service-summary-grid > a:nth-child(4n) { grid-column:span 7; }
.service-summary-grid > a:nth-child(4n + 2), .service-summary-grid > a:nth-child(4n + 3) { grid-column:span 5; }
@media (max-width:767px) { .service-summary-grid { grid-template-columns:1fr; } .service-summary-grid > a { grid-column:1 !important; } }
.service-guide-section { position:relative; z-index:10; padding:4.5rem 1.5rem; background:#fff; border-bottom:1px solid var(--c-border); }
.service-guide-shell { max-width:72rem; margin:0 auto; }
.service-guide-intro { max-width:45rem; margin:0 auto 2.25rem; text-align:center; }
.service-guide-intro h2 { margin:0 0 .75rem; font-family:'Playfair Display', Georgia, serif; font-size:clamp(1.8rem, 3vw, 2.55rem); font-weight:700; line-height:1.15; }
.service-guide-intro p { margin:0; color:#555; line-height:1.7; }
.service-facts { display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); margin:0 0 2rem; border:1px solid var(--c-border); border-radius:1.1rem; overflow:hidden; background:#F8FAF8; }
.service-facts div { padding:1.25rem; border-left:1px solid var(--c-border); }
.service-facts div:first-child { border-left:0; }
.service-facts dt { color:var(--c-title); font-size:.76rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.service-facts dd { margin:.35rem 0 0; color:#555; font-size:.78rem; line-height:1.45; }
.service-comparison-scroll { overflow-x:auto; border:1px solid var(--c-border); border-radius:1.1rem; background:#fff; }
.service-comparison { width:100%; min-width:48rem; border-collapse:collapse; text-align:left; }
.service-comparison th { padding:1rem 1.1rem; color:#3F5C5C; background:#F1F6F4; font-size:.68rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; }
.service-comparison td { padding:1rem 1.1rem; color:#555; font-size:.82rem; line-height:1.45; border-top:1px solid var(--c-border); }
.service-comparison td:first-child { color:var(--c-title); font-weight:700; }
.service-comparison a { color:var(--c-teal); font-weight:700; text-decoration:underline; text-underline-offset:3px; }
.service-scroll-hint { display:none; }
.service-area-note { max-width:48rem; margin:1.25rem auto 0; color:#555; font-size:.83rem; line-height:1.65; text-align:center; }
@media (max-width:767px) {
    .service-guide-section { padding:3.5rem 1rem; }
    .service-facts { grid-template-columns:repeat(2, 1fr); }
    .service-facts div { border-top:1px solid var(--c-border); }
    .service-facts div:nth-child(-n+2) { border-top:0; }
    .service-facts div:nth-child(odd) { border-left:0; }
    .service-scroll-hint { display:block; margin:0 0 .55rem; color:#666; font-size:.7rem; text-align:right; }
}

/* ── STAT CARDS ── */
.stat-card { background:var(--c-white); border:1px solid var(--c-border); border-radius:16px; box-shadow: 0 2px 14px rgba(43,175,176,0.05), 0 1px 2px rgba(0,0,0,0.03); transition:all 0.35s cubic-bezier(0.23,1,0.32,1); }
.stat-card:hover { transform:translateY(-6px); box-shadow: 0 18px 40px rgba(43,175,176,0.14), 0 4px 10px rgba(30,138,139,0.06); border-color:rgba(43,175,176,0.3); }

/* ── SERVICE CTA ── */
.service-cta { transition:opacity 0.35s ease, transform 0.35s ease; opacity:0; transform:translateY(8px); }
@media (max-width:768px) { .service-cta { opacity:1 !important; transform:none !important; } }
.levitate:hover .service-cta { opacity:1; transform:translateY(0); }

/* ── SHIMMER ── */
.shimmer { position:relative; overflow:hidden; }
.shimmer::after { content:''; position:absolute; top:0; left:-110%; width:100%; height:100%; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.35),transparent); animation:shimmer 3s ease-in-out infinite; }
@keyframes shimmer { 0%,100%{left:-110%;} 50%{left:110%;} }

/* ── PULSE ── */
.pulse-teal, .pulse-gold { animation:none; }
@keyframes pulseTeal { 0%,100%{box-shadow:0 0 0 0 rgba(43,175,176,0.38);} 50%{box-shadow:0 0 0 14px rgba(43,175,176,0);} }

/* ── CLIENTS CAROUSEL ── */
.clients-track { display:flex; gap:24px; width:auto; align-items:center; flex-wrap:wrap; justify-content:center; }
.clients-track-left, .clients-track-right { animation:none; }
.clients-track:hover { animation-play-state:paused; }
@keyframes scroll-clients-left { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }
@keyframes scroll-clients-right { 0%{transform:translateX(-50%);} 100%{transform:translateX(0);} }

.client-logo-item { flex-shrink:0; width:140px; height:90px; display:flex; align-items:center; justify-content:center; padding:12px 16px; background:var(--c-white); border:1px solid var(--c-border); border-radius:16px; box-shadow: 0 2px 10px rgba(43,175,176,0.04); transition:all 0.35s cubic-bezier(0.23,1,0.32,1); }
.client-logo-item:hover { transform:translateY(-4px); box-shadow: 0 14px 30px rgba(43,175,176,0.14); border-color:rgba(43,175,176,0.3); }
.client-logo-item img { max-width:100%; max-height:100%; object-fit:contain; filter:grayscale(50%) opacity(0.7); transition:all 0.35s ease; }
.client-logo-item:hover img { filter:grayscale(0%) opacity(1); }
@media (max-width:768px) { .client-logo-item{width:120px;height:75px;padding:10px 14px;} .clients-track{gap:24px;} }

/* ── PORTFOLIO CAROUSEL + GRID ── */
.carousel-track { display:flex; gap:20px; animation:scroll-carousel 90s linear infinite; width:max-content; }
.carousel-track:hover { animation-play-state:paused; }
@keyframes scroll-carousel { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

.carousel-item { appearance:none; padding:0; border:0; text-align:left; flex-shrink:0; width:300px; height:260px; border-radius:16px; overflow:hidden; position:relative; transition:all 0.4s cubic-bezier(0.23,1,0.32,1); cursor:pointer; box-shadow:0 4px 16px rgba(0,0,0,0.1); background:linear-gradient(135deg, rgba(43,175,176,0.08), rgba(141,198,63,0.05)); }
.carousel-item:hover { transform:translateY(-10px) scale(1.02); box-shadow:0 24px 48px rgba(0,0,0,0.15), 0 0 0 2px rgba(43,175,176,0.35); }
.carousel-item:active { transform: translateY(-6px) scale(0.99); }
.carousel-item img { width:100%; height:100%; object-fit:cover; transition:transform 0.5s cubic-bezier(0.23,1,0.32,1); }
.carousel-item:hover img { transform:scale(1.08); }
.carousel-item .overlay { position:absolute; bottom:0; left:0; right:0; padding:16px 20px; background:linear-gradient(transparent,rgba(0,0,0,0.75)); transform:translateY(100%); transition:transform 0.35s cubic-bezier(0.23,1,0.32,1); }
.carousel-item .overlay p { color:#fff; }
.carousel-item:hover .overlay { transform:translateY(0); }
.carousel-item:focus-visible .overlay { transform:translateY(0); }
@media (max-width:768px) { .carousel-item{width:250px;height:220px;} }
@media (hover:none) { .carousel-item .overlay { transform:translateY(0); } }

/* Portafolio como grid fijo (en página /portafolio.html) */
.portfolio-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.portfolio-grid .carousel-item { width: 100%; height: 260px; }

/* ── LIGHTBOX ── */
.lightbox { position:fixed; inset:0; z-index:100; background:rgba(10,10,10,0.95); backdrop-filter:blur(14px); display:none; align-items:center; justify-content:center; opacity:0; transition:opacity 0.3s ease; }
.lightbox.active { display:flex; opacity:1; }
.lightbox img { max-width:90vw; max-height:85vh; border-radius:16px; box-shadow:0 20px 80px rgba(0,0,0,0.6); object-fit:contain; }
.lightbox-close { position:absolute; top:20px; right:24px; width:44px; height:44px; border-radius:50%; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:white; font-size:20px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.3s; }
.lightbox-close:hover { background:rgba(43,175,176,0.45); }
.lightbox-nav { position:absolute; top:50%; transform:translateY(-50%); width:52px; height:52px; border-radius:50%; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); color:white; font-size:24px; display:flex; align-items:center; justify-content:center; cursor:pointer; transition:all 0.3s; }
.lightbox-nav:hover { background:rgba(43,175,176,0.45); }
.lightbox-prev{left:20px;} .lightbox-next{right:20px;}
.lightbox-caption { position:absolute; bottom:24px; left:50%; transform:translateX(-50%); color:rgba(255,255,255,0.7); font-size:13px; letter-spacing:0.12em; text-transform:uppercase; }

/* ── FILTER TABS ── */
.filter-tab { padding:8px 20px; border-radius:100px; font-size:12px; letter-spacing:0.04em; cursor:pointer; transition:all 0.25s ease; border:1.5px solid var(--c-border); color:#6B7280; background:var(--c-white); font-family:'Outfit',sans-serif; font-weight:500; }
.filter-tab.active { background:var(--c-teal); border-color:var(--c-teal); color:#fff; font-weight:600; box-shadow:0 4px 12px rgba(43,175,176,0.28); }
.filter-tab:hover:not(.active) { color:var(--c-teal); border-color:rgba(43,175,176,0.4); }
.filter-tab:active { transform: scale(0.96); }

/* ── TECH TAGS ── */
.tech-tag { background:rgba(43,175,176,0.06); border:1px solid rgba(43,175,176,0.18); border-radius:100px; padding:8px 20px; font-size:12px; letter-spacing:0.04em; color:var(--c-teal); transition:all 0.25s ease; display:inline-block; font-weight:500; font-family:'Outfit',sans-serif; }
.tech-tag:hover { background:rgba(43,175,176,0.12); border-color:rgba(43,175,176,0.4); }

/* ── INTRO CINEMATOGRÁFICO ── */
#intro-screen { position:fixed; inset:0; z-index:10000; background:#ffffff; display:flex; align-items:center; justify-content:center; overflow:hidden; transition:opacity 1.1s cubic-bezier(0.4,0,0.2,1); }
#intro-screen::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse 80% 80% at 50% 50%, rgba(43,175,176,0.07) 0%, transparent 65%), radial-gradient(ellipse 60% 60% at 10% 90%, rgba(141,198,63,0.05) 0%, transparent 50%), radial-gradient(ellipse 50% 50% at 90% 10%, rgba(43,175,176,0.04) 0%, transparent 50%); pointer-events:none; }
#intro-screen.outro { opacity:0; pointer-events:none; }
.intro-inner { display:flex; flex-direction:column; align-items:center; gap:22px; position:relative; z-index:1; }
#intro-logo { width:min(310px,74vw); height:auto; opacity:0; transform:scale(0.82) translateY(18px); animation:introLogo 1.3s cubic-bezier(0.22,1,0.36,1) 0.3s forwards; filter:drop-shadow(0 8px 32px rgba(43,175,176,0.2)) drop-shadow(0 2px 8px rgba(0,0,0,0.07)); }
@keyframes introLogo { to{opacity:1;transform:scale(1) translateY(0);} }
#intro-line { height:2px; background:linear-gradient(90deg,transparent,#2BAFB0 40%,#8DC63F 60%,transparent); width:0; border-radius:2px; animation:introLine 0.9s cubic-bezier(0.22,1,0.36,1) 1.35s forwards; }
@keyframes introLine { to{width:min(220px,58vw);} }
#intro-tagline { color:var(--c-teal); font-size:9px; letter-spacing:0.5em; text-transform:uppercase; font-family:'Outfit',sans-serif; font-weight:600; opacity:0; animation:introTagline 0.7s ease 2.0s forwards; }
@keyframes introTagline { from{opacity:0;letter-spacing:0.3em;} to{opacity:1;letter-spacing:0.5em;} }

/* ── TYPOGRAPHY ── */
.font-display { letter-spacing: -0.02em; }
h1.font-display, h2.font-display { line-height: 1.06; }

/* ── TRUST BAR ── */
.trust-divider { width: 1px; height: 22px; background: var(--c-border); }
.clients-cta-zone { padding-top: 2.5rem; }

/* ── SERVICE CARD FOOTER ── */
.service-meta { font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-teal); font-weight: 600; font-family: 'Outfit', sans-serif; margin-bottom: 0.75rem; }

/* ── FOCUS-VISIBLE (a11y) ── */
:focus:not(:focus-visible) { outline:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible, [role="button"]:focus-visible { outline:3px solid #0E6667; outline-offset:3px; border-radius:6px; }

/* ── TEXT-WRAP BALANCE ── */
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

/* ── TEXT JUSTIFICATION ── */
p.leading-relaxed {
    text-align: left;
    hyphens: none;
}
.text-center p.leading-relaxed,
[class*="text-center"] > p.leading-relaxed {
    text-align: center;
    hyphens: manual;
}

/* ── GRAIN OVERLAY ── */
.grain-overlay {
    display:none;
}
@media (prefers-reduced-motion: reduce) { .grain-overlay { display: none; } }

/* ── MOBILE VIEWPORT FIX (iOS Safari 100vh bug) ── */
@supports (height: 100dvh) { .hero-safe { min-height: 100dvh; } }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
    .carousel-track, .clients-track-left, .clients-track-right, .stitch-line, .hero-logo-float, .particle, .shimmer::after, .pulse-teal, .pulse-gold, .marquee-track { animation: none !important; }
}

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
    position: fixed; top: 0; left: 0; width: 0; height: 2px;
    background: linear-gradient(90deg, var(--c-teal), var(--c-lime));
    z-index: 9999; pointer-events: none;
    transition: width 0.08s linear;
    box-shadow: none;
}

/* ── KINETIC MARQUEE BAND ── */
.marquee-band {
    background: var(--c-title); color: #fff;
    padding: 18px 0; overflow: hidden;
    border-top: 1px solid rgba(43,175,176,0.25);
    border-bottom: 1px solid rgba(43,175,176,0.25);
    position: relative;
}
.marquee-track {
    display:flex; gap:32px; width:100%;
    animation:none; flex-wrap:wrap; justify-content:center;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
    display: inline-flex; align-items: center; gap: 20px;
    font-family: 'Outfit', sans-serif;
    font-size: 12px; letter-spacing: 0.32em;
    text-transform: uppercase; font-weight: 600;
    color: rgba(255,255,255,0.92);
    white-space: nowrap;
}
.marquee-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--c-lime); flex-shrink: 0;
    box-shadow:none;
}
@keyframes marquee-scroll { 0%{transform:translateX(0);} 100%{transform:translateX(-50%);} }

/* ── BENTO SERVICE CARDS ── */
.service-card-featured .service-icon { height: 15rem; }
@media (min-width: 1024px) {
    .service-card-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; text-align: left; padding: 2.5rem; }
    .service-card-featured .service-icon { height: 100%; min-height: 16rem; margin-bottom: 0; }
    .service-card-featured .gold-line { margin-left: 0; }
    .service-card-featured .service-cta { text-align: left; }
}

/* ── SPOTLIGHT CARDS ── */
.spotlight { position: relative; overflow: hidden; }
.spotlight::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(circle 240px at var(--mx, 50%) var(--my, 50%),
        rgba(43,175,176,0.14), rgba(141,198,63,0.06) 35%, transparent 65%);
    opacity: 0; transition: opacity 0.35s cubic-bezier(0.23,1,0.32,1);
    pointer-events: none; z-index: 0; border-radius: inherit;
}
.spotlight:hover::before { opacity: 1; }
.spotlight > * { position: relative; z-index: 1; }

/* ── EDITORIAL SECTION NUMBERS ── */
.section-num {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: 'Outfit', sans-serif;
    font-variant-numeric: tabular-nums;
    font-size: 11px; font-weight: 700; color: var(--c-teal);
    letter-spacing: 0.28em;
    vertical-align: middle;
}
.section-num::before {
    content: ''; display: inline-block;
    width: 20px; height: 1px; background: var(--c-teal);
    opacity: 0.55;
}
.section-number-row { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ── STITCH DIVIDER ── */
.stitch-divider { display: flex; justify-content: center; align-items: center; padding: 48px 6vw; }
.stitch-divider svg { width: 100%; max-width: 520px; height: 24px; display: block; }
.stitch-divider .stitch-path { stroke:var(--c-teal); stroke-width:1.5; fill:none; stroke-dasharray:10, 7; opacity:0.45; animation:none; stroke-linecap:round; }
.stitch-divider .stitch-dot { fill: var(--c-lime); opacity: 0.75; }
@keyframes stitch-draw { to { stroke-dashoffset: -34; } }

/* ── BACK TO TOP BUTTON ── */
.back-to-top {
    position: fixed; bottom: 6.5rem; right: 1.5rem; z-index: 49;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--c-white); color: var(--c-teal);
    border: 1.5px solid rgba(43,175,176,0.3);
    box-shadow: 0 4px 14px rgba(43,175,176,0.15);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none; transform: translateY(8px);
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    cursor: pointer;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top:hover { background: var(--c-teal); color: var(--c-white); border-color: var(--c-teal); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(43,175,176,0.3); }
.back-to-top:active { transform: translateY(0) scale(0.96); }
@media (max-width: 640px) { .back-to-top { right: 1rem; bottom: 5.75rem; width: 40px; height: 40px; } }

/* ── INTRO SKIP BUTTON ── */
.intro-skip {
    position: absolute; bottom: 32px; right: 32px;
    background: transparent; border: 1px solid rgba(43,175,176,0.35);
    color: var(--c-teal); font-family: 'Outfit', sans-serif;
    font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
    font-weight: 600; padding: 8px 18px; border-radius: 100px;
    cursor: pointer; opacity: 0; animation: introSkipFade 0.6s ease 0.9s forwards;
    transition: background 0.25s ease, color 0.25s ease;
}
.intro-skip:hover { background: var(--c-teal); color: #fff; }
.intro-skip:focus-visible { outline: 2px solid var(--c-teal); outline-offset: 3px; }
@keyframes introSkipFade { to { opacity: 0.85; } }
@media (max-width: 640px) { .intro-skip { bottom: 24px; right: 24px; font-size: 10px; padding: 7px 14px; } }

/* ── SKIP-TO-CONTENT LINK (WCAG 2.4.1) ── */
.skip-link {
    position: absolute; top: -48px; left: 12px; z-index: 10001;
    background: var(--c-teal); color: #fff;
    padding: 10px 20px; border-radius: 0 0 8px 8px;
    font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
    letter-spacing: 0.04em; text-decoration: none;
    transition: top 0.2s ease;
}
.skip-link:focus { top: 0; outline: 2px solid var(--c-lime); outline-offset: 2px; }

/* ── STICKY MOBILE BOTTOM BAR ── */
.sticky-bar {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 48;
    background: #fff; border-top: 1px solid var(--c-border);
    box-shadow: 0 -4px 20px rgba(0,0,0,0.08);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    display: none;
    transform: translateY(100%); transition: transform 0.35s cubic-bezier(0.23,1,0.32,1);
}
.sticky-bar.visible { transform: translateY(0); }
.sticky-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sticky-bar-text { font-size: 11px; color: #555; line-height: 1.3; flex: 1; }
.sticky-bar-text strong { display: block; color: #1A1A1A; font-size: 12px; }
.sticky-bar-cta {
    background:#087A3E; color:#fff !important;
    padding: 10px 18px; border-radius: 100px;
    font-size: 12px; font-weight: 700; white-space: nowrap;
    display: inline-flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 12px rgba(37,211,102,0.35);
}
@media (max-width: 768px) { .sticky-bar { display: block; } }

@media (max-width: 768px) {
    .sticky-bar.visible ~ .back-to-top { bottom: 5.5rem; }
    .whatsapp-float { display:none !important; }
}

/* ── FAQ ACCORDION ── */
.faq-item {
    background: #fff; border: 1px solid var(--c-border); border-radius: 16px;
    margin-bottom: 12px; overflow: hidden; transition: box-shadow 0.3s ease;
}
.faq-item:hover { box-shadow: 0 4px 18px rgba(43,175,176,0.08); }
.faq-item[open] { border-color: rgba(43,175,176,0.3); box-shadow: 0 4px 18px rgba(43,175,176,0.1); }
.faq-summary {
    padding: 20px 24px; cursor: pointer; list-style: none;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 15px; color: #1A1A1A;
}
.faq-summary::-webkit-details-marker { display: none; }
.faq-summary::after {
    content: '+'; font-size: 24px; color: var(--c-teal); font-weight: 300;
    transition: transform 0.3s ease; flex-shrink: 0;
}
.faq-item[open] .faq-summary::after { transform: rotate(45deg); }
.faq-body {
    padding: 0 24px 22px; font-size: 14px; line-height: 1.7; color: #555;
}

/* ── PROCESO PASOS ── */
.process-step { position: relative; text-align: center; padding: 24px 16px; }
.process-num {
    width: 56px; height: 56px; margin: 0 auto 16px;
    display: flex; align-items: center; justify-content: center;
    background:var(--c-teal);
    color: #fff; border-radius: 50%;
    font-family: 'Playfair Display', serif; font-size: 22px; font-weight: 700;
    box-shadow: 0 8px 20px rgba(43,175,176,0.25);
}
.process-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; color: #1A1A1A; }
.process-step p { font-size: 13px; color: #666; line-height: 1.6; }
@media (min-width: 768px) {
    .process-step:not(:last-child)::after {
        content: ''; position: absolute; top: 52px; right: -8%;
        width: 16%; height: 1px;
        background: repeating-linear-gradient(to right, var(--c-teal) 0, var(--c-teal) 4px, transparent 4px, transparent 8px);
    }
}

/* ── TESTIMONIOS ── */
.testimonial-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: 20px;
    padding: 28px; box-shadow: 0 4px 20px rgba(43,175,176,0.05);
    transition: transform 0.4s cubic-bezier(0.23,1,0.32,1), box-shadow 0.4s;
    position: relative;
}
.testimonial-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43,175,176,0.12); }
.testimonial-quote {
    font-size: 48px; line-height: 1; color: var(--c-teal); opacity: 0.2;
    font-family: 'Playfair Display', serif; position: absolute; top: 16px; right: 22px;
}
.testimonial-stars { color: #F5B800; font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.testimonial-body { font-size: 14px; line-height: 1.7; color: #444; margin-bottom: 18px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--c-border); }
.testimonial-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background:var(--c-teal);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-weight: 700; font-size: 16px; flex-shrink: 0;
}
.testimonial-meta strong { display: block; color: #1A1A1A; font-size: 13px; }
.testimonial-meta span { font-size:11px; color:#595959; text-transform:uppercase; letter-spacing:0.08em; }

/* ── CASOS DE ÉXITO ── */
.case-card {
    background: #fff; border: 1px solid var(--c-border); border-radius: 20px;
    padding: 32px; transition: all 0.4s cubic-bezier(0.23,1,0.32,1);
    box-shadow: 0 4px 20px rgba(43,175,176,0.05);
}
.case-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(43,175,176,0.12); border-color: rgba(43,175,176,0.3); }
.case-label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--c-teal); font-weight: 700; margin-bottom: 12px; }
.case-card h2, .case-card h3 { font-family:'Playfair Display', serif; font-size:22px; color:#1A1A1A; margin-bottom:14px; line-height:1.2; }
.case-card .case-meta { display: flex; gap: 20px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--c-border); }
.case-card .case-stat { flex: 1; }
.case-card .case-stat strong { display: block; font-family: 'Playfair Display', serif; font-size: 28px; color: var(--c-teal); line-height: 1; }
.case-card .case-stat span { font-size:10px; letter-spacing:0.1em; text-transform:uppercase; color:#595959; }
.case-card p { font-size: 13px; line-height: 1.65; color: #555; }
.case-card .case-link { display:inline-block; margin-top:1rem; color:var(--c-teal); font-size:.72rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; text-decoration:underline; text-underline-offset:4px; }

/* ── FIX: "Descubrir" opacity ── */
.hero-scroll-hint { color: var(--c-teal) !important; opacity: 0.75 !important; }

/* ── MAP EMBED ── */
.map-embed { border-radius: 16px; overflow: hidden; border: 1px solid var(--c-border); box-shadow: 0 4px 20px rgba(43,175,176,0.06); }
.map-embed iframe { display: block; width: 100%; height: 260px; border: 0; }

/* ── PAGE HEADER (páginas internas) ── */
.page-header {
    position: relative; padding: 140px 6vw 80px;
    background: linear-gradient(160deg, #f0fafa 0%, #ffffff 60%, #f5faf0 100%);
    overflow: hidden;
}
.page-header::before {
    content: ''; position: absolute; inset: 0; opacity: 0.025; pointer-events: none;
    background-image: repeating-linear-gradient(0deg,transparent,transparent 48px,#2BAFB0 48px,#2BAFB0 49px), repeating-linear-gradient(90deg,transparent,transparent 48px,#2BAFB0 48px,#2BAFB0 49px);
}
.page-header-inner { max-width: 960px; margin: 0 auto; text-align: center; position: relative; z-index: 1; }
.page-breadcrumb { font-size:11px; letter-spacing:0.18em; text-transform:uppercase; color:#595959; margin-bottom:16px; }
.page-breadcrumb a { color: var(--c-teal); text-decoration: none; }
.page-breadcrumb a:hover { text-decoration: underline; }

/* ── FORM (contacto) ── */
.contact-form { display: grid; gap: 18px; }
.form-field label { display: block; font-size: 12px; font-weight: 600; color: #1A1A1A; margin-bottom: 6px; letter-spacing: 0.04em; }
.form-field input, .form-field textarea, .form-field select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--c-border); border-radius: 12px;
    font-family: 'Outfit', sans-serif; font-size: 14px; color: #1A1A1A; background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
    border-color:var(--c-teal); box-shadow:0 0 0 3px rgba(22,107,108,0.16);
}
.form-field textarea { min-height: 120px; resize: vertical; }
.form-consent { display:grid; grid-template-columns:auto 1fr; align-items:start; gap:10px; }
.form-consent input { width:18px; height:18px; margin-top:3px; accent-color:var(--c-teal); }
.form-consent label { color:#444; font-size:12px; line-height:1.55; }
.form-consent a { color:var(--c-teal); font-weight:600; text-decoration:underline; text-underline-offset:2px; }

/* ── VIDEO BACKGROUND (page header con video de máquinas) ── */
.page-header-video {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.page-header-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}
.page-header-video-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(160deg, rgba(240,250,250,0.88) 0%, rgba(255,255,255,0.82) 55%, rgba(245,250,240,0.88) 100%),
        radial-gradient(ellipse at center, rgba(255,255,255,0.4), rgba(255,255,255,0.75));
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    pointer-events: none;
}
.page-header-video .page-header-inner {
    position: relative;
    z-index: 1;
}
/* Mobile: reducir peso — el poster se ve, pero video no se reproduce */
@media (max-width: 640px) {
    .page-header-video-bg { object-position: center; }
}
@media (prefers-reduced-motion: reduce) {
    .page-header-video-bg { display: none; }
    .page-header-video { background-image: url('../../img/maquina-bordadora.jpg'); background-size: cover; background-position: center; }
    .page-header-video .page-header-video-overlay { background: linear-gradient(160deg, rgba(240,250,250,0.92) 0%, rgba(255,255,255,0.9) 55%, rgba(245,250,240,0.92) 100%); }
}
