/* ══════════════════════════════════════════
   Tennis Chapalita — Styles
   ══════════════════════════════════════════ */

:root {
    --dark: #0C1F17;
    --dark-green: #132B20;
    --green: #1B4332;
    --green-mid: #2D5A3D;
    --gold: #B8965A;
    --gold-light: #D4B87A;
    --cream: #F7F5F0;
    --white: #FAFAF8;
    --text-dark: #1A1A1A;
    --text-muted: #6B6B6B;
    --text-light: #F7F5F0;

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;

    --ease: cubic-bezier(0.25, 0, 0.1, 1);
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-weight: 300;
    color: var(--text-dark);
    background: var(--cream);
    overflow-x: hidden;
    cursor: none;
}

@media (max-width: 768px) {
    body { cursor: auto; }
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(24px, 5vw, 80px);
}

/* ── Cursor personalizado ── */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
}

.cursor-follower {
    width: 36px;
    height: 36px;
    border: 1px solid var(--gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.5;
    transform: translate(-50%, -50%);
}

@media (max-width: 768px) {
    .cursor, .cursor-follower { display: none; }
}

/* ── Loader ── */
.loader {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.loader__line {
    width: 0;
    height: 1px;
    background: var(--gold);
}

.loader__text {
    font-family: var(--font-serif);
    font-size: clamp(14px, 2vw, 18px);
    font-weight: 300;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0;
}

/* ── Navegación ── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px clamp(24px, 5vw, 80px);
    transition: background 0.4s var(--ease), padding 0.4s var(--ease);
}

.nav--scrolled {
    background: rgba(12, 31, 23, 0.95);
    backdrop-filter: blur(12px);
    padding-top: 16px;
    padding-bottom: 16px;
}

.nav__logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 500;
    color: var(--text-light);
    letter-spacing: 0.1em;
    opacity: 0;
}

.nav__links {
    display: flex;
    gap: 40px;
}

.nav__link {
    font-size: 13px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0;
    position: relative;
    transition: color 0.3s;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--gold);
    transition: width 0.4s var(--ease);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: none;
    padding: 8px;
    z-index: 1001;
}

.nav__hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--text-light);
    transition: transform 0.3s var(--ease), opacity 0.3s;
}

.nav__hamburger.active span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.nav__hamburger.active span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__hamburger { display: flex; cursor: pointer; }
}

/* ── Menú móvil ── */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--dark);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s var(--ease);
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu__link {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 300;
    color: var(--text-light);
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s, transform 0.4s var(--ease);
}

.mobile-menu.active .mobile-menu__link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-menu__link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-menu__link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-menu__link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-menu__link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-menu__link:nth-child(5) { transition-delay: 0.3s; }

/* ── Hero ── */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--dark);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 40%, rgba(27, 67, 50, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

/* Raqueta SVG decorativa */
.hero__racket {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%) rotate(15deg);
    width: clamp(180px, 25vw, 360px);
    height: auto;
    opacity: 0;
    z-index: 0;
    filter: drop-shadow(0 0 40px rgba(184, 150, 90, 0.08));
}

.racket-frame,
.racket-throat,
.racket-heart,
.racket-shaft,
.racket-grip,
.racket-butt {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
}

.racket-strings-h line,
.racket-strings-v line {
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
}

.racket-grip-lines line {
    stroke-dasharray: 50;
    stroke-dashoffset: 50;
}

@media (max-width: 1024px) {
    .hero__racket {
        right: -5%;
        opacity: 0;
        width: clamp(140px, 30vw, 220px);
    }
}

@media (max-width: 600px) {
    .hero__racket {
        right: -10%;
        width: 160px;
        top: 55%;
    }
}

.hero__content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero__line {
    width: 0;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 32px;
}

.hero__line--bottom {
    margin: 32px auto;
}

.hero__title {
    font-family: var(--font-serif);
    font-weight: 300;
    color: var(--text-light);
    line-height: 1;
    overflow: hidden;
}

.hero__title-line {
    display: block;
    overflow: hidden;
}

