/* =======================================================================
   FULLTRUCK SpA - Sistema de diseño industrial
   Paleta: negro profundo + rojo brand (logo) + acero
   Tipografía: sistema local para evitar bloqueo de fuentes externas
   ======================================================================= */

:root {
    /* Brand colors - extraídos del logo FullTruck */
    --brand: #E10712;               /* rojo logo */
    --brand-dark: #B30009;
    --brand-light: #FF1A26;
    --brand-glow: rgba(225, 7, 18, 0.45);

    /* Neutros industriales */
    --ink: #0a0a0a;                 /* negro base */
    --ink-2: #141414;
    --ink-3: #1c1c1c;
    --steel: #2a2a2a;
    --steel-2: #3a3a3a;
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --paper: #f6f5f2;               /* off-white industrial */
    --paper-2: #ecebe6;
    --text: #f5f5f5;
    --text-muted: #b8b8b8;             /* mejor contraste sobre fondo oscuro (>=4.5:1) */
    --text-on-paper: #0a0a0a;
    --text-on-paper-muted: #4a4a4a;

    /* Typography */
    --font-display: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;

    /* Layout */
    --container: 1280px;
    --radius: 4px;
    --radius-lg: 12px;
    --shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.18);
    --header-h: 86px;

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
img, svg, video { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--ink);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

::selection { background: var(--brand); color: #fff; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--brand); color: #fff; padding: 12px 20px; z-index: 9999;
}
.skip-link:focus { left: 16px; top: 16px; }

/* ----- Typography ----- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 400;
    line-height: 0.92;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 4rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2.4rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }

.kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--brand);
    font-weight: 600;
    padding: 6px 12px;
    border: 1px solid var(--brand);
    border-radius: 100px;
    background: rgba(225, 7, 18, 0.08);
}
.kicker::before {
    content: ""; width: 6px; height: 6px; border-radius: 50%;
    background: var(--brand); box-shadow: 0 0 8px var(--brand);
    animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}

.muted { color: var(--text-muted); }
.text-brand { color: var(--brand); }

/* ----- Container ----- */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}
@media (max-width: 768px) { .container { padding: 0 20px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 28px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 2px solid transparent;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.3s var(--ease);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.18), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s var(--ease-out);
}
.btn:hover::before { transform: translateX(100%); }
.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-lg { padding: 18px 36px; font-size: 1rem; }

.btn-primary { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: 0 6px 20px var(--brand-glow); }
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); transform: translateY(-2px); box-shadow: 0 12px 30px var(--brand-glow); }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }

.btn-ghost { background: transparent; color: var(--brand); padding: 0; border: none; font-weight: 700; }
.btn-ghost:hover { gap: 16px; }

/* ----- Iconos ----- */
.ico { width: 1em; height: 1em; fill: currentColor; flex-shrink: 0; }
svg.ico { vertical-align: -0.125em; }

/* ----- Topbar ----- */
.topbar {
    background: #000;
    color: var(--text-muted);
    font-size: 0.78rem;
    border-bottom: 1px solid var(--line);
    padding: 8px 0;
}
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar-info { display: flex; gap: 24px; align-items: center; }
.topbar-info span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-info .ico { color: var(--brand); width: 14px; height: 14px; }
.topbar-cta a { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s; }
.topbar-cta a:hover { color: var(--brand); }
.topbar-cta .ico { color: var(--brand); }

