/* ==========================================================================
   C&E Construcciones — Hoja de estilos
   Dirección estética: editorial / industrial refinado.
   Paleta: rojo apagado + cremas + grises cálidos.
   Tipografía: Fraunces (display, serif variable) + Manrope (body, sans).
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables y tokens
   -------------------------------------------------------------------------- */
:root {
    /* Colores principales */
    --red:           #c24a44;   /* rojo principal, no tan fuerte */
    --red-deep:      #9c3a36;   /* rojo más profundo para hovers */
    --red-soft:      #e8c4c0;   /* rosa apagado */
    --red-softer:    #f5e4e2;   /* rosa muy suave */
    --red-glow:      rgba(194, 74, 68, 0.12);
    --red-glow-2:    rgba(194, 74, 68, 0.05);

    /* Crema / blancos */
    --cream:         #faf8f5;   /* blanco principal, cálido */
    --cream-2:       #f4f1ec;   /* crema ligeramente más oscura */
    --stone:         #ebe7df;   /* piedra */
    --stone-2:       #dcd6cc;   /* piedra más oscura */

    /* Grises cálidos */
    --gray-50:       #e2ddd5;
    --gray-100:      #c5bfb5;
    --gray-300:      #8c8780;
    --gray-500:      #605c56;
    --gray-700:      #3a3734;
    --gray-900:      #232120;

    /* Texto (negro cálido, nunca #000) */
    --ink:           #1c1a18;
    --ink-soft:      #3f3c38;
    --ink-muted:     #6b6862;

    /* Funcionales */
    --bg:            var(--cream);
    --bg-alt:        var(--cream-2);
    --border:        rgba(28, 26, 24, 0.08);
    --border-strong: rgba(28, 26, 24, 0.15);

    /* Tipografía */
    --font-display:  'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body:     'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Espaciado */
    --container:     1240px;
    --gutter:        clamp(1.25rem, 3vw, 2.5rem);
    --section:       clamp(4rem, 10vw, 8rem);

    /* Radios */
    --r-sm: 6px;
    --r-md: 14px;
    --r-lg: 22px;
    --r-xl: 32px;

    /* Animación */
    --ease:          cubic-bezier(0.22, 1, 0.36, 1);
    --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in:       cubic-bezier(0.7, 0, 0.84, 0);

    /* Sombras */
    --shadow-sm:     0 2px 10px -4px rgba(28, 26, 24, 0.08);
    --shadow-md:     0 20px 40px -20px rgba(28, 26, 24, 0.18);
    --shadow-lg:     0 40px 80px -30px rgba(28, 26, 24, 0.22);
}

/* --------------------------------------------------------------------------
   2. Reset y base
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.6;
    font-weight: 400;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    cursor: none;
}

@media (hover: none) {
    body { cursor: auto; }
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--red); }

button {
    font-family: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

ul, ol { list-style: none; }

::selection {
    background: var(--red);
    color: var(--cream);
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--ink);
}

em {
    font-style: italic;
    font-weight: 300;
    color: var(--red);
}

.container {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
}

/* --------------------------------------------------------------------------
   3. Grano y overlays
   -------------------------------------------------------------------------- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.35;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.10 0 0 0 0 0.09 0 0 0 0.8 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

/* --------------------------------------------------------------------------
   4. Cursor follower
   -------------------------------------------------------------------------- */
.cursor {
    position: fixed;
    top: 0; left: 0;
    width: 38px;
    height: 38px;
    border: 1.5px solid var(--red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.3s, border-color 0.3s;
    mix-blend-mode: difference;
}

.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 5px;
    height: 5px;
    background: var(--red);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s var(--ease);
}

.cursor.is-hover {
    width: 72px;
    height: 72px;
    background: var(--red-glow);
    border-color: var(--red);
}

.cursor.is-click {
    width: 20px;
    height: 20px;
}

@media (hover: none), (max-width: 768px) {
    .cursor, .cursor-dot { display: none; }
}

