/* =========================================
   CONFIGURACIÓN BASE (VARIABLES)
   ========================================= */
:root {
    --bg: #050505;
    /* Fondo Principal (Casi negro) */
    --card-bg: #0f0f0f;
    /* Fondo de Tarjetas */
    --text: #ffffff;
    /* Texto Principal */
    --text-muted: #888888;
    /* Texto Secundario */
    --border: #222222;
    /* Bordes sutiles */
    --accent: #ffffff;
    /* Acentos (Blanco puro) */
}

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

html {
    scroll-behavior: smooth;
    /* Desplazamiento suave nativo */
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background-color: var(--bg);
    overflow-x: hidden;
    /* Evita scroll horizontal accidental */
}

/* =========================================
   HERO SECTION CON VIDEO DE FONDO
   ========================================= */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    /* Evita que el video se salga */
    background: #000;
    /* Fondo de respaldo por si el video falla */
    padding-top: 0;
}

/* El Video de Fondo */
.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;

    /* 1. Ocupar todo el espacio (Adiós líneas negras) */
    width: 100%;
    height: 100%;

    /* 2. 'cover' para que llene la pantalla inteligentemente */
    object-fit: cover;

    /* 3. EL SECRETO: Alineación Vertical */
    /* En lugar de 'center', usamos 'bottom' o un porcentaje. */
    /* Esto le dice al navegador: "Si tienes que cortar algo, corta el cielo, no el suelo" */
    object-position: center 80%;
}

/* Capa Oscura (Overlay) */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    /* Ajusta la opacidad aquí (0.5 es medio oscuro) */
    z-index: 1;
    /* Encima del video */
}

/* Contenido del Hero (Texto y Botón) */
.hero-content {
    position: relative;
    z-index: 2;
    /* Encima de todo */
    padding-top: 80px;
    /* Un poco de aire extra */
}

.hero h1 {
    font-size: 5rem;
    font-weight: 200;
    letter-spacing: 15px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease;
}

.hero p {
    font-size: 1.2rem;
    color: #e0e0e0;
    /* Un poco más claro que muted para que resalte sobre el video */
    letter-spacing: 3px;
    text-transform: uppercase;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.btn-hero {
    display: inline-block;
    margin-top: 40px;
    padding: 15px 40px;
    border: 1px solid var(--accent);
    background: transparent;
    /* Fondo transparente */
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 3px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    /* Efecto vidrio en el botón */
}

.btn-hero:hover {
    background: var(--accent);
    color: #000;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 100px 20px;
    border-bottom: 1px solid var(--border);
}

/* Excepción para el Hero (ya tiene sus propios estilos) */
section.hero {
    max-width: none;
    padding: 0;
    border-bottom: none;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
    font-size: 2.5rem;
    font-weight: 200;
    text-transform: uppercase;
    letter-spacing: 8px;
    color: var(--text);
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: -40px auto 60px;
    color: var(--text-muted);
    line-height: 1.8;
    font-weight: 300;
    font-size: 1.1rem;
}

/* =========================================
   GRID DE SERVICIOS
   ========================================= */
.grid-servicios {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1px;
    background-color: var(--border);
    border: 1px solid var(--border);
}

.servicio-card {
    background-color: var(--card-bg);
    padding: 50px 30px;
    text-align: center;
    transition: background 0.4s ease;
    cursor: default;
    height: 100%;
}

.servicio-card:hover {
    background-color: #000;
    outline: 1px solid var(--accent);
    z-index: 2;
}

.servicio-card h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    font-weight: 400;
    color: var(--text);
}

.servicio-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* (Misión y Visión movidos a estilos_nosotros.css) */

/* =========================================
   MAPA (EFECTO DARK MODE)
   ========================================= */
.mapa-container {
    width: 100%;
    height: 450px;
    filter: grayscale(100%) invert(92%) contrast(83%);
    border: 1px solid var(--border);
    transition: filter 0.5s;
    overflow: hidden;
}

.mapa-container:hover {
    filter: grayscale(0%);
}

.mapa-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 40px;
    font-size: 0.8rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
    background-color: #000;
    border-top: 1px solid var(--border);
}

/* =========================================
   ANIMACIONES
   ========================================= */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* =========================================
   RESPONSIVE (MÓVIL)
   ========================================= */