/* ----- Header ----- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: all 0.3s var(--ease);
}
.site-header.scrolled { background: rgba(10, 10, 10, 0.98); border-bottom-color: var(--line-2); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }

.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 48px; width: auto; }

.nav-desktop ul { display: flex; gap: 6px; align-items: center; }
.nav-desktop a {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 10px 16px;
    font-weight: 600; font-size: 0.9rem;
    color: var(--text);
    border-radius: var(--radius);
    transition: all 0.2s var(--ease);
    position: relative;
}
.nav-desktop a:hover { color: var(--brand); }
.nav-desktop a::after {
    content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 2px;
    background: var(--brand); transform: scaleX(0); transform-origin: left;
    transition: transform 0.3s var(--ease-out);
}
.nav-desktop a:hover::after { transform: scaleX(1); }

.has-dropdown { position: relative; }
.has-dropdown .caret { width: 10px; height: 10px; transition: transform 0.2s; }
.has-dropdown:hover .caret { transform: rotate(180deg); }

.dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 280px;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius-lg);
    padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all 0.25s var(--ease-out);
    box-shadow: var(--shadow);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a { display: block; padding: 12px 16px; border-radius: var(--radius); }
.dropdown a:hover { background: rgba(225, 7, 18, 0.1); color: var(--brand); }
.dropdown a::after { display: none; }

.header-actions { display: flex; align-items: center; gap: 12px; }
.hamburger {
    display: none; width: 44px; height: 44px;
    background: transparent; border: 1px solid var(--line-2);
    border-radius: var(--radius);
    flex-direction: column; justify-content: center; align-items: center; gap: 4px;
    cursor: pointer; transition: border-color 0.2s;
}
.hamburger:hover { border-color: var(--brand); }
.hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--text); transition: all 0.3s var(--ease);
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
    position: fixed; inset: 0; top: 0;
    background: var(--ink);
    color: var(--text);
    z-index: 200;
    padding: 24px 24px 32px;
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    visibility: hidden;
}
.nav-mobile.open { transform: translateX(0); visibility: visible; }
.nav-mobile a, .nav-mobile summary { color: var(--text); }
.nav-mobile-close {
    position: absolute; top: 16px; right: 16px;
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.nav-mobile-close:hover, .nav-mobile-close:focus-visible {
    border-color: var(--brand); color: var(--brand);
    background: rgba(255,255,255,0.04);
    outline: none;
}
.nav-mobile nav { display: flex; flex-direction: column; gap: 4px; }
.nav-mobile a, .nav-mobile summary {
    display: block; padding: 16px 0;
    font-family: var(--font-display); font-size: 1.6rem;
    border-bottom: 1px solid var(--line);
    cursor: pointer;
}
.nav-mobile details a { font-size: 1rem; padding: 10px 0 10px 20px; font-family: var(--font-body); }
.nav-mobile summary { list-style: none; }
.nav-mobile summary::-webkit-details-marker { display: none; }
.nav-mobile summary::after { content: " +"; color: var(--brand); }
.nav-mobile details[open] summary::after { content: " −"; }
.nav-mobile .btn { margin-top: 16px; }
.mt-3 { margin-top: 16px; }

@media (max-width: 1024px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .hide-md { display: none !important; }
}

/* =======================================================================
   HERO
   ======================================================================= */
.hero {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--ink);
    isolation: isolate;
    /* Si quieres MÁS o MENOS espacio entre el header y el hero, ajusta este margin-top.
       Negativo = sube el hero. Positivo = lo baja. */
    margin-top: -94px;
}
.hero-bg {
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 800px 500px at 80% 50%, rgba(225, 7, 18, 0.18), transparent 70%),
        radial-gradient(ellipse 600px 400px at 20% 80%, rgba(225, 7, 18, 0.08), transparent 70%),
        linear-gradient(135deg, #0a0a0a 0%, #141414 100%);
    z-index: -1;
}
.hero-bg::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 30%, transparent 70%);
}
/* Líneas diagonales decorativas */
.hero-bg::after {
    content: "";
    position: absolute; right: -10%; top: 0; bottom: 0; width: 60%;
    background:
        repeating-linear-gradient(110deg, transparent 0 80px, rgba(225, 7, 18, 0.06) 80px 82px);
    transform: skewX(-12deg);
    opacity: 0.5;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: start;
    gap: 64px;
    /* Espacio entre el header y donde empieza el contenido del hero.
       Si todavía ves vacío arriba, baja este 24px a 16px, 8px o 0. */
    padding-top: 1px; padding-bottom: 56px;
}
.hero-left { padding-top: 0; margin-top: 0; }
.hero-left .kicker { margin-top: 0; }
.hero-title { margin: 16px 0; }