/* --------------------------------------------------------------------------
   5. Preloader
   -------------------------------------------------------------------------- */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--cream);
    display: grid;
    place-items: center;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
}

.preloader.is-hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.preloader__logo {
    max-width: 240px;
    width: 55vw;
    height: auto;
    display: block;
    animation: logo-breathe 2.2s var(--ease) infinite;
}

@keyframes logo-breathe {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.75; transform: scale(0.97); }
}

.preloader__bar {
    display: block;
    width: 160px;
    height: 2px;
    background: var(--border);
    overflow: hidden;
}

.preloader__bar-fill {
    display: block;
    height: 100%;
    width: 0%;
    background: var(--red);
    animation: loadbar 1.4s var(--ease) forwards;
}

@keyframes loadbar {
    0%   { width: 0%; }
    100% { width: 100%; }
}

/* --------------------------------------------------------------------------
   6. Botones
   -------------------------------------------------------------------------- */
.btn {
    --bg-btn: var(--ink);
    --color-btn: var(--cream);
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 1rem 1.6rem;
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    background: var(--bg-btn);
    color: var(--color-btn);
    border-radius: 999px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s var(--ease), background 0.3s;
    white-space: nowrap;
    cursor: none;
}

.btn i { font-size: 0.85em; transition: transform 0.35s var(--ease); }

.btn:hover { color: var(--color-btn); }
.btn:hover i { transform: translateX(4px); }

.btn--primary {
    --bg-btn: var(--red);
    --color-btn: var(--cream);
}
.btn--primary:hover { --bg-btn: var(--red-deep); }

.btn--ghost {
    --bg-btn: transparent;
    --color-btn: var(--ink);
    border: 1.5px solid var(--border-strong);
}
.btn--ghost:hover {
    --bg-btn: var(--ink);
    --color-btn: var(--cream);
}

.btn--large {
    padding: 1.3rem 2.2rem;
    font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   7. Navegación
   -------------------------------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    inset-inline: 0;
    z-index: 500;
    padding: 1.1rem 0;
    transition: background 0.3s var(--ease), padding 0.3s var(--ease), border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
    background: rgba(250, 248, 245, 0.82);
    backdrop-filter: blur(18px) saturate(1.4);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    padding: 0.7rem 0;
    border-bottom-color: var(--border);
}

.nav__inner {
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav__logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.nav__logo-img {
    height: 44px;
    width: auto;
    display: block;
    transition: transform 0.4s var(--ease), height 0.35s var(--ease);
    transform-origin: left center;
}

.nav.is-scrolled .nav__logo-img {
    height: 36px;
}

.nav__logo:hover .nav__logo-img {
    transform: scale(1.05);
}

.nav__links {
    display: flex;
    gap: 2.2rem;
}

.nav__link {
    position: relative;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    padding: 0.4rem 0;
    transition: color 0.3s var(--ease);
}

.nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1.5px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: right center;
    transition: transform 0.45s var(--ease);
}

.nav__link:hover,
.nav__link.is-active {
    color: var(--ink);
}

.nav__link:hover::after,
.nav__link.is-active::after {
    transform: scaleX(1);
    transform-origin: left center;
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.2rem;
    background: var(--ink);
    color: var(--cream);
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.3s, transform 0.3s var(--ease);
}
.nav__cta:hover {
    background: var(--red);
    color: var(--cream);
}
.nav__cta i { font-size: 0.8em; transition: transform 0.3s var(--ease); }
.nav__cta:hover i { transform: translateX(3px); }

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
    align-items: center;
}
.nav__burger span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav__links, .nav__cta { display: none; }
    .nav__burger { display: flex; }

    .nav__links.is-open {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--cream);
        padding: 2rem var(--gutter);
        gap: 1.4rem;
        border-bottom: 1px solid var(--border);
        animation: slideDown 0.4s var(--ease);
    }

    .nav__link {
        font-size: 1.4rem;
        font-family: var(--font-display);
        font-weight: 500;
        letter-spacing: -0.02em;
    }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    padding-top: 7rem;
    padding-bottom: 4rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, var(--red-softer) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 10% 80%, var(--stone) 0%, transparent 60%),
        linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}

.hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(28, 26, 24, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(28, 26, 24, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}

.hero__blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    transition: transform 0.8s var(--ease-out);
    will-change: transform;
}

.hero__blob--1 {
    width: 520px; height: 520px;
    background: var(--red);
    opacity: 0.18;
    top: -10%;
    right: -8%;
}

.hero__blob--2 {
    width: 380px; height: 380px;
    background: var(--red-soft);
    opacity: 0.5;
    bottom: -12%;
    left: -6%;
}

.hero__container {
    position: relative;
    z-index: 2;
    width: min(100% - var(--gutter) * 2, var(--container));
    margin-inline: auto;
    display: flex;
    flex-direction: column;
}

.hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    background: rgba(28, 26, 24, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--ink-soft);
    margin-bottom: 2rem;
    opacity: 0;
    animation: hero-in 0.9s var(--ease-out) 0.1s forwards;
}

.hero__eyebrow .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--red);
    animation: pulse 2s var(--ease) infinite;
}

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

@keyframes hero-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__title {
    font-size: clamp(2.8rem, 9vw, 7.5rem);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 500;
    margin-bottom: 1.8rem;
    max-width: 1100px;
    display: flex;
    flex-wrap: wrap;
    gap: 0 0.25em;
    row-gap: 0;
}

.hero__title .reveal-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    animation: word-up 0.9s var(--ease-out) forwards;
}
.hero__title .reveal-word:nth-child(1) { animation-delay: 0.2s; }
.hero__title .reveal-word:nth-child(2) { animation-delay: 0.32s; }
.hero__title .reveal-word:nth-child(3) { animation-delay: 0.44s; }
.hero__title .reveal-word:nth-child(4) { animation-delay: 0.56s; }

@keyframes word-up {
    from { opacity: 0; transform: translateY(100%); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero__title-accent {
    color: var(--red);
    font-style: italic;
    font-weight: 300;
    position: relative;
}

.hero__lead {
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    max-width: 560px;
    color: var(--ink-soft);
    margin-bottom: 2.2rem;
    line-height: 1.55;
    opacity: 0;
    animation: hero-in 0.9s var(--ease-out) 0.6s forwards;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3.5rem;
    opacity: 0;
    animation: hero-in 0.9s var(--ease-out) 0.75s forwards;
}

.hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    padding-top: 2.2rem;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: hero-in 0.9s var(--ease-out) 0.9s forwards;
}

.hero__meta-item {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
}

.hero__meta-num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 500;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.03em;
}

.hero__meta-plus {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--red);
    font-style: italic;
    font-weight: 300;
    margin-right: 0.6rem;
}

.hero__meta-label {
    font-size: 0.85rem;
    color: var(--ink-muted);
    text-transform: lowercase;
    font-weight: 500;
    letter-spacing: 0.01em;
    flex-basis: 100%;
    max-width: 180px;
}

.hero__scroll {
    position: absolute;
    bottom: 6rem;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--ink-muted);
    font-weight: 500;
}

.hero__scroll i {
    writing-mode: horizontal-tb;
    transform: rotate(180deg);
    animation: scroll-bounce 2s var(--ease) infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: rotate(180deg) translateY(0); }
    50%      { transform: rotate(180deg) translateY(-8px); }
}

@media (max-width: 900px) {
    .hero__scroll { display: none; }
}

/* Marquee */
.hero__marquee {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    overflow: hidden;
    padding: 1.2rem 0;
    background: var(--ink);
    color: var(--cream);
    z-index: 3;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.marquee {
    display: flex;
    gap: 2.5rem;
    font-family: var(--font-display);
    font-size: clamp(1rem, 2vw, 1.4rem);
    font-weight: 500;
    letter-spacing: -0.01em;
    white-space: nowrap;
    animation: marquee 40s linear infinite;
    width: max-content;
}

.marquee span { flex-shrink: 0; }
.marquee span:nth-child(even) { color: var(--red-soft); font-style: italic; }

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   9. Section heads
   -------------------------------------------------------------------------- */
section { padding-block: var(--section); position: relative; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }

.section-head--split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}
@media (max-width: 900px) {
    .section-head--split { grid-template-columns: 1fr; }
}

