/* =========================================================
   FORROS RH — Design System
   Modern, elegant, responsive
   ========================================================= */
.nav-links a,
.dropdown-btn{
text-decoration:none;
border:none;
background:none;
font-size:15px;
color:#333;
cursor:pointer;
position:relative;
}

.nav-links a::after,
.dropdown-btn::after{
content:"";
position:absolute;
bottom:-6px;
left:0;
width:0%;
height:2px;
background:#f97316;
transition:.3s;
}

.nav-links a:hover::after,
.dropdown-btn:hover::after{
width:100%;
}

/* ---------- LOADER INICIAL (preload) ---------- */
body.frh-loading { overflow: hidden; }

.frh-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(120% 120% at 50% 0%, #1a1a1a 0%, #0a0a0a 60%, #000 100%);
    overflow: hidden;
    transition: opacity .55s ease, visibility .55s ease;
}
.frh-loader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* DROPDOWN */
.dropdown{
position:relative;
}

.dropdown-menu{
position:absolute;
top:120%;
left:0;
background:#fff;
min-width:240px;
border-radius:14px;
box-shadow:0 15px 40px rgba(0,0,0,.08);
padding:10px;
opacity:0;
visibility:hidden;
transform:translateY(15px);
transition:.35s;
}

.dropdown:hover .dropdown-menu{
opacity:1;
visibility:visible;
transform:translateY(0);
}

.dropdown-menu a{
display:flex;
gap:10px;
padding:12px;
border-radius:10px;
}

.dropdown-menu a:hover{
background:#f6f6f6;
transform:translateX(5px);
}

/* Manchas decorativas de fondo */
.frh-loader__bg { position: absolute; inset: 0; overflow: hidden; }
.frh-loader__shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.45;
    will-change: transform;
}
.frh-loader__shape--1 {
    width: 360px; height: 360px;
    background: #e63946;
    top: -100px; left: -80px;
    animation: frhFloat 9s ease-in-out infinite;
}
.frh-loader__shape--2 {
    width: 280px; height: 280px;
    background: #c1121f;
    bottom: -90px; right: -60px;
    animation: frhFloat 11s ease-in-out infinite reverse;
}
.frh-loader__shape--3 {
    width: 220px; height: 220px;
    background: #ff6b6b;
    top: 50%; left: 50%; margin: -110px 0 0 -110px;
    opacity: 0.18;
    animation: frhFloat 13s ease-in-out infinite;
}
@keyframes frhFloat {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(40px,-30px) scale(1.1); }
}

.frh-loader__center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 24px;
    text-align: center;
    animation: frhEnter .6s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes frhEnter {
    from { opacity: 0; transform: translateY(14px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

/* Anillo + logo */
.frh-loader__ring {
    position: relative;
    width: 170px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Halo radial detrás del logo */
.frh-loader__ring::before {
    content: '';
    position: absolute;
    inset: 14px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(230,57,70,0.35) 0%, rgba(230,57,70,0) 70%);
    filter: blur(8px);
    animation: frhHaloPulse 2.4s ease-in-out infinite;
}
@keyframes frhHaloPulse {
    0%,100% { opacity: 0.6; transform: scale(0.95); }
    50%     { opacity: 1;   transform: scale(1.1); }
}
.frh-loader__ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.frh-loader__ring-track {
    fill: none;
    stroke: rgba(255,255,255,0.08);
    stroke-width: 4;
}
.frh-loader__ring-fill {
    fill: none;
    stroke: #e63946;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 339.292;
    stroke-dashoffset: 339.292;
    animation: frhRingSpin 1.6s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(230,57,70,0.6));
}
@keyframes frhRingSpin {
    0%   { stroke-dashoffset: 339.292; transform: rotate(0deg); }
    50%  { stroke-dashoffset: 84.823; }
    100% { stroke-dashoffset: 339.292; transform: rotate(360deg); }
}
.frh-loader__ring-svg { animation: frhRingRotate 3s linear infinite; }
@keyframes frhRingRotate { to { transform: rotate(270deg); } }

.frh-loader__logo {
    position: relative;
    z-index: 2;
    width: 118px;
    height: 118px;
    object-fit: contain;
    filter: drop-shadow(0 4px 18px rgba(230,57,70,0.7))
            drop-shadow(0 0 22px rgba(255,255,255,0.15));
    animation: frhLogoPulse 2.2s ease-in-out infinite;
}
@keyframes frhLogoPulse {
    0%,100% { transform: scale(1); }
    50%     { transform: scale(1.06); }
}

/* Texto */
.frh-loader__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
}
.frh-loader__brand {
    font-family: 'Bebas Neue', system-ui, sans-serif;
    font-size: 2.1rem;
    letter-spacing: 0.18em;
    color: #fff;
    font-weight: 400;
    line-height: 1;
}
.frh-loader__brand em {
    font-style: normal;
    color: #e63946;
}
.frh-loader__sub {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 0.78rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.55);
}

/* Barra de progreso */
.frh-loader__bar {
    width: 220px;
    max-width: 60vw;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    overflow: hidden;
    margin-top: 10px;
}
.frh-loader__bar span {
    display: block;
    width: 40%;
    height: 100%;
    background: linear-gradient(90deg, transparent, #e63946 40%, #ff6b6b 60%, transparent);
    border-radius: 999px;
    animation: frhBar 1.4s ease-in-out infinite;
}
@keyframes frhBar {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(280%); }
}

.frh-loader__hint {
    margin-top: 4px;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    animation: frhHintBlink 2s ease-in-out infinite;
}
@keyframes frhHintBlink {
    0%,100% { opacity: 0.45; }
    50%     { opacity: 0.85; }
}

@media (max-width: 480px) {
    .frh-loader__ring { width: 140px; height: 140px; }
    .frh-loader__logo { width: 96px; height: 96px; }
    .frh-loader__brand { font-size: 1.7rem; }
    .frh-loader__sub { font-size: 0.7rem; }
}

/* Respeta usuarios con prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .frh-loader__shape,
    .frh-loader__ring-svg,
    .frh-loader__ring-fill,
    .frh-loader__logo,
    .frh-loader__bar span,
    .frh-loader__hint { animation: none !important; }
}

:root {
    /* Brand */
    --rojo: #e63946;
    --rojo-2: #c1121f;
    --rojo-glow: rgba(230, 57, 70, 0.45);

    /* Neutrals (LIGHT THEME) */
    --bg: #ffffff;
    --bg-alt: #f6f6f7;
    --bg-soft: #fafafa;
    --ink: #0c0c0e;
    --ink-2: #1a1a1d;
    --ink-3: #2b2b30;
    --muted: #6b6b72;
    --line: rgba(12, 12, 14, 0.08);
    --line-strong: rgba(12, 12, 14, 0.14);

    /* Cards & navbar */
    --card-bg: #ffffff;
    --card-border: rgba(12, 12, 14, 0.08);
    --nav-scrolled-bg: rgba(255, 255, 255, 0.85);
    --nav-scrolled-text: var(--ink);
    --shadow-card: 0 12px 32px -8px rgba(12, 12, 14, 0.12), 0 4px 12px rgba(12, 12, 14, 0.06);

    /* Dark surface (used for section-dark, gallery, footer in BOTH themes) */
    --dark: #0a0a0c;
    --dark-2: #111114;
    --dark-3: #1a1a1f;
    --on-dark: #f5f5f7;
    --on-dark-muted: rgba(245, 245, 247, 0.65);
    --line-dark: rgba(255, 255, 255, 0.08);

    /* Effects */
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow: 0 12px 32px -8px rgba(12, 12, 14, 0.12), 0 4px 12px rgba(12, 12, 14, 0.06);
    --shadow-lg: 0 30px 60px -20px rgba(12, 12, 14, 0.25), 0 12px 24px -10px rgba(12, 12, 14, 0.1);
    --shadow-red: 0 18px 40px -12px var(--rojo-glow);

    /* Layout */
    --container: 1200px;
    --gutter: clamp(20px, 4vw, 32px);
    --section-y: clamp(72px, 9vw, 120px);

    /* Typography */
    --font-display: 'Bebas Neue', 'Inter', sans-serif;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* === DARK THEME OVERRIDES === */
