/* Fuente del contacto destacado del pie (alojada en el propio sitio) */
@font-face { font-family: "Merriweather"; src: url("fonts/merriweather-latin-300-italic.woff2") format("woff2"); font-weight: 300; font-style: italic; font-display: swap; }

/* =========================================================
   PROMOZAR — Home v2
   Paleta original: naranja #FF6B35, negro, blanco y grises.
   Tipografía original: Montserrat.
   ========================================================= */

:root {
    --color-primary: #FF6B35;
    --color-primary-deep: #FF5521;
    --color-dark: #000000;
    --color-light: #FFFFFF;
    --color-gray: #F1F1F1;
    --color-gray-text: #666666;
    --line: #ECECEC;
    --font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --max-width: 1240px;
    --gutter: clamp(1.25rem, 4vw, 2.5rem);
    --section: clamp(3.75rem, 7.5vw, 6rem);
    --fade: clamp(70px, 8vw, 120px);
    --r-btn: 6px;   /* botones */
    --r-img: 10px;  /* fotos */
    --r-card: 12px; /* tarjetas */
    --r-sm: var(--r-btn);
    --r-md: var(--r-img);
    --r-lg: var(--r-card);
    --ease: cubic-bezier(.22, .61, .21, 1);
    --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
body {
    font-family: var(--font-family);
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-dark);
    background: var(--color-light);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; }
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 4px; border-radius: 4px; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section) 0; position: relative; }

/* ---------- Fundidos entre secciones ----------
   El degradado ocupa el espacio vacío entre el contenido de una sección
   y el título de la siguiente, con una curva suave (no lineal), y termina
   antes de que empiece el texto. */
.fade-from-black, .fade-from-white, .fade-from-gray { position: relative; }
.fade-from-black::after, .fade-from-white::after, .fade-from-gray::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--section) * -1);
    height: calc(var(--section) * 1.65);
    pointer-events: none;
    z-index: 0;
    background-color: inherit; /* color de destino debajo del degradado */
}
.fade-from-black::after { background-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.97) 12%, rgba(0,0,0,0.9) 24%, rgba(0,0,0,0.78) 36%, rgba(0,0,0,0.62) 48%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0.28) 72%, rgba(0,0,0,0.13) 84%, rgba(0,0,0,0.04) 93%, rgba(0,0,0,0) 100%); }
.fade-from-white::after { background-image: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(255,255,255,0.97) 12%, rgba(255,255,255,0.9) 24%, rgba(255,255,255,0.78) 36%, rgba(255,255,255,0.62) 48%, rgba(255,255,255,0.45) 60%, rgba(255,255,255,0.28) 72%, rgba(255,255,255,0.13) 84%, rgba(255,255,255,0.04) 93%, rgba(255,255,255,0) 100%); }
.fade-from-gray::after  { background-image: linear-gradient(to bottom, rgba(241,241,241,1) 0%, rgba(241,241,241,0.97) 12%, rgba(241,241,241,0.9) 24%, rgba(241,241,241,0.78) 36%, rgba(241,241,241,0.62) 48%, rgba(241,241,241,0.45) 60%, rgba(241,241,241,0.28) 72%, rgba(241,241,241,0.13) 84%, rgba(241,241,241,0.04) 93%, rgba(241,241,241,0) 100%); }
section > .container, footer > .container { position: relative; z-index: 1; }

/* ---------- Secciones oscuras ---------- */
.dark { background-color: var(--color-dark); color: var(--color-light); overflow-x: clip; }
.dark::before {
    content: '';
    position: absolute;
    width: 760px; height: 760px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,107,53,.13) 0%, rgba(255,107,53,0) 62%);
    pointer-events: none;
}
.about.dark::before { right: -300px; top: 50%; transform: translateY(-50%); }
.testimonials.dark::before { left: -320px; top: 50%; transform: translateY(-50%); }
.dark .container { position: relative; z-index: 1; }