.section-head__kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 1.5rem;
}

.section-head__kicker i { font-size: 0.9em; }

.section-head__title {
    font-size: clamp(2.2rem, 5.5vw, 4.8rem);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 500;
    max-width: 1000px;
}

.section-head__lead {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    color: var(--ink-soft);
    max-width: 460px;
    margin-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Nosotros
   -------------------------------------------------------------------------- */
.about { background: var(--cream); }

.about__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}
@media (max-width: 900px) {
    .about__grid { grid-template-columns: 1fr; }
}

.about__lead {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 2vw, 1.75rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin-bottom: 1.5rem;
}

.about__text p {
    color: var(--ink-soft);
    font-size: 1.02rem;
    line-height: 1.7;
    max-width: 55ch;
}

.about__pillars {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}
@media (max-width: 600px) {
    .about__pillars { grid-template-columns: 1fr; }
}

.pillar {
    padding: 1.8rem;
    background: var(--cream-2);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    transition: border-color 0.3s, transform 0.4s var(--ease);
}
.pillar:hover {
    border-color: var(--red);
    transform: translateY(-3px);
}

.pillar__icon {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: var(--red-softer);
    color: var(--red);
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.pillar__title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.pillar p {
    font-size: 0.95rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* About side card */
.about__side { position: sticky; top: 100px; }

.about__card {
    position: relative;
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    overflow: hidden;
    transform: rotate(-1deg);
    transition: transform 0.5s var(--ease);
}
.about__card:hover { transform: rotate(0); }

.about__card-inner { position: relative; z-index: 2; }

.about__card-texture {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 10%, var(--red-glow) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(232, 196, 192, 0.08) 0%, transparent 50%);
    z-index: 1;
}

.about__card-mark {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-soft);
    margin-bottom: 1.2rem;
    font-weight: 500;
}

.about__card-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 500;
    color: var(--cream);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.8rem;
}

.about__card-list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.about__card-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: rgba(250, 248, 245, 0.85);
}

.about__card-list i {
    color: var(--red-soft);
    font-size: 0.8em;
}

@media (max-width: 900px) {
    .about__side { position: static; }
}

/* --------------------------------------------------------------------------
   11. Productos (Hormigón)
   -------------------------------------------------------------------------- */
.products { background: var(--cream-2); }

.tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 3rem;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.8rem 1.4rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--ink-soft);
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: all 0.35s var(--ease);
    cursor: none;
}
.tab i { font-size: 0.9em; }

.tab:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

.tab.is-active {
    background: var(--ink);
    color: var(--cream);
    border-color: var(--ink);
}

.tab-panel { display: none; }
.tab-panel.is-active {
    display: block;
    animation: panel-fade 0.5s var(--ease);
}

@keyframes panel-fade {
    from { opacity: 0; transform: translateY(15px); }
    to   { opacity: 1; transform: translateY(0); }
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.2rem;
}

.product-card {
    position: relative;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 1.8rem;
    transition: all 0.45s var(--ease);
    overflow: hidden;
    cursor: none;
    animation: card-in 0.7s var(--ease) backwards;
    animation-delay: var(--delay, 0ms);
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

.product-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--red-softer) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.45s var(--ease);
    z-index: 0;
}

.product-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, var(--red-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.6s var(--ease);
}

.product-card:hover {
    border-color: var(--red);
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}
.product-card:hover::before,
.product-card:hover::after { opacity: 1; }

.product-card__inner { position: relative; z-index: 2; }

.product-card__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.product-card__code {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 2.2rem;
    line-height: 1;
    color: var(--ink);
    letter-spacing: -0.04em;
    transition: color 0.3s;
}
.product-card:hover .product-card__code { color: var(--red); }