:root[data-theme="dark"] {
    --bg: #0a0a0c;
    --bg-alt: #111114;
    --bg-soft: #15151a;
    --ink: #f5f5f7;
    --ink-2: #e7e7ec;
    --ink-3: #c8c8d0;
    --muted: #9a9aa3;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --card-bg: #16161b;
    --card-border: rgba(255, 255, 255, 0.06);
    --nav-scrolled-bg: rgba(14, 14, 16, 0.85);
    --nav-scrolled-text: #f5f5f7;
    --shadow-card: 0 12px 32px -8px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   RESET & BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    font-size: 16px;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    transition: background-color 0.4s var(--ease-soft), color 0.4s var(--ease-soft);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
::selection { background: var(--rojo); color: #fff; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.container-narrow { max-width: 880px !important; }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    margin: 0 0 0.5em;
    letter-spacing: 0.01em;
    line-height: 1.05;
    color: var(--ink);
    font-weight: 400;
}
h1 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0.02em; }
h3 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); letter-spacing: 0.04em; }
h4 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; font-family: var(--font-sans); }
p { margin: 0 0 1em; color: var(--muted); }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--rojo);
    margin-bottom: 14px;
}
.eyebrow::before {
    content: '';
    width: 28px; height: 1px;
    background: currentColor;
    display: inline-block;
}
.eyebrow.light { color: #ff8a92; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto clamp(40px, 5vw, 64px);
}
.section-head .eyebrow { justify-content: center; }
.section-head p { font-size: 1.05rem; }

/* =========================================================
   BUTTONS & LINKS
   ========================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 30px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.35s var(--ease-soft);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-soft);
}
.btn:hover::after { transform: translateX(100%); }

.btn-primary {
    background: linear-gradient(135deg, var(--rojo) 0%, var(--rojo-2) 100%);
    color: #fff;
    box-shadow: var(--shadow-red);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 50px -10px var(--rojo-glow);
}

.btn-ghost {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
    background: #fff;
    color: var(--ink);
    border-color: #fff;
}
.section .btn-ghost,
.section-light .btn-ghost {
    color: var(--ink);
    border-color: var(--line-strong);
}
.section .btn-ghost:hover,
.section-light .btn-ghost:hover {
    background: var(--ink);
    color: #fff;
    border-color: var(--ink);
}

.btn-block { width: 100%; }

.btn-nav {
    background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
    color: #fff !important;
    padding: 11px 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    box-shadow: 0 8px 22px -8px var(--rojo-glow);
    transition: all 0.3s var(--ease-soft);
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -8px var(--rojo-glow); }

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--rojo);
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    margin-top: 14px;
    transition: gap 0.25s var(--ease-soft);
}
.link-arrow:hover { gap: 14px; color: var(--rojo-2); }

/* =========================================================
   NAVBAR
   ========================================================= */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 18px 0;
    background: rgba(255, 255, 255, 0);
    transition: all 0.35s var(--ease-soft);
    border-bottom: 1px solid transparent;
}
.navbar.scrolled {
    background: var(--nav-scrolled-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 12px 0;
    border-bottom-color: var(--line);
    box-shadow: 0 1px 0 rgba(0,0,0,0.02), 0 12px 24px -16px rgba(0,0,0,0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    transition: color 0.3s ease;
}
.navbar.scrolled .brand { color: var(--nav-scrolled-text); }
.brand-logo {
    width: 44px; height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.6), 0 6px 18px rgba(0,0,0,0.25);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.35rem;
    letter-spacing: 0.08em;
}
.brand-name { white-space: nowrap; }
.brand-sub {
    font-size: 0.66rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.7;
    white-space: nowrap;
}
@media (max-width: 1380px) { .brand-sub { display: none; } }
@media (max-width: 1180px) { .brand-text { display: none; } }

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-links a {
    position: relative;
    padding: 8px 12px;
    font-size: 0.88rem;
    font-weight: 500;
    color: #fff;
    border-radius: 8px;
    transition: color 0.3s, background 0.3s;
    white-space: nowrap;
}
@media (max-width: 1280px) and (min-width: 981px) {
    .nav-links { gap: 2px; }
    .nav-links a { padding: 8px 9px; font-size: 0.82rem; }
}
.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--rojo);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease-soft);
}
.nav-links a:not(.btn-nav):hover::after { transform: scaleX(1); }
.navbar.scrolled .nav-links a:not(.btn-nav) { color: var(--nav-scrolled-text); }
.nav-links a:not(.btn-nav):hover { color: var(--rojo); }

/* === THEME TOGGLE === */
.theme-toggle {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.35s var(--ease-soft);
    flex-shrink: 0;
    margin-left: 6px;
}
.theme-toggle svg { width: 18px; height: 18px; transition: transform 0.4s var(--ease-bounce), opacity 0.3s ease; position: absolute; }
.theme-toggle .icon-sun { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-toggle .icon-moon { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-sun { opacity: 1; transform: rotate(0) scale(1); }
:root[data-theme="dark"] .theme-toggle .icon-moon { opacity: 0; transform: rotate(90deg) scale(0.6); }

.navbar.scrolled .theme-toggle {
    color: var(--nav-scrolled-text);
    background: var(--bg-alt);
    border-color: var(--line-strong);
}
.theme-toggle:hover {
    color: var(--rojo);
    border-color: var(--rojo);
    transform: rotate(15deg);
}

.nav-toggle {
    display: none;
    width: 44px; height: 44px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 10px;
}
.nav-toggle span {
    width: 22px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s var(--ease-soft);
}
.navbar.scrolled .nav-toggle span { background: var(--ink); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed;
        top: 0; right: -100%;
        width: min(85vw, 360px);
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 100px 28px 32px;
        background: var(--dark);
        box-shadow: -20px 0 50px rgba(0,0,0,0.4);
        transition: right 0.4s var(--ease-soft);
    }
    .nav-links.is-open { right: 0; }
    .nav-links a {
        color: #fff !important;
        padding: 16px 18px;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        border-radius: 0;
    }
    .nav-links a:not(.btn-nav)::after { display: none; }
    .nav-links a.btn-nav {
        margin-top: 20px;
        text-align: center;
        border-bottom: 0;
    }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
    padding: 140px 0 80px;
}
.hero-slider { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity 1.4s ease, transform 8s ease-out;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
      radial-gradient(ellipse at 20% 30%, rgba(230,57,70,0.18) 0%, transparent 55%),
      linear-gradient(105deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 45%, rgba(0,0,0,0.4) 100%);
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 140px;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, var(--bg));
    pointer-events: none;
}
.hero-content { position: relative; z-index: 3; max-width: 800px; }

.hero-eyebrow {
    display: inline-block;
    padding: 9px 22px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 0.74rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.95);
    margin-bottom: 28px;
    animation: fadeUp 0.8s 0.1s both var(--ease-soft);
}
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6.5vw, 5.4rem);
    line-height: 1;
    letter-spacing: 0.015em;
    color: #fff;
    margin: 0 0 24px;
    animation: fadeUp 0.9s 0.2s both var(--ease-soft);
}
.hero-title .accent {
    background: linear-gradient(120deg, #ff5d68, var(--rojo));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    position: relative;
}
.hero-text {
    font-size: clamp(1rem, 1.3vw, 1.18rem);
    color: rgba(255,255,255,0.82);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeUp 0.9s 0.35s both var(--ease-soft);
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 56px;
    animation: fadeUp 0.9s 0.5s both var(--ease-soft);
}
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding-top: 36px;
    border-top: 1px solid rgba(255,255,255,0.15);
    max-width: 560px;
    animation: fadeUp 0.9s 0.65s both var(--ease-soft);
}
.hero-stats > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-stats strong {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.6rem);
    color: var(--rojo);
    letter-spacing: 0.04em;
    line-height: 1;
}
.hero-stats span {
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.hero-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 4;
}
.hero-dots .dot {
    width: 32px; height: 4px;
    border-radius: 4px;
    background: rgba(255,255,255,0.3);
    transition: all 0.4s var(--ease-soft);
}
.hero-dots .dot.active {
    background: var(--rojo);
    width: 56px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translate3d(0, 24px, 0); }
    to { opacity: 1; transform: translate3d(0, 0, 0); }
}