.hero-left { animation: heroFadeUp 1s var(--ease-out) both; }
.hero-left .kicker { animation: heroFadeUp 0.8s var(--ease-out) 0.1s both; }
.hero-title {
    margin: 24px 0;
    font-size: clamp(3rem, 7.5vw, 6.4rem);
    line-height: 0.86;
}
.hero-title .line {
    display: block; opacity: 0; transform: translateY(40px);
    animation: heroFadeUp 0.9s var(--ease-out) forwards;
}
.hero-title .line:nth-child(1) { animation-delay: 0.2s; }
.hero-title .line:nth-child(2) { animation-delay: 0.35s; color: var(--brand); }
.hero-title .line:nth-child(3) { animation-delay: 0.5s; }
.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 560px;
    margin-bottom: 32px;
    animation: heroFadeUp 0.9s var(--ease-out) 0.65s both;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; animation: heroFadeUp 0.9s var(--ease-out) 0.8s both; }

.hero-stats {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 24px; margin-top: 56px; padding-top: 32px;
    border-top: 1px solid var(--line);
    animation: heroFadeUp 1s var(--ease-out) 1s both;
}
.hero-stat .num {
    font-family: var(--font-display); font-size: 2.8rem;
    color: var(--brand); line-height: 1;
}
.hero-stat .lbl { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em; margin-top: 4px; }

.hero-right {
    position: relative;
    animation: heroSlideIn 1.2s var(--ease-out) both;
}
.hero-image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-height: 620px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    box-shadow: var(--shadow);
    border: 1px solid var(--line-2);
}
.hero-image-wrap::before {
    content: "";
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.6));
}
.hero-image-wrap img,
.hero-image-wrap .placeholder {
    width: 100%; height: 100%; object-fit: cover;
}
.hero-floating-card {
    position: absolute; left: -24px; bottom: 24px;
    background: var(--paper); color: var(--text-on-paper);
    padding: 20px 24px; border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    z-index: 3;
    display: flex; align-items: center; gap: 16px;
    animation: floatCard 3s ease-in-out infinite;
    max-width: 280px;
}
.hero-floating-card .badge {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--brand); color: #fff;
    display: grid; place-items: center; font-size: 1.5rem;
    flex-shrink: 0;
}
.hero-floating-card .badge .ico { width: 24px; height: 24px; }
.hero-floating-card .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-on-paper-muted); }
.hero-floating-card .value { font-weight: 700; font-size: 0.95rem; line-height: 1.2; }

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes heroSlideIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Placeholder para fotos faltantes - patrón industrial */
.placeholder {
    background:
        repeating-linear-gradient(45deg, var(--ink-2), var(--ink-2) 12px, var(--ink-3) 12px, var(--ink-3) 24px);
    display: grid; place-items: center;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
    .hero { min-height: 0; padding: 0; margin-top: 0; }
    .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 24px; padding-bottom: 40px; }
    .hero-right { min-height: 0; }
    .hero-image-wrap { min-height: 0; aspect-ratio: 4 / 3; max-height: none; }
    .hero-floating-card { left: 16px; bottom: 16px; }
    .hero-title { font-size: clamp(2.2rem, 11vw, 3.6rem); line-height: 0.95; }
    .hero-sub { font-size: 1rem; }
}
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; padding-top: 24px; }
    .hero-stat .num { font-size: 2rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; justify-content: center; }
    .hero-floating-card { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
@media (max-width: 480px) {
    .hero-title { font-size: clamp(2rem, 13vw, 3rem); }
}

/* Anti-overflow global: cualquier elemento que se pase del viewport se oculta visualmente */
html, body { max-width: 100%; overflow-x: hidden; }
img, video, iframe, svg { max-width: 100%; }

/* =======================================================================
   SECTIONS
   ======================================================================= */
section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head .kicker { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ----- Hero slider (administrable, categoría "Inicio") ----- */
.home-slider { padding: 32px 0 0; }
.slider {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}
.slider-track {
    position: relative;
    aspect-ratio: 21 / 9;
    width: 100%;
}
.slide {
    position: absolute; inset: 0;
    margin: 0;
    opacity: 0;
    transition: opacity 0.7s var(--ease-out);
    pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide-caption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 28px 32px;
    background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.85));
    color: #fff;
}
.slide-caption h3, .slide-caption .slide-title {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2.4rem);
    margin-bottom: 4px;
    line-height: 1;
    font-weight: 800;
}
.slide-caption p { color: rgba(255, 255, 255, 0.85); margin: 0; font-size: 0.95rem; }
.slide-caption .slide-title { color: #fff; font-size: clamp(1.4rem, 3vw, 2.4rem); }

.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    display: grid; place-items: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 5;
}
.slider-arrow:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-50%) scale(1.05); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