.product-card__chip {
    font-size: 0.68rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--ink-muted);
    padding: 0.3rem 0.7rem;
    background: var(--stone);
    border-radius: 999px;
    font-weight: 500;
}

.product-card__title {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.product-card__use {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    min-height: 2.6em;
}

.product-card__foot {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--ink-soft);
    letter-spacing: 0.02em;
    transition: color 0.3s;
}
.product-card:hover .product-card__foot { color: var(--red); }
.product-card__foot i { transition: transform 0.3s var(--ease); }
.product-card:hover .product-card__foot i { transform: translateX(4px); }

/* Feature band */
.feature-band {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.feature i {
    font-size: 1.4rem;
    color: var(--red);
    margin-bottom: 0.7rem;
}

.feature h4 {
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--ink);
}

.feature p {
    font-size: 0.88rem;
    color: var(--ink-muted);
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Servicios (lista editorial)
   -------------------------------------------------------------------------- */
.services { background: var(--cream); }

.services__list {
    border-top: 1px solid var(--border);
}

.service-row {
    display: grid;
    grid-template-columns: 80px 1fr 50px;
    gap: 2rem;
    align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    cursor: none;
    transition: padding 0.4s var(--ease), background 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-row::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--red-softer), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    z-index: 0;
}

.service-row:hover {
    padding-inline: 1.5rem;
}
.service-row:hover::before {
    opacity: 0.5;
}

.service-row > * { position: relative; z-index: 2; }

.service-row__num {
    font-family: var(--font-display);
    font-weight: 300;
    font-style: italic;
    font-size: 1.4rem;
    color: var(--red);
    letter-spacing: -0.02em;
}

.service-row__title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.05;
    transition: color 0.3s;
}

.service-row:hover .service-row__title {
    color: var(--red);
}

.service-row__icon {
    font-size: 0.7em;
    color: var(--ink-muted);
    transition: color 0.3s, transform 0.4s var(--ease);
}
.service-row:hover .service-row__icon {
    color: var(--red);
    transform: rotate(-8deg) scale(1.1);
}

.service-row__desc {
    color: var(--ink-muted);
    font-size: 0.95rem;
    margin-top: 0.6rem;
    max-width: 60ch;
    line-height: 1.55;
    padding-left: calc(0.7em + 1rem);
}
@media (max-width: 700px) {
    .service-row { grid-template-columns: 50px 1fr 30px; gap: 1rem; }
    .service-row__desc { padding-left: 0; }
    .service-row__title { flex-direction: row; }
}

.service-row__arrow {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--stone);
    color: var(--ink);
    display: grid;
    place-items: center;
    font-size: 0.9rem;
    transition: all 0.4s var(--ease);
}
.service-row:hover .service-row__arrow {
    background: var(--red);
    color: var(--cream);
    transform: rotate(-45deg) scale(1.05);
}

/* --------------------------------------------------------------------------
   13. Plantas
   -------------------------------------------------------------------------- */
.plants { background: var(--cream-2); }

.plants__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}
@media (max-width: 800px) {
    .plants__grid { grid-template-columns: 1fr; }
}

.plant {
    position: relative;
    padding: 3rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    transition: all 0.5s var(--ease);
    overflow: hidden;
}

.plant::after {
    content: "";
    position: absolute;
    bottom: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.5s var(--ease);
}

.plant:hover {
    border-color: var(--red);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.plant:hover::after { opacity: 1; }

.plant__tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1.2rem;
    padding: 0.35rem 0.85rem;
    background: var(--red-softer);
    border-radius: 999px;
}