/* =========================================================
   🎨 SECTIONS PRO
========================================================= */

.section{
    --section-y: clamp(70px, 8vw, 120px);

    padding-block: var(--section-y);
    position: relative;
    isolation: isolate;
}

/* ---------- LIGHT SECTION ---------- */
.section-light{
    background: var(--bg-alt);
}

/* ---------- DARK SECTION ---------- */
.section-dark{
    background: var(--dark);
    color: var(--on-dark);
    overflow: hidden;
}

/* Glow decorativo premium */
.section-dark::before{
    content:"";
    position:absolute;
    inset:auto -160px -160px auto;
    width:520px;
    height:520px;
    background:
        radial-gradient(
            circle,
            rgba(230,57,70,.18) 0%,
            rgba(230,57,70,.10) 35%,
            transparent 70%
        );
    filter: blur(40px);
    z-index:-1;
    pointer-events:none;
}

/* Glow secundario */
.section-dark::after{
    content:"";
    position:absolute;
    inset:-200px auto auto -200px;
    width:420px;
    height:420px;
    background:
        radial-gradient(
            circle,
            rgba(255,255,255,.08),
            transparent 70%
        );
    z-index:-1;
}

/* Tipografía dentro dark */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4{
    color:#fff;
}

.section-dark p{
    color:rgba(255,255,255,.75);
}

/* =========================================================
   GRID SYSTEM PRO
========================================================= */

.grid{
    display:grid;
    gap:clamp(20px,2.5vw,36px);
}

/* Auto responsive moderno */
.grid-auto{
    grid-template-columns:
        repeat(auto-fit, minmax(280px,1fr));
}

/* Layout clásicos */
.grid-2{
    grid-template-columns:repeat(2,1fr);
    align-items:center;
}

.grid-3{
    grid-template-columns:repeat(3,1fr);
}

.grid-4{
    grid-template-columns:repeat(4,1fr);
}

/* Mejor alineación */
.grid-center{
    align-items:center;
    justify-items:center;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:1024px){
    .grid-3{ grid-template-columns:repeat(2,1fr); }
    .grid-4{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:900px){
    .grid-2,
    .grid-3,
    .grid-4{
        grid-template-columns:1fr;
    }
}

/* =========================================================
   SECTION SPACING HELPERS
========================================================= */

.section-sm{ --section-y:60px; }
.section-lg{ --section-y:140px; }

/* =========================================================
   🛍 PRODUCT CARDS PRO
========================================================= */

.card-product{
    position:relative;
    background:var(--card-bg);
    border-radius:var(--radius-lg);
    overflow:hidden;
    border:1px solid var(--card-border);

    display:flex;
    flex-direction:column;

    box-shadow:var(--shadow-sm);
    transition:
        transform .45s var(--ease-soft),
        box-shadow .45s var(--ease-soft),
        border-color .45s ease,
        background .4s ease;

    isolation:isolate;
}

/* Glow sutil premium */
.card-product::before{
    content:"";
    position:absolute;
    inset:0;
    background:
        radial-gradient(
            600px circle at var(--x,50%) var(--y,50%),
            rgba(255,255,255,.06),
            transparent 40%
        );
    opacity:0;
    transition:opacity .4s ease;
    z-index:0;
}

.card-product:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
    border-color:transparent;
}

.card-product:hover::before{
    opacity:1;
}

/* =========================================================
   IMAGE AREA
========================================================= */

.card-img{
    aspect-ratio:4/3;
    background-size:cover;
    background-position:center;
    position:relative;
    overflow:hidden;

    transition:transform .7s var(--ease-soft);
}

/* Overlay cinematic */
.card-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:
        linear-gradient(
            180deg,
            transparent 45%,
            rgba(0,0,0,.35)
        );
    opacity:.7;
    transition:opacity .4s ease;
}

.card-product:hover .card-img{
    transform:scale(1.06);
}

.card-product:hover .card-img::after{
    opacity:.9;
}

/* =========================================================
   BODY
========================================================= */

.card-body{
    position:relative;
    z-index:2;

    padding:28px 28px 32px;
    flex:1;

    display:flex;
    flex-direction:column;
    gap:10px;
}

.card-body h3{
    font-size:1.05rem;
    font-weight:600;
    letter-spacing:.04em;
    text-transform:uppercase;
}

.card-body p{
    flex:1;
    font-size:.95rem;
    color:var(--text-muted);
    line-height:1.6;
}

/* =========================================================
   ACTION AREA (BOTONES)
========================================================= */

.card-actions{
    margin-top:18px;
    display:flex;
    gap:12px;
}

.card-actions .btn{
    flex:1;
}

/* =========================================================
   BADGE / TAG
========================================================= */

.card-badge{
    position:absolute;
    top:14px;
    left:14px;
    background:var(--primary);
    color:#fff;
    padding:6px 12px;
    font-size:.75rem;
    border-radius:999px;
    font-weight:600;
    letter-spacing:.04em;
    z-index:3;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px){
    .card-body{
        padding:22px;
    }
}
/* =========================================================
   ABOUT
   ========================================================= */
