:root {
    /* Nueva Paleta de Colores: Slate y Electric Blue */
    --premium-gold: #F25912;
    /* Cambiado a un Azul Eléctrico Premium */
    --dark-bg: #020617;
    /* Fondo más profundo */
    --card-bg: #0f172a;
    /* Fondo de tarjetas */
    --navbar-height: 95px;
    --text-muted: #94a3b8;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--dark-bg);
    color: #ffffff;
    padding-top: var(--navbar-height);
    overflow-x: hidden;
}

/* Navbar Estilizada */
.navbar {
    background-color: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    height: var(--navbar-height);
    transition: all 0.3s ease;
}

.logo-img {
    width: 85px;
    height: auto;
    filter: drop-shadow(0 0 8px rgba(59, 130, 246, 0.4));
}

.brand-text {
    font-weight: 900;
    letter-spacing: 1px;
    font-size: 1.4rem;
    margin-left: 12px;
    line-height: 1;
}

/* Offcanvas */
.offcanvas {
    background-color: var(--dark-bg);
    border-left: 1px solid var(--premium-gold);
}

.nav-link {
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: #f8fafc !important;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: var(--premium-gold) !important;
}

/* Botón Premium */
.btn-premium {
    background-color: var(--premium-gold);
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    /* Un poco más suave */
    padding: 12px 25px;
    letter-spacing: 1px;
    border: none;
    transition: 0.3s;
}

.btn-premium:hover {
    background-color: #60a5fa;
    color: white;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}


/* ==========================================
   HERO SECTION — Solución de Espaciado y Pulido
   ========================================== */

.hero-section {
    /* Solución al espacio abajo: Ocupa exactamente el resto de la pantalla disponible */
    min-height: calc(100vh - var(--navbar-height));
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background-color: var(--dark-bg);
    /* Por si la imagen tarda en cargar */
}

/* Imagen de fondo sin deformaciones */
.bg-image {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 1;
}

/* Capa oscura mejorada para un contraste perfecto del texto */
.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Degradado más oscuro a la izquierda para que las letras blancas "exploten" visualmente */
    background: linear-gradient(135deg, rgba(2, 6, 23, 0.95) 30%, rgba(2, 6, 23, 0.65) 100%);
    z-index: 2;
}

