/* =========================================================
   Carv-performance — Hoja de estilos principal
   ========================================================= */

/* ===================== VARIABLES DE MARCA ===================== */
:root {
    --red: #E50914;
    --red-dark: #B20710;
    --dark: #0A0A0A;
    --card: #141414;
    --card-2: #1B1B1B;
    --border: #2A2A2A;
    --silver: #E5E5E5;
    --muted: #9CA3AF;
    --wa: #25D366;
    --wa-dark: #1DA851;
    --radius: 1rem;
    --nav-h: 76px;
}

/* ===================== BASE ===================== */
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
    background: var(--dark);
    color: var(--silver);
    font-family: 'Inter', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
::selection { background: var(--red); color: #fff; }
a { text-decoration: none; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 2000;
    background: var(--red); color: #fff; padding: .6rem 1rem; border-radius: .5rem; font-weight: 700;
}
.skip-link:focus { top: 1rem; color: #fff; }

/* Títulos estilo "racing" */
.title-race {
    font-family: 'Barlow Condensed', sans-serif;
    font-style: italic;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
    line-height: .95;
    color: #fff;
}
.text-red { color: var(--red) !important; }
.text-muted-2 { color: var(--muted) !important; }
.eyebrow {
    color: var(--red);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.section { padding: 5rem 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; }
.container-narrow { max-width: 900px; }

/* ===================== BOTONES ===================== */
.btn-red, .btn-wa, .btn-ghost {
    font-weight: 700;
    border-radius: .75rem;
    padding: .85rem 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn-red { background: var(--red); color: #fff; border: 0; box-shadow: 0 8px 24px rgba(229,9,20,.3); }
.btn-red:hover { background: var(--red-dark); color: #fff; transform: translateY(-2px); }
.btn-wa { background: var(--wa); color: #fff; border: 0; box-shadow: 0 8px 24px rgba(37,211,102,.3); }
.btn-wa:hover { background: var(--wa-dark); color: #fff; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 2px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; border-color: var(--red); }
.btn-copy {
    background: transparent; border: 1px solid var(--border); color: #D1D5DB;
    font-size: .78rem; font-weight: 700; padding: .35rem .75rem; border-radius: .5rem;
    transition: border-color .2s, color .2s;
}
.btn-copy:hover { border-color: var(--red); color: #fff; }
.btn-copy.copied { border-color: var(--wa); color: var(--wa); }

/* ===================== NAVBAR ===================== */
.navbar {
    background: rgba(10,10,10,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    min-height: var(--nav-h);
    transition: box-shadow .3s ease, background .3s ease;
}
.navbar.scrolled { background: rgba(10,10,10,.98); box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.brand-logo { height: 48px; width: 48px; object-fit: cover; border-radius: .6rem; border: 1px solid rgba(229,9,20,.45); }
.brand-logo-sm { height: 40px; width: 40px; }
.brand-name { font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 900; font-size: 1.6rem; color: #fff; text-transform: uppercase; line-height: 1; }
.brand-name-sm { font-size: 1.2rem; }
.brand-sub { font-size: .62rem; color: var(--muted); letter-spacing: .2em; text-transform: uppercase; font-weight: 600; }
.navbar .nav-link { color: #D1D5DB; font-weight: 600; font-size: .92rem; position: relative; }
.navbar .nav-link::after {
    content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .2rem; height: 2px;
    background: var(--red); transform: scaleX(0); transition: transform .25s ease;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: #fff; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border-color: var(--border); }
.navbar-toggler:focus { box-shadow: 0 0 0 2px var(--red); }
@media (max-width: 991.98px) {
    .navbar-collapse { padding: 1rem 0 1.25rem; border-top: 1px solid var(--border); margin-top: .5rem; }
    .navbar-collapse .btn-red { width: 100%; margin-top: .5rem; }
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    padding: 9rem 0 6rem;
    background:
        linear-gradient(100deg, rgba(10,10,10,.97) 0%, rgba(10,10,10,.85) 45%, rgba(10,10,10,.55) 100%),
        url('../img/fachada.jpg') center / cover no-repeat,
        url('../img/img1.jpg') center / cover no-repeat;
    overflow: hidden;
}
.hero > .container { z-index: 2; }
.hero::after { /* franja diagonal roja como en el afiche */
    content: ""; position: absolute; right: -10%; bottom: -1px; width: 55%; height: 14px;
    background: var(--red); transform: skewX(-30deg);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.hero-lead { color: rgba(248,249,250,.8); max-width: 600px; }
.pill {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .9rem; border-radius: 999px;
    background: rgba(229,9,20,.1); border: 1px solid rgba(229,9,20,.35);
    color: var(--red); font-size: .8rem; font-weight: 700;
}
.values span { font-weight: 800; font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; color: #fff; }
.values i { color: var(--red); }
.hero-card {
    max-width: 440px;
    background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem;
    padding: .75rem; box-shadow: 0 25px 60px rgba(0,0,0,.6);
}
.hero-card img { height: 300px; width: 100%; object-fit: cover; border-radius: .9rem; }

/* ===================== FRANJA DE CONFIANZA ===================== */
.trust { background: var(--red); }
.trust-item { display: flex; align-items: center; gap: .75rem; color: #fff; font-weight: 700; font-size: .92rem; }
.trust-item i { font-size: 1.5rem; opacity: .9; }

/* ===================== NOSOTROS ===================== */
.about-img { position: relative; z-index: 0; }
.about-img img { border-radius: var(--radius); height: 420px; width: 100%; object-fit: cover; border: 1px solid var(--border); }
.about-img::before {
    content: ""; position: absolute; inset: 18px -18px -18px 18px;
    border: 2px solid var(--red); border-radius: var(--radius); z-index: -1;
}
@media (max-width: 575.98px) {
    .about-img img { height: 280px; }
    .about-img::before { inset: 10px -10px -10px 10px; }
}
.check-list li { display: flex; gap: .7rem; margin-bottom: .7rem; color: #D1D5DB; }
.check-list i { color: var(--red); margin-top: .25rem; }

/* ===================== SERVICIOS ===================== */
.service-card {
    background: var(--dark); border: 1px solid var(--border); border-radius: var(--radius);
    padding: 1.75rem; height: 100%; display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.service-card::before {
    content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
    background: linear-gradient(90deg, var(--red), transparent);
    transform: translateX(-100%); transition: transform .4s ease;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(229,9,20,.5); box-shadow: 0 20px 40px rgba(0,0,0,.5); }
.service-card:hover::before { transform: translateX(0); }
.service-icon {
    width: 56px; height: 56px; border-radius: .9rem; display: grid; place-items: center;
    background: rgba(229,9,20,.1); color: var(--red); font-size: 1.4rem; margin-bottom: 1.1rem;
}
.service-card h3 { font-size: 1.15rem; font-weight: 800; color: #fff; }
.service-card p { color: var(--muted); font-size: .9rem; flex-grow: 1; }
.service-card .btn-ghost { padding: .6rem 1rem; font-size: .85rem; width: 100%; }

/* ===================== CARTA DE PRESENTACIÓN ===================== */
.carta-frame {
    background: var(--card); border: 1px solid var(--border); border-radius: 1.25rem;
    padding: .75rem; box-shadow: 0 25px 60px rgba(0,0,0,.6); cursor: zoom-in;
    transition: transform .3s ease, border-color .3s ease;
}
.carta-frame:hover { transform: translateY(-4px); border-color: rgba(229,9,20,.5); }
.carta-frame img { width: 100%; border-radius: .9rem; display: block; }

/* ===================== GALERÍA ===================== */
.gallery-item {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--border); cursor: zoom-in; background: var(--dark);
}
.gallery-item img { width: 100%; height: 280px; object-fit: cover; transition: transform .5s ease; display: block; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.07); }
.gallery-item figcaption {
    position: absolute; inset: auto 0 0 0; padding: 2.5rem 1rem 1rem;
    background: linear-gradient(transparent, rgba(0,0,0,.9));
    color: #fff; font-weight: 700; font-size: .9rem;
}
.modal-content { background: var(--card); border: 1px solid var(--border); }
.modal-content img { border-radius: .75rem; max-height: 82vh; object-fit: contain; }

/* ===================== RESEÑAS ===================== */
.review-cta {
    max-width: 820px;
    background: linear-gradient(135deg, var(--card-2), var(--card));
    border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.5rem;
}
.stars i { color: #FBBF24; font-size: 1.4rem; }

/* ===================== COTIZADOR ===================== */
.quote-box { background: var(--dark); border: 1px solid var(--border); border-radius: 1.25rem; padding: 2.5rem; box-shadow: 0 25px 60px rgba(0,0,0,.5); }
@media (max-width: 575.98px) { .quote-box, .review-cta { padding: 1.5rem; } }
.form-label { font-size: .75rem; font-weight: 800; text-transform: uppercase; color: #D1D5DB; letter-spacing: .05em; }
.form-control, .form-select {
    background-color: var(--card); border: 1px solid var(--border); color: #fff;
    border-radius: .75rem; padding: .8rem 1rem; font-size: .92rem;
}
.form-control::placeholder { color: #6B7280; }
.form-control:focus, .form-select:focus { background-color: var(--card); color: #fff; border-color: var(--red); box-shadow: 0 0 0 .2rem rgba(229,9,20,.2); }
.form-select { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23E5E5E5' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e"); }
.form-select option { background: var(--card); color: #fff; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(1); cursor: pointer; }

/* ===================== FAQ ===================== */
.accordion-item { background: var(--card); border: 1px solid var(--border); border-radius: .9rem !important; overflow: hidden; margin-bottom: .75rem; }
.accordion-button { background: var(--card); color: #fff; font-weight: 700; box-shadow: none !important; }
.accordion-button:not(.collapsed) { background: var(--card-2); color: var(--red); }
.accordion-button::after { filter: invert(1); }
.accordion-button:not(.collapsed)::after { filter: invert(15%) sepia(95%) saturate(6000%) hue-rotate(355deg); }
.accordion-body { color: var(--muted); font-size: .92rem; }

/* ===================== UBICACIÓN ===================== */
.info-row { display: flex; gap: 1rem; margin-bottom: 1.4rem; }
.info-icon { width: 44px; height: 44px; flex-shrink: 0; border-radius: .7rem; display: grid; place-items: center; background: rgba(229,9,20,.1); color: var(--red); font-size: 1.1rem; }
.info-row h3 { font-size: .9rem; font-weight: 800; color: #fff; margin-bottom: .15rem; }
.info-row p { margin: 0; font-size: .9rem; color: #D1D5DB; }
.hours td { padding: .15rem 1.25rem .15rem 0; font-size: .88rem; color: #D1D5DB; }
.hours tr.today td { color: #fff; font-weight: 800; }
.open-badge { font-size: .7rem; font-weight: 800; padding: .2rem .55rem; border-radius: .4rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); height: 100%; min-height: 380px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.3) contrast(1.05); display: block; }

/* ===================== FOOTER ===================== */
footer { background: #000; border-top: 1px solid var(--border); color: #6B7280; font-size: .85rem; }
footer a { color: #9CA3AF; }
footer a:hover { color: var(--red); }
.social a {
    width: 40px; height: 40px; border-radius: .6rem; display: inline-grid; place-items: center;
    background: var(--card); border: 1px solid var(--border); color: #fff; transition: background .2s;
}
.social a:hover { background: var(--red); color: #fff; }

/* ===================== BOTONES FLOTANTES ===================== */
@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
    50% { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
}
.wa-float {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1050;
    width: 62px; height: 62px; border-radius: 50%; background: var(--wa); color: #fff;
    display: grid; place-items: center; font-size: 2rem;
    animation: pulse-glow 2s infinite; transition: transform .2s ease;
}
.wa-float:hover { color: #fff; transform: scale(1.1); }
.to-top {
    position: fixed; right: 1.6rem; bottom: 5.6rem; z-index: 1049;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
    background: var(--card); color: #fff; display: grid; place-items: center;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .3s, visibility .3s, transform .3s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--red); }

/* ===================== ANIMACIÓN AL HACER SCROLL ===================== */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .wa-float { animation: none; }
}

/* ===================== ESTADO EN EL HERO ===================== */
.hero-status { display: inline-flex; align-items: center; gap: .55rem; color: #D1D5DB; font-size: .9rem; font-weight: 600; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.status-dot.open { background: var(--wa); box-shadow: 0 0 0 4px rgba(37,211,102,.2); }

/* ===================== CÓMO TRABAJAMOS ===================== */
.process { list-style: none; padding-left: 0; }
.step {
    position: relative; height: 100%; padding: 1.75rem; border-radius: var(--radius);
    background: var(--card); border: 1px solid var(--border); overflow: hidden;
}
.step-num {
    position: absolute; top: .4rem; right: 1rem;
    font-family: 'Barlow Condensed', sans-serif; font-style: italic; font-weight: 900;
    font-size: 3.4rem; line-height: 1; color: rgba(229,9,20,.18);
}
.step-icon { font-size: 1.6rem; color: var(--red); margin-bottom: 1rem; display: block; }
.step h3 { font-size: 1.1rem; font-weight: 800; color: #fff; }
.step p { color: var(--muted); font-size: .9rem; margin: 0; }

/* ===================== BARRA FIJA EN CELULAR ===================== */
.mobile-bar { display: none; }
@media (max-width: 767.98px) {
    body { padding-bottom: 64px; }
    .mobile-bar {
        display: grid; grid-template-columns: repeat(3, 1fr);
        position: fixed; left: 0; right: 0; bottom: 0; z-index: 1060;
        background: rgba(10,10,10,.97); border-top: 1px solid var(--border);
        padding-bottom: env(safe-area-inset-bottom);
        backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    }
    .mobile-bar a {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem;
        min-height: 64px; color: #fff; font-size: .75rem; font-weight: 700;
    }
    .mobile-bar a i { font-size: 1.25rem; color: var(--red); }
    .mobile-bar a.mb-wa { background: var(--wa); }
    .mobile-bar a.mb-wa i { color: #fff; }
    .wa-float { display: none; }
    .to-top { bottom: 5rem; right: 1rem; }
}