#nosotros .grid-2 { gap: clamp(40px, 5vw, 80px); }
.check-list { margin-top: 24px; display: grid; gap: 12px; }
.check-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(255,255,255,0.82);
    font-size: 0.96rem;
    padding: 4px 0;
}
.check-list li::before {
    content: '';
    flex-shrink: 0;
    width: 22px; height: 22px;
    border-radius: 50%;
    background: var(--rojo);
    background-image:
      linear-gradient(135deg, var(--rojo), var(--rojo-2)),
      url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
    background-position: center;
    background-size: 60%;
    background-repeat: no-repeat;
    margin-top: 2px;
    box-shadow: 0 6px 14px -4px var(--rojo-glow);
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.about-image img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
}
.about-image::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.08);
    pointer-events: none;
    z-index: 2;
}
.about-badge {
    position: absolute;
    bottom: -1px; right: -1px;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
    color: #fff;
    padding: 22px 28px;
    border-top-left-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: -10px -10px 30px rgba(0,0,0,0.25);
}
.about-badge strong {
    font-family: var(--font-display);
    font-size: 2.6rem;
    letter-spacing: 0.04em;
    line-height: 1;
}
.about-badge span {
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* =========================================================
   🚗 QUÉ TAPIZAMOS — PARTES PRO
========================================================= */

.parts-grid{
    display:grid;
    grid-template-columns:
        repeat(auto-fit, minmax(240px,1fr));
    gap:clamp(18px,2vw,28px);
}

/* =========================================================
   CARD
========================================================= */

.part-card{
    position:relative;
    background:var(--card-bg);
    border:1px solid var(--card-border);
    border-radius:18px;
    padding:34px 26px 30px;

    text-align:center;
    overflow:hidden;

    transition:
        transform .45s var(--ease-soft),
        box-shadow .45s var(--ease-soft),
        border-color .45s ease,
        background .35s ease;

    isolation:isolate;
}

/* Glow premium */
.part-card::before{
    content:"";
    position:absolute;
    inset:-40%;
    background:
        radial-gradient(
            circle at center,
            rgba(230,57,70,.14),
            transparent 60%
        );
    opacity:0;
    transition:opacity .45s ease;
    z-index:-1;
}

.part-card:hover{
    transform:translateY(-10px);
    box-shadow:var(--shadow-lg);
    border-color:rgba(230,57,70,.45);
}

.part-card:hover::before{
    opacity:1;
}

/* =========================================================
   ICONO
========================================================= */

.part-icon{
    width:72px;
    height:72px;
    margin-inline:auto;
    margin-bottom:22px;

    border-radius:50%;
    display:grid;
    place-items:center;

    background:rgba(230,57,70,.10);
    color:var(--rojo);

    transition:
        transform .45s var(--ease-soft),
        background .35s ease,
        color .35s ease,
        box-shadow .45s ease;
}

.part-icon img,
.part-icon svg{
    width:34px;
    height:34px;
    object-fit:contain;
}

/* Hover icon */
.part-card:hover .part-icon{
    background:var(--rojo);
    color:#fff;
    transform:translateY(-4px) scale(1.08);
    box-shadow:0 12px 26px rgba(230,57,70,.35);
}

/* =========================================================
   TITULO
========================================================= */

.part-card h3{
    font-family:var(--font-display);
    font-size:1.25rem;
    letter-spacing:.06em;
    text-transform:uppercase;
    margin-bottom:10px;
    color:var(--ink);

    transition:color .3s ease;
}

.part-card:hover h3{
    color:var(--rojo);
}

/* =========================================================
   TEXTO
========================================================= */

.part-card p{
    font-size:.94rem;
    color:var(--muted);
    line-height:1.6;
    margin:0;
}

/* =========================================================
   CTA FINAL
========================================================= */

.parts-cta{
    margin-top:64px;
    display:flex;
    flex-direction:column;
    align-items:center;
    gap:18px;
    text-align:center;
}

.parts-cta p{
    font-size:1.08rem;
    color:var(--ink);
    font-weight:500;
}

/* =========================================================
   MICRO INTERACTION (premium)
========================================================= */

.part-card:hover{
    backdrop-filter:blur(2px);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media(max-width:640px){
    .part-card{
        padding:28px 20px;
    }

    .part-icon{
        width:64px;
        height:64px;
    }
}

/* =========================================================
   MISIÓN & VISIÓN
   ========================================================= */
.mv { gap: 28px; }
.card-mv {
    background: var(--card-bg);
    padding: 44px 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--card-border);
    text-align: center;
    transition: all 0.5s var(--ease-soft);
    position: relative;
    overflow: hidden;
}
.card-mv::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(230,57,70,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
}
.card-mv:hover { transform: translateY(-6px); border-color: transparent; box-shadow: var(--shadow-lg); }
.card-mv:hover::before { opacity: 1; }
.mv-icon {
    width: 78px; height: 78px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    box-shadow: 0 18px 36px -12px var(--rojo-glow);
}
.mv-icon::after {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    border: 1px solid rgba(230,57,70,0.25);
}
.mv-icon svg { width: 38px; height: 38px; }
.card-mv h3 { font-size: 1.6rem; text-transform: uppercase; margin-bottom: 14px; }
.card-mv p { position: relative; }

/* =========================================================
   GALERÍA
   ========================================================= */
.section-gallery {
    padding: var(--section-y) 0;
    background: linear-gradient(180deg, var(--dark) 0%, var(--dark-2) 100%);
    color: var(--on-dark);
    position: relative;
    overflow: hidden;
}
.section-gallery::before {
    content: '';
    position: absolute;
    top: -120px; right: -120px;
    width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(230,57,70,0.18), transparent 70%);
    pointer-events: none;
}
.section-gallery::after {
    content: '';
    position: absolute;
    bottom: -160px; left: -120px;
    width: 380px; height: 380px;
    background: radial-gradient(circle, rgba(230,57,70,0.10), transparent 70%);
    pointer-events: none;
}
.section-gallery .section-head h2 { color: #fff; }
.section-gallery .section-head p { color: rgba(255,255,255,0.7); }

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 200px;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.gallery-item {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: zoom-in;
    background: var(--dark-3);
    box-shadow: 0 12px 30px rgba(0,0,0,0.4);
    transition: transform 0.5s var(--ease-soft), box-shadow 0.5s ease;
}
.gallery-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s var(--ease-soft), filter 0.4s ease;
    filter: saturate(0.92);
}
.gallery-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(230,57,70,0.35);
}
.gallery-item:hover img {
    transform: scale(1.08);
    filter: saturate(1.1) brightness(1.05);
}
.gallery-item figcaption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 500;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.85) 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.gallery-item figcaption svg {
    width: 22px; height: 22px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
    padding: 6px;
    border-radius: 50%;
    box-sizing: content-box;
}
.gallery-item:hover figcaption { opacity: 1; }

.gallery-item--lg   { grid-column: span 2; grid-row: span 2; }
.gallery-item--tall { grid-row: span 2; }
.gallery-item--wide { grid-column: span 2; }

@media (max-width: 900px) {
    .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 170px; }
    .gallery-item--lg { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 640px) {
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; gap: 10px; }
    .gallery-item--lg, .gallery-item--wide { grid-column: span 2; grid-row: span 1; }
    .gallery-item--tall { grid-row: span 2; grid-column: span 1; }
    .gallery-item figcaption { opacity: 1; font-size: 0.8rem; padding: 12px; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed; inset: 0;
    background: rgba(8, 8, 10, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lb-content {
    max-width: 92vw;
    max-height: 86vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    transform: scale(0.94);
    transition: transform 0.4s var(--ease-bounce);
}
.lightbox.is-open .lb-content { transform: scale(1); }
.lb-content img {
    max-width: 100%;
    max-height: 78vh;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.7);
    object-fit: contain;
    background: var(--dark-3);
}
.lb-caption {
    color: #fff;
    font-size: 0.92rem;
    text-align: center;
    letter-spacing: 0.05em;
    padding: 9px 20px;
    background: rgba(230,57,70,0.16);
    border: 1px solid rgba(230,57,70,0.4);
    border-radius: 999px;
}
.lb-close, .lb-nav {
    position: absolute;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s, border-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}
.lb-close { top: 24px; right: 24px; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 56px; height: 56px; border-radius: 50%; font-size: 2.2rem; line-height: 1; font-family: serif; }
.lb-prev { left: 24px; } .lb-next { right: 24px; }
.lb-close:hover, .lb-nav:hover {
    background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
    border-color: transparent;
}
.lb-nav:hover { transform: translateY(-50%) scale(1.05); }

@media (max-width: 640px) {
    .lb-close { top: 14px; right: 14px; width: 40px; height: 40px; font-size: 1.6rem; }
    .lb-nav { width: 44px; height: 44px; font-size: 1.7rem; }
    .lb-prev { left: 10px; } .lb-next { right: 10px; }
    .lb-content img { max-height: 70vh; }
}
body.no-scroll { overflow: hidden; }

/* =========================================================
   NEWS
   ========================================================= */
.card-news {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: all 0.5s var(--ease-soft);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
}
.card-news:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-img {
    aspect-ratio: 16/10;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s var(--ease-soft);
}
.card-news:hover .news-img { transform: scale(1.04); }
.news-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.news-date {
    font-size: 0.74rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--rojo);
    margin-bottom: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.news-date::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--rojo);
    box-shadow: 0 0 0 3px rgba(230,57,70,0.18);
}
.card-news h3 { text-transform: uppercase; margin-bottom: 12px; font-size: 1.35rem; }
.card-news p { font-size: 0.95rem; flex: 1; }

/* =========================================================
   CONTACTO
   ========================================================= */
#contactanos .grid-2 { gap: clamp(40px, 5vw, 64px); align-items: stretch; }
.contact-info { margin-top: 28px; display: grid; gap: 18px; }
.contact-info li {
    display: flex;
    align-items: center;
    gap: 16px;
    color: rgba(255,255,255,0.85);
    font-size: 1rem;
}
.contact-info li a { color: #fff; border-bottom: 1px solid var(--rojo); }
.contact-info li a:hover { color: var(--rojo); }
.ci-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(230,57,70,0.12);
    border: 1px solid rgba(230,57,70,0.3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--rojo);
    flex-shrink: 0;
}
.ci-icon svg { width: 20px; height: 20px; }

.form-contact {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    padding: 36px;
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(0,0,0,0.25);
    color: #fff;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.96rem;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.form-row textarea { resize: vertical; min-height: 110px; font-family: inherit; }
.form-row input::placeholder, .form-row textarea::placeholder { color: rgba(255,255,255,0.35); }
.form-row select option { background: var(--dark); color: #fff; }
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--rojo);
    background: rgba(0,0,0,0.4);
    box-shadow: 0 0 0 4px rgba(230,57,70,0.15);
}
.form-note {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.5);
    text-align: center;
    margin: 6px 0 0;
}

