/* CSS variables and main design system */
:root {
    --jac-red: #d3141e;
    --jac-red-dark: #9e0c12;
    --dark-bg: #0d0d0d;
    --dark-surface: #121212;
    --dark-card: #1c1c1c;
    --light-bg: #f9f9f9;
    --light-surface: #ffffff;
    --light-border: #eaeaea;
    --text-dark: #1a1a1a;
    --text-light: #f5f5f5;
    --text-muted: #666666;
    --font-heading: 'Lora', Georgia, serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    font-family: var(--font-body);
    background-color: var(--light-bg);
    color: var(--text-dark);
    overflow-x: hidden;
}

header.navbar{
    background: #ED1C24;
    text-align: center;
    border-bottom: 3px solid #333;
}
h1, h2, h3, h4, h5, h6, .display-font {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--jac-red);
}

/* Editorial Header Navbar */
.navbar-editorial {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition-smooth);
    z-index: 1050;
}
.navbar-editorial.scrolled {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 30px rgba(0,0,0,0.03);
}
.nav-brand-editorial {
    display: flex;
    align-items: center;
    gap: 15px;
}
.nav-brand-logo {
    height: 32px;
    width: auto;
}
.brand-tag {
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    border-left: 1px solid var(--light-border);
    padding-left: 15px;
    line-height: 1;
}

.brand-jac-logo {
    font-family: var(--font-body);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    color: var(--text-dark);
    margin: 0;
    line-height: 1;
}
.brand-jac-logo span {
    color: var(--jac-red);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--text-light);
    overflow: hidden;
    padding-top: 100px;
    padding-bottom: 60px;
    background-image: url('img/01_Hero-Banner_1920-x-1080.jpg');
}

/* Responsive background image for Hero */
@media (max-width: 768px) {
    .hero-section {
        background-image: url('img/01_Hero-Banner_1080-x-1350.jpg');
        min-height: 85vh;
        align-items: flex-end;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-tag {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--jac-red);
    margin-bottom: 1rem;
    display: inline-block;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }
}

.hero-intro {
    font-size: 1.15rem;
    font-weight: 300;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2rem;
}

.hero-presented {
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

/* Sections General */
.section-padding {
    padding: 100px 0;
}
@media (max-width: 768px) {
    .section-padding {
        padding: 60px 0;
    }
}

.section-title {
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--jac-red);
    margin-top: 15px;
}

.section-title-light {
    color: var(--text-light);
}

/* Interactive Checklist (Bloque 1) */
.checklist-card {
    background-color: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}
.checklist-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-dark);
}
.checklist-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--light-border);
    transition: var(--transition-smooth);
}
.checklist-item:last-child {
    border-bottom: none;
}
.checklist-item:hover {
    transform: translateX(8px);
    color: var(--jac-red);
}
.checklist-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background-color: rgba(211, 20, 30, 0.1);
    color: var(--jac-red);
    border-radius: 50%;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Giant Motors / Sahagun Section (Bloque 2) */
.banner-grid-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.banner-caption {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
    text-align: right;
}

/* GSAP Horizontal Timeline (Bloque 2 Línea del tiempo) */
.timeline-outer {
    position: relative;
    background-color: var(--dark-bg);
    color: var(--text-light);
    overflow: hidden;
}
.timeline-pin-section {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
}
.timeline-scroll-container {
    display: flex;
    will-change: transform;
    height: 100%;
    align-items: center;
    padding-left: 10vw;
    padding-right: 20vw;
}
.timeline-header-slide {
    width: 35vw;
    flex-shrink: 0;
    padding-right: 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.timeline-slide {
    width: 25vw;
    flex-shrink: 0;
    padding: 0 30px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 2px solid rgba(255, 255, 255, 0.15);
    height: 60%;
}
@media (max-width: 992px) {
    .timeline-header-slide {
        width: 80vw;
    }
    .timeline-slide {
        width: 70vw;
        height: auto;
    }
}
.timeline-year {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--jac-red);
    font-family: var(--font-body);
    margin-bottom: 15px;
    letter-spacing: -0.02em;
    position: relative;
}
.timeline-year::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 3px;
    background-color: var(--text-light);
}
.timeline-text {
    font-size: 1.05rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}
.timeline-progress-bar {
    position: absolute;
    bottom: 20%;
    left: 10vw;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--jac-red) 0%, #ff5c65 100%);
    z-index: 10;
}

