/* Global Styles */
:root {
    --brand-blue: #001489;
    /* Match Logo Color */
    --brand-amber: #3B82F6;
    /* Action Blue CTA (formerly amber) */
    --brand-amber-light: #DBEAFE;
    /* Light Action Blue */
    --text-main: #334155;
    --text-light: #F8FAFC;
    --white: #FFFFFF;
    --bg-light: #F1F5F9;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

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

/* Animations Tools */
.fade-in-on-load {
    opacity: 0;
    animation: fadeIn 1.2s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

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

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

/* ----- Mobile-First Header ----- */
.main-header {
    background-color: var(--brand-blue);
    color: var(--white);
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.logo-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

.logo-character img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    /* Optional: filter to make it fit nicely if it's not transparent */
}

.slogan {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* ----- Hero Section ----- */
.hero {
    display: flex;
    flex-direction: column;
    background-color: var(--white);
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 60%, var(--white) 100%);
}

.hero-content {
    padding: 2rem 1.5rem 4rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    margin-top: -2rem;
    /* Pulls content up slightly over the gradient */
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-blue);
    line-height: 1.2;
}

.cta-button {
    background-color: var(--brand-amber);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 800;
    border-radius: 50px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    transition: transform 0.2s, background-color 0.2s;
}

.cta-button:hover,
.cta-button:active {
    transform: translateY(-2px) scale(1.02);
    background-color: #2563EB;
    /* Darker action blue */
}

/* ----- Services Section (Accordions) ----- */
.services {
    padding: 3rem 1.5rem;
    background-color: var(--white);
}

.accordions-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.service-accordion {
    background-color: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-accordion[open] {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.service-accordion summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.2rem 1.5rem;
    cursor: pointer;
    list-style: none;
    /* Hide default marker */
    user-select: none;
}

/* Hide default marker for webkit/safari */
.service-accordion summary::-webkit-details-marker {
    display: none;
}

.accordion-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-icon {
    font-size: 1.5rem;
    color: var(--brand-amber);
    width: 30px;
    text-align: center;
}

.accordion-header h3 {
    font-size: 1.1rem;
    color: var(--brand-blue);
    font-weight: 800;
}

.toggle-icon {
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.service-accordion[open] .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 1.5rem 1.5rem 4rem;
    /* Indent content */
    font-size: 0.95rem;
    color: var(--text-main);
    animation: fadeInDown 0.3s ease;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

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

/* ----- Champions Gallery ----- */
.champions-gallery {
    padding: 4rem 1rem;
    background-color: var(--white);
}

.section-title {
    text-align: center;
    color: var(--brand-blue);
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 2rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    max-width: 500px;
    margin: 0 auto;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    aspect-ratio: 4/5;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ----- Actividades Section ----- */
.activities {
    padding: 4rem 1.5rem;
    background-color: var(--white);
    text-align: center;
}

.activities-intro {
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

.activities-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 400px;
    margin: 0 auto;
}

.activity-card {
    background-color: var(--bg-light);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    text-align: left;
    transition: transform 0.3s ease;
}

.activity-card:hover {
    transform: translateY(-5px);
}

.activity-img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
}

.activity-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-content h3 {
    color: var(--brand-blue);
    font-size: 1.3rem;
    font-weight: 800;
}

.activity-icon {
    color: var(--brand-amber);
    margin-right: 0.3rem;
}

.activity-content p {
    color: var(--text-main);
    font-size: 0.95rem;
}

/* ----- Pricing Section ----- */
.pricing {
    padding: 4rem 1.5rem;
    background-color: var(--bg-light);
    text-align: center;
}

.pricing-intro {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-main);
    background-color: var(--white);
    padding: 2rem;
    border-radius: 12px;
    border-left: 4px solid var(--brand-blue);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 400px;
    margin: 0 auto;
}

.price-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    border: 2px solid transparent;
    transition: transform 0.3s, border-color 0.3s;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--brand-amber);
}

.price-card h3 {
    color: var(--text-main);
    font-size: 1.3rem;
    font-weight: 800;
}

.price {
    color: var(--brand-blue);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
}