.plant__name {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

.plant__addr {
    color: var(--ink-soft);
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 2rem;
}

.plant__info {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.plant__info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.plant__info i {
    width: 20px;
    color: var(--red);
    font-size: 0.95em;
}

/* --------------------------------------------------------------------------
   14. CTA band
   -------------------------------------------------------------------------- */
.cta-band { padding-block: clamp(3rem, 8vw, 5rem); }

.cta-band__inner {
    background: var(--ink);
    color: var(--cream);
    border-radius: var(--r-xl);
    padding: clamp(3rem, 7vw, 5.5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-band__inner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, var(--red) 0%, transparent 60%);
    opacity: 0.3;
    animation: cta-rotate 20s linear infinite;
}

.cta-band__inner::after {
    content: "";
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(ellipse, var(--red-soft) 0%, transparent 60%);
    opacity: 0.15;
    animation: cta-rotate 25s linear infinite reverse;
}

@keyframes cta-rotate {
    from { transform: rotate(0); }
    to   { transform: rotate(360deg); }
}

.cta-band__inner > * { position: relative; z-index: 2; }

.cta-band__title {
    font-size: clamp(2rem, 5.5vw, 4.5rem);
    color: var(--cream);
    line-height: 1;
    letter-spacing: -0.035em;
    font-weight: 500;
    margin-bottom: 1.5rem;
}
.cta-band__title em { color: var(--red-soft); }

.cta-band__text {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(250, 248, 245, 0.75);
    max-width: 500px;
    margin: 0 auto 2.5rem;
    line-height: 1.55;
}

/* --------------------------------------------------------------------------
   15. Contacto
   -------------------------------------------------------------------------- */
.contact { background: var(--cream); }

.contact__grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 1.5rem;
}

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

.contact-card {
    padding: 2.5rem;
    background: var(--cream-2);
    border: 1px solid var(--border);
    border-radius: var(--r-xl);
    transition: all 0.4s var(--ease);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.contact-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-3px);
}

.contact-card--featured {
    background: linear-gradient(140deg, var(--red) 0%, var(--red-deep) 100%);
    color: var(--cream);
    border: none;
    position: relative;
}

.contact-card--featured::before {
    content: "";
    position: absolute;
    top: -50%;
    right: -30%;
    width: 120%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.contact-card__kicker {
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--red);
    font-weight: 600;
    margin-bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-card--featured .contact-card__kicker {
    color: var(--red-softer);
}

.contact-card__name {
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.25rem;
}
.contact-card--featured .contact-card__name { color: var(--cream); }

.contact-card__role {
    font-size: 0.95rem;
    color: rgba(250, 248, 245, 0.75);
    margin-bottom: 2rem;
    font-style: italic;
    font-family: var(--font-display);
}

.contact-card__title {
    font-size: 1.35rem;
    font-weight: 500;
    line-height: 1.2;
    margin-bottom: 0.4rem;
}

.contact-card__meta {
    color: var(--ink-muted);
    font-size: 0.92rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.contact-card__list {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: auto;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

.contact-card__list li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.95rem;
    color: var(--ink-soft);
}

.contact-card__list i {
    color: var(--red);
    width: 18px;
    font-size: 0.9em;
}

.contact-card__list a { color: var(--ink-soft); }
.contact-card__list a:hover { color: var(--red); }

.contact-card__channels {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: auto;
    position: relative;
    z-index: 2;
}

.channel {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.2rem;
    background: rgba(250, 248, 245, 0.14);
    border: 1px solid rgba(250, 248, 245, 0.22);
    border-radius: var(--r-md);
    transition: all 0.3s var(--ease);
    color: var(--cream);
}

.channel:hover {
    background: rgba(250, 248, 245, 0.95);
    color: var(--red);
    transform: translateX(4px);
}

.channel > i {
    font-size: 1.3rem;
    width: 28px;
}

.channel div {
    flex: 1;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.channel__label {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.75;
    margin-bottom: 0.15rem;
}

.channel__value {
    font-weight: 500;
    font-size: 1.02rem;
}

.channel__ext {
    font-size: 0.75em;
    opacity: 0.5;
    transition: transform 0.3s var(--ease);
}
.channel:hover .channel__ext {
    transform: translate(2px, -2px);
    opacity: 1;
}

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: var(--ink);
    color: var(--cream);
    padding-top: 5rem;
    padding-bottom: 2rem;
}

.footer__top {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: clamp(2rem, 5vw, 4rem);
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(250, 248, 245, 0.08);
}
@media (max-width: 800px) {
    .footer__top { grid-template-columns: 1fr; }
}

.footer__logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 1.5rem;

    /* El fondo del footer es oscuro. Si tu logo es oscuro sobre transparente,
       el filter lo convierte en blanco para que se vea correctamente.
       Si tu logo ya viene en blanco o colores claros, COMENTÁ la línea filter
       para preservar los colores originales. */
    /* filter: brightness(0) invert(1); */
    opacity: 0.92;
}

.footer__tagline {
    color: rgba(250, 248, 245, 0.6);
    font-size: 0.95rem;
    max-width: 280px;
    line-height: 1.55;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
@media (max-width: 600px) {
    .footer__cols { grid-template-columns: 1fr 1fr; }
}

.footer__col h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red-soft);
    margin-bottom: 1.2rem;
}