/* ---------- Títulos ---------- */
.section-title {
    font-size: clamp(2rem, 4.2vw, 3.1rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.025em;
    margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}
.section-title::after {
    content: '';
    display: block;
    width: 44px; height: 3px;
    margin-top: 1.2rem;
    border-radius: 3px;
    background: var(--color-primary);
}
.section-title.center { text-align: center; }
.section-title.center::after { margin-left: auto; margin-right: auto; }

/* ---------- Botones ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    padding: 1rem 1.75rem;
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .01em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover { transform: translateY(-3px); }
.btn:hover .btn-ico { transform: translateX(4px); }
.btn:active { transform: translateY(-1px); }

.btn-solid { background: var(--color-primary); color: var(--color-light); box-shadow: 0 8px 22px rgba(255,107,53,.28); }
.btn-solid::after {
    content: '';
    position: absolute; top: 0; bottom: 0; left: -60%;
    width: 40%;
    z-index: -1;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
    transform: skewX(-20deg);
    transition: left .7s var(--ease);
}
.btn-solid:hover { background: var(--color-primary-deep); box-shadow: 0 16px 36px rgba(255,107,53,.45); }
.btn-solid:hover::after { left: 120%; }

.btn-glass {
    color: var(--color-light);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.btn-glass:hover { background: var(--color-light); color: var(--color-dark); border-color: var(--color-light); box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.btn-sm { padding: .7rem 1.25rem; font-size: .84rem; }

/* ---------- NAVBAR ---------- */
nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    padding: calc(1.4rem + env(safe-area-inset-top, 0px)) 0 1.4rem;
    transition: padding .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
nav.scrolled {
    padding: calc(.8rem + env(safe-area-inset-top, 0px)) 0 .8rem;
    background: rgba(0,0,0,.94); /* casi opaco: igual sobre fondos claros u oscuros */
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    box-shadow: 0 1px 0 rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.25);
}
.navbar-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between;
}
.logo img { height: 36px; width: auto; transition: height .45s var(--ease); }
nav.scrolled .logo img { height: 32px; }
.nav-menu { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.25rem); }
.nav-menu a:not(.btn) {
    color: rgba(255,255,255,.88);
    text-decoration: none;
    font-size: .86rem;
    font-weight: 500;
    position: relative;
    padding: .35rem 0;
    transition: color .3s var(--ease);
}
.nav-menu a:not(.btn)::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; border-radius: 2px;
    background: var(--color-primary);
    transform: scaleX(0);
    transition: transform .4s var(--ease-out);
}
.nav-menu a:not(.btn):hover { color: var(--color-light); }
.nav-menu a:not(.btn):hover::after { transform: scaleX(1); }

.hamburger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; z-index: 1002; }
.hamburger span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--color-light); transition: transform .45s var(--ease), top .45s var(--ease); }
.hamburger span:nth-child(1) { top: 17px; }
.hamburger span:nth-child(2) { top: 26px; }

/* ---------- HERO ---------- */
.hero {
    height: 100vh;
    height: 100svh;
    min-height: 620px;
    padding: 0;
    display: flex;
    align-items: flex-end;
    color: var(--color-light);
    background: var(--color-dark);
    overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
    width: 100%; height: 118%;
    object-fit: cover;
    object-position: 60% 30%;
    opacity: 0;
    transform: scale(1.12);
    animation: heroImg 2.2s var(--ease-out) .1s forwards;
    will-change: transform;
}
/* Degradado lateral para el texto */
.hero-media::before {
    content: '';
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(100deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,.62) 42%, rgba(0,0,0,.18) 100%);
}
/* Fundido inferior a negro: enlaza con la sección siguiente */
.hero-media::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
    height: 58%;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.6) 50%, #000 90%, #000 100%);
}
.hero-content {
    position: relative; z-index: 2;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 7rem var(--gutter) clamp(2rem, 5vh, 3.25rem);
}
.hero-logo {
    font-size: clamp(2.6rem, 6.4vw, 5.4rem);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.035em;
    max-width: 14ch;
    text-transform: lowercase;
    opacity: 0;
    transform: translateY(36px);
    animation: rise 1.2s var(--ease-out) .55s forwards;
}
.hero-logo::first-letter { text-transform: uppercase; }
.hero-actions {
    display: flex; flex-wrap: wrap; gap: .9rem;
    margin-top: clamp(2rem, 4vh, 2.75rem);
    opacity: 0; transform: translateY(24px);
    animation: rise 1.1s var(--ease-out) .85s forwards;
}
.hero-services {
    display: flex; flex-wrap: wrap;
    gap: .9rem 2.5rem;
    margin-top: clamp(3rem, 8vh, 5rem);
    padding-top: 1.75rem;
    border-top: 1px solid rgba(255,255,255,.18);
    max-width: 760px;
    opacity: 0; transform: translateY(20px);
    animation: rise 1.1s var(--ease-out) 1.1s forwards;
}
.hero-services li {
    display: flex; align-items: center; gap: .7rem;
    font-size: .92rem;
    font-weight: 500;
    color: rgba(255,255,255,.82);
}
.hero-services li::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 2px;
    background: var(--color-primary);
}
@keyframes heroImg { to { opacity: 1; transform: scale(1); } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Aparición al hacer scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease-out); }
.js .reveal.visible { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .12s; }
.js .reveal.d2 { transition-delay: .24s; }

