:root {
    --bg-color: #0a0a0a;
    --card-bg: #111111;
    --text-primary: #f5f5f7;
    --text-secondary: #a1a1a6;
    --accent-red: #ff0000;
    --accent-blue: #0c9ce2;
    --font-primary: 'Manrope', sans-serif;
    --transition-speed: 0.6s;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 1;
    margin-bottom: 2rem;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

h3 {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    margin-bottom: 2rem;
}

p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 600px;
}

a,
a:hover {
    color: var(--text-secondary);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    min-height: 89px;
}

.logo {
    height: 40px;
    object-fit: contain;
}

#navLogo {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#navLogo.show-logo {
    opacity: 1;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    margin-left: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--accent-red);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 110%;
    /* Extra height for parallax */
    background-size: cover;
    background-position: center;
    z-index: -2;
    transform: translateZ(0);
    background-image: url('../assets/hero.jpg');
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.3), var(--bg-color));
    z-index: -1;
}

.hero-content {
    padding: 0 2rem;
    opacity: 0;
    /* JS fade in */
    transform: translateY(30px);
}

.hero-content .logo {
    height: auto;
    width: 100%;
    object-fit: contain;
    margin-bottom: 2rem;
}

.hero-subtitle {
    font-size: 1rem;
    letter-spacing: 0.3em;
    margin: 0 auto 3rem;
    color: var(--accent-blue);
    font-weight: 600;
}

.hero-subtitle a {
    color: var(--accent-blue);
    text-decoration: underline;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 1px solid var(--text-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all 0.4s ease;
    background: transparent;
}

.cta-button:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: white;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
}

.scroll-indicator .line {
    width: 1px;
    height: 40px;
    background: var(--text-secondary);
    margin-top: 10px;
    animation: scrollLine 2s infinite ease-in-out;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Services Section (Scrolytelling) */
.service-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 4rem 10%;
    overflow: hidden;
}

.service-section.reversed {
    justify-content: flex-end;
    text-align: right;
}

.reversed .text-block p {
    margin-left: auto;
}

.service-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    /* Extra for parallax */
    background-size: cover;
    background-position: center;
    z-index: -2;
    opacity: 0.4;
    filter: grayscale(100%);
    transition: filter 0.6s ease;
}

.service-section:hover .service-bg {
    filter: grayscale(0%);
    opacity: 0.6;
}

.service-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-color) 90%);
    z-index: -1;
}

.text-block {
    position: relative;
    max-width: 600px;
    opacity: 0;
    z-index: 10;
}

.text-block h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--accent-red);
    margin-top: 1rem;
}

.reversed .text-block h2::after {
    margin-left: auto;
    background: var(--accent-blue);
}

/* Animations Classes */
.fade-in-up {
    animation: fadeInUp 1s ease forwards 0.5s;
}

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

.slide-in-left.visible {
    animation: slideInLeft 1s ease forwards;
}

.slide-in-right.visible {
    animation: slideInRight 1s ease forwards;
}

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

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

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

/* Footer */
footer {
    background: #050505;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: var(--accent-blue);
    /* Using the blue from vars, closer to cyan in image */
    margin-bottom: 2rem;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

/* Col 1: Horario */
.schedule-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 2rem;
    row-gap: 0.3rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.schedule-note {
    color: var(--accent-blue);
    font-size: 0.85rem;
}

/* Col 2: Contacto */
.contact-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.contact-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.contact-list li svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 1rem;
    stroke: var(--accent-blue);
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    color: white;
}

.social-icon:hover {
    background: var(--accent-blue);
}

.social-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Col 3: Ubicación */
.map-container {
    width: 100%;
    height: 150px;
    background: #222;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.map-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--accent-blue);
    /* Match the cyan button */
    color: black;
    /* Text seems dark in image */
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 4px;
    transition: 0.3s;
}

.map-btn:hover {
    background: white;
}

/* Col 4: Sitemap */
.sitemap-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.sitemap-group h5 {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 400;
}

.sitemap-group ul {
    list-style: none;
}

.sitemap-group ul li {
    margin-bottom: 0.5rem;
}

.sitemap-group ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: 0.3s;
}

.sitemap-group ul li a:hover {
    color: var(--accent-blue);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: #555;
    margin-top: 2rem;
}

/* Helpers */
.mt-1 {
    margin-top: 1rem;
}

.mt-2 {
    margin-top: 2rem;
}


/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* Mobile menu to be implemented if needed, simplicity for high-end feel often hides nav or uses burger. Assuming simple top for now or keeping it explicit in request. */
    }

    .service-section {
        padding: 4rem 5%;
        text-align: left;
        justify-content: flex-start;
    }

    .service-section.reversed {
        justify-content: flex-start;
        text-align: left;
    }

    .reversed .text-block p {
        margin-left: 0;
        /* Reset for mobile */
    }

    .reversed .text-block h2::after {
        margin-left: 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}