.price span {
    font-size: 1rem;
    color: #64748B;
    font-weight: 400;
}

.price-btn {
    margin-top: 1rem;
    width: 100%;
    text-decoration: none;
    text-align: center;
}

/* ----- Footer ----- */
.main-footer {
    background-color: var(--brand-blue);
    color: var(--white);
    padding: 4rem 1.5rem 2rem;
}

.footer-stack {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.contact-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-family: inherit;
    font-size: 1rem;
}

.contact-form textarea {
    resize: vertical;
}

.submit-button {
    background-color: var(--brand-amber);
    color: var(--white);
    font-weight: 800;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    cursor: pointer;
    text-transform: uppercase;
}

.map-container {
    width: 100%;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem 1rem;
    text-align: center;
}

.custom-map-pin {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--white);
    transition: transform 0.2s;
}

.custom-map-pin:hover {
    transform: translateY(-3px);
}

.schedule-info {
    margin-top: 2rem;
    text-align: center;
}

.schedule-info h4 {
    font-size: 1.2rem;
    color: var(--brand-amber);
    margin-bottom: 0.5rem;
}

.schedule-info p {
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    opacity: 0.9;
}

.map-icon {
    font-size: 2.5rem;
    color: var(--brand-amber);
}

.social-links {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.social-links a {
    color: var(--white);
    font-size: 4rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
}

.social-links a:hover {
    color: var(--brand-amber);
    transform: scale(1.2) rotate(5deg);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: center;
    margin-top: 1rem;
}

/* ----- Instalaciones Section ----- */
.instalaciones {
    padding: 4rem 1.5rem;
    background-color: var(--white);
    text-align: center;
}

.facilities-desc {
    max-width: 500px;
    margin: 0 auto 2rem;
    color: var(--text-main);
    font-size: 1.05rem;
}

.facilities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

.facility-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.facility-img:hover {
    transform: scale(1.05);
}

/* ----- Bottom Nav ----- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-around;
    padding: 0.8rem 1rem 1.5rem;
    /* space for iOS home indicator */
    z-index: 1000;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.nav-item i {
    font-size: 1.4rem;
    color: var(--brand-amber);
    /* which is actually our action blue */
}

.nav-item:hover,
.nav-item:active {
    color: var(--brand-blue);
}

/* Add padding to body so bottom nav doesn't hide content */
body {
    padding-bottom: 80px;
}

/* ----- Floating WhatsApp ----- */
.whatsapp-float {
    position: fixed;
    bottom: 90px;
    /* Above bottom nav */
    right: 20px;
    background-color: #25D366;
    color: white;
    font-size: 2rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: transform 0.2s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* ========================================================
   Desktop Enhancements (Progressive Enhancement)
   ======================================================== */
@media (min-width: 768px) {
    .main-header {
        flex-direction: row;
        justify-content: space-between;
        padding: 1.5rem 4rem;
        background-color: transparent;
        color: var(--brand-blue);
        position: absolute;
        width: 100%;
        top: 0;
        z-index: 10;
        background-color: var(--brand-blue);
        color: white;
        /* Optional: Keep header blue on desktop or make transparent. Let's keep blue */
    }

    .logo-stack {
        flex-direction: row;
    }

    .hero {
        flex-direction: row-reverse;
        align-items: center;
        height: 100vh;
        min-height: 600px;
    }

    .hero-image-wrapper {
        flex: 1;
        height: 100%;
    }

    .image-overlay {
        background: linear-gradient(to right, var(--white) 0%, transparent 40%);
    }

    .hero-content {
        flex: 1;
        padding: 4rem 4rem;
        text-align: left;
        align-items: flex-start;
        margin-top: 0;
    }

    .hero-title {
        font-size: 4rem;
    }

    .services {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        padding: 6rem 4rem;
    }

    .service-card {
        flex: 1;
        min-width: 280px;
        max-width: 350px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .activities-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 900px;
    }

    .pricing-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
    }

    .footer-stack {
        flex-direction: row;
        max-width: 1000px;
        justify-content: space-between;
        align-items: flex-start;
    }

    .contact-form {
        flex: 1;
    }

    .map-container {
        flex: 1;
    }
}