.slider-dots {
    position: absolute; left: 0; right: 0; bottom: 16px;
    display: flex; justify-content: center; gap: 8px;
    z-index: 4;
}
.slider-dot {
    width: 10px; height: 10px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    border: none; padding: 0;
    cursor: pointer;
    transition: all 0.2s;
}
.slider-dot:hover { background: rgba(255, 255, 255, 0.8); }
.slider-dot.is-active { background: var(--brand); width: 28px; border-radius: 5px; }

@media (max-width: 768px) {
    .slider-track { aspect-ratio: 4 / 3; }
    .slider-arrow { width: 40px; height: 40px; }
    .slide-caption { padding: 16px 20px; }
}

/* ----- Marquee de servicios (similar al original) ----- */
.marquee {
    background: var(--brand);
    color: #fff;
    overflow: hidden;
    padding: 22px 0;
    transform: skewY(-1.5deg);
    margin: 60px 0;
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}
.marquee-track {
    display: flex; gap: 60px;
    animation: marquee 28s linear infinite;
    white-space: nowrap;
    width: max-content;
}
.marquee-track span {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    letter-spacing: 0.02em;
    display: inline-flex; align-items: center; gap: 60px;
}
.marquee-track span::after {
    content: "✦"; color: #000; font-size: 1.4rem; margin-left: 60px;
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ----- Services grid ----- */
.services-section { background: var(--ink); position: relative; }
.services-section::before {
    content: "";
    position: absolute; top: 10%; right: -200px; width: 400px; height: 400px;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    filter: blur(80px); pointer-events: none;
}

.services-grid {
    display: flex; flex-wrap: wrap; gap: 24px;
    justify-content: center;
    position: relative;
}
.services-grid .service-card {
    flex: 1 1 320px;
    max-width: calc((100% - 48px) / 3);
    min-width: 280px;
}
@media (max-width: 1080px) {
    .services-grid .service-card { max-width: calc((100% - 24px) / 2); }
}
@media (max-width: 720px) {
    .services-grid .service-card { max-width: 100%; }
}

.service-card {
    position: relative;
    background: linear-gradient(180deg, var(--ink-2), var(--ink));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    transition: all 0.4s var(--ease-out);
    overflow: hidden;
    isolation: isolate;
}
.service-card::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(225, 7, 18, 0.12), transparent);
    opacity: 0; transition: opacity 0.4s;
}
.service-card::after {
    content: "";
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--brand);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.5s var(--ease-out);
}
.service-card:hover { transform: translateY(-8px); border-color: var(--line-2); }
.service-card:hover::before { opacity: 1; }
.service-card:hover::after { transform: scaleX(1); }

.service-card .icon-wrap {
    width: 64px; height: 64px;
    background: rgba(225, 7, 18, 0.12);
    border: 1px solid rgba(225, 7, 18, 0.4);
    border-radius: var(--radius-lg);
    display: grid; place-items: center;
    color: var(--brand);
    margin-bottom: 24px;
    transition: all 0.4s;
}
.service-card:hover .icon-wrap { background: var(--brand); color: #fff; transform: rotate(-6deg) scale(1.05); border-color: var(--brand); }
.service-card .icon-wrap svg { width: 32px; height: 32px; }

.service-card h3 { margin-bottom: 12px; transition: color 0.3s; }
.service-card:hover h3 { color: var(--brand); }
.service-card p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 24px; }
.service-card .more { color: var(--brand); font-weight: 700; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.08em; display: inline-flex; align-items: center; gap: 8px; }
.service-card .more .ico { transition: transform 0.3s; width: 16px; height: 16px; }
.service-card:hover .more .ico { transform: translateX(6px); }

.service-number {
    position: absolute; top: 24px; right: 24px;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
    opacity: 0.6;
}

/* ----- Why us / About preview ----- */
.about-section {
    background: var(--paper); color: var(--text-on-paper);
    position: relative; overflow: hidden;
}
.about-section::before {
    content: "FULLTRUCK";
    position: absolute; bottom: -30px; left: -20px;
    font-family: var(--font-display); font-size: 22vw;
    color: rgba(0, 0, 0, 0.04); line-height: 1; pointer-events: none;
    white-space: nowrap;
}