.footer__col ul {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.footer__col a {
    color: rgba(250, 248, 245, 0.75);
    font-size: 0.95rem;
    transition: color 0.2s, padding-left 0.3s var(--ease);
}
.footer__col a:hover {
    color: var(--red-soft);
    padding-left: 4px;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 2rem;
    font-size: 0.85rem;
    color: rgba(250, 248, 245, 0.4);
}

.footer__sign a {
    color: var(--red-soft);
}

/* --------------------------------------------------------------------------
   17. WhatsApp flotante
   -------------------------------------------------------------------------- */
.float-wa {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 400;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    box-shadow: 0 10px 30px -8px rgba(37, 211, 102, 0.5);
    transition: transform 0.3s var(--ease);
    isolation: isolate;
}
.float-wa:hover {
    transform: scale(1.08);
    color: #ffffff;
}

.float-wa i {
    position: relative;
    z-index: 2;
    line-height: 1;
}

.float-wa__pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: #25D366;
    animation: wa-pulse 2s ease-out infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes wa-pulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* --------------------------------------------------------------------------
   18. Reveal animations
   -------------------------------------------------------------------------- */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   19. Reduced motion
   -------------------------------------------------------------------------- */
@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;
    }
    .cursor, .cursor-dot { display: none; }
    body { cursor: auto; }
}

/* --------------------------------------------------------------------------
   NN. Galería (coverflow con prev/active/next)
   -------------------------------------------------------------------------- */
.gallery { background: var(--cream); overflow: hidden; }

.gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: clamp(420px, 65vh, 680px);
    margin-top: 1.5rem;
    perspective: 1800px;
}

.gallery-nav {
    flex-shrink: 0;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: var(--cream-2);
    border: 1px solid var(--border);
    color: var(--ink);
    font-size: 0.95rem;
    display: grid;
    place-items: center;
    cursor: none;
    transition: all 0.35s var(--ease);
    z-index: 20;
}
.gallery-nav:hover {
    background: var(--red);
    color: var(--cream);
    border-color: var(--red);
    transform: scale(1.08);
}
.gallery-nav:active { transform: scale(0.95); }

.gallery-track {
    position: relative;
    flex: 1;
    max-width: 1000px;
    height: clamp(420px, 65vh, 680px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
}

.gallery-slide {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(260px, 32vw, 420px);
    aspect-ratio: 3 / 4;
    background: var(--stone);
    border-radius: var(--r-lg);
    overflow: hidden;
    transform: translate(-50%, -50%) scale(0.7);
    opacity: 0;
    transition:
        transform 0.7s var(--ease),
        opacity 0.6s var(--ease);
    cursor: none;
    box-shadow: 0 30px 60px -30px rgba(28, 26, 24, 0.25);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--ease);
}

/* Estado: anterior (izquierda) */
.gallery-slide.is-prev {
    opacity: 0.45;
    transform: translate(calc(-50% - 70%), -50%) scale(0.82) rotateY(18deg);
    z-index: 2;
    filter: saturate(0.8);
}