/* ---------- Marcos de imagen ---------- */
.img-frame {
    position: relative;
    border-radius: var(--r-lg);
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0,0,0,.28);
    background: #111;
}
.img-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); will-change: transform; }
.dark .img-frame { box-shadow: 0 34px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); }

/* ---------- ABOUT ---------- */
.about { padding-top: clamp(1.5rem, 3vw, 2.5rem); }
.about-content { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.about-text h3 { font-size: 1.2rem; font-weight: 600; color: var(--color-primary); margin-bottom: 1.4rem; }
.about-text p { color: rgba(255,255,255,.72); margin-bottom: 1.1rem; max-width: 54ch; }
.about-image { aspect-ratio: 4 / 3.4; }

/* ---------- PROCESO ---------- */
.phases { background-color: var(--color-light); }
.phases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.phase {
    background: var(--color-gray);
    border: 1px solid transparent;
    border-radius: var(--r-lg);
    padding: clamp(2rem, 3vw, 2.75rem);
    position: relative;
    overflow: hidden;
    transition: transform .8s var(--ease-out), box-shadow .8s var(--ease), border-color .8s var(--ease), background-color .8s var(--ease);
}
.phase:hover {
    transform: translateY(-6px);
    background: var(--color-light);
    border-color: rgba(255,107,53,.35);
    box-shadow: 0 28px 60px rgba(0,0,0,.08);
}
.phase-icon {
    width: 62px; height: 62px;
    border-radius: 16px;
    display: grid; place-items: center;
    background: rgba(255,107,53,.12);
    margin-bottom: 1.75rem;
    transition: background-color .8s var(--ease), transform .8s var(--ease-out);
}
.phase-icon svg { width: 28px; height: 28px; fill: none; stroke: var(--color-primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: stroke .8s var(--ease); }
.phase:hover .phase-icon { background: var(--color-primary); }
.phase:hover .phase-icon svg { stroke: var(--color-light); }
.phase-number {
    position: absolute; top: 1.5rem; right: 1.75rem;
    font-size: 4.2rem; font-weight: 700; line-height: 1;
    letter-spacing: -0.05em;
    color: rgba(0,0,0,.05);
    transition: color .8s var(--ease);
}
.phase:hover .phase-number { color: rgba(255,107,53,.16); }
.phase h3 { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 1.1rem; }
.phase-list li {
    position: relative;
    padding: .55rem 0 .55rem 1.6rem;
    color: var(--color-gray-text);
    font-size: .95rem; line-height: 1.5;
}
.phase-list li::before {
    content: '';
    position: absolute; left: 0; top: 1.05rem;
    width: 9px; height: 5px;
    border-left: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: rotate(-45deg);
}

/* ---------- PORTFOLIO ---------- */
.portfolio { background-color: var(--color-gray); }
.portfolio-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.9rem, 1.6vw, 1.4rem); }
.portfolio-item {
    position: relative;
    border-radius: var(--r-md);
    overflow: hidden;
    background: #ddd;
    transition: transform .9s var(--ease-out), box-shadow .9s var(--ease);
}
.w7 { grid-column: span 7; height: clamp(280px, 32vw, 450px); }
.w5 { grid-column: span 5; height: clamp(280px, 32vw, 450px); }
.w4 { grid-column: span 4; height: clamp(320px, 34vw, 480px); }
.w6 { grid-column: span 6; height: clamp(260px, 28vw, 400px); }
.portfolio-item img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1.6s var(--ease-out);
}
.portfolio-item:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(0,0,0,.16); }
.portfolio-item:hover img { transform: scale(1.06); }
.portfolio-overlay {
    position: absolute; inset: auto 0 0 0;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem;
    padding: 4.5rem clamp(1.1rem, 2vw, 1.75rem) clamp(1.1rem, 2vw, 1.5rem);
    background: linear-gradient(to top, rgba(0,0,0,.72) 0%, rgba(0,0,0,0) 100%);
    color: var(--color-light);
}
.portfolio-overlay h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.005em; transition: transform .5s var(--ease-out); }
.portfolio-item:hover .portfolio-overlay h3 { transform: translateX(4px); }