.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: center; }
.about-image-wrap {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}
.about-image-wrap img { width: 100%; height: 100%; object-fit: cover; }
.about-image-wrap::after {
    content: "";
    position: absolute; inset: 12px;
    border: 2px solid var(--brand);
    border-radius: var(--radius-lg);
    pointer-events: none;
    transform: translate(20px, 20px);
}

.about-text h2 { color: var(--text-on-paper); margin-bottom: 24px; }
.about-text p { color: var(--text-on-paper-muted); font-size: 1.05rem; }
.about-text strong { color: var(--text-on-paper); font-weight: 700; }

.feature-list { margin: 32px 0; display: grid; gap: 12px; }
.feature-list li {
    display: flex; align-items: flex-start; gap: 12px;
    color: var(--text-on-paper); font-weight: 500;
}
.feature-list .ico { color: var(--brand); margin-top: 4px; flex-shrink: 0; width: 18px; height: 18px; }

@media (max-width: 900px) {
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .about-image-wrap { max-width: 480px; margin: 0 auto; }
}

/* ----- Stats ----- */
.stats-section {
    background: var(--ink-2);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat .num {
    font-family: var(--font-display); font-size: clamp(3rem, 6vw, 5rem);
    color: var(--brand); line-height: 1;
}
.stat .lbl { color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem; margin-top: 8px; font-weight: 600; }
@media (max-width: 720px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; } }

/* ----- Products preview ----- */
.products-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.product-card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    position: relative;
}
.product-card:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--shadow); }
.product-image { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.product-image img, .product-image .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease-out); }
.product-card:hover .product-image img { transform: scale(1.06); }

.product-card .badge {
    position: absolute; top: 16px; left: 16px;
    background: var(--brand); color: #fff;
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
    padding: 4px 10px; border-radius: 100px;
    z-index: 2;
}

.product-info { padding: 24px; }
.product-info .cat { color: var(--brand); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; }
.product-info h3 { font-size: 1.3rem; margin: 8px 0; }
.product-info p { color: var(--text-muted); font-size: 0.9rem; }

/* ----- Blog preview ----- */
.blog-section { background: var(--ink); }
.posts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.post-card {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s var(--ease-out);
    display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--brand); }
.post-image { aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-3); position: relative; }
.post-image img, .post-image .placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.post-card:hover .post-image img { transform: scale(1.05); }
.post-date {
    position: absolute; top: 16px; left: 16px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 8px 12px;
    border-radius: var(--radius);
    font-family: var(--font-mono); font-size: 0.72rem;
    text-transform: uppercase;
    border-left: 3px solid var(--brand);
}
.post-info { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.post-info h3 { font-size: 1.3rem; margin-bottom: 8px; line-height: 1.1; transition: color 0.3s; }
.post-card:hover h3 { color: var(--brand); }
.post-info p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.post-info .meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }

/* ----- CTA / Footer top ----- */
.footer-cta { padding: 60px 0 0; background: var(--ink); }
.cta-card {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    padding: 56px 64px;
    border-radius: var(--radius-lg);
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
    flex-wrap: wrap;
    position: relative; overflow: hidden;
}
.cta-card::before {
    content: "";
    position: absolute; right: -100px; top: -100px;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
}
.cta-card .kicker { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.cta-card .kicker::before { background: #fff; box-shadow: 0 0 8px #fff; }
.cta-card h2 { color: #fff; margin: 16px 0 8px; }
.cta-card p { color: rgba(255, 255, 255, 0.9); margin: 0; }
.cta-card .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.cta-card .btn-primary:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 720px) {
    .cta-card { padding: 40px 28px; }
    .cta-card .btn { width: 100%; justify-content: center; }
}

/* ----- Footer ----- */
.site-footer { background: var(--ink); padding-top: 60px; }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 48px;
    padding-top: 60px; padding-bottom: 40px;
    border-bottom: 1px solid var(--line);
}
.footer-logo { margin-bottom: 16px; }
.site-footer h4 {
    font-family: var(--font-body); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--brand); margin-bottom: 20px;
}
.site-footer ul { display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-muted); transition: color 0.2s; }
.site-footer ul a:hover { color: var(--brand); }
.contact-list li { display: flex; gap: 8px; align-items: flex-start; color: var(--text-muted); }
.contact-list .ico { color: var(--brand); margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }

.social { display: flex; gap: 8px; margin-top: 20px; }
.social a {
    width: 40px; height: 40px;
    border: 1px solid var(--line-2);
    border-radius: 50%;
    display: grid; place-items: center;
    color: var(--text); transition: all 0.2s;
}
.social a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }
.social .ico { width: 16px; height: 16px; }

.footer-bottom { padding: 24px 0; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { margin: 0; font-size: 0.85rem; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ----- WhatsApp FAB ----- */
.whatsapp-fab {
    position: fixed; bottom: 24px; right: 24px; z-index: 90;
    width: 60px; height: 60px;
    background: #25D366; color: #fff;
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.4);
    transition: all 0.3s;
}
.whatsapp-fab svg { width: 32px; height: 32px; }
.whatsapp-fab:hover { transform: scale(1.08); }
.whatsapp-fab::before {
    content: "";
    position: absolute; inset: -8px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.4);
    animation: pulseRing 2s ease-out infinite;
    z-index: -1;
}
@keyframes pulseRing {
    0% { transform: scale(0.95); opacity: 0.7; }
    100% { transform: scale(1.4); opacity: 0; }
}

/* =======================================================================
   PAGE: detail / list pages
   ======================================================================= */
.page-hero {
    position: relative;
    padding: 100px 0 80px;
    background: var(--ink-2);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}
.page-hero::before {
    content: "";
    position: absolute; top: 50%; right: -10%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    transform: translateY(-50%);
    filter: blur(100px);
}
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.breadcrumb a { color: var(--text-muted); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb span { color: var(--brand); }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 720px; font-size: 1.1rem; }

/* ----- Detail page ----- */
.detail-section { padding: 80px 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.detail-content { line-height: 1.8; }
.detail-content h2, .detail-content h3 { margin: 32px 0 16px; }
.detail-content h2 { font-size: 2rem; }
.detail-content h3 { font-size: 1.5rem; color: var(--brand); }
.detail-content p { color: var(--text-muted); }
.detail-content strong { color: var(--text); }
.detail-content img { border-radius: var(--radius-lg); margin: 24px 0; }
.detail-content ul, .detail-content ol { margin: 16px 0 16px 24px; color: var(--text-muted); }
.detail-content ul li { list-style: disc; }
.detail-content ol li { list-style: decimal; }
.detail-content blockquote {
    border-left: 3px solid var(--brand);
    padding: 16px 24px;
    margin: 24px 0;
    background: var(--ink-2);
    border-radius: 0 var(--radius) var(--radius) 0;
    color: var(--text);
    font-style: italic;
}

.detail-aside {
    position: sticky; top: calc(var(--header-h) + 24px);
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 32px;
}
.detail-aside h4 { margin-bottom: 16px; font-family: var(--font-display); font-size: 1.4rem; }
.detail-aside .feature-mini { display: flex; gap: 8px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 0.92rem; }
.detail-aside .feature-mini .ico { color: var(--brand); margin-top: 4px; flex-shrink: 0; width: 16px; height: 16px; }
.detail-aside .feature-mini:last-child { border: none; }

.detail-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    background: var(--ink-3);
}
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
    .detail-aside { position: static; }
}

/* ----- Service detail (rediseño) ----- */
.service-hero {
    position: relative;
    min-height: 460px;
    padding: 120px 0 80px;
    background: var(--ink-2);
    overflow: hidden;
    isolation: isolate;
}
.service-hero-media {
    position: absolute; inset: 0; z-index: -2;
    background: var(--hero-img) center/cover no-repeat;
    filter: saturate(0.9) brightness(0.4);
    transform: scale(1.05);
}
.service-hero::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(10,10,10,0.55), rgba(10,10,10,0.92));
}
.service-hero::after {
    content: "";
    position: absolute; bottom: -150px; left: -150px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    filter: blur(80px); pointer-events: none; z-index: -1;
}
.service-hero-inner { position: relative; z-index: 1; max-width: 880px; }
.service-hero h1 { margin: 12px 0 20px; }
.service-hero-lead { color: var(--text); font-size: 1.2rem; max-width: 760px; margin-bottom: 32px; }
.service-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }

.detail-aside .aside-block { margin-bottom: 24px; }
.detail-aside .aside-block:last-child { margin-bottom: 0; }
.detail-aside .aside-cta { padding-top: 24px; border-top: 1px solid var(--line); margin-top: 8px; }

.service-cta { padding: 80px 0 100px; background: var(--ink); }
.service-cta-box {
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
    background: linear-gradient(135deg, var(--ink-2), var(--ink-3));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 56px;
    position: relative; overflow: hidden;
}
.service-cta-box::before {
    content: ""; position: absolute; top: -100px; right: -100px;
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--brand-glow), transparent 70%);
    filter: blur(60px);
}
.service-cta-box h2 { margin: 8px 0 12px; font-size: 2rem; }
.service-cta-box p { color: var(--text-muted); }
.service-cta-actions { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 760px) {
    .service-cta-box { grid-template-columns: 1fr; padding: 32px; }
    .service-hero { padding: 90px 0 60px; min-height: 360px; }
    .service-hero-lead { font-size: 1.05rem; }
}

/* ----- Forms ----- */
.form-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.field input, .field textarea, .field select {
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--text);
    transition: all 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(225, 7, 18, 0.15);
}
.field .err { color: var(--brand); font-size: 0.8rem; margin-top: 4px; }
.alert { padding: 16px 20px; border-radius: var(--radius); margin-bottom: 16px; }
.alert-success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #4ade80; }
.alert-error { background: rgba(225, 7, 18, 0.12); border: 1px solid var(--brand); color: var(--brand-light); }

@media (max-width: 640px) {
    .form-grid { grid-template-columns: 1fr; }
}

/* ----- Pagination ----- */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.pagination a, .pagination span {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    border: 1px solid var(--line-2);
    border-radius: var(--radius);
    color: var(--text);
    transition: all 0.2s;
    font-weight: 600;
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ----- Reveal on scroll ----- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }

/* ----- 404/error ----- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 24px; }
.error-page .code { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 14rem); color: var(--brand); line-height: 1; }

/* ----- Reduce motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----- Print ----- */
@media print {
    .topbar, .site-header, .site-footer, .whatsapp-fab, .marquee { display: none; }
    body { color: #000; background: #fff; }
}

/* =======================================================================
   FAQ
   ======================================================================= */
.faq-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 48px;
    align-items: start;
}
.faq-toc {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
}
.faq-toc h4 {
    font-family: var(--font-body); font-weight: 700;
    font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--brand); margin-bottom: 16px;
}
.faq-toc ul { display: grid; gap: 4px; }
.faq-toc a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; border-radius: var(--radius);
    color: var(--text-muted); transition: all 0.2s;
    font-size: 0.92rem;
}
.faq-toc a:hover { background: rgba(225, 7, 18, 0.08); color: var(--brand); }
.faq-toc .count {
    background: rgba(255, 255, 255, 0.08); color: var(--text-muted);
    border-radius: 100px; padding: 2px 8px; font-size: 0.72rem; font-family: var(--font-mono);
}

.faq-group { margin-bottom: 56px; scroll-margin-top: calc(var(--header-h) + 24px); }
.faq-group h2 {
    margin-bottom: 24px; padding-bottom: 16px;
    border-bottom: 2px solid var(--brand);
    display: inline-block;
}

.faq-list { display: grid; gap: 12px; }

.faq-item {
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s;
}
.faq-item[open] { border-color: var(--brand); }
.faq-item summary {
    padding: 20px 24px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    font-weight: 600; font-size: 1rem;
    list-style: none;
    transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--brand); }
.faq-toggle {
    width: 20px; height: 20px; flex-shrink: 0;
    color: var(--brand);
    transition: transform 0.3s var(--ease-out);
}
.faq-item[open] .faq-toggle { transform: rotate(45deg); }
.faq-answer {
    padding: 0 24px 24px;
    color: var(--text-muted);
    line-height: 1.75;
}
.faq-answer p { margin-bottom: 12px; }
.faq-answer p:last-child { margin: 0; }

.faq-cta {
    margin-top: 80px;
    padding: 56px 32px;
    text-align: center;
    background: var(--ink-2);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}
.faq-cta h3 { margin-bottom: 8px; }

@media (max-width: 900px) {
    .faq-layout { grid-template-columns: 1fr; }
    .faq-toc { position: static; }
}

