/* ============================================
   ESTILOS GENERALES Y VARIABLES
   ============================================ */

:root {
    --primary-color: #c41e3a;
    --secondary-color: #0f1419;
    --accent-color: #d4af37;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --border-color: #e0e0e0;
    --shadow: 02px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 08px 25px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Cinzel', serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: #ffffff;
    margin: 0;
    padding-top: 120px; /* Altura total: header-top (50px aprox) + header (70px aprox) = 120px */
}

/* Bloquear scroll mientras el telón está activo */
body.no-scroll {
    overflow: hidden;
}

/* Sticky footer and layout adjustments */
html, body {height:auto;}
body {display:block; min-height:auto; padding-top:160px;}
#main-content {min-height:auto; flex:none;}
.footer {position:relative; margin-top:0;}

/* Main content should expand to push footer to bottom when content is short */
#main-content {
 flex:auto;
 padding-top:120px; /* Aumentado de 60px a 120px para dejar espacio debajo del header */
}

/* Ensure footer stays at bottom and no unexpected gaps */
.footer {
 margin-top:0;
 /* remove positioning that might overlap layout */
 position: relative;
}

/* Keep page transition overlay inside available space, not covering footer area */
.page-transition {
 top:120px; /* respects header space */
 bottom:0; /* fill until footer area; footer is below main-content */
}

.page-transition {
        position: fixed;
        left: 0;
        right: 0;
        top: 0; /* Cambiar a top: 0 para que inicie desde el top */
        bottom: auto; /* No forzar a llenar pantalla completa */
        width: 100%;
        height: 100vh;
        z-index: 999; /* Debe quedar por debajo del header (1000+) */
        pointer-events: none; /* por defecto no bloquea */
        /* Fondo opaco para que el contenido no se vea detrás del telón */
        background: rgba(15,20,25,0.98);
        transform: translateY(-100%);
        transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.55s cubic-bezier(0.4,0,0.2,1), visibility 0.55s cubic-bezier(0.4,0,0.2,1);
        will-change: transform;
        opacity: 0;
        visibility: hidden;
}

.page-transition.open {
 pointer-events: auto;
 transform: translateY(0);
 opacity: 1;
 visibility: visible;
}

.page-transition.open.hide {
 transform: translateY(-100%);
 opacity: 0;
 visibility: hidden;
 pointer-events: none;
 margin: -374px;
}

/* Main Container */
main {
    min-height: calc(100vh - 300px); /* Viewport height menos header y footer */
    padding: 2rem 0;
}

#main-content {
    min-height: calc(100vh - 300px);
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ============================================
   HEADER FIX: fondo oscuro y altura compacta
   ============================================ */

.header-top {
 background: #0f1419;
  color: #999;
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
    padding: 8px 0;
    position: fixed;
  top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    width: 100%;
    height: auto;
}

.header-top-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.header-top-left {
    display: flex;
    gap: 25px;
    align-items: center;
    font-size: 13px;
}

.header-top-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #999;
    white-space: nowrap;
}

.header-top-item i {
    color: var(--accent-color);
  font-size: 14px;
}

.header-top-item a {
    color: #999;
    text-decoration: none;
    transition: var(--transition);
}

.header-top-item a:hover {
    color: var(--accent-color);
}

.header-top-right {
    text-align: right;
    flex-shrink: 0;
}

.header-top .header-claim {
color: #f4b860;
    font-size: 13px;
}

/* Responsive: Ajustes para tablets */
@media (max-width: 900px) {
    .header-top-content {
        padding: 0 10px;
        gap: 15px;
    }

    .header-top-left {
        gap: 15px;
        font-size: 12px;
    }

    .header-top-item i {
        font-size: 12px;
    }

    .header-top .header-claim {
        font-size: 12px;
    }
}

/* Responsive: Ajustes para móviles medianos */
@media (max-width: 600px) {
    .header-top-content {
        padding: 0 8px;
        gap: 10px;
        flex-wrap: wrap;
    }

    .header-top-left {
        gap: 10px;
        font-size: 11px;
        width: 100%;
        order: 2;
    }

    .header-top-right {
        width: 100%;
        text-align: center;
        order: 1;
        font-size: 10px;
    }

    .header-top-item i {
        font-size: 11px;
    }

    .header-top .header-claim {
        font-size: 10px;
    }
    .hamburger {
        top: 190px !important;
    }
}

/* Responsive: Ajustes para móviles pequeños */
@media (max-width: 480px) {
    .header-top-content {
        padding: 0 6px;
        gap: 6px;
        flex-direction: column;
    }

    .header-top-left {
        gap: 8px;
        font-size: 10px;
        width: 100%;
        justify-content: center;
    }

    .header-top-right {
        width: 100%;
        text-align: center;
        font-size: 9px;
        margin: 0;
    }

    .header-top-item {
        gap: 4px;
    }

    .header-top-item i {
        font-size: 10px;
    }

    .header-top .header-claim {
        font-size: 9px;
    }
}