/* =========================================================
   UBÍCANOS
   ========================================================= */
.ubicanos-wrap {
    display: grid;
    grid-template-columns: minmax(0, 380px) 1fr;
    gap: clamp(20px, 2.5vw, 32px);
    align-items: stretch;
}
.ubicanos-info { display: flex; }
.ubi-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    display: flex;
    flex-direction: column;
    gap: 22px;
    box-shadow: var(--shadow-card);
    width: 100%;
    position: relative;
    overflow: hidden;
}
.ubi-card::before {
    content: '';
    position: absolute;
    top: -80px; right: -80px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(230,57,70,0.12), transparent 70%);
    pointer-events: none;
}
.ubi-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--rojo), var(--rojo-2));
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-radius: 999px;
    box-shadow: 0 8px 18px -6px var(--rojo-glow);
    position: relative;
}
.ubi-card h3 {
    margin: 0;
    text-transform: uppercase;
    font-size: 1.6rem;
    color: var(--ink);
    position: relative;
}
.ubi-list {
    display: grid;
    gap: 18px;
    margin: 4px 0 6px;
    position: relative;
}
.ubi-list li {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: flex-start;
    color: var(--ink-2);
}
.ubi-list li > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ubi-list strong {
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rojo);
    font-weight: 600;
}
.ubi-list span {
    font-size: 0.96rem;
    color: var(--muted);
    line-height: 1.55;
}
.ubi-list a { color: var(--ink-2); border-bottom: 1px solid var(--rojo); }
.ubi-list a:hover { color: var(--rojo); }
.ubi-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(230,57,70,0.10);
    border: 1px solid rgba(230,57,70,0.25);
    color: var(--rojo);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ubi-icon svg { width: 20px; height: 20px; }
.ubi-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 6px;
    position: relative;
}
.ubi-actions .btn { flex: 1 1 140px; padding: 13px 22px; }

/* MAPA */
.map-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--card-border);
    position: relative;
    min-height: 520px;
    background: var(--card-bg);
}
.map-wrap iframe { display: block; filter: saturate(1.05); width: 100%; height: 100%; }
:root[data-theme="dark"] .map-wrap iframe { filter: saturate(1.05) brightness(0.85) invert(0.92) hue-rotate(180deg); }
.map-cta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

@media (max-width: 900px) {
    .ubicanos-wrap { grid-template-columns: 1fr; }
    .map-wrap { min-height: 380px; }
    .map-wrap iframe { min-height: 380px !important; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    background: var(--dark);
    color: var(--on-dark);
    padding: 80px 0 0;
    position: relative;
    overflow: hidden;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(230,57,70,0.5), transparent);
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 56px;
}
.brand-footer { color: #fff; margin-bottom: 18px; }
.footer h4 {
    color: #fff;
    margin-bottom: 18px;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
}
.footer ul li {
    padding: 6px 0;
    font-size: 0.92rem;
    color: rgba(255,255,255,0.65);
}
.footer ul li a { transition: color 0.2s; }
.footer ul li a:hover { color: var(--rojo); }
.footer p { color: rgba(255,255,255,0.6); font-size: 0.92rem; max-width: 360px; }
.footer-bottom {
    padding: 22px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
}

@media (max-width: 800px) {
    .footer-inner { grid-template-columns: 1fr; gap: 36px; }
}

/* =========================================================
   WHATSAPP FLOATING
   ========================================================= */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: #fff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 14px 30px rgba(18,140,126,0.4);
    z-index: 999;
    transition: transform 0.3s var(--ease-bounce);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    background: inherit;
    opacity: 0.6;
    animation: wa-pulse 2.2s infinite;
    z-index: -1;
}
.wa-float:hover { transform: scale(1.1); }
@keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    80%  { transform: scale(1.7); opacity: 0; }
    100% { transform: scale(1.7); opacity: 0; }
}

/* =========================================================
   REVEAL ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.reveal.is-visible { opacity: 1; transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
    .reveal, .hero-eyebrow, .hero-title, .hero-text, .hero-cta, .hero-stats {
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        transition: none !important;
    }
}

/* =========================================================
   RESPONSIVE TWEAKS
   ========================================================= */
@media (max-width: 640px) {
    body { font-size: 15px; }
    .btn { padding: 13px 24px; font-size: 0.84rem; }
    .hero { padding: 130px 0 100px; }
    .hero-stats { grid-template-columns: 1fr 1fr; }
    .hero-stats > div:nth-child(3) { grid-column: span 2; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
    .form-contact { padding: 26px 22px; }
    .card-body, .news-body { padding: 24px; }
    .about-badge { padding: 16px 22px; }
    .about-badge strong { font-size: 2.1rem; }
    .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
    .wa-float svg { width: 26px; height: 26px; }
}

/* =========================================================
   FAQ - Preguntas Frecuentes
   ========================================================= */
.faq-list { display: flex; flex-direction: column; gap: 14px; }
.faq-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color .35s ease, box-shadow .35s ease, transform .35s ease;
}
.faq-item:hover { border-color: rgba(230,57,70,0.35); box-shadow: 0 6px 20px rgba(0,0,0,0.06); }
.faq-item.open { border-color: rgba(230,57,70,0.55); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px;
    text-align: left;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: color .25s ease;
}
.faq-q:hover { color: var(--rojo); }
.faq-ico {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    color: var(--rojo);
    transition: transform .35s var(--ease-soft);
}
.faq-item.open .faq-ico { transform: rotate(45deg); }
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s var(--ease-soft);
}
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p {
    margin: 0;
    padding: 0 24px 24px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Footer owner */
.footer-owner {
    margin-top: 10px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
    font-size: 0.82rem;
    color: rgba(255,255,255,0.55);
    letter-spacing: 0.04em;
}
.footer-owner strong { color: var(--rojo); font-weight: 600; }

/* =========================================================
   SERVICIO - Badge y lista "Incluye"
   ========================================================= */
.card-img { position: relative; }
.card-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 2;
    background: var(--rojo);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.12em;
    padding: 6px 14px;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(230,57,70,0.45);
}
.card-incluye {
    margin: 18px 0 22px;
    padding: 14px 0 0;
    border-top: 1px dashed var(--card-border);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.card-incluye li {
    background: rgba(230,57,70,0.08);
    color: var(--rojo);
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 5px 12px;
    border-radius: 999px;
    transition: background .25s ease, color .25s ease;
}
.card-product:hover .card-incluye li {
    background: var(--rojo);
    color: #fff;
}

/* Flash de highlight cuando se preselecciona servicio en el form */
@keyframes selectFlash {
    0%, 100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
    50%      { box-shadow: 0 0 0 4px rgba(230,57,70,0.45); }
}
.flash-highlight {
    animation: selectFlash 1.4s ease;
    border-color: var(--rojo) !important;
}

/* =========================================================
   COTIZACIÓN - Sección rediseñada
   ========================================================= */
.cot-section .container.grid-2 {
    gap: clamp(40px, 5vw, 80px);
    align-items: start;
}
.cot-intro h2 {
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.01em;
    margin: 14px 0 22px;
}
.cot-lead {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 460px;
    margin-bottom: 28px;
}
.cot-lead strong { color: #fff; font-weight: 600; }

.cot-pasos {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 32px;
    padding: 22px;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
}
.cot-paso {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.cot-paso .cot-num {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--rojo), #c4172a);
    color: #fff;
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    box-shadow: 0 6px 18px rgba(230,57,70,0.35);
}
.cot-paso > div { display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.cot-paso strong { color: #fff; font-size: 0.95rem; font-weight: 600; }
.cot-paso small { color: rgba(255,255,255,0.55); font-size: 0.82rem; }

/* ----- Formulario tipo "documento" ----- */
.form-cotizacion {
    padding: 0;
    overflow: hidden;
}
.form-head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 28px;
    background: linear-gradient(90deg, rgba(230,57,70,0.18), rgba(230,57,70,0.04));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
}
.form-head-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.6);
}
.form-head-folio {
    font-family: var(--font-display);
    font-size: 1.05rem;
    color: var(--rojo);
    letter-spacing: 0.06em;
}
.form-head-fecha {
    margin-left: auto;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-transform: capitalize;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 28px;
}
.form-row-full { grid-column: 1 / -1; }

.form-section-title {
    grid-column: 1 / -1;
    margin: 6px 0 -6px;
    padding: 12px 14px;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 18px;
    letter-spacing: 2.5px;
    color: var(--rojo);
    border-left: 3px solid var(--rojo);
    background: rgba(230, 57, 70, 0.06);
    border-radius: 0 6px 6px 0;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
}
.form-section-title i { color: var(--rojo); font-size: 14px; }
.form-section-title:first-child { margin-top: 0; }

.form-consent { padding-top: 4px; }
.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
    line-height: 1.45;
    padding: 10px 12px;
    border: 1px dashed rgba(255,255,255,0.15);
    border-radius: 8px;
    transition: border-color .25s ease, background .25s ease;
}
.form-check:hover { border-color: rgba(230,57,70,0.45); background: rgba(230,57,70,0.04); }
.form-check input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    margin-top: 1px;
    border: 1.5px solid rgba(255,255,255,0.35);
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    position: relative;
    transition: all .2s ease;
}
.form-check input[type="checkbox"]:checked {
    background: var(--rojo);
    border-color: var(--rojo);
}
.form-check input[type="checkbox"]:checked::after {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.form-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 28px 24px;
}
.btn-pdf {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
}
.btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25);
    padding: 14px 18px;
    border-radius: var(--radius-md, 12px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
}
.btn-outline:hover {
    background: #fff;
    color: var(--dark);
    border-color: #fff;
    transform: translateY(-2px);
}