/* Home FAQ section */
.home-faq-section { background: var(--ink-2); border-top: 1px solid var(--line); }
.faq-home-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 900px) {
    .faq-home-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* =======================================================================
   PORTFOLIO
   ======================================================================= */
.portfolio-filters {
    display: flex; flex-wrap: wrap; gap: 8px;
    justify-content: center;
    margin-bottom: 40px;
}
.filter-chip {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px;
    background: var(--ink-2);
    border: 1px solid var(--line-2);
    border-radius: 100px;
    font-weight: 600; font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}
.filter-chip:hover { border-color: var(--brand); color: var(--brand); }
.filter-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-chip span {
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 8px;
    border-radius: 100px;
    font-size: 0.72rem;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    grid-auto-rows: 8px;
    gap: 16px;
}
.masonry-item {
    grid-row-end: span 30;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    cursor: zoom-in;
    transition: transform 0.4s var(--ease-out);
}
.masonry-item.m-portrait { grid-row-end: span 45; }
.masonry-item.m-landscape { grid-row-end: span 28; }
.masonry-item.m-square { grid-row-end: span 35; }
.masonry-item.m-wide { grid-row-end: span 22; }

.masonry-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.masonry-item:hover { transform: translateY(-4px); }
.masonry-item:hover img { transform: scale(1.06); }

.masonry-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s;
}
.masonry-item:hover .masonry-overlay { opacity: 1; }
.masonry-overlay .cat {
    color: var(--brand); font-size: 0.72rem; text-transform: uppercase;
    letter-spacing: 0.12em; font-weight: 700; margin-bottom: 4px;
}
.masonry-overlay h4 {
    font-family: var(--font-body); color: #fff;
    font-size: 1.05rem; font-weight: 700; text-transform: none;
    letter-spacing: 0; line-height: 1.3;
}
.masonry-overlay p { color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; margin: 4px 0 0; }

/* Portfolio teaser en home */
.portfolio-section { background: var(--ink); }
.portfolio-teaser {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    grid-auto-rows: 240px;
}
.portfolio-teaser-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--ink-2);
    transition: transform 0.4s var(--ease-out);
}
.portfolio-teaser-item.p-portrait { grid-row: span 2; }
.portfolio-teaser-item.p-landscape { grid-column: span 2; }
.portfolio-teaser-item.p-wide { grid-column: span 2; }
.portfolio-teaser-item img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.6s var(--ease-out);
}
.portfolio-teaser-item:hover { transform: translateY(-4px); }
.portfolio-teaser-item:hover img { transform: scale(1.06); }
.portfolio-teaser-item .overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.85));
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 20px;
    opacity: 0; transition: opacity 0.3s;
}
.portfolio-teaser-item:hover .overlay { opacity: 1; }
.portfolio-teaser-item .cat {
    color: var(--brand); font-size: 0.7rem;
    text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700;
}
.portfolio-teaser-item strong {
    display: block; color: #fff; font-size: 1rem; margin-top: 4px;
}

@media (max-width: 900px) {
    .portfolio-teaser { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
    .portfolio-teaser-item.p-portrait { grid-row: span 2; }
    .portfolio-teaser-item.p-landscape, .portfolio-teaser-item.p-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
    .portfolio-teaser { grid-template-columns: 1fr; }
    .portfolio-teaser-item.p-portrait, .portfolio-teaser-item.p-landscape, .portfolio-teaser-item.p-wide { grid-column: span 1; grid-row: span 1; }
}

.empty-state {
    text-align: center; padding: 80px 24px;
    background: var(--ink-2); border-radius: var(--radius-lg);
    border: 1px solid var(--line);
}
.empty-state p { color: var(--text-muted); margin-bottom: 24px; }

/* Logo sizing */
.brand img { object-fit: contain; max-height: 48px; }
.footer-logo { max-height: 56px; object-fit: contain; }

/* ===== PageSpeed Mobile: render-skipping para secciones below-the-fold ===== */
.about-section,
.products-section,
.blog-section,
.portfolio-section,
.home-faq-section,
.home-slider {
    content-visibility: auto;
    contain-intrinsic-size: 1px 800px;
}

/* ===== Reduce motion (mejor TBT y batería en mobile) ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .marquee-track { animation: none !important; transform: none !important; }
}