@media (max-width: 768px) {
    .navbar {
        height: 80px;
        padding: 0 20px;
    }

    .logo-img {
        height: 50px;
    }

    /* Ocultamos menú en móvil (Hamburguesa pendiente) */
    .nav-menu {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
        letter-spacing: 8px;
    }

    .mv-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================
   SLIDER DE MODELOS DESTACADOS
   ========================================= */
.modelos-slider-section {
    width: 100%;
    min-height: calc(100vh - 80px); /* Todo visible en una sola pantalla */
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0; /* Eliminado el padding excesivo vertical */
    background: radial-gradient(circle at center, #111, #000);
    border-bottom: 1px solid var(--border);
}

.slider-container {
    position: relative;
    width: 100%;
    flex-grow: 1;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.slider-track {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.slider-track::-webkit-scrollbar {
    display: none;
}

.slider-slide {
    min-width: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 40px;
}

.slide-header {
    text-align: center;
    margin-bottom: 40px;
    z-index: 2;
}

.slide-title {
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 10px 0;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    font-family: 'Impact', sans-serif;
    transform: scaleY(1.2);
    /* Aspecto más agresivo */
}

.slide-subtitle {
    font-size: 1.5rem;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 300;
}

.slide-image-wrapper {
    width: 100%;
    max-width: 800px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: -10px; /* Reducido drásticamente para acercar botones */
    z-index: 1;
}

.slide-car-img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.9));
    transition: transform 0.8s ease;
}

/* Removido efecto de zoom al hacer hover en slider-slide */

.slide-actions {
    display: flex;
    gap: 20px;
    z-index: 10; /* subido por si se solapa con shadow */
    flex-wrap: wrap;
    justify-content: center;
    margin-top: -30px; /* subimos los botones */
    position: relative;
}

.btn-primary {
    background-color: var(--accent);
    color: #000;
    padding: 15px 40px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid var(--accent);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--accent);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text);
    padding: 15px 40px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.download-icon {
    vertical-align: middle;
}

/* Controles de Slider */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    /* Reducido de 60px */
    height: 50px;
    /* Reducido de 60px */
    background: rgba(0, 0, 0, 0.5);
    /* Fondo semitransparente oscuro */
    border: 1px solid var(--border);
    border-radius: 50%;
    /* Círculo perfecto en lugar de hexágono */
    color: var(--text);
    z-index: 10;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    border-color: var(--accent);
    color: #000;
    background-color: var(--accent);
}

.slider-btn svg {
    margin: auto;
}

.prev-btn {
    left: 40px;
}

.next-btn {
    right: 40px;
}

@media (max-width: 900px) {
    .slide-title {
        font-size: 3rem;
    }

    .slide-subtitle {
        font-size: 1rem;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }
}


/* =========================================
   PORSCHE MACAN HIGHLIGHT
   ========================================= */
.macan-highlight {
    width: 100%;
    margin: 0;
    /* Sin marcos izquierda/derecha ni líneas (border) horizontales */
    background: #000;
}

.macan-grid {
    display: flex;
    flex-wrap: wrap;
    min-height: 500px;
}

.macan-imagen {
    flex: 1 1 50%;
    position: relative;
    overflow: hidden;
}

.macan-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.9) contrast(1.1);
}