/* Botón "Enviar al correo" — azul corporativo, destaca entre outline y WhatsApp */
.btn-secondary {
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    color: #fff;
    border: 1.5px solid transparent;
    padding: 14px 18px;
    border-radius: var(--radius-md, 12px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.25s ease;
    font-family: inherit;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
}
.btn-secondary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e3a8a 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.35);
}
.btn-secondary:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

.form-cotizacion .form-note {
    padding: 0 28px 24px;
    margin: 0;
}

@media (max-width: 720px) {
    .form-grid { grid-template-columns: 1fr; padding: 22px; gap: 14px; }
    .form-actions { grid-template-columns: 1fr; padding: 0 22px 20px; }
    .form-cotizacion .form-note { padding: 0 22px 20px; }
    .form-head { padding: 14px 22px; }
    .cot-intro h2 { font-size: clamp(2rem, 9vw, 3rem); }
}

/* =========================================================
   TRABAJOS REALIZADOS
   ========================================================= */
.section-trabajos { background: var(--surface, #fafafa); }
.section-trabajos .section-head .eyebrow i { color: var(--rojo); }

.trab-filtros {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 0 40px;
}
.trab-filtro {
    background: transparent;
    border: 1.5px solid var(--card-border);
    color: var(--text);
    padding: 9px 18px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.trab-filtro i { font-size: 0.85rem; }
.trab-filtro:hover { border-color: var(--rojo); color: var(--rojo); }
.trab-filtro.active {
    background: var(--rojo);
    color: #fff;
    border-color: var(--rojo);
    box-shadow: 0 6px 18px rgba(230,57,70,0.35);
}

.trab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.trab-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-sm);
    transition: transform 0.45s var(--ease-soft), box-shadow 0.45s, border-color 0.4s;
    display: flex;
    flex-direction: column;
}
.trab-card.hide { display: none; }
.trab-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.trab-destacado { border-color: rgba(230,57,70,0.35); }

.trab-img {
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.trab-img::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.05) 40%, rgba(0,0,0,0.55));
    pointer-events: none;
}
.trab-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: rgba(0,0,0,0.65);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 999px;
}
.trab-star {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    background: var(--rojo);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 6px 12px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 6px 18px rgba(230,57,70,0.5);
}
.trab-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: grid;
    place-items: center;
    background: rgba(20,20,20,0.55);
    opacity: 0;
    transition: opacity 0.35s ease;
}
.trab-card:hover .trab-overlay { opacity: 1; }
.trab-cta {
    background: #25D366;
    color: #fff !important;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    box-shadow: 0 12px 32px rgba(37,211,102,0.5);
    transform: translateY(8px);
    transition: transform 0.35s ease, background 0.25s ease;
}
.trab-cta i { font-size: 1.2rem; }
.trab-card:hover .trab-cta { transform: translateY(0); }
.trab-cta:hover { background: #1ebe5a; }

.trab-body { padding: 22px 22px 24px; flex: 1; }
.trab-body h3 {
    font-size: 1.05rem;
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
}
.trab-body p {
    font-size: 0.85rem;
    color: var(--muted, #6e6e6e);
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.trab-body p i { color: var(--rojo); }

.trab-cta-final {
    margin-top: 50px;
    text-align: center;
    padding: 36px;
    background: linear-gradient(135deg, rgba(230,57,70,0.06), transparent);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--card-border);
}
.trab-cta-final p {
    font-size: 1rem;
    margin: 0 0 18px;
    max-width: 560px;
    margin-inline: auto;
}
.trab-cta-final .btn { display: inline-flex; align-items: center; }
.trab-cta-final .btn i { font-size: 1.15rem; }

/* =========================================================
   FOOTER - Redes Sociales (Font Awesome)
   ========================================================= */
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1.2fr;
    gap: clamp(28px, 4vw, 64px);
}
.footer-col h4 {
    color: #fff;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    font-size: 0.92rem;
    line-height: 1.5;
}
.footer-col ul li i {
    color: var(--rojo);
    margin-top: 4px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}
.footer-col ul li a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }

.footer-owner { display: inline-flex; align-items: center; gap: 8px; }
.footer-owner i { color: var(--rojo); }

.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 22px;
    flex-wrap: wrap;
}
.footer-social a {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    color: #fff;
    text-decoration: none;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}