/* Video Section */
.video-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    background-color: var(--dark-bg);
}
.video-placeholder-container {
    position: relative;
    cursor: pointer;
}
.video-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    opacity: 0.85;
    transition: var(--transition-smooth);
}
.video-wrapper:hover .video-img {
    transform: scale(1.02);
}
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: var(--jac-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 0 30px rgba(211, 20, 30, 0.5);
    transition: var(--transition-smooth);
    z-index: 2;
}
.video-wrapper:hover .video-play-btn {
    background-color: white;
    color: var(--jac-red);
    transform: translate(-50%, -50%) scale(1.1);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
}
.video-overlay-text {
    position: absolute;
    bottom: 30px;
    left: 30px;
    color: white;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.video-overlay-text h4 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}
.video-overlay-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}
.iframe-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 ratio */
}
.iframe-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Interactive Catalog Section (Bloque 3) */
.catalog-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--light-border);
    padding-bottom: 20px;
}
.catalog-btn {
    background: none;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    position: relative;
    transition: var(--transition-smooth);
}
.catalog-btn::after {
    content: '';
    position: absolute;
    bottom: -21px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--jac-red);
    transform: scaleX(0);
    transition: var(--transition-smooth);
}
.catalog-btn:hover, .catalog-btn.active {
    color: var(--jac-red);
}
.catalog-btn.active::after {
    transform: scaleX(1);
}
.catalog-pane {
    display: none;
}
.catalog-pane.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}
.catalog-card {
    background-color: var(--light-surface);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
    height: 100%;
    transition: var(--transition-smooth);
}
.catalog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    border-color: rgba(211, 20, 30, 0.2);
}
.catalog-card-body {
    padding: 30px;
}
.catalog-category-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jac-red);
    margin-bottom: 10px;
}
.catalog-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}
.catalog-list-group {
    list-style: none;
    padding: 0;
    margin: 0;
}
.catalog-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-weight: 500;
    border-bottom: 1px dashed var(--light-border);
}
.catalog-list-item:last-child {
    border-bottom: none;
}
.catalog-list-item i {
    color: var(--jac-red);
}
.catalog-banner-container {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 20px;
}
.catalog-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Flip Cards (Bloque 4) */
.flip-card-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.flip-card {
    background-color: transparent;
    width: 100%;
    max-width: 420px;
    height: 480px;
    perspective: 1200px;
    cursor: pointer;
}
.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}
.flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
}
.flip-card-front {
    background-size: cover;
    background-position: center;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    padding: 35px;
    border: 1px solid var(--light-border);
}
.flip-card-front-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}
.flip-card-front-content {
    position: relative;
    z-index: 2;
    text-align: left;
}
.flip-card-front h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: white;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.flip-card-action-hint {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--jac-red);
    display: flex;
    align-items: center;
    gap: 5px;
}
.flip-card-back {
    background-color: var(--dark-bg);
    color: var(--text-light);
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 40px;
    text-align: left;
    border: 2px solid var(--jac-red);
}
.flip-card-back h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--jac-red);
}
.flip-card-back-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.flip-card-back-list li {
    font-size: 1.05rem;
    margin-bottom: 15px;
    line-height: 1.5;
    position: relative;
    padding-left: 25px;
    color: rgba(255,255,255,0.9);
}
.flip-card-back-list li::before {
    content: '▪';
    color: var(--jac-red);
    position: absolute;
    left: 0;
    font-size: 1.2rem;
    line-height: 1;
    top: 0;
}

/* Call to Action Cierre */
.cta-section {
    background-color: var(--dark-bg);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}
.cta-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.cta-text {
    font-size: 1.5rem;
    line-height: 1.6;
    margin-bottom: 40px;
    color: rgba(255, 255, 255, 0.9);
}
.btn-premium {
    background-color: var(--jac-red);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1.1rem;
    padding: 18px 45px;
    border: none;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(211, 20, 30, 0.4);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.btn-premium:hover {
    background-color: white;
    color: var(--jac-red);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(255, 255, 255, 0.2);
}

/* Footer style */
.editorial-footer {
    background-color: #080808;
    color: #444;
    padding: 40px 0;
    border-top: 1px solid #151515;
    font-size: 0.8rem;
    text-align: center;
}
.editorial-footer p {
    margin: 0;
}

/* Animations helper */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Section Separator */
.editorial-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(211, 20, 30, 0) 0%, rgba(211, 20, 30, 0.3) 50%, rgba(211, 20, 30, 0) 100%);
}