/* Estado: activa (centro) */
.gallery-slide.is-active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    z-index: 5;
    box-shadow: 0 40px 80px -20px rgba(28, 26, 24, 0.35);
}
.gallery-slide.is-active:hover img {
    transform: scale(1.04);
}

/* Estado: siguiente (derecha) */
.gallery-slide.is-next {
    opacity: 0.45;
    transform: translate(calc(-50% + 70%), -50%) scale(0.82) rotateY(-18deg);
    z-index: 2;
    filter: saturate(0.8);
}

/* Estado: lejos (oculta) */
.gallery-slide.is-far {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
    pointer-events: none;
    z-index: 1;
}

/* Caption sobre la slide activa */
.gallery-slide__caption {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: end;
    opacity: 0;
    transition: opacity 0.4s var(--ease) 0.2s;
    z-index: 2;
    pointer-events: none;
}

.gallery-slide.is-active .gallery-slide__caption {
    opacity: 1;
}

.gallery-slide__caption::before {
    content: "";
    position: absolute;
    inset: -2rem -1rem -1rem -1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(28, 26, 24, 0.7) 100%);
    z-index: -1;
    border-radius: 0 0 var(--r-lg) var(--r-lg);
}

.gallery-slide__count {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    color: var(--cream);
}

/* Controles inferiores */
.gallery-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    gap: 1.5rem;
}

.gallery-dots {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.gallery-dot {
    width: 32px;
    height: 2px;
    background: var(--border-strong);
    border-radius: 2px;
    cursor: none;
    transition: all 0.4s var(--ease);
    padding: 0;
}

.gallery-dot.is-active {
    background: var(--red);
    width: 48px;
}

.gallery-dot:hover:not(.is-active) {
    background: var(--ink-muted);
}

.gallery-meta {
    font-family: var(--font-display);
    font-weight: 500;
    font-size: 1.4rem;
    letter-spacing: -0.02em;
    color: var(--ink);
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
}

.gallery-meta__divider {
    color: var(--ink-muted);
    font-weight: 300;
    font-style: italic;
}

.gallery-meta__total {
    color: var(--ink-muted);
    font-size: 0.9em;
    font-weight: 400;
}

/* Responsive */
@media (max-width: 900px) {
    .gallery-slide {
        width: clamp(240px, 50vw, 340px);
    }
    .gallery-slide.is-prev {
        transform: translate(calc(-50% - 55%), -50%) scale(0.78) rotateY(15deg);
        opacity: 0.3;
    }
    .gallery-slide.is-next {
        transform: translate(calc(-50% + 55%), -50%) scale(0.78) rotateY(-15deg);
        opacity: 0.3;
    }
}

@media (max-width: 640px) {
    .gallery-stage {
        gap: 0.3rem;
        min-height: 520px;
    }
    .gallery-nav {
        width: 42px;
        height: 42px;
        font-size: 0.85rem;
    }
    .gallery-track {
        height: 520px;
    }
    .gallery-slide {
        width: min(70vw, 300px);
    }
    .gallery-slide.is-prev {
        transform: translate(calc(-50% - 45%), -50%) scale(0.65) rotateY(12deg);
        opacity: 0.2;
    }
    .gallery-slide.is-next {
        transform: translate(calc(-50% + 45%), -50%) scale(0.65) rotateY(-12deg);
        opacity: 0.2;
    }
    .gallery-controls {
        flex-direction: column-reverse;
        gap: 1.2rem;
    }
    .gallery-dot { width: 24px; }
    .gallery-dot.is-active { width: 36px; }
}

/* --------------------------------------------------------------------------
   20. Responsive fine-tuning
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
    .hero { padding-top: 6rem; }
    .hero__meta { gap: 1.2rem; }
    .hero__meta-item { flex-basis: 45%; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .btn { justify-content: center; }
    .float-wa { width: 52px; height: 52px; font-size: 1.4rem; }
}