.macan-info {
    flex: 1 1 50%;
    background: linear-gradient(135deg, #111 0%, #000 100%);
    display: flex;
    align-items: center;
    padding: 60px 80px;
    position: relative;
}

/* Efecto superpuesto del degradado sobre la imagen */
.macan-info::before {
    content: '';
    position: absolute;
    left: -100px;
    top: 0;
    bottom: 0;
    width: 100px;
    background: linear-gradient(to right, transparent, #111);
    z-index: 1;
}

.macan-info-content {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.macan-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--text);
    margin: 0 0 10px 0;
    font-family: 'Impact', sans-serif;
    transform: scaleY(1.1);
}

.macan-tagline {
    font-size: 1.2rem;
    color: var(--accent);
    letter-spacing: 3px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 300;
}

.macan-specs {
    list-style: none;
    margin-bottom: 40px;
    padding: 0;
}

.macan-specs li {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.macan-specs span {
    color: var(--text);
    font-weight: bold;
    margin-right: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.macan-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Efecto de brillo de identidad de la página en los botones */
.btn-glow-primary, .btn-glow-secondary {
    padding: 15px 40px;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.4s ease;
    border: 1px solid transparent;
}

.btn-glow-primary {
    background-color: var(--accent);
    color: #000;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3); /* Resplandor blanco elegante */
}

.btn-glow-primary:hover {
    box-shadow: 0 0 25px rgba(255, 255, 255, 0.7), 0 0 40px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    background-color: #fff;
}

.btn-glow-secondary {
    background-color: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-glow-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: inset 0 0 15px rgba(255, 255, 255, 0.1), 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 900px) {
    .macan-imagen, .macan-info {
        flex: 1 1 100%;
    }
    .macan-info::before {
        display: none;
    }
    .macan-title {
        font-size: 2.5rem;
    }
    .macan-info {
        padding: 40px 20px;
    }
}


/* =========================================
   NOTICIAS (SECTOR AUTOMOTRIZ)
   ========================================= */
.noticias-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    margin-top: 40px;
    align-items: start;
}

.noticia-card {
    background: transparent;
    border: none;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

/* 1. Top Left - Landscape */
.noticias-grid .noticia-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.noticias-grid .noticia-card:nth-child(1) .noticia-img-wrap {
    height: 280px;
}

/* 2. Bottom Left - Square staggered */
.noticias-grid .noticia-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
}

.noticias-grid .noticia-card:nth-child(2) .noticia-img-wrap {
    height: 320px;
    width: 80%;
    margin-left: auto;
    /* Push it to the right inside its column */
}

/* 3. Right - Tall vertical */
.noticias-grid .noticia-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / span 2;
    height: 100%;
    /* Stretch to fill the tall column layout */
}

.noticias-grid .noticia-card:nth-child(3) .noticia-img-wrap {
    height: auto;
    min-height: 600px;
    /* Large vertical span */
    flex-grow: 1;
}

/* Clean up hover effect */
.noticia-card:hover {
    transform: translateY(-5px);
}

.noticia-img-wrap {
    width: 100%;
    overflow: hidden;
}

@media (max-width: 900px) {
    .noticias-grid {
        grid-template-columns: 1fr;
    }

    .noticias-grid .noticia-card:nth-child(1),
    .noticias-grid .noticia-card:nth-child(2),
    .noticias-grid .noticia-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        height: auto;
    }

    .noticias-grid .noticia-card:nth-child(1) .noticia-img-wrap,
    .noticias-grid .noticia-card:nth-child(3) .noticia-img-wrap {
        height: 300px;
        min-height: 300px;
        flex-grow: 0;
    }

    .noticias-grid .noticia-card:nth-child(2) .noticia-img-wrap {
        width: 100%;
        margin-left: 0;
        height: 300px;
    }
}

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

.noticia-card:hover .noticia-img {
    transform: scale(1.05);
    /* keep zoom effect */
}

.noticia-content {
    padding: 20px 0 0 0;
    /* Remove side padding to align text with image perfectly */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.noticia-fecha {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 10px;
}

.noticia-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text);
    line-height: 1.3;
}

.noticia-content p {
    font-size: 0.95rem;
    color: #bbb;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-leer-mas {
    align-self: flex-start;
    color: var(--accent);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1.5px;
    font-size: 0.85rem;
    position: relative;
    padding-bottom: 5px;
}

.btn-leer-mas::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.btn-leer-mas:hover::after {
    width: 100%;
}

/* =========================================
   ACCORDION GALLERY (CATEGORÍAS)
   ========================================= */
#galeria-categorias {
    background-color: var(--bg);
}

.accordion-gallery {
    display: flex;
    width: 100%;
    height: 500px;
    gap: 15px;
    overflow: hidden;
    border-radius: 0;
    /* Esquinas cuadradas */
}

.accordion-item {
    flex: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0;
    /* Esquinas cuadradas */
    transition: flex 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    cursor: pointer;
    overflow: hidden;
}

.accordion-item::before {
    content: '';
    position: absolute;
    inset: 0;
    transition: background 0.6s ease;
    border-radius: 0;
    /* Esquinas cuadradas */
}

.accordion-item:hover {
    flex: 5;
}



.accordion-content {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: #fff;
    z-index: 2;
    opacity: 0;
    transition: all 0.4s ease;
    white-space: nowrap;
    transform: translateY(20px);
}

.accordion-item:hover .accordion-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

.accordion-content h3 {
    font-size: 1.8rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

@media (max-width: 768px) {
    .accordion-gallery {
        flex-direction: column;
        height: 600px;
    }

    .accordion-item {
        transition: flex 0.6s ease;
    }
}