/* Contenedor del contenido */
.hero-content-wrap {
    position: relative;
    z-index: 3;
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Tipografía de Alta Gama */
.hero-content h1 {
    font-size: clamp(2.6rem, 5.5vw, 4.2rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.text-highlight {
    color: var(--premium-gold);
    text-shadow: 0 0 30px rgba(242, 89, 18, 0.25);
    /* Sutil destello premium */
}

.hero-desc {
    max-width: 550px;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: 1.6;
}

/* Utilidad para el espaciado del mini-tag */
.letter-spacing-2 {
    letter-spacing: 2px;
    font-size: 0.85rem;
}

/* ══════════════════════════════════════
   HERO — Ajustes específicos para Móvil
   ══════════════════════════════════════ */
@media (max-width: 767.98px) {
    .hero-section {
        /* Usamos 'dvh' (Dynamic VH) para evitar que la barra de navegación de Chrome/Safari móvil corte los botones */
        min-height: calc(100dvh - var(--navbar-height));
        padding-top: 3rem;
        padding-bottom: 4rem;
        /* Espacio de seguridad abajo para que respiren los botones */
        display: flex;
        align-items: center;
    }

    .hero-content h1 {
        /* Reducimos un poco el tamaño en móvil para que no ocupe 4 o 5 líneas */
        font-size: 2.1rem !important;
        line-height: 1.2;
        letter-spacing: -0.5px;
    }

    .hero-desc {
        font-size: 0.95rem !important;
        padding-left: 10px;
        padding-right: 10px;
    }

    /* Botones un poco más estilizados en móvil (no tan gigantes verticalmente) */
    .hero-section .btn {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }
}

/* Price Cards */
.price-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    height: 100%;
    transition: 0.4s;
    border-radius: 8px;
    overflow: hidden;
}

.price-card:hover {
    border-color: var(--premium-gold);
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.price-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.price-value {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--premium-gold);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #fff;
    font-weight: 700;
    padding: 15px;
    text-align: center;
    text-decoration: none;
    display: block;
    border-radius: 4px;
    transition: opacity 0.3s;
}

.btn-whatsapp:hover {
    opacity: 0.9;
    color: white;
}

/* Mapa */
.map-container {
    height: 450px;
    filter: grayscale(1) invert(0.92) contrast(1.1);
}

.location-info-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-left: 4px solid var(--premium-gold);
}

.section-title {
    font-weight: 900;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.section-title span {
    color: var(--premium-gold);
}

footer {
    background: #010413;
    padding: 4rem 0;
    border-top: 1px solid rgba(59, 130, 246, 0.1);
}

/* Contact Items in Offcanvas */
.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item:hover {
    color: var(--premium-gold);
}

.text-warning {
    color: var(--premium-gold) !important;
}

.btn-outline-light {
    border-radius: 4px;
}

/* ══════════════════════════════════════
   NAVBAR — Mobile Responsive Fix
   Agregar al final de style.css
══════════════════════════════════════ */

/* Asegura que el navbar no desborde en ningún dispositivo */
.navbar .container {
    flex-wrap: nowrap;
    gap: 0;
}

/* Logo más pequeño en móvil */
@media (max-width: 575.98px) {
    :root {
        --navbar-height: 70px;
    }

    .logo-img {
        width: 42px;
    }

    .brand-text {
        font-size: 1rem;
        margin-left: 8px;
    }

    /* Botones de icono más compactos */
    .navbar .btn-link {
        padding: 6px !important;
    }

    .navbar .navbar-toggler {
        padding: 6px !important;
    }

    /* Usamos la variable actualizada para mantener todo en sintonía */
    .navbar {
        height: var(--navbar-height) !important;
    }

    body {
        padding-top: var(--navbar-height) !important;
    }
}

/* Tablet pequeña (576px–767px) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-img {
        width: 55px;
    }

    .brand-text {
        font-size: 1.1rem;
        margin-left: 10px;
    }
}

/* Evita que los iconos del lado derecho se encojan */
.navbar .d-flex.align-items-center.gap-2 {
    flex-shrink: 0;
}

/* Evita que el brand se estire y aplaste los iconos */
.navbar-brand {
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
}

.navbar-brand .brand-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


/* Plans Cards — Index Section */
.plans-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    position: relative;
}

.plans-card:hover {
    transform: translateY(-10px);
    border-color: var(--premium-gold);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}

.plans-card.plans-featured {
    border-color: var(--premium-gold);
    box-shadow: 0 0 0 1px var(--premium-gold), 0 16px 40px rgba(242, 89, 18, 0.2);
}

.plans-card.plans-featured:hover {
    box-shadow: 0 0 0 1px var(--premium-gold), 0 20px 50px rgba(242, 89, 18, 0.35);
}

.plans-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: var(--premium-gold);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 5px 12px;
    border-radius: 20px;
    z-index: 2;
}

.plans-img-wrap {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
}

.plans-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.plans-card:hover .plans-img-wrap img {
    transform: scale(1.06);
}

.plans-body {
    padding: 26px 26px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plans-name {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    margin-bottom: 2px;
}

.plans-tagline {
    font-size: 0.75rem;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.plans-price {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--premium-gold);
    line-height: 1;
    margin-bottom: 2px;
}

.plans-price sup {
    font-size: 1.1rem;
    vertical-align: super;
    font-weight: 700;
}

.plans-note {
    font-size: 0.72rem;
    color: #475569;
    margin-bottom: 18px;
}

.plans-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    margin: 0 0 18px;
}

