/* 1. RECURSOS Y ESTILOS */
:root {
    --font-primary: 'Montserrat', sans-serif;

    /* Paleta de Colores */
    --color-action: #F3BF46;
    /* Amarillo Ideas */
    --color-corporate: #002554;
    /* Azul Noche */
    --color-bg-white: #FFFFFF;
    --color-bg-grey: #F4F4F4;
    --color-text: #333333;
    --color-text-light: #FFFFFF;

    /* Estética */
    --border-radius-oval: 50px;
    --border-radius-card: 30px;
    --shadow-soft: 0 10px 20px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    color: var(--color-text);
    line-height: 1.6;
    background-color: var(--color-bg-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-card);
    /* Soften images by default */
}

.logo img {
    border-radius: 0;
    /* Keep logos sharp */
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.bg-grey {
    background-color: var(--color-bg-grey);
}

.bg-blue {
    background-color: var(--color-corporate);
    color: var(--color-text-light);
}

.bg-white {
    background-color: var(--color-bg-white);
}

.text-center {
    text-align: center;
}

/* ANIMATIONS */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* BUTTONS */
.btn {
    display: inline-block;
    background-color: var(--color-action);
    color: var(--color-corporate);
    font-weight: 700;
    text-transform: uppercase;
    padding: 15px 35px;
    border-radius: var(--border-radius-oval);
    /* OVAL SHAPE */
    cursor: pointer;
    border: 2px solid var(--color-action);
    box-shadow: 0 4px 15px rgba(243, 191, 70, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.btn:hover {
    background-color: #ffe066;
    border-color: #ffe066;
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(243, 191, 70, 0.6);
}

.btn-small {
    padding: 10px 25px;
    font-size: 0.85rem;
}

.btn-large {
    padding: 20px 40px;
    font-size: 1.1rem;
    width: 100%;
    max-width: 450px;
}

.btn-yellow-solid {
    background-color: var(--color-action);
    color: var(--color-corporate);
}

/* A. HEADER */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 45px;
}

/* B. HERO SECTION */
.hero {
    position: relative;
    /* Background image fallback is handled by poster attribute on video now */
    background-color: #000;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-text-light);
    border-bottom-left-radius: 50px;
    border-bottom-right-radius: 50px;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* Overlay */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 37, 84, 0.75);
    /* Slight transparency adjustment for video */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero h2 {
    font-weight: 300;
    font-size: 1.3rem;
    margin-bottom: 50px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* C. AUTHORITY */
.authority h3.section-title {
    text-align: center;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--color-corporate);
    margin-bottom: 15px;
}

.section-subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
    font-weight: 400;
    font-size: 1.1rem;
    color: #555;
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.card {
    text-align: center;
    padding: 40px 30px;
    background: white;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.card .icon {
    font-size: 3.5rem;
    margin-bottom: 25px;
    color: var(--color-corporate);
    background: #f0f4f8;
    width: 100px;
    height: 100px;
    line-height: 100px;
    border-radius: 50%;
    margin-left: auto;
    margin-right: auto;
}

.card h4 {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--color-corporate);
    margin-bottom: 15px;
}

/* D. PRODUCT */
.product .section-title {
    text-align: center;
    font-weight: 900;
    font-size: 2.2rem;
    color: var(--color-corporate);
    margin-bottom: 15px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 25px;
    margin-top: 50px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.feature-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 25px 35px;
    border-radius: var(--border-radius-oval);
    /* Oval styling */
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.02);
}

.checkmark {
    color: var(--color-action);
    font-weight: 900;
    font-size: 1.5rem;
    margin-right: 20px;
    background: rgba(243, 191, 70, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.feature-item p {
    font-weight: 600;
    color: var(--color-corporate);
    font-size: 1.1rem;
}

/* G. GALLERY (NEW) */
.gallery-section {
    background-color: var(--color-bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: var(--border-radius-card);
    overflow: hidden;
    height: 250px;
    position: relative;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 37, 84, 0.9), transparent);
    padding: 20px;
    color: white;
    font-weight: 700;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

/* COUNTDOWN */
.countdown-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 40px;
    flex-wrap: wrap; /* responsive safety */
}

.countdown-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 15px 20px;
    border-radius: 15px; /* Minimalist rounded */
    min-width: 90px;
}

.countdown-item span {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-action);
    line-height: 1;
}

.countdown-item p {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
    opacity: 0.8;
}

/* E. EVENT DATA */
.event-data {
    color: white;
    padding-bottom: 60px;
}

.event-card {
    background: var(--color-corporate);
    padding: 60px 40px;
    border-radius: 30px; /* Refined roundness */
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 30px 60px rgba(0, 37, 84, 0.3); /* Softer, deeper shadow */
    border: none; /* Removed thick border for minimalism */
    position: relative;
    overflow: hidden;
}

/* Decorative minimalist accent */
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6px;
    height: 100%;
    background: var(--color-action);
}

.event-card h3 {
    font-weight: 900;
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #fff; /* White title for clean corporate look */
}

.event-details {
    margin-bottom: 40px;
    font-size: 1.25rem;
    font-weight: 300;
}

.event-details p {
    margin-bottom: 20px;
}

.highlight-box {
    background: transparent;
    border: 1px solid var(--color-action);
    color: var(--color-action);
    padding: 15px 30px;
    border-radius: 50px;
    display: inline-block;
    margin-top: 25px;
    font-weight: 600;
}

/* F. FOOTER */
.footer {
    padding: 50px 0 30px;
    border-top: 1px solid #eee;
    text-align: center;
}

.social-links {
    margin: 20px 0;
}

.social-links a {
    color: var(--color-corporate);
    font-weight: 700;
    margin: 0 15px;
    font-size: 1.1rem;
}

.social-links a:hover {
    color: var(--color-action);
}

.footer-note {
    font-size: 0.9rem;
    color: #888;
    margin-top: 15px;
}

/* RESPONSIVE TABLET/DESKTOP */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero h2 {
        font-size: 1.5rem;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }

    .feature-item {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .checkmark {
        margin-right: 0;
        margin-bottom: 15px;
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .logo img {
        height: 60px;
    }
}