.footer-social a:hover {
    background: var(--rojo);
    border-color: var(--rojo);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(230,57,70,0.4);
}
.footer-social-wa:hover {
    background: #25D366 !important;
    border-color: #25D366 !important;
    box-shadow: 0 10px 24px rgba(37,211,102,0.5) !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-made { font-size: 0.85rem; color: rgba(255,255,255,0.5); }

/* =========================================================
   WhatsApp flotante con pulse + Font Awesome
   ========================================================= */
.wa-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    display: grid;
    place-items: center;
    z-index: 90;
    box-shadow: 0 14px 36px rgba(37,211,102,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.wa-float i { font-size: 1.7rem; }
.wa-float:hover { transform: scale(1.08); box-shadow: 0 18px 44px rgba(37,211,102,0.6); }
.wa-float svg { display: none; }
.wa-pulse {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: rgba(37,211,102,0.55);
    z-index: -1;
    animation: waPulse 2.2s ease-out infinite;
}
@keyframes waPulse {
    0%   { transform: scale(0.95); opacity: 0.7; }
    70%  { transform: scale(1.4);  opacity: 0; }
    100% { transform: scale(1.4);  opacity: 0; }
}

@media (max-width: 860px) {
    .footer-inner { grid-template-columns: 1fr; }
    .trab-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
    .wa-float { width: 54px; height: 54px; right: 18px; bottom: 18px; }
    .wa-float i { font-size: 1.5rem; }
}

/* =========================================================
   Contacto múltiple (cotización + ubícanos + footer)
   ========================================================= */
.contact-info li { align-items: flex-start; }
.ci-multi {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ci-multi strong {
    color: rgba(255,255,255,0.95);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.ci-multi a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.ci-multi a small {
    color: rgba(255,255,255,0.5);
    font-size: 0.78rem;
    font-weight: 400;
}
.ci-multi a:hover { color: var(--rojo); }
.ci-canal {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(37,211,102,0.12);
    color: #25D366 !important;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem !important;
    font-weight: 600;
    margin-top: 4px;
    align-self: flex-start;
    border: 1px solid rgba(37,211,102,0.3);
}
.ci-canal:hover { background: #25D366; color: #fff !important; }
.ci-canal i { font-size: 0.7rem; }

/* Ubícanos canal pill */
.ubi-canal {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(37,211,102,0.12);
    color: #1a8c44 !important;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem !important;
    font-weight: 600;
    margin-top: 6px;
    border: 1px solid rgba(37,211,102,0.3);
    text-decoration: none;
}
.ubi-canal:hover { background: #25D366; color: #fff !important; }
.ubi-canal i { font-size: 0.7rem; }

/* Footer multilínea */
.footer-col ul li span a {
    display: inline-block;
    line-height: 1.6;
}
.footer-canal {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    background: rgba(37,211,102,0.15);
    color: #25D366 !important;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem !important;
    font-weight: 600;
    margin-top: 4px;
    border: 1px solid rgba(37,211,102,0.3);
}
.footer-canal:hover { background: #25D366; color: #fff !important; }
.footer-canal i { font-size: 0.65rem; }

/* =========================================================
   REFINAMIENTOS RESPONSIVE — ELEGANCIA Y MODERNIDAD
   ========================================================= */

/* Mejor scroll suave + scrollbar sutil */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(0,0,0,0.04); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #c0c0c0, #999);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
::-webkit-scrollbar-thumb:hover { background: var(--rojo); background-clip: padding-box; }

/* Selección elegante con color de marca */
::selection { background: var(--rojo); color: #fff; }

/* Touch targets mínimos 44px en móvil */
@media (max-width: 720px) {
    .btn, .nav-links a, .trab-filtro, .footer-social a {
        min-height: 44px;
    }
}

/* =========================================================
   TABLET (≤ 1024px)
   ========================================================= */
@media (max-width: 1024px) {
    .section { padding: clamp(60px, 8vw, 100px) 0; }
    .trab-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
    .footer-brand-col { grid-column: 1 / -1; }
    .ci-multi a { font-size: 0.9rem; }
}

/* =========================================================
   MÓVIL (≤ 720px)
   ========================================================= */
@media (max-width: 720px) {
    .container { padding: 0 18px; }
    .section { padding: 56px 0; }

    /* Hero más legible en móvil */
    .hero h1 { font-size: clamp(2rem, 9vw, 3rem); line-height: 1.05; }
    .hero p, .hero .lead { font-size: 0.98rem; }
    .hero .btns, .hero-cta { flex-wrap: wrap; gap: 10px; }
    .hero .btn { width: 100%; justify-content: center; }

    /* Section heads */
    .section-head h2 { font-size: clamp(1.7rem, 7vw, 2.4rem); line-height: 1.1; }
    .section-head p { font-size: 0.95rem; }

    /* Trabajos: 1 columna en móvil con cards más grandes */
    .trab-grid { grid-template-columns: 1fr; gap: 18px; }
    .trab-filtros { gap: 8px; }
    .trab-filtro { font-size: 0.72rem; padding: 8px 14px; letter-spacing: 0.04em; }
    .trab-overlay { opacity: 1; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.7)); }
    .trab-cta { transform: translateY(0); padding: 10px 18px; font-size: 0.85rem; }
    .trab-cta-final { padding: 24px 18px; }
    .trab-cta-final .btn { width: 100%; justify-content: center; }

    /* Form de cotización */
    .form-cotizacion { padding: 22px 18px !important; }
    .form-row { grid-template-columns: 1fr !important; gap: 14px !important; }
    .form-cotizacion input,
    .form-cotizacion select,
    .form-cotizacion textarea {
        font-size: 16px !important;  /* evita zoom auto en iOS */
    }
    .form-actions { flex-direction: column; gap: 10px; }
    .form-actions .btn { width: 100%; justify-content: center; }
    .cot-pasos { gap: 12px; }
    .cot-paso { padding: 12px; }
    .cot-num { width: 36px; height: 36px; font-size: 0.85rem; }

    /* Folio header del form */
    .form-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px !important; }

    /* Contact info en cotización */
    .contact-info { padding: 0; }
    .contact-info li { padding: 12px 0; }
    .ci-multi { gap: 6px; }
    .ci-multi a { font-size: 0.92rem; }

    /* Ubícanos en móvil */
    .ubicanos-wrap { grid-template-columns: 1fr !important; gap: 18px; }
    .ubi-card { padding: 22px !important; }
    .ubi-actions { flex-direction: column; gap: 10px; }
    .ubi-actions .btn { width: 100%; justify-content: center; }
    .map-wrap iframe { min-height: 360px !important; }

    /* Galería */
    .gallery-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }

    /* Productos */
    .productos-grid, .servicios-grid { grid-template-columns: 1fr !important; gap: 18px; }

    /* FAQ */
    .faq-item { padding: 16px 18px !important; }
    .faq-item summary { font-size: 0.95rem; }

    /* Noticias */
    .noticias-grid { grid-template-columns: 1fr !important; }

    /* Misión & Visión */
    .mv-grid { grid-template-columns: 1fr !important; gap: 16px; }

    /* Partes */
    .parts-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
    .part-card { padding: 18px 12px; }

    /* Footer */
    .footer { padding: 50px 0 24px !important; }
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; padding-top: 24px; }
    .footer-col h4 { margin-bottom: 14px; }
    .footer-social a { width: 44px; height: 44px; }

    /* WhatsApp flotante: separado del nav móvil */
    .wa-float { right: 14px; bottom: 14px; width: 56px; height: 56px; }
    .wa-float i { font-size: 1.55rem; }

    /* Navegación móvil más elegante */
    .nav-links {
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
    }
    .nav-links a {
        border-bottom: 1px solid rgba(255,255,255,0.08);
        padding: 14px 18px !important;
    }
    .nav-links a.btn-nav {
        margin-top: 12px;
        background: var(--rojo);
        text-align: center;
        border-radius: 12px;
    }
}

/* =========================================================
   MÓVIL CHICO (≤ 420px)
   ========================================================= */
@media (max-width: 420px) {
    .container { padding: 0 14px; }
    .section { padding: 44px 0; }
    .section-head { margin-bottom: 28px; }

    .hero { min-height: 88vh; padding-top: 80px; }

    .gallery-grid { grid-template-columns: 1fr !important; }
    .parts-grid { grid-template-columns: 1fr !important; }

    .trab-card .trab-body { padding: 16px 16px 18px; }
    .trab-body h3 { font-size: 0.95rem; }
    .trab-cat, .trab-star { font-size: 0.62rem; padding: 5px 10px; }

    /* Tipografía hero más compacta */
    .eyebrow { font-size: 0.65rem; padding: 6px 12px; }

    .footer-social { gap: 8px; }
    .footer-social a { width: 42px; height: 42px; font-size: 0.95rem; }

    .wa-float { width: 52px; height: 52px; }
    .wa-float i { font-size: 1.4rem; }

    .ubi-tag { font-size: 0.7rem; }
    .ubi-card h3 { font-size: 1.15rem; }
}

/* =========================================================
   ELEGANCIA EXTRA: hover suaves, transiciones
   ========================================================= */
.btn { will-change: transform; transition: transform 0.25s ease, box-shadow 0.3s ease, background 0.25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.trab-card, .producto-card, .part-card, .gallery-item, .noticia-card {
    will-change: transform;
}

/* Mejora del foco accesible en todos los elementos interactivos */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--rojo);
    outline-offset: 3px;
    border-radius: 6px;
}

/* Inputs con look más premium */
.form-cotizacion input,
.form-cotizacion select,
.form-cotizacion textarea {
    transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.form-cotizacion input:focus,
.form-cotizacion select:focus,
.form-cotizacion textarea:focus {
    box-shadow: 0 0 0 3px rgba(230,57,70,0.15);
}

/* Loading state en el botón al guardar (clase opcional) */
.btn.is-loading {
    opacity: 0.75;
    cursor: progress;
    pointer-events: none;
    position: relative;
}
.btn.is-loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    margin-left: 10px;
    display: inline-block;
    animation: spin 0.7s linear infinite;
    vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Toast de confirmación de cotización archivada */
.toast-cot {
    position: fixed;
    bottom: 90px;
    right: 18px;
    z-index: 95;
    background: linear-gradient(135deg, #1f1f1f, #111);
    color: #fff;
    padding: 14px 18px 14px 16px;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0,0,0,0.35);
    border-left: 4px solid #25D366;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 320px;
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.5s var(--ease-soft, cubic-bezier(.4,0,.2,1)), opacity 0.4s ease;
    font-size: 0.9rem;
    line-height: 1.45;
}
.toast-cot.show { transform: translateX(0); opacity: 1; }
.toast-cot i { color: #25D366; font-size: 1.35rem; margin-top: 2px; }
.toast-cot strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }
.toast-cot small { color: rgba(255,255,255,0.65); font-size: 0.78rem; }
@media (max-width: 480px) {
    .toast-cot { left: 14px; right: 14px; max-width: none; bottom: 80px; }
}

/* =========================================================
   GALERÍA DE TRABAJOS (lee Google Drive en vivo) + MODAL
   ========================================================= */

/* Meta header con contador y hint */
.trab-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 0 0 28px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(230,57,70,0.06), rgba(0,0,0,0.02));
    border: 1px solid var(--card-border);
    border-radius: 999px;
}
.trab-contador {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text, #1a1a1a);
}
.trab-contador strong { color: var(--rojo, #e63946); font-size: 1.05rem; }
.trab-contador i { color: var(--rojo, #e63946); }
.trab-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--muted, #6e6e6e);
}
.trab-hint i { color: var(--rojo, #e63946); }

/* Galería en grid masonry-like */
.drive-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}
.drive-card {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 0;
    padding: 0;
    margin: 0;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    background: #f3f3f3 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 24 24" fill="none" stroke="%23ccc" stroke-width="1.5"><rect x="3" y="3" width="18" height="18" rx="2"/><circle cx="9" cy="9" r="2"/><path d="M21 15l-5-5L5 21"/></svg>') center/60px no-repeat;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
}
.drive-card:hover,
.drive-card:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0,0,0,0.15);
    outline: none;
}
.drive-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .3s;
}
.drive-card:hover img { transform: scale(1.06); }

.drive-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.55) 60%, rgba(230,57,70,0.7) 100%);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
    padding: 16px;
    text-align: center;
}
.drive-card:hover .drive-card__overlay,
.drive-card:focus-visible .drive-card__overlay { opacity: 1; }
.drive-card__icon {
    width: 52px; height: 52px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    font-size: 1.2rem;
}
.drive-card__cta {
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
/* Fallback cuando la imagen no carga */
.drive-card__fallback {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #999;
    font-size: 0.85rem;
    background: #f5f5f5;
}
.drive-card__fallback i { font-size: 1.6rem; }
.drive-card--error img { display: none; }
.drive-card--error .drive-card__fallback { display: flex; }
.drive-card--error .drive-card__overlay { background: rgba(0,0,0,0.4); }

/* Vacío */
.trab-vacio {
    text-align: center;
    padding: 60px 24px;
    color: var(--muted, #6e6e6e);
    background: var(--card-bg, #fff);
    border: 1px dashed var(--card-border);
    border-radius: 16px;
}
.trab-vacio i { font-size: 2.4rem; color: #ccc; margin-bottom: 12px; }

/* ----- MODAL ----- */
.trab-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.trab-modal.is-open { display: flex; }
.trab-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.86);
    backdrop-filter: blur(6px);
    animation: trabFadeBg .25s ease;
}
@keyframes trabFadeBg { from { opacity: 0 } to { opacity: 1 } }

.trab-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    animation: trabZoomIn .35s cubic-bezier(.2,.8,.2,1);
}
@keyframes trabZoomIn {
    from { transform: scale(.92); opacity: 0 }
    to   { transform: scale(1);   opacity: 1 }
}

.trab-modal__close {
    position: absolute;
    top: -50px; right: 0;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
}
.trab-modal__close:hover {
    background: var(--rojo, #e63946);
    transform: rotate(90deg);
}

.trab-modal__media {
    position: relative;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
    overflow: hidden;
}
.trab-modal__img {
    max-width: 100%;
    max-height: 72vh;
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    opacity: 0;
    transition: opacity .35s;
}
.trab-modal__img.is-loaded { opacity: 1; }

.trab-modal__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}
.trab-modal__loader span {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--rojo, #e63946);
    border-radius: 50%;
    animation: trabSpin .8s linear infinite;
}
.trab-modal__img.is-loaded ~ .trab-modal__loader,
.trab-modal__media:has(.is-loaded) .trab-modal__loader { display: none; }
@keyframes trabSpin { to { transform: rotate(360deg) } }

.trab-modal__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 0;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    z-index: 2;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s, transform .2s;
}
.trab-modal__nav:hover { background: var(--rojo, #e63946); transform: translateY(-50%) scale(1.1); }
.trab-modal__nav--prev { left: 16px; }
.trab-modal__nav--next { right: 16px; }

.trab-modal__bar {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    backdrop-filter: blur(8px);
}
.trab-modal__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.trab-modal__info h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.trab-modal__count {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: .04em;
}
.trab-modal__cotizar {
    flex-shrink: 0;
    background: #25D366 !important;
    border-color: #25D366 !important;
    color: #fff !important;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(37,211,102,0.4);
}
.trab-modal__cotizar:hover {
    background: #1ebe57 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37,211,102,0.55);
}

/* Bloquear scroll del body cuando modal abierto */
body.trab-modal-open { overflow: hidden; }

/* RESPONSIVE */
@media (max-width: 720px) {
    .trab-meta {
        flex-direction: column;
        text-align: center;
        border-radius: 16px;
        padding: 14px 16px;
    }
    .drive-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 10px;
    }
    .drive-card__cta { font-size: 0.7rem; }
    .drive-card__icon { width: 42px; height: 42px; font-size: 1rem; }
    .drive-card__overlay { opacity: 1; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.5) 100%); }
    .drive-card__overlay .drive-card__icon { display: none; }

    .trab-modal { padding: 12px; }
    .trab-modal__close { top: -42px; width: 38px; height: 38px; }
    .trab-modal__nav { width: 40px; height: 40px; }
    .trab-modal__nav--prev { left: 6px; }
    .trab-modal__nav--next { right: 6px; }
    .trab-modal__img { max-height: 60vh; }
    .trab-modal__bar { flex-direction: column; gap: 12px; padding: 12px; }
    .trab-modal__bar .trab-modal__cotizar { width: 100%; justify-content: center; }
}
@media (max-width: 420px) {
    .drive-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
}
.parts-grid{
    display:grid;
    grid-template-columns:repeat(auto-fit, minmax(220px, 1fr));
    gap:22px;
}

