@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Bebas+Neue&display=swap');

:root {
    --color-white: #ffffff;
    --color-black: #000000;
    --color-orange: #f54e2c;
    --color-gray: #333333;
    --color-light-gray: #f5f5f5;
    --fuente-principal: 'Montserrat', sans-serif;
    --fuente-secundaria: 'Bebas Neue', cursive;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background: var(--color-white);
    color: var(--color-black);
    font-family: var(--fuente-principal);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.6;
}

/* ============================================
   NAVBAR
   ============================================ */
.header {
    background: var(--color-white);
    border-bottom: 2px solid var(--color-orange);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    height: 80px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    flex-wrap: nowrap;
    position: relative;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

.logo {
    width: 65px;
    height: 65px;
    background: var(--color-white);
    border: 2px solid var(--color-orange);
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: .3s ease;
    flex-shrink: 0;
}
.logo:hover { transform: rotate(360deg) scale(1.05); }
.logo img { width: 100%; height: 100%; object-fit: cover; }

.club-name {
    font-family: var(--fuente-secundaria);
    font-size: 1.9rem;
    color: var(--color-black);
    letter-spacing: 1px;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

.nav-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    color: var(--color-gray);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 45px;
    transition: background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}
.nav-links a:hover { background: rgba(245,78,44,0.12); color: var(--color-orange); }
.nav-links a.active {
    background: var(--color-orange);
    color: var(--color-white);
    box-shadow: 0 4px 14px rgba(245,78,44,0.35);
}

/* Hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}
.hamburger:hover { background: rgba(0,0,0,0.06); }
.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--color-gray);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ============================================
   INTRO
   ============================================ */
.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
    transition: opacity 0.6s ease;
}
.intro-screen.intro-fade-out { opacity: 0; pointer-events: none; }
.cover-panel {
    position: absolute;
    inset: 0;
    background: var(--color-white);
    z-index: 1;
    will-change: clip-path;
}
.broom-wrapper {
    position: absolute;
    bottom: 38%;
    width: 180px;
    height: 200px;
    z-index: 2;
    overflow: visible;
}

/* ============================================
   HERO
   ============================================ */
.hero-section {
    position: relative;
    width: 100%;
    height: 90vh;
    min-height: 500px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-slides { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1.2s ease-in-out, transform 6s ease;
}
.hero-slide.active { opacity: 1; transform: scale(1); }
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.45) 100%);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    max-width: 800px;
    width: 100%;
    text-align: center;
}
.hero-logo-anim {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    border: 3px solid var(--color-orange);
    overflow: hidden;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: expandLogo 0.8s cubic-bezier(0.34,1.56,0.64,1) 4s both;
}
@keyframes expandLogo {
    0%   { transform: scale(0); opacity: 0; }
    60%  { transform: scale(1.15); }
    100% { transform: scale(1); opacity: 1; }
}
.hero-logo-anim img { width: 100%; height: 100%; object-fit: cover; }
.hero-text-box {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 16px;
    padding: 2.2rem 3rem;
    animation: fadeInUp 0.8s ease 4.3s both;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}
@keyframes fadeInUp {
    0%   { transform: translateY(30px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}
.hero-text-box h1 {
    font-family: var(--fuente-secundaria);
    font-size: 3rem;
    color: var(--color-white);
    letter-spacing: 2px;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.hero-text-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    font-weight: 400;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.carousel-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 8px;
}
.dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}
.dot.active { background: var(--color-orange); transform: scale(1.3); }

/* ============================================
   CONTENIDO
   ============================================ */
.content-section { padding: 5rem 2rem; background: var(--color-white); }
.container { max-width: 1200px; margin: 0 auto; }

.about-wide {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 4rem;
    padding: 2.5rem;
    background: var(--color-light-gray);
    border-radius: 16px;
    border-left: 4px solid var(--color-orange);
}
.about-text { flex: 1; }
.about-text h3 {
    font-family: var(--fuente-secundaria);
    font-size: 2rem;
    color: var(--color-black);
    margin-bottom: 1rem;
    letter-spacing: 1px;
}
.about-text p { color: var(--color-gray); font-size: 1rem; line-height: 1.8; }
.about-logo {
    width: 140px; height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--color-orange);
    flex-shrink: 0;
}
.about-logo img { width: 100%; height: 100%; object-fit: cover; }

.news-section { text-align: center; }
.news-section h2 {
    font-family: var(--fuente-secundaria);
    font-size: 2.4rem;
    color: var(--color-black);
    margin-bottom: 2.5rem;
    letter-spacing: 1px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.service-card {
    position: relative;
    height: 320px;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border-top: 4px solid var(--color-orange);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 14px 35px rgba(0,0,0,0.18); }
.service-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover img { transform: scale(1.08); }
.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.15) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}
.service-overlay h4 {
    font-family: var(--fuente-secundaria);
    font-size: 2rem;
    color: var(--color-white);
    letter-spacing: 1px;
    margin-bottom: 0.6rem;
}
.service-overlay p { color: rgba(255,255,255,0.9); font-size: 0.95rem; line-height: 1.6; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--color-black); color: var(--color-white); margin-top: auto; }
.footer-bottom {
    text-align: center;
    padding: 1.5rem 2rem;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* ============================================
   RESPONSIVE TABLET
   ============================================ */
@media (max-width: 900px) {
    .nav-links a { font-size: 0.82rem; padding: 0.5rem 0.9rem; min-width: unset; }
    .club-name { font-size: 1.5rem; }
    .logo { width: 52px; height: 52px; }
}

/* ============================================
   RESPONSIVE MÓVIL — HAMBURGUESA
   ============================================ */
@media (max-width: 768px) {

    .hamburger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        padding: 0.75rem 1rem 1rem;
        background: var(--color-white);
        border-top: 2px solid var(--color-orange);
        box-shadow: 0 8px 20px rgba(0,0,0,0.12);
        z-index: 999;
    }
    .nav-links.open { display: flex; }

    .nav-links a {
        width: 100%;
        min-width: unset;
        height: 48px;
        border-radius: 10px;
        font-size: 0.95rem;
        padding: 0 1rem;
        justify-content: flex-start;
    }

    .navbar { height: 70px; padding: 0 1rem; }
    .logo { width: 50px; height: 50px; }
    .club-name { font-size: 1.4rem; }

    /* Hero */
    .hero-section { height: 75vh; min-height: 500px; }
    .hero-content { padding: 1rem; gap: 1.2rem; }
    .hero-logo-anim { width: 90px; height: 90px; }
    .hero-text-box { padding: 1.5rem; width: 100%; }
    .hero-text-box h1 { font-size: 2rem; }
    .hero-text-box p { font-size: 0.95rem; }

    /* About */
    .about-wide { flex-direction: column; text-align: center; padding: 2rem 1.5rem; gap: 1.5rem; }
    .about-logo { width: 110px; height: 110px; }
    .about-text h3 { font-size: 1.7rem; }

    /* Servicios */
    .services-grid { grid-template-columns: 1fr; gap: 1.5rem; }
    .service-card { height: 260px; }
    .content-section { padding: 3rem 1rem; }
    .news-section h2 { font-size: 2rem; }
}

@media (max-width: 480px) {
    .navbar { height: 60px; }
    .logo { width: 42px; height: 42px; }
    .club-name { font-size: 1.2rem; }
    .hero-text-box h1 { font-size: 1.7rem; }
    .hero-text-box p { font-size: 0.85rem; }
    .service-card { height: 230px; }
}