.plans-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.plans-features li {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.855rem;
    color: #94a3b8;
    margin-bottom: 9px;
    line-height: 1.4;
}

.plans-btn {
    display: block;
    width: 100%;
    padding: 13px;
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
    border: 2px solid var(--premium-gold);
    color: var(--premium-gold);
    background: transparent;
}

.plans-btn:hover {
    background: var(--premium-gold);
    color: #fff;
}

.plans-btn.plans-btn-filled {
    background: var(--premium-gold);
    color: #fff;
}

.plans-btn.plans-btn-filled:hover {
    background: #e04e0e;
    border-color: #e04e0e;
    box-shadow: 0 0 20px rgba(242, 89, 18, 0.4);
}

@media (max-width: 575.98px) {
    .plans-img-wrap {
        height: 170px;
    }

    .plans-body {
        padding: 22px 20px 20px;
    }

    .plans-price {
        font-size: 2.4rem;
    }
}


/* ══════════════════════════════════════
   Scroll Reveal Animations
   Agregar al final de style.css
══════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Variaciones opcionales */
.reveal-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px);
    transition: all 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.active {
    opacity: 1;
    transform: translateX(0);
}

.reveal-zoom {
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.8s ease;
}

.reveal-zoom.active {
    opacity: 1;
    transform: scale(1);
}

/* Page Banner */
.page-banner {
    position: relative;
    height: 55vh;
    min-height: 380px;
    /* Eliminamos el gradiente de aquí para que no compita con la imagen */
    background-image: url('../images/sgd.webp');
    background-size: cover;
    background-position: center;
    /* Cambiado a scroll por compatibilidad móvil, si quieres el efecto "fijo" usa parallax con JS */
    background-attachment: scroll;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

/* Capa oscura superpuesta (Overlay) - Ajustada para que deje ver la imagen */
.page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    /* Reducimos la opacidad (0.6 a 0.3) para que la imagen respire, pero el texto siga siendo legible */
    background: linear-gradient(180deg,
            rgba(2, 6, 23, 0.6) 0%,
            rgba(2, 6, 23, 0.3) 100%);
    z-index: 1;
}

.banner-content {
    position: relative;
    z-index: 2;
    /* Se mantiene por encima del ::before */
    text-align: center;
    color: #ffffff;
    /* Aseguramos que el texto sea blanco */
    padding: 0 20px;
}

.banner-content h1 {
    font-size: clamp(2.2rem, 6vw, 3.8rem);
    /* Un pelín más grande y legible */
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    /* Sombra sutil para resaltar el texto */
}

.banner-content p {
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    /* Subimos el tamaño mínimo porque 0.7rem era demasiado pequeño */
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    opacity: 0.9;
    /* Le da un toque sofisticado al subtítulo */
}


/* ==============================================
   ESTILOS: SECCIÓN 1 - TOWING SERVICES
   =============================================== */