/* CARD PREMIUM */
.part-card{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:18px;
    padding:25px;
    text-align:center;
    transition:.35s ease;
    position:relative;
    overflow:hidden;
}

/* glow suave */
.part-card::before{
    content:"";
    position:absolute;
    inset:-40%;
    background:radial-gradient(circle, rgba(255,106,0,0.15), transparent 60%);
    opacity:0;
    transition:.4s;
}

.part-card:hover::before{
    opacity:1;
}

.part-card:hover{
    transform:translateY(-8px);
    border-color:rgba(255,106,0,0.4);
}

/* ICONO */
.part-icon{
    width:70px;
    height:70px;
    margin:0 auto 15px;
    display:flex;
    align-items:center;
    justify-content:center;
}

.part-icon img{
    width:60px;
    height:60px;
    object-fit:contain;
    transition:.3s ease;
    filter:drop-shadow(0 6px 12px rgba(0,0,0,0.4));
}

.part-card:hover .part-icon img{
    transform:scale(1.1);
}

/* TEXTO */
.part-card h3{
    font-size:18px;
    margin:10px 0 8px;
}

.part-card p{
    font-size:13px;
    color:#bdbdbd;
    line-height:1.5;
}

/* CTA */
.parts-cta{
    text-align:center;
    margin-top:60px;
}

.parts-cta p{
    color:#ccc;
    margin-bottom:15px;
}