:root {
    --primary-red: #c8102e;
    --primary-gold: #d4af37;
    --bg-black: #ffffff;
    --bg-dark: #f8f9fa;
    --bg-darker: #e9ecef;
    --text-white: #212529;
    --text-grey: #6c757d;
    --font-main: 'Inter', sans-serif;
    --font-heading: 'Playfair Display', serif;
    /* Adding a serif for a more "traditional/elite" feel for headings if desired, or stick to clean sans */
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-black);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.text-center {
    text-align: center;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #a00c24;
    transform: translateY(-2px);
}

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

.btn-secondary:hover {
    background-color: var(--text-white);
    color: var(--bg-black);
    transform: translateY(-2px);
}

/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 60px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: url('../assets/images/hero-bg.jpg') no-repeat center center/cover;
    margin-top: 0;
    /* Reset if needed */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7), rgba(10, 10, 10, 0.9));
}

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

.hero-crest img {
    height: 150px;
    margin: 0 auto 30px;
    filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.3));
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #ffffff;
}

.hero .subtitle {
    font-size: 1.2rem;
    color: #dddddd;
    margin-bottom: 40px;
    font-weight: 300;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.hero .btn-secondary {
    border-color: #ffffff;
    color: #ffffff;
}

.hero .btn-secondary:hover {
    background-color: #ffffff;
    color: #000000;
}

.hero .btn-primary {
    color: #ffffff;
}

/* Historia - Timeline */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 60px auto 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background-color: var(--primary-red);
    opacity: 0.3;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 50px;
    position: relative;
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-year {
    width: 100px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-gold);
    background-color: var(--bg-black);
    z-index: 2;
    padding: 10px 0;
    align-self: center;
    border: 2px solid var(--primary-gold);
    border-radius: 50px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-content {
    width: 45%;
    background-color: var(--bg-dark);
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid var(--primary-red);
    transition: var(--transition);
}

.timeline-item:nth-child(even) .timeline-content {
    border-left: none;
    border-right: 4px solid var(--primary-red);
    text-align: right;
}

.timeline-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Servicios */
.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-red);
    margin: 15px auto 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: var(--bg-dark);
    padding: 40px 30px;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    background-color: #e9ecef;
    border-bottom-color: var(--primary-gold);
    transform: translateY(-10px);
}

.service-card i {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.service-card h3 {
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--text-grey);
    font-size: 0.95rem;
}

/* Entrenamiento */
.parallax-bg {
    background: url('../assets/images/capacitacion.jpg') no-repeat center center/cover;
    /* Placeholder training bg */
    background-attachment: fixed;
    position: relative;
}

.overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.7);
}

.content-relative {
    position: relative;
    z-index: 2;
}

.lead-text {
    font-size: 2rem;
    font-style: italic;
    margin-bottom: 10px;
    color: var(--primary-gold);
}

.sub-lead {
    font-size: 1.2rem;
    margin-bottom: 50px;
    color: #ffffff;
}

.section-title.text-white {
    color: #ffffff;
}

.training-features {
    display: flex;
    justify-content: center;
    gap: 50px;
    flex-wrap: wrap;
}

.feature {
    text-align: center;
}

.feature .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.1);
    margin-bottom: -20px;
}

.feature h4 {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Voluntariado */
.volunteer-box {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #e9ecef 100%);
    padding: 60px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.highlight-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-red);
    margin-bottom: 10px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1rem;
    margin-top: 20px;
}

/* Galería */
.instagram-container {
    width: 100%;
    overflow: hidden;
}

/* Contacto */
.contact-grid {
    margin-bottom: 50px;
}

.contact-info {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}

.info-item {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-gold);
    margin-bottom: 10px;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
}

.map-placeholder {
    width: 100%;
    height: 400px;
    background-color: var(--bg-dark);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-grey);
}

.map-mockup {
    text-align: center;
}

.map-mockup i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: var(--primary-red);
}

/* Footer */
footer {
    background-color: #f8f9fa;
    padding: 30px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    color: var(--text-grey);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background-color: var(--bg-black);
        flex-direction: column;
        padding: 80px 40px;
        transition: var(--transition);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
        z-index: 1000;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: block;
        position: relative;
        z-index: 1002;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        flex-direction: column;
        padding-left: 50px;
    }

    .timeline-year {
        left: 20px;
        transform: translateX(-50%);
        width: 60px;
        font-size: 1rem;
    }

    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        width: 100%;
        text-align: left;
        border-left: 4px solid var(--primary-red);
        border-right: none;
    }

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

/* Carros Section */
.carros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.carro-card {
    background-color: var(--bg-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
    border-bottom: 3px solid transparent;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.carro-card:hover {
    transform: translateY(-10px);
    border-bottom-color: var(--primary-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carro-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

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

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

.carro-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.carro-info h3 {
    color: var(--primary-red);
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.carro-info p {
    color: var(--text-grey);
    font-size: 1rem;
}

.subsection-title {
    font-size: 1.8rem;
    color: var(--primary-gold);
    margin: 40px 0 30px;
    position: relative;
    display: inline-block;
}

.mt-5 {
    margin-top: 3rem;
}

.text-center-card {
    text-align: center;
    align-items: center;
}

.relics-list {
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.relics-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    color: var(--text-grey);
}

.relics-list li:last-child {
    border-bottom: none;
}