.towing-section {
    background-color: #020617;
    /* Fondo oscuro principal */
    padding: 80px 0;
    font-family: 'Montserrat', sans-serif;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.towing-subtitle {
    color: #ffc107;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.towing-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.towing-text {
    font-size: 0.95rem;
    color: #94a3b8;
    line-height: 1.8;
    margin-bottom: 30px;
}

.towing-btn {
    font-size: 0.8rem;
    letter-spacing: 1px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

/* Contenedor estético de la foto */
.towing-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.towing-large-img {
    width: 100%;
    height: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    filter: brightness(0.9);
    transition: transform 0.5s ease;
}

.towing-image-container:hover .towing-large-img {
    transform: scale(1.04);
}


/* ==============================================
   ESTILOS: SECCIÓN 2 - INSURANCE & BILINGUAL
   =============================================== */
.insurance-lang-section {
    background-color: #0b0f19;
    /* Fondo ligeramente diferente para contraste */
    padding: 80px 0;
    font-family: 'Montserrat', sans-serif;
}

.support-subtitle {
    color: #ffc107;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.support-main-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.support-main-title span {
    color: #ffc107;
}

/* Tarjetas Premium */
.support-card {
    background-color: #020617;
    padding: 45px 35px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.support-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 193, 7, 0.25);
}

.support-icon-box {
    background-color: rgba(255, 193, 7, 0.1);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.support-icon-box i {
    color: #ffc107;
    width: 26px;
    height: 26px;
}

.support-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.support-card p {
    font-size: 0.9rem;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 0;
}


/* ==============================================
   RESPONSIVE AJUSTES
   =============================================== */
@media (max-width: 991px) {

    .towing-title,
    .support-main-title {
        font-size: 1.9rem;
    }

    .towing-section,
    .insurance-lang-section {
        padding: 60px 0;
    }
}

/* Service Cards */
.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--premium-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.service-img-container {
    height: 220px;
    overflow: hidden;
    position: relative;
}

@media (max-width: 575.98px) {
    .service-img-container {
        height: 180px;
    }
}

.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img-container img {
    transform: scale(1.08);
}

.service-icon-box {
    position: absolute;
    bottom: -25px;
    right: 24px;
    background: var(--premium-gold);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(242, 89, 18, 0.4);
    z-index: 2;
}

.service-body {
    padding: 40px 28px 28px;
}

.service-body h4 {
    font-size: clamp(0.95rem, 2.5vw, 1.1rem);
    font-weight: 900;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.service-body p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #94a3b8;
}

.service-body ul li {
    font-size: 0.85rem;
    color: #94a3b8;
}

/* ===== SERVICE CARD ===== */
.service-card {
    background: #111;
    border-radius: 18px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

/* ===== IMAGE CONTAINER ===== */
.service-img-container {
    position: relative;
    height: 250px;
    overflow: hidden;
}

/* Imagen mejorada */
.service-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 🔥 Clave para que no se deformen */
    transition: transform 0.7s ease, filter 0.5s ease;
}

/* Overlay elegante */
.service-img-container::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    transition: opacity 0.4s ease;
}

/* Hover efecto zoom */
.service-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

/* ===== ICON BOX ===== */
.service-icon-box {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: #ffc107;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* ===== BODY ===== */
.service-body {
    padding: 25px;
    background: #1a1a1a;
    color: #ddd;
}

.service-body h4 {
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 1px;
    color: #fff;
}

.service-body p {
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}

/* ===== LIST ===== */
.service-body ul li {
    font-size: 14px;
    color: #ccc;
    transition: transform 0.3s ease;
}

.service-body ul li:hover {
    transform: translateX(5px);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(242, 89, 18, 0.1), transparent);
    border-radius: 20px;
    padding: 60px 40px;
    border: 1px solid rgba(242, 89, 18, 0.15);
}

@media (max-width: 575.98px) {
    .cta-section {
        padding: 36px 20px;
        border-radius: 12px;
    }

    .cta-section .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .brand-text {
        font-size: 1rem !important;
        margin-left: 8px !important;
    }

    body {
        padding-top: 70px;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    .logo-img {
        width: 55px !important;
    }

    .brand-text {
        font-size: 1.1rem !important;
        margin-left: 10px !important;
    }
}

@media (max-width: 768px) {
    .page-banner {
        height: 45vh;
        background-attachment: scroll;
    }
}

.banner-content h1 {
    font-weight: 900;
    letter-spacing: 2px;
}

.banner-content p {
    letter-spacing: 4px;
    margin-top: 15px;
}

.service-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.service-card:nth-child(2) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3) {
    animation-delay: 0.2s;
}

.service-card:nth-child(4) {
    animation-delay: 0.3s;
}

.service-card:nth-child(5) {
    animation-delay: 0.4s;
}

.service-card:nth-child(6) {
    animation-delay: 0.5s;
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}