/* ---------- CLIENTES ---------- */
.clients { background-color: var(--color-light); }
.clients .section-title { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.clients-carousel {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 12%, #000 88%, transparent);
}
.carousel-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.clients-carousel:hover .carousel-track { animation-play-state: paused; }
.client-logo { padding: 0 .5rem; }
.client-logo img { height: clamp(84px, 10vw, 128px); width: auto; mix-blend-mode: multiply; opacity: .55; transition: opacity .35s, transform .35s var(--ease-out); }
.client-logo:hover img { opacity: 1; transform: scale(1.05); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- TESTIMONIOS ---------- */
.testimonials-carousel { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.4rem); }
.testimonial-card {
    display: flex; flex-direction: column;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--r-lg);
    padding: clamp(1.75rem, 2.6vw, 2.25rem);
    position: relative;
    overflow: hidden;
    transition: transform .8s var(--ease-out), background-color .8s var(--ease), border-color .8s var(--ease), opacity 1s var(--ease);
}
.testimonial-card::before {
    content: '';
    position: absolute; top: 0; left: 2rem; right: 2rem;
    height: 2px;
    background: var(--color-primary);
    transform: scaleX(.18);
    transform-origin: left;
    transition: transform .6s var(--ease-out);
}
.testimonial-card:hover { transform: translateY(-6px); background: rgba(255,255,255,.075); border-color: rgba(255,107,53,.4); }
.testimonial-card:hover::before { transform: scaleX(1); }
.testimonial-text { color: rgba(255,255,255,.86); font-size: 1rem; line-height: 1.7; margin-bottom: 1.75rem; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: .9rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.09); }
.testimonial-avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255,107,53,.7); }
.testimonial-info h4 { font-size: .95rem; font-weight: 600; }
.testimonial-info p { font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- MANTENIMIENTOS ---------- */
.maintenance { background-color: var(--color-light); }
.maintenance-content { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.maintenance-text p { color: var(--color-gray-text); margin-bottom: 1.1rem; max-width: 54ch; }
.maintenance-text strong { color: var(--color-dark); }
.maintenance-logos { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 2.25rem; }
.maintenance-logos img {
    height: 72px; width: auto;
    padding: .9rem 1.25rem;
    background: var(--color-light);
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    object-fit: contain;
    transition: transform .4s var(--ease-out), box-shadow .4s var(--ease), border-color .4s;
}
.maintenance-logos img:hover { transform: translateY(-3px); border-color: rgba(255,107,53,.4); box-shadow: 0 14px 30px rgba(0,0,0,.08); }
.maintenance-image { aspect-ratio: 4 / 3.1; }

/* ---------- FOOTER ---------- */
footer {
    background-color: var(--color-dark);
    color: var(--color-light);
    padding: clamp(4.5rem, 8vw, 6rem) 0 calc(2rem + env(safe-area-inset-bottom, 0px));
    position: relative;
}

.footer-content { display: grid; grid-template-columns: 1.5fr 1.4fr 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); padding-bottom: clamp(3rem, 5vw, 4rem); }
.footer-logo img { height: 36px; width: auto; margin-bottom: 1.4rem; }
.footer-brand p { max-width: 30ch; }
.footer-section h3 { font-size: .95rem; font-weight: 600; margin-bottom: 1.3rem; }
.footer-section p { color: rgba(255,255,255,.6); font-size: .9rem; margin-bottom: 1rem; }
.footer-section p strong { color: var(--color-light); font-weight: 500; }
.footer-section a { display: block; width: fit-content; color: rgba(255,255,255,.6); text-decoration: none; font-size: .9rem; margin-bottom: .7rem; transition: color .3s, transform .3s var(--ease-out); }
.footer-section a:hover { color: var(--color-primary); transform: translateX(4px); }
.footer-section a.footer-strong { color: var(--color-light); font-size: 1rem; font-weight: 500; margin-bottom: 0; }
.footer-section a.footer-strong:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.75rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { color: rgba(255,255,255,.45); font-size: .8rem; }
.to-top { display: inline-flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.65); font-size: .8rem; text-decoration: none; transition: color .3s; }
.to-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.to-top:hover { color: var(--color-primary); }
.to-top:hover svg { transform: translateY(-3px); }