.header {
 background: rgba(15, 20, 25, 0.98);
    color: #fff;
    position: fixed;
  top: 0; /* was 50px, ahora se ajusta dinámicamente vía JS para eliminar línea blanca */
    left: 0;
 right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    width: 100%;
    height: auto;
}

/* Clase opcional si se quiere forzar estilo dinámico */
.header.dynamic-offset { top: var(--header-top-height, 0); }

.header.scrolled {
    background: rgba(15, 20, 25, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.navbar-container {
 max-width:100%;
 margin:0;
 padding:0 20px;
 margin-left:0;
 width:100%;
 box-sizing: border-box;
}

/* Ajuste responsivo y margen derecho extra */
@media (min-width:1200px) {
 .navbar-container {
 margin-right:0;
 }
}

/* Menú: menos separación entre elementos */
.nav-menu ul {
 gap:20px;
}

@media (max-width:900px) {
 .navbar-container {
 padding:0 8px;
 margin-right:0;
 }
 .nav-menu ul {
 gap:4px;
 }
}

.nav-menu {
 flex:1 1 auto;
 display: flex;
 justify-content: center;
 align-items: center;
 min-width:0;
 margin:0;
 overflow: visible;
 padding:0 20px;
}

.nav-menu ul {
 display: flex;
 flex-direction: row;
 flex-wrap: nowrap;
 justify-content: center;
 align-items: center;
 gap: 30px;
 width: 100%;
 overflow: visible;
 list-style: none;
}

.nav-menu li {
 flex:0 1 auto;
 text-align: center;
 min-width:0;
 overflow: hidden;
}

.nav-link {
 color: #fff !important;
 font-family: 'Cinzel', serif;
 font-size:15px;
 font-weight:700;
 letter-spacing:0.5px;
 text-decoration: none;
 padding:10px 8px;
 display: block;
 background: none;
 border: none;
 transition: color 0.2s;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}

.nav-link:hover,
.nav-link.active {
 color: var(--accent-color) !important;
 background: none;
}

/* Botones de acción */
.nav-actions {
 flex:0 0 auto;
 margin-left:20px;
 margin-right:0;
 display: flex;
 gap:10px;
 align-items: center;
}

.btn-sm {
 padding:8px 16px !important;
 font-size:13px !important;
 border-radius:5px;
 display: inline-flex;
 align-items: center;
 gap:6px;
 white-space: nowrap;
}

.btn-outline {
    background-color: transparent !important;
    color: white !important;
    border: 2px solid var(--accent-color) !important;
    transition: var(--transition);
}

.btn-outline:hover {
    background-color: var(--accent-color) !important;
 border-color: var(--accent-color) !important;
    color: #0f1419 !important;
}

/* --- AJUSTES SOLICITADOS: margen botones y menú (distribuido) --- */

/* Botones sin margen excesivo */
.nav-actions .btn,
.nav-actions .btn-sm,
.nav-actions button {
 margin-right:0 !important;
}

/* Menú con espacio uniforme */
.nav-menu ul {
 gap:30px !important;
}

@media (max-width:900px) {
 .nav-menu ul {
 gap: 0px !important;
 }
 .nav-actions .btn,
 .nav-actions .btn-sm,
 .nav-actions button {
 margin-right: 12px !important;
 }
}

/* Hamburger */
/* Hamburger - Base HIDDEN */
.hamburger {
    display: none !important;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    gap: 5px;
    padding: 5px;
    flex-shrink: 0;
    visibility: hidden !important;
}

.hamburger span {
    width: 26px;
    height: 3px;
    background-color: white;
    border-radius: 2px;
    transition: var(--transition);
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================
   HAMBURGUESA MÓVIL - MOSTRAR EN PANTALLAS PEQUEÑAS
   ============================================ */
@media (max-width: 1024px) {
    .hamburger {
        display: flex !important;
        position: fixed !important;
        top: 95px !important;
        right: 14px !important;
        z-index: 2500 !important;
        flex-direction: column;
        gap: 6px;
        padding: 9px 9px;
        border: 1px solid rgba(255, 255, 255, .15);
        background: rgba(0, 0, 0, .4);
        backdrop-filter: blur(4px);
        border-radius: 6px;
        cursor: pointer;
        visibility: visible !important;
    }
    
    .hamburger span {
        width: 24px;
        height: 3px;
        background: #fff;
        border-radius: 2px;
        transition: .3s;
        display: block;
    }
}

@media (max-width: 768px) {
    .hamburger {
        top: 90px !important;
        right: 10px !important;
    }
}

@media (max-width: 480px) {
    .hamburger {
        top: 85px !important;
        right: 8px !important;
        padding: 6px 6px;
        gap: 4px;
    }
    
    .hamburger span {
        width: 20px;
        height: 2.5px;
    }
}

@media (max-width: 380px) {
    .logo {
        height: 36px;
    }
    
    .hamburger {
        right: 8px;
        top: 46px;
        padding: 5px;
    }
}

@media (min-width: 601px) {
    .header-mobile-actions {
        display: none !important;
    }
}

@media (max-width: 600px) {
    .header-mobile-actions {
        display: flex !important;
        position: absolute;
        right: 54px;
        top: 50%;
        transform: translateY(-50%);
        gap: 10px;
        z-index: 2100;
    }
    
    .header-mobile-actions a {
        background: #c41e3a;
        color: #fff;
        border-radius: 50%;
        width: 36px;
        height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
        text-decoration: none;
        transition: background 0.2s;
    }
    
    .header-mobile-actions a:hover {
        background: #d4af37;
        color: #181c22;
    }
}

/* =============================
HEADER Y MENÚ HAMBURGUESA MEJORADOS EN MÓVIL
============================= */
@media (max-width:900px) {
.header {
 display: flex;
 flex-direction: row;
 align-items: center;
 justify-content: space-between;
 padding:8px8px0;
 height: auto;
}
.logo {
 margin-left:0 !important;
 margin-right: auto !important;
 height:56px;
 order:1;
}
.hamburger {
 display: flex !important;
 position: absolute;
 right:18px;
 top:50%;
 transform: translateY(-50%);
 z-index:2100;
 order:2;
}
}
@media (max-width:600px) {
.header {
 padding:4px4px0;
}
.logo {
 height:44px;
 margin-left:0 !important;
 margin-right: auto !important;
}
.hamburger {
        right: 10px;
    }
}
@media (max-width:600px) {
.header-mobile-actions {
 display: flex !important;
 position: absolute;
 right:54px;
 top:50%;
 transform: translateY(-50%);
 gap:10px;
 z-index:2100;
}
.header-mobile-actions a {
 background: #c41e3a;
 color: #fff;
 border-radius:50%;
 width:36px;
 height:36px;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size:18px;
 box-shadow:02px8px rgba(0,0,0,0.10);
 text-decoration: none;
 transition: background0.2s;
}
.header-mobile-actions a:hover {
 background: #d4af37;
 color: #181c22;
}
}
@media (min-width:601px) {
    .header-mobile-actions {
        display: none !important;
    }

    /* ============================================
   BOTONES
   ============================================ */

    .btn {
        display: inline-block;
        padding: 12px 30px;
        border-radius: 5px;
        text-decoration: none;
        font-weight: 600;
        transition: var(--transition);
        border: none;
        cursor: pointer;
        font-size: 16px;
    }

    .btn-primary {
        background-color: var(--primary-color);
        color: white;
        border: 2px solid var(--primary-color);
    }

        .btn-primary:hover {
            background-color: transparent;
            color: var(--accent-color);
            transform: translateY(-2px);
            box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
            border-color: var(--accent-color);
        }

    .btn-secondary {
        background-color: transparent;
        color: var(--primary-color);
        border: 2px solid var(--primary-color);
    }

        .btn-secondary:hover {
            background-color: var(--primary-color);
            color: white;
        }

    /* ============================================
   SECCIÓN HERO Y SLIDER
   ============================================ */

    .hero-slider {
        position: relative;
        width: 100%;
        overflow: hidden;
    }

    .slider-container {
        position: relative;
        width: 100%;
        max-height: none;
        background-color: var(--secondary-color);
    }

    .slider-wrapper {
        position: relative;
        width: 100%;
        overflow: hidden;
        aspect-ratio: 16 / 9;
    }

    .slide {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.5s ease-in-out;
        background-size: cover;
        background-position: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .slide.active {
            opacity: 1;
            position: relative;
        }

        .slide img {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
            z-index: 1;
        }

    .slide-placeholder {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        display: none;
    }

    /* ============================================
   HERO SLIDER PREMIUM
   ============================================ */

    .hero-slider-premium {
        position: relative;
        width: 100%;
        overflow: hidden;
        background: var(--secondary-color);
        margin-top: 0;
        padding-top: 0;
    }

    .slider-container-premium {
        position: relative;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(26, 26, 26, 0) 0%, rgba(26, 26, 26, 0.2) 50%, rgba(26, 26, 26, 0.8) 100%);
        z-index: 1;
    }

    .slider-wrapper-premium {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .slide-premium {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1;
        display: flex;
        align-items: stretch;
    }

        .slide-premium.active {
            opacity: 1;
            z-index: 2;
        }

    .slide-background {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center right;
        background-repeat: no-repeat;
    }

    .slide-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to right, rgba(26, 26, 26, 0.95) 0%, rgba(26, 26, 26, 0.7) 30%, rgba(26, 26, 26, 0.3) 70%, rgba(26, 26, 26, 0) 100%);
        z-index: 1;
    }

    .slide-content-premium {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        z-index: 3;
        padding-left: 60px;
        padding-top: 80px;
    }

    .slide-content-inner {
        max-width: 600px;
        animation: slideInLeft 0.9s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        opacity: 0;
    }

    @keyframes slideInLeft {
        from {
            opacity: 0;
            transform: translateX(-80px);
        }

        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    .slide-subtitle {
        font-size: 18px;
        color: var(--accent-color);
        font-weight: 600;
        margin-bottom: 20px;
        letter-spacing: 1px;
        text-transform: uppercase;
        animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
        opacity: 0;
    }

    .slide-title {
        font-size: 64px;
        font-weight: 700;
        color: white;
        line-height: 1.1;
        margin: 0 0 25px 0;
        letter-spacing: -1px;
        font-family: 'Cinzel', serif;
        animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.4s forwards;
        opacity: 0;
    }

    .slide-description {
        font-size: 20px;
        color: rgba(255, 255, 255, 0.95);
        line-height: 1.6;
        margin: 0 0 40px 0;
        max-width: 600px;
    }

    .slide-buttons {
        display: flex;
        gap: 15px;
        align-items: center;
        animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) 0.6s forwards;
        opacity: 0;
    }

    .btn-action {
        padding: 16px 40px;
        font-size: 15px;
        font-weight: 600;
        border-radius: 30px;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: inline-flex;
        align-items: center;
        gap: 10px;
        text-decoration: none;
        border: none;
        cursor: pointer;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    }

    .btn-primary-large {
        background: var(--primary-color);
        color: white;
    }

        .btn-primary-large:hover {
            background: var(--primary-color);
            transform: translateY(-3px);
            box-shadow: 0 8px 25px rgba(196, 30, 58, 0.4);
        }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .slider-ventajas-overlay {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 5;
        background: rgba(26, 26, 26, 0.85);
        backdrop-filter: blur(8px);
        padding: 15px 20px;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        display: flex;
        gap: 15px;
        justify-content: space-around;
        align-items: center;
    }

        .slider-ventajas-overlay .columna {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 0 10px;
            flex: 1;
            text-align: center;
        }

        .slider-ventajas-overlay .columna-icono {
            font-size: 32px;
            color: var(--accent-color);
            margin-bottom: 4px;
        }

        .slider-ventajas-overlay .columna h3 {
            color: #ffffff;
            font-size: 14px;
            margin: 0;
            font-weight: 700;
            text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
            line-height: 1.2;
        }

        .slider-ventajas-overlay .columna p {
            color: #ffffff;
            font-size: 12px;
            line-height: 1.4;
            margin: 0;
            font-weight: 500;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
        }

        .slider-ventajas-overlay .modulo-tres-columnas {
            width: 100%;
            max-width: 100%;
            margin: 0 auto;
            display: flex;
            gap: 15px;
            padding: 0;
        }

    /* Controles del Slider */
    .slider-controls-premium {
        position: absolute;
        top: 0;
        right: 40px;
        height: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        z-index: 4;
        gap: 20px;
    }

    .slider-btn-premium {
        width: 50px;
        height: 50px;
        background: rgba(255, 255, 255, 0.2);
        color: white;
        border: 2px solid rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 20px;
        transition: all 0.3s ease;
        backdrop-filter: blur(5px);
    }

        .slider-btn-premium:hover {
            background: rgba(196, 30, 58, 0.8);
            border-color: var(--accent-color);
            transform: scale(1.1);
        }

    .slider-dots-premium {
        position: absolute;
        bottom: 20px;
        left: 20px; /* Cambiar de left: 50% a left: 20px para alineación izquierda */
        transform: none; /* Remover translateX(-50%) */
        display: flex;
        gap: 10px;
        z-index: 4;
    }

    .dot-premium {
        width: 12px;
        height: 12px;
        border-radius: 50%;
        border: 2px solid rgba(255, 255, 255, 0.5);
        background: transparent;
        cursor: pointer;
        transition: all 0.3s;
    }

        .dot-premium.active {
            background: var(--primary-color);
            border-color: var,--primary-color);
            width: 30px;
            border-radius: 6px;
        }

        .dot-premium:hover {
            border-color: white;
        }

    /* ============================================
   SECCIÓN DE CARACTERÍSTICAS
   ============================================ */

    .features {
        padding: 80px 0;
        background-color: var(--light-bg);
        background-image: url('../images/fondomarmol.jpg');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
    }

        .features::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(255, 255, 255, 0.9); /* ligeramente más transparente para ver el mármol */
            pointer-events: none;
            z-index: 0;
        }

        .features .container {
            position: relative;
            z-index: 1;
        }

        .features h2,
        .featured-vehicles h2,
        .services h2 {
            font-size: 40px;
            text-align: center;
            margin-bottom: 50px;
            color: var(--secondary-color);
            font-weight: 700;
            font-family: 'Cinzel', serif;
            letter-spacing: 1px;
        }

    .featured-vehicles h2 {
        color: white;
    }

    .section-subtitle {
        text-align: center;
        color: #666;
        margin-bottom: 40px;
        font-size: 18px;
    }

    .featured-vehicles .section-subtitle {
        color: #ccc;
    }

    .features-grid,
    .services-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
        width: 100%;
        margin: 0 auto;
    }

    .feature-card,
    .service-card {
        background-color: white;
        padding: 30px;
        border-radius: 10px;
        text-align: center;
        box-shadow: var(--shadow);
        transition: var(--transition);
    }

        .feature-card:hover,
        .service-card:hover {
            transform: translateY(-10px);
            box-shadow: var(--shadow-hover);
        }

    .feature-icon,
    .service-icon {
        font-size: 48px;
        color: var(--primary-color);
        margin-bottom: 15px;
    }

    .feature-card h3,
    .service-card h3 {
        font-size: 20px;
        margin-bottom: 15px;
        color: var(--secondary-color);
        font-family: 'Cinzel', serif;
        font-weight: 600;
    }

    .feature-card p,
    .service-card p {
        color: #666;
        line-height: 1.6;
    }

    /* ============================================
   SECCIÓN DE VEHÍCULOS DESTACADOS
   ============================================ */

    .featured-vehicles {
        padding: 80px 0 !important;
        background-color: #000000 !important;
        background-image: none !important;
        width: 100% !important;
        position: relative !important;
    }

    .featured-vehicles .container {
        max-width: 1200px !important;
        margin: 0 auto !important;
        padding: 0 20px !important;
        width: 100% !important;
    }

    /* Grid de vehículos - DELEGADO A featured-vehicles.css */
    .vehicles-grid {
        display: grid !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* RESPONSIVE - Mobile y Tablet */
    @media (max-width: 1024px) {
        .featured-vehicles {
            padding: 60px 0 !important;
        }
    }

    @media (max-width: 768px) {
        .featured-vehicles {
            background-color: #000000 !important;
            padding: 40px 0 !important;
        }
    }

    @media (max-width: 600px) {
        .featured-vehicles {
            background-color: #000000 !important;
            padding: 30px 0 !important;
        }

        .featured-vehicles .container {
            padding: 0 10px !important;
        }
    }

    @media (max-width: 480px) {
        .featured-vehicles {
            background-color: #000000 !important;
            padding: 20px 0 !important;
        }

        .featured-vehicles .container {
            padding: 0 8px !important;
        }
    }

    /* ============================================
   SECCIÓN DIVISORA - PNG FLOTANTE
   ============================================ */

    .divider-png {
        width: 100%;
        padding: 0;
        background: transparent;
        position: relative;
        overflow: visible;
        margin: 0;
        z-index: 10;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 240px;
        display:none;
    }

    .divider-png-content {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .divider-png-image {
        width: auto;
        max-width: 1000px;
        height: auto;
        object-fit: contain;
        filter: drop-shadow(0 10px 40px rgba(0, 0, 0, 0.3));
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
        animation: slideInPNG 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
        
    }

    .divider-png:hover .divider-png-image {
        transform: scale(1.02);
        filter: drop-shadow(0 15px 50px rgba(0, 0, 0, 0.4));
    }

    @keyframes slideInPNG {
        from {
            opacity: 0;
            transform: translateY(30px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    @media (max-width: 1024px) {
        .divider-png {
            margin: -100px 0 0 0;
            height: 200px;
        }

        .divider-png-image {
            max-width: 800px;
        }
    }

    @media (max-width: 768px) {
        .divider-png {
            display: none !important;
        }

        .divider-png-image {
            display: none !important;
        }
    }

    @media (max-width: 600px) {
        .divider-png 
            display: none !important;
        }

        
            display: none !important;
        }
    }
    .divider-png
    @media (max-width: 480px) {
        .divider-png {
            display: none !important;
        }

        .divider-png-image {
            display: none !important;
        }
    }

    @media (max-width: 400px) {
        .divider-png {
            display: none !important;
        }

        .divider-png-image {
            display: none !important;
        }
    }

    /* =============================
RESPONSIVE AJUSTES GLOBALES
============================= */
@media (max-width:900px) {
        .header-top-content, .navbar-container, .container {
            padding-left: 10px;
            padding-right: 10px;
        }

        .navbar {
            flex-direction: column;
            padding: 12px 0;
            min-height: unset;
        }

        #main-content {
            padding-top: 36px;
        }

        .nav-menu ul {
            flex-direction: column;
            align-items: flex-start;
            width: 100%;
            gap: 0;
        }

        .nav-link {
            padding: 12px 0;
            font-size: 16px;
            width: 100%;
            text-align: left;
        }

        .nav-actions {
            margin-left: 0;
            margin-top: 10px;
            gap: 8px;
        }

        .logo {
            margin-bottom: 10px;
            height: 48px;
        }
    }

    @media (max-width:700px) {
        .container {
            padding-left: 4px;
            padding-right: 4px;
        }

        .hero-slider-premium, .hero-slider {
            height: 320px !important;
            min-height: 220px;
        }

        .slide-title {
            font-size: 28px;
        }

        .slide-description {
            font-size: 14px;
        }

        .slide-content-premium {
            padding: 4px 10px !important;
        }

        .features h2, .featured-vehicles h2, .services h2 {
            font-size: 22px;
            margin-bottom: 18px;
        }

        .features-grid, .services-grid {
            grid-template-columns: 1fr;
            gap: 16px;
            width: 100%;
            margin: 0 auto;
            padding: 0 !important;
        }

        .feature-card, .service-card {
            padding: 14px;
        }

        .contact-wrapper {
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .contact-form {
            padding: 16px;
        }

        .footer-content {
            flex-direction: column;
            gap: 12px;
            align-items: flex-start;
        }

        .footer-section {
            width: 100%;
            padding-right: 0;
            margin-bottom: 10px;
        }

            .footer-section ul {
                gap: 8px;
            }

        .social-links {
            gap: 8px;
        }
    }

    /* ============================================
   SECCIÓN DE SERVICIOS
   ============================================ */

    .services {
        padding: 80px 0;
        background-color: var(--light-bg);
        background-image: url('../images/fondomarmol.jpg'); /* activar fondo mármol */
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
        position: relative;
    }

    .services .container { position: relative; z-index: 1; }
    .services::before {
        content: '';
        position: absolute;
        inset: 0;
        background: rgba(255,255,255,0.9); /* ligera capa para legibilidad */
        z-index: 0;
        pointer-events: none;
    }

    /* ============================================
   SECCIÓN DE CONTACTO - RESPONSIVE FIX
   ============================================ */

    .contact-section {
        padding: 80px 0;
        background: linear-gradient(135deg, var(--secondary-color) 0%, #2a2a2a 100%);
        position: relative;
        z-index: 1; /* Asegurar que esté visible, por encima de page-transition */
    }

    .contact-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: flex-start;
    }

    .contact-info h2 {
        color: white;
        margin-bottom: 15px;
        font-size: 36px;
        font-weight: 700;
        font-family: 'Cinzel', serif;
        letter-spacing: 1px;
    }

    .contact-info > p {
        color: #ccc;
        margin-bottom: 40px;
        font-size: 16px;
    }

    .contact-details {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .contact-item {
        display: flex;
        gap: 20px;
        align-items: flex-start;
    }

        .contact-item i {
            font-size: 28px;
            color: var(--accent-color);
            margin-top: 5px;
            flex-shrink: 0;
        }

        .contact-item h4 {
            color: white;
            margin-bottom: 5px;
            font-size: 16px;
            font-weight: 600;
            font-family: 'Cinzel', serif;
        }

        .contact-item p {
            color: #ccc;
            font-size: 14px;
        }

    .contact-form {
        display: flex;
        flex-direction: column;
        gap: 16px;
        background: rgba(255, 255, 255, 0.05);
        padding: 40px;
        border-radius: 15px;
        border: 1px solid rgba(212, 175, 55, 0.2);
        backdrop-filter: blur(10px);
    }

        .contact-form input,
        .contact-form textarea {
            padding: 14px 16px;
            border: 1px solid rgba(212, 175, 55, 0.3);
            border-radius: 8px;
            background-color: rgba(255, 255, 255, 0.95);
            font-family: inherit;
            font-size: 14px;
            color: var(--text-color);
            transition: var(--transition);
            color: black;
        }

            .contact-form input::placeholder,
            .contact-form textarea::placeholder {
                color: inherit !important;
                opacity: 1 !important;
            }

    /* Sobrescribir para tema corporativo-elegante específicamente */
    body[data-tema*="corporativo-elegante"] .contact-form input::placeholder,
    body[data-tema*="corporativo-elegante"] .contact-form textarea::placeholder {
        color: #f39c12 !important;
        opacity: 1 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    body[data-tema*="corporativo-elegante"] .contact-form input::-webkit-input-placeholder,
    body[data-tema*="corporativo-elegante"] .contact-form textarea::-webkit-input-placeholder {
        color: #f39c12 !important;
        opacity: 1 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    body[data-tema*="corporativo-elegante"] .contact-form input::-moz-placeholder,
    body[data-tema*="corporativo-elegante"] .contact-form textarea::-moz-placeholder {
        color: #f39c12 !important;
        opacity: 1 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    body[data-tema*="corporativo-elegante"] .contact-form input:-ms-input-placeholder,
    body[data-tema*="corporativo-elegante"] .contact-form textarea:-ms-input-placeholder {
        color: #f39c12 !important;
        opacity: 1 !important;
        font-weight: 700 !important;
        font-size: 14px !important;
    }

    /* Sobrescribir para tema moderno-centro específicamente */
    body[data-tema*="moderno-centro"] .contact-form input::placeholder,
    body[data-tema*="moderno-centro"] .contact-form textarea::placeholder {
        color: #000000 !important;
        opacity: 1 !important;
        font-weight: 700 !important;
    }

    .contact-form input:focus,
    .contact-form textarea:focus {
        outline: none;
        background-color: white;
        border-color: var(--accent-color);
        box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
    }

    .contact-form textarea {
        resize: vertical;
        min-height: 120px;
        font-family: inherit;
    }

    .contact-form .btn-primary {
        margin-top: 10px;
        padding: 14px 30px;
        font-size: 15px;
        border-radius: 8px;
    }

    /* ============================================
   CONTACT RESPONSIVE MOBILE FIX
   ============================================ */

    @media (max-width: 768px) {
        .contact-wrapper {
            display: block !important;
            grid-template-columns: none !important;
            gap: 0 !important;
        }

        .contact-info {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 0 32px 0 !important;
        }

        .contact-form {
            width: 100% !important;
            max-width: 100% !important;
            margin: 0 !important;
        }

        .slider-ventajas-section {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 5;
        background: rgba(26, 26, 26, 0.85);
        backdrop-filter: blur(8px);
        padding: 15px 20px;
        border-top: 1px solid rgba(212, 175, 55, 0.3);
        display: flex;
        gap: 15px;
        justify-content: space-around;
        align-items: center;
        width: 100%;
        box-sizing: border-box;
        flex-wrap: nowrap;
    }

        .slider-ventajas-section .columna {
            display: flex;
            flex-direction: column;
            gap: 8px;
            padding: 0 5px;
            flex: 1;
            text-align: center;
            min-width: 0;
            justify-content: center;
        }

        .slider-ventajas-section .columna-icono {
            font-size: 24px;
            margin-bottom: 2px;
        }

        .slider-ventajas-section .columna h3 {
            font-size: 11px;
            line-height: 1.1;
        }

        .slider-ventajas-section .columna p {
            font-size: 9px;
            line-height: 1.2;
        }
    }

    @media (max-width: 480px) {
        .contact-info {
            margin: 0 0 24px 0 !important;
        }

        .contact-form {
            padding: 20px !important;
            margin: 0 !important;
        }

        .contact-form input,
        .contact-form textarea,
        .contact-form select {
            font-size: 16px !important;
            padding: 12px 12px !important;
        }

        .slider-ventajas-section {
        padding: 15px 10px;
        gap: 10px;
        justify-content: space-around;
    }

    .slider-ventajas-section .columna {
        padding: 0 8px;
        flex: 1 1 0;
    }

    .slider-ventajas-section .columna-icono {
        font-size: 32px;
        margin-bottom: 4px;
    }

    .slider-ventajas-section .columna h3 {
        font-size: 13px;
        line-height: 1.1;
    }

    .slider-ventajas-section .columna p {
        font-size: 11px;
        line-height: 1.2;
    }
    }
    /* ============================================
   FOOTER
   ============================================ */

    .footer {
        background-color: var(--secondary-color);
        color: white;
        padding: 50px 0 0;
    }

    /* =============================
 FOOTER MEJORADO
 ============================= */
    .footer-content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 40px;
        padding-bottom: 20px;
    }

    .footer-section {
        flex: 110;
        min-width: 0;
        margin-bottom: 0;
        padding-right: 32px;
    }

        .footer-section:last-child {
            padding-right: 0;
        }

    @media (max-width:900px) {
        .footer-content {
            flex-direction: column;
            gap: 18px;
            align-items: flex-start;
        }

        .footer-section {
            padding-right: 0;
            margin-bottom: 20px;
            width: 100%;
        }
    }

    .footer-section h4 {
        color: var(--accent-color);
        font-size: 18px;
        margin-bottom: 10px;
        font-family: 'Cinzel', serif;
        letter-spacing: 1px;
    }

    .footer-section p {
        color: #eee;
        font-size: 14px;
        margin-bottom: 10px;
    }

    .footer-section ul {
        list-style: none;
        padding: 0;
        margin: 0;
        display: flex;
        flex-wrap: wrap;
        gap: 18px;
    }

        .footer-section ul li {
            display: inline-block;
        }

            .footer-section ul li a {
                color: #d4af37;
                text-decoration: underline;
                text-underline-offset: 3px;
                font-weight: 600;
                font-size: 15px;
                transition: color0.2s;
            }

                .footer-section ul li a:hover {
                    color: #fff;
                    text-decoration: underline;
                }

    .social-links {
        display: flex;
        gap: 18px;
        margin-top: 8px;
    }

        .social-links a {
            color: #fff;
            font-size: 22px;
            display: flex;
            align-items: center;
            transition: color0.2s, transform0.2s;
        }

            .social-links a:hover {
                color: var(--accent-color);
                transform: scale(1.2);
            }

    .footer-bottom {
        border-top: 1px solid rgba(255,255,255,0.08);
        margin-top: 10px;
        padding: 12px000;
        text-align: center;
        color: #aaa;
        font-size: 13px;
    }

    @media (max-width:700px) {
        .footer-content {
            flex-direction: column;
            gap: 18px;
            align-items: flex-start;
        }

        .footer-section {
            min-width: 0;
            width: 100%;
        }

            .footer-section ul {
                gap: 10px;
            }

        .social-links {
            gap: 12px;
        }
    }

    /* ============================================
   OVERLAY DE TRANSICIÓN TIPO TELÓN (corregido final)
   ============================================ */
    /* === PAGE TRANSITION / PRELOADER (fixed) === */
    .page-transition {
        position: fixed;
        left: 0;
        right: 0;
        top: 0; /* Cambiar a top: 0 para que inicie desde el top */
        bottom: auto; /* No forzar a llenar pantalla completa */
        width: 100%;
        height: 100vh;
        z-index: 999; /* Debe quedar por debajo del header (1000+) */
        pointer-events: none; /* por defecto no bloquea */
        /* Fondo opaco para que el contenido no se vea detrás del telón */
        background: rgba(15,20,25,0.98);
        transform: translateY(-100%);
        transition: transform 0.55s cubic-bezier(0.4,0,0.2,1), opacity 0.55s cubic-bezier(0.4,0,0.2,1), visibility 0.55s cubic-bezier(0.4,0,0.2,1);
        will-change: transform;
        opacity: 0;
        visibility: hidden;
    }

        .page-transition.open {
            pointer-events: auto;
            transform: translateY(0);
            opacity: 1;
            visibility: visible;
        }

            .page-transition.open.hide {
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                pointer-events: none;
                margin: -374px;
            }

        .page-transition .page-transition-inner {
            position: absolute;
            inset: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            transform: translateY(-10px);
            transition: opacity 300ms ease 150ms, transform 300ms ease 150ms;
        }

        .page-transition.open .page-transition-inner {
            opacity: 1;
            transform: translateY(0);
        }

    .transition-logo {
        width: 200px;
        height: auto;
        filter: drop-shadow(8px24px rgba(0,0,0,0.45));
        animation: logoPulse1.1s ease-in-out infinite alternate;
    }

    @keyframes logoPulse {
        from {
            transform: scale(1);
            opacity: 0.95;
        }

        to {
            transform: scale(1.05);
            opacity: 1;
        }
    }

    /* RESPONSIVE: Ajustar page-transition para móvil */
    @media (max-width: 768px) {
        .page-transition {
            top: 100px;
        }

            .page-transition .page-transition-inner {
                padding: 20px;
            }

        .transition-logo {
            width: 100px;
            height: auto;
        }
    }

    @media (max-width: 480px) {
        .page-transition {
            top: 85px;
        }

        .transition-logo {
            width: 70px;
            height: auto;
            filter: drop-shadow(4px 12px rgba(0,0,0,0.3));
        }
    }

    /* ============================================
 AJUSTES: Imágenes en sección Vehículos Destacados
 Evita que las imágenes crezcan fuera del contenedor
 ============================================ */
    .featured-vehicles img,
    .vehicles-grid img,
    .featured .vehicle-image img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    /* Si hay un wrapper ancho forzar máximo razonable */
    .featured-vehicles .container,
    .featured-vehicles .slider-container {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* --- FORMULARIO IMPORTACIÓN A MEDIDA --- */
    /* Elimina grid y vuelve a un solo bloque vertical */
    #importacion-form {
        max-width: 600px !important;
        margin: 0 auto;
        display: block;
        background: none;
    }

        #importacion-form > div,
        #importacion-form > label,
        #importacion-form > input,
        #importacion-form > select,
        #importacion-form > textarea,
        #importacion-form > button {
            display: block;
            width: 100%;
            grid-column: unset;
        }

        #importacion-form .form-row-2 {
            display: flex;
            gap: 10px;
        }

            #importacion-form .form-row-2 > * {
                flex: 110;
            }

        #importacion-form input,
        #importacion-form select,
        #importacion-form textarea {
            width: 100%;
            font-size: 15px;
            padding: 10px12px;
            border-radius: 5px;
            border: 1px solid #ddd;
            background: #fff;
            margin-bottom: 10px;
        }

        #importacion-form label {
            font-weight: 600;
            margin-bottom: 2px;
            color: #222;
            font-size: 15px;
        }

        #importacion-form button[type="submit"] {
            margin-top: 10px;
            font-size: 17px;
            padding: 14px0;
            width: 100%;
        }

        #importacion-form .checkbox-group, #importacion-form .radio-group {
            display: flex;
            flex-wrap: wrap;
            gap: 12px18px;
            margin-bottom: 0;
        }

    /* --- AJUSTES SOLICITADOS: margen botones y menú (mínimo) --- */

    /* Más margen derecho en los botones de acción del header */
    .nav-actions .btn,
    .nav-actions .btn-sm,
    .nav-actions button {
        margin-right: 24px !important; /* margen derecho aumentado */
    }

    /* Junta al mínimo los elementos del menú principal */
    .nav-menu ul {
        gap: 0px !important; /* mínimo espacio posible */
    }

    @media (max-width:900px) {
        .nav-menu ul {
            gap: 0px !important;
        }

        .nav-actions .btn,
        .nav-actions .btn-sm,
        .nav-actions button {
            margin-right: 12px !important;
        }
}
