/* ═══════════════════════════════════════════════════════════
   Neumáticos Urgentes — Estilos globales premium
   ═══════════════════════════════════════════════════════════ */

.msym { font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.msym-fill { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ── Header premium ── */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease, padding 0.3s ease;
    background: rgba(79, 37, 46, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(79, 37, 46, 0.15);
}

.site-header.scrolled {
    background: rgba(79, 37, 46, 0.94);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 40px rgba(58, 27, 33, 0.35);
}

.site-header .header-inner {
    transition: height 0.3s ease;
}

.site-header.scrolled .header-inner {
    height: 4.25rem;
}

@media (min-width: 768px) {
    .site-header.scrolled .header-inner {
        height: 4.5rem;
    }
}

/* Nav underline animation */
.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 600;
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #F4AE52, transparent);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1), left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.nav-link:hover,
.nav-link.active {
    color: #F4AE52;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 70%;
    left: 15%;
}

/* Phone CTA */
.header-phone {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    transition: all 0.3s ease;
}

.header-phone:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(244, 174, 82, 0.4);
    color: #F4AE52;
    transform: translateY(-1px);
}

/* Primary CTA button */
.btn-presupuesto {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #F4AE52 0%, #e89a2e 100%);
    color: #4F252E;
    font-weight: 800;
    font-size: 0.8125rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.75rem 1.35rem;
    border-radius: 0.875rem;
    box-shadow: 0 4px 20px rgba(244, 174, 82, 0.35);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.btn-presupuesto::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-presupuesto:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(244, 174, 82, 0.5);
    background: linear-gradient(135deg, #ffd080 0%, #F4AE52 100%);
}

.btn-presupuesto:hover::before {
    opacity: 1;
}

/* Hamburger */
.menu-toggle {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 1.25rem;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile overlay */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    background: rgba(58, 27, 33, 0.97);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 6rem 2rem 2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay .mobile-nav-link {
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    transform: translateY(20px);
    opacity: 0;
}

.mobile-overlay.open .mobile-nav-link {
    transform: translateY(0);
    opacity: 1;
}

.mobile-overlay.open .mobile-nav-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-overlay.open .mobile-nav-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-overlay.open .mobile-nav-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-overlay.open .mobile-nav-link:nth-child(4) { transition-delay: 0.2s; }

.mobile-overlay .mobile-nav-link:hover,
.mobile-overlay .mobile-nav-link.active {
    color: #F4AE52;
    background: rgba(244, 174, 82, 0.08);
}

/* Body offset for fixed header */
body.has-fixed-header {
    padding-top: 5rem;
}

@media (min-width: 768px) {
    body.has-fixed-header {
        padding-top: 5.5rem;
    }
}

/* ── Footer premium ── */
.site-footer {
    background: #4F252E;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(244, 174, 82, 0.6), rgba(193, 235, 233, 0.3), rgba(244, 174, 82, 0.6), transparent);
    box-shadow: 0 0 20px rgba(244, 174, 82, 0.25);
}

.footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.875rem;
    font-weight: 600;
    transition: color 0.25s ease, transform 0.25s ease;
    display: inline-block;
}

.footer-link:hover {
    color: #F4AE52;
    transform: translateX(4px);
}

.social-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.625rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #F4AE52;
    color: #4F252E;
    border-color: #F4AE52;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(244, 174, 82, 0.3);
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    transition: border-color 0.25s ease;
}

.trust-badge:hover {
    border-color: rgba(244, 174, 82, 0.35);
}

/* Service cards (home + servicios) */
.service-card {
    background: #fff;
    border-radius: 1.5rem;
    border: 1px solid #C1EBE9;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.service-card:hover {
    box-shadow: 0 20px 50px rgba(79, 37, 46, 0.12);
    transform: translateY(-4px);
}

.service-card-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #4F252E 0%, #3a1b21 100%);
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-body {
    padding: 1.5rem 1.75rem 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.service-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(193, 235, 233, 0.6);
}

.service-phone {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 800;
    font-size: 1rem;
    color: #4F252E;
    transition: color 0.25s ease;
}

.service-phone:hover {
    color: #F4AE52;
}

.btn-ver-servicio {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #4F252E;
    background: #FFF7C5;
    border: 2px solid #F4AE52;
    border-radius: 0.625rem;
    transition: all 0.25s ease;
    white-space: nowrap;
}

.btn-ver-servicio:hover {
    background: #F4AE52;
    color: #4F252E;
}

/* Page-specific (home) */
.hero-bg {
    background: linear-gradient(135deg, rgba(79, 37, 46, 0.93) 0%, rgba(79, 37, 46, 0.75) 55%, rgba(79, 37, 46, 0.45) 100%),
                url('../images/hero.webp') center/cover no-repeat;
}

@keyframes pulse-ring {
    0%, 100% { box-shadow: 0 0 0 0 rgba(244, 174, 82, 0.55); }
    50% { box-shadow: 0 0 0 18px rgba(244, 174, 82, 0); }
}

.phone-pulse { animation: pulse-ring 2.2s ease-in-out infinite; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.float-1 { animation: float 3s ease-in-out infinite; }
.float-2 { animation: float 3s ease-in-out infinite 0.5s; }
.float-3 { animation: float 3s ease-in-out infinite 1s; }
.float-4 { animation: float 3s ease-in-out infinite 1.5s; }

.faq-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-item.open .faq-body { max-height: 300px; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-chevron { transition: transform 0.3s ease; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #FFF7C5; }
::-webkit-scrollbar-thumb { background: #4F252E; border-radius: 3px; }

/* Inner page hero */
.page-hero {
    background: linear-gradient(135deg, rgba(79, 37, 46, 0.95) 0%, rgba(58, 27, 33, 0.9) 100%);
}

/* Marca — evitar traducción automática del nombre comercial */
.site-brand,
.site-brand .site-brand-neumaticos,
.site-brand .site-brand-urgentes {
    translate: no;
}

/* Landing pages */
.landing-step-card {
    position: relative;
    background: #fff;
    border: 1px solid #C1EBE9;
    border-radius: 1.5rem;
    padding: 2rem 1.75rem 1.75rem;
    text-align: center;
    transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.landing-step-card:hover {
    box-shadow: 0 16px 40px rgba(79, 37, 46, 0.1);
    transform: translateY(-3px);
}

.landing-step-num {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2rem;
    height: 2rem;
    border-radius: 9999px;
    background: #F4AE52;
    color: #4F252E;
    font-size: 0.75rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
}

.landing-zone-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    background: #FFF7C5;
    border: 1px solid #C1EBE9;
    color: #4F252E;
    font-size: 0.8125rem;
    font-weight: 700;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.landing-zone-pill:hover {
    border-color: #F4AE52;
    background: #fff;
}

.landing-cta-box {
    background: linear-gradient(135deg, #4F252E 0%, #3a1b21 100%);
    box-shadow: 0 24px 60px rgba(79, 37, 46, 0.25);
}

/* Landing page layout (no main site header) */
body.landing-page {
    padding-top: 0;
    padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
}

body.landing-page.has-fixed-header {
    padding-top: 0;
}

.landing-header {
    position: relative;
    z-index: 50;
    background: #4F252E;
    border-bottom: 1px solid rgba(244, 174, 82, 0.25);
}

.landing-call-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.landing-call-block:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

.landing-call-block--header {
    gap: 0.35rem;
}

.landing-call-icon {
    display: none;
}

.landing-call-block--header .landing-call-phone {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    font-weight: 900;
    color: #F4AE52;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

.landing-call-block--header .landing-call-arrival {
    font-size: clamp(0.8125rem, 2.5vw, 0.9375rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.landing-sticky-call {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    padding: 0.5rem 0.75rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(to top, rgba(58, 27, 33, 0.98) 0%, rgba(79, 37, 46, 0.96) 100%);
    border-top: 1px solid rgba(244, 174, 82, 0.35);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.landing-call-block--sticky {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 1rem;
    padding: 0.65rem 1rem;
    border-radius: 1rem;
    background: rgba(244, 174, 82, 0.12);
    border: 1px solid rgba(244, 174, 82, 0.35);
    width: 100%;
    max-width: 36rem;
    margin: 0 auto;
}

.landing-call-block--sticky .landing-call-icon {
    display: flex;
    color: #F4AE52;
    font-size: 1.5rem;
}

.landing-call-block--sticky .landing-call-phone {
    font-size: clamp(1.125rem, 4vw, 1.375rem);
    font-weight: 900;
    color: #F4AE52;
}

.landing-call-block--sticky .landing-call-arrival {
    font-size: clamp(0.6875rem, 2.2vw, 0.8125rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    text-align: center;
}

@media (min-width: 480px) {
    .landing-call-block--sticky {
        flex-wrap: nowrap;
    }

    .landing-call-block--sticky .landing-call-arrival {
        width: auto;
        text-align: left;
    }
}

.landing-footer {
    background: #4F252E;
    color: #fff;
    border-top: 1px solid rgba(244, 174, 82, 0.2);
}

.landing-footer-link {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8125rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

.landing-footer-link:hover {
    color: #F4AE52;
}