/* ---------- Banner de cookies ---------- */
.cookie-banner {
    position: fixed; z-index: 999;
    right: var(--gutter); left: var(--gutter);
    bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
    max-width: 540px; margin-left: auto;
    background: rgba(12,12,12,.94);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    color: var(--color-light);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: var(--r-md);
    padding: 1.3rem 1.4rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
    opacity: 0; transform: translateY(20px);
    transition: opacity .6s var(--ease), transform .6s var(--ease-out);
}
.cookie-banner.show { opacity: 1; transform: none; }
.cookie-banner p { flex: 1; min-width: 220px; font-size: .85rem; line-height: 1.55; }
.cookie-banner p a { color: var(--color-primary); font-weight: 600; text-decoration: none; }
.cookie-actions { display: flex; gap: .6rem; }
.cookie-actions button { font: inherit; font-size: .84rem; font-weight: 600; padding: .7rem 1.2rem; border-radius: 8px; cursor: pointer; transition: background-color .3s, border-color .3s, transform .3s; }
.cookie-actions button:hover { transform: translateY(-2px); }
.cookie-reject { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); }
.cookie-reject:hover { border-color: #fff; }
.cookie-accept { background: var(--color-primary); color: #fff; border: 1px solid var(--color-primary); }
.cookie-accept:hover { background: var(--color-primary-deep); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
    .hamburger { display: block; }
    .nav-menu {
        position: fixed; inset: 0; z-index: 1001;
        flex-direction: column; justify-content: center; align-items: flex-start;
        gap: 1.1rem;
        padding: 0 var(--gutter);
        background: var(--color-dark);
        clip-path: circle(0% at calc(100% - 42px) 42px);
        transition: clip-path .75s var(--ease-out);
    }
    .nav-menu.active { clip-path: circle(150% at calc(100% - 42px) 42px); }
    .nav-menu a:not(.btn) { font-size: clamp(1.9rem, 8vw, 2.6rem); font-weight: 500; letter-spacing: -0.02em; color: #fff; }
    .nav-cta-item { margin-top: 1rem; }
    .nav-cta-item .btn { font-size: .95rem; padding: .95rem 1.6rem; }
    nav.menu-open .hamburger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
    nav.menu-open .hamburger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }
    nav.menu-open .logo { position: relative; z-index: 1002; }

    .about-content, .maintenance-content { grid-template-columns: 1fr; }
    .about-image, .maintenance-image { aspect-ratio: 4 / 3; }
    .phases-grid, .testimonials-carousel { grid-template-columns: 1fr; }
    .w7, .w6, .w5, .w4 { grid-column: span 6; height: clamp(240px, 42vw, 360px); }
    .footer-content { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 600px) and (max-width: 980px) {
    .testimonials-carousel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    body { font-size: 16px; }
    .w7, .w6, .w5, .w4 { grid-column: 1 / -1; height: 280px; }
    .hero-services { gap: .7rem 1.5rem; }
    .footer-content { grid-template-columns: 1fr; }
}

/* ---------- Movimiento reducido ----------
   Se mantienen los fundidos, los hovers y el carrusel de logos;
   solo se suavizan los desplazamientos grandes. */
@media (prefers-reduced-motion: reduce) {
    .hero-media img { transform: none; animation-name: heroFade; }
    .js .reveal { transform: none; }
    .img-frame img { transform: none !important; }
}
@keyframes heroFade { to { opacity: 1; } }

/* ---------- CONTACTO DESTACADO SOBRE EL PIE ---------- */
.footer-cta { padding-top: clamp(1rem, 2.4vw, 2rem); padding-bottom: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: clamp(2.5rem, 4vw, 3.5rem); border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-mail {
    display: block; width: fit-content; max-width: 100%;
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 300;
    font-size: clamp(1.45rem, .8rem + 2.4vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em;
    color: var(--color-light); text-decoration: none; overflow-wrap: anywhere;
    background-image: linear-gradient(var(--color-primary), var(--color-primary)); background-repeat: no-repeat;
    background-size: 100% 2px; background-position: 0 100%; padding-bottom: .15em;
    transition: background-size .7s cubic-bezier(.16, 1, .3, 1), color .5s ease;
}
.footer-mail:hover { background-size: 100% 100%; color: var(--color-dark); }
.footer-phone {
    display: inline-block; margin-top: clamp(.8rem, 1.4vw, 1.1rem);
    font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums;
    font-size: clamp(1.2rem, .9rem + 1.1vw, 1.7rem); text-decoration: none; color: var(--color-light);
    transition: color .4s ease;
}
.footer-phone:hover { color: var(--color-primary); }