.hero__word {
    display: inline-block;
    font-size: clamp(48px, 10vw, 140px);
    letter-spacing: 0.15em;
    transform: translateY(110%);
}

.hero__title-line:last-child .hero__word {
    font-size: clamp(36px, 7vw, 100px);
    letter-spacing: 0.25em;
    font-weight: 400;
}

.hero__tagline {
    font-family: var(--font-serif);
    font-size: clamp(16px, 2.5vw, 22px);
    font-weight: 300;
    font-style: italic;
    color: var(--gold);
    letter-spacing: 0.08em;
    opacity: 0;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0;
}

.hero__scroll-text {
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--text-light);
    opacity: 0.5;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: var(--gold);
    transform-origin: top;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 0.3; }
    50% { transform: scaleY(0.5); opacity: 1; }
}

/* ── Torneos (Banner CTA) ── */
.torneos {
    position: relative;
    padding: clamp(60px, 10vw, 100px) 0;
    background: var(--green);
    overflow: hidden;
}

.torneos__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(184, 150, 90, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 184, 122, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.torneos__inner {
    position: relative;
    z-index: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.torneos__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    opacity: 0;
    transform: translateY(20px);
}

.torneos__badge-text {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--dark);
    background: var(--gold);
    padding: 6px 16px;
    border-radius: 20px;
}

.torneos__title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 300;
    line-height: 1.05;
    color: var(--text-light);
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(40px);
}

.torneos__desc {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    line-height: 1.7;
    color: rgba(247, 245, 240, 0.6);
    max-width: 520px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(20px);
}

.torneos__cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: var(--font-sans);
    font-size: clamp(13px, 1.5vw, 15px);
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.3s var(--ease);
    opacity: 0;
    transform: translateY(20px);
}

.torneos__cta:hover {
    background: var(--gold);
    color: var(--dark);
    transform: translateY(-2px);
}

.torneos__cta-arrow {
    font-size: 18px;
    transition: transform 0.3s var(--ease);
}

.torneos__cta:hover .torneos__cta-arrow {
    transform: translateX(4px);
}

.torneos__line {
    width: 0;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    margin-top: 48px;
}

/* ── Nav link torneos highlight ── */
.nav__link--torneos {
    color: var(--gold) !important;
}

/* ── Secciones ── */
.section {
    padding: clamp(80px, 12vw, 160px) 0;
    position: relative;
}

.section--light {
    background: var(--cream);
    color: var(--text-dark);
}

.section--dark {
    background: var(--dark);
    color: var(--text-light);
}

.section--cream {
    background: var(--white);
    color: var(--text-dark);
}

.section__header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: clamp(48px, 8vw, 80px);
}

.section__number {
    font-family: var(--font-serif);
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 400;
    color: var(--gold);
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(20px);
    flex-shrink: 0;
    padding-top: 8px;
}

.section__line {
    flex-grow: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.3;
    margin-top: 16px;
    transform: scaleX(0);
    transform-origin: left;
}

.section--dark .section__line {
    background: var(--gold);
    opacity: 0.4;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(40px);
}

/* ── Contenido split ── */
.section__content--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
}

@media (max-width: 768px) {
    .section__content--split {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.section__lead {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 300;
    line-height: 1.5;
    color: var(--green);
    opacity: 0;
    transform: translateY(30px);
}

.section--dark .section__lead {
    color: var(--gold-light);
}

.section__text {
    font-size: clamp(15px, 1.8vw, 17px);
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0;
    transform: translateY(20px);
}

.section--dark .section__text {
    color: rgba(247, 245, 240, 0.6);
}

.section__intro {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 40px);
    font-weight: 300;
    line-height: 1.4;
    max-width: 700px;
    margin-bottom: clamp(48px, 8vw, 80px);
    color: var(--gold-light);
    opacity: 0;
    transform: translateY(30px);
}

/* ── Pilares ── */
.pillars {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0;
    align-items: start;
}

.pillar {
    padding: 0 clamp(16px, 3vw, 40px);
    opacity: 0;
    transform: translateY(40px);
}

.pillar__divider {
    width: 1px;
    height: 100%;
    min-height: 150px;
    background: rgba(184, 150, 90, 0.2);
    align-self: stretch;
    transform: scaleY(0);
    transform-origin: top;
}

.pillar__index {
    font-family: var(--font-serif);
    font-size: clamp(14px, 1.5vw, 16px);
    color: var(--gold);
    letter-spacing: 0.2em;
    display: block;
    margin-bottom: 24px;
}

.pillar__title {
    font-family: var(--font-serif);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 400;
    margin-bottom: 16px;
    line-height: 1.3;
}

.pillar__text {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.7;
    color: rgba(247, 245, 240, 0.55);
}

@media (max-width: 768px) {
    .pillars {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .pillar { padding: 0; }
    .pillar__divider {
        width: 60px;
        height: 1px;
        min-height: auto;
        transform: scaleX(0);
        transform-origin: left;
    }
}

/* ── Servicios ── */
.services {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.service {
    padding: clamp(32px, 5vw, 48px) 0;
    border-bottom: 1px solid rgba(26, 26, 26, 0.08);
    opacity: 0;
    transform: translateY(30px);
}

.service:last-child {
    border-bottom: none;
}

.service__header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.service__label {
    font-family: var(--font-serif);
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 300;
    letter-spacing: -0.01em;
    color: var(--green);
    white-space: nowrap;
}

.service__line {
    flex-grow: 1;
    height: 1px;
    background: var(--gold);
    opacity: 0.25;
    transform: scaleX(0);
    transform-origin: left;
}

.service__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px 40px;
    padding-left: 0;
}

.service__list li {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.7;
    color: var(--text-muted);
    padding-left: 20px;
    position: relative;
}

.service__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 1px;
    background: var(--gold);
}

/* ── Partners ── */
.partners {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 80px);
}

@media (max-width: 768px) {
    .partners {
        grid-template-columns: 1fr;
        gap: 48px;
    }
}

.partner {
    opacity: 0;
    transform: translateY(30px);
}

.partner__name {
    font-family: var(--font-serif);
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--green);
}

.partner__name a {
    color: inherit;
    text-decoration: none;
}

.partner__name a:hover {
    color: var(--gold);
}

.partner__line {
    width: 40px;
    height: 1px;
    background: var(--gold);
    margin-bottom: 20px;
    transform: scaleX(0);
    transform-origin: left;
}

.partner__text {
    font-size: clamp(14px, 1.5vw, 16px);
    line-height: 1.8;
    color: var(--text-muted);
}

/* ── Cierre ── */
.section--closing {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.closing {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    border: none;
}

.closing__text {
    font-family: var(--font-serif);
    font-size: clamp(24px, 4vw, 42px);
    font-weight: 300;
    line-height: 1.5;
    color: rgba(247, 245, 240, 0.5);
    margin-bottom: 32px;
    opacity: 0;
    transform: translateY(30px);
}

.closing__highlight {
    font-family: var(--font-serif);
    font-size: clamp(26px, 4.5vw, 48px);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-light);
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
}

.closing__line {
    width: 60px;
    height: 1px;
    background: var(--gold);
    margin: 0 auto 40px;
    transform: scaleX(0);
}

.closing__signature {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(247, 245, 240, 0.5);
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(20px);
}

/* ── Footer ── */
.footer {
    background: var(--dark);
    border-top: 1px solid rgba(184, 150, 90, 0.15);
    padding: 40px 0;
}

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

@media (max-width: 768px) {
    .footer__inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

.footer__logo {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--text-light);
    letter-spacing: 0.1em;
}

.footer__copy {
    font-size: 12px;
    color: rgba(247, 245, 240, 0.3);
    margin-top: 4px;
}

.footer__tagline {
    font-family: var(--font-serif);
    font-size: 14px;
    font-style: italic;
    color: var(--gold);
    opacity: 0.6;
    letter-spacing: 0.05em;
}

/* ── Selection ── */
::selection {
    background: var(--gold);
    color: var(--dark);
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--gold);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gold-light);
}
