/* ============================================
   TENIS PRO MX - CSS Variables & Landing Styles
   ============================================ */

:root {
    /* 🎾 BRAND COLORS */
    --tp-primary: #1f2a44;        /* azul oscuro del logo */
    --tp-primary-light: #2c3a5a;
    --tp-secondary: #0f172a;      /* más profundo */

    --tp-accent: linear-gradient(135deg,
            #fff6d5,
            #f1d999,
            #c8a96a,
            #b89655,
            #e6c88c,
            #fff3d6);
    --tp-accent-hover: linear-gradient(135deg,
                #c8a96a 0%,
                #e6c88c 20%,
                #fff6d5 50%,
                #e6c88c 80%,
                #c8a96a 100%);

    --tp-highlight: #c7f000;

    /* BASE */
    --tp-white: #ffffff;
    --tp-off-white: #f8f9fa;

    --tp-gray-50: #fafafa;
    --tp-gray-100: #f5f5f5;
    --tp-gray-200: #eeeeee;
    --tp-gray-300: #e0e0e0;
    --tp-gray-400: #bdbdbd;
    /* #9e9e9e daba 2.68:1 sobre blanco, por debajo del 4.5 que pide WCAG AA.
       #6B7280 da 4.83:1 sobre blanco y 4.67:1 sobre #fafafa. */
    --tp-gray-500: #6B7280;
    /* #757575 daba 4.41:1 sobre #fafafa, por debajo de 4.5. */
    --tp-gray-600: #616161;
    --tp-gray-700: #4b5563;
    --tp-gray-800: #1f2937;
    --tp-gray-900: #111827;

    --tp-black: #0a0a0a;

    --tp-success: #00c853;

    /* TIPOGRAFÍA */
    --tp-font-heading: 'Montserrat', 'Poppins', sans-serif;
    --tp-font-body: 'Inter', 'Roboto', sans-serif;

    --tp-radius: 14px;
    --tp-radius-sm: 10px;
    --tp-radius-lg: 22px;

    --tp-shadow: 0 4px 20px rgba(0,0,0,0.06);
    --tp-shadow-lg: 0 10px 40px rgba(0,0,0,0.1);

    --tp-transition: all 0.3s ease;
}

/* Los navegadores traen body { margin: 8px } por defecto. Ese cero lo
   ponía el reset incluido dentro de vuetify.min.css; al retirar esa hoja
   (61 KB para un solo componente) el margen reapareció como un marco
   blanco en los costados y abajo. Se declara aquí explícitamente. */
html,
body {
    margin: 0;
    padding: 0;
}

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

/* ===== RESET FOR LANDING ===== */
.tp-landing {
    font-family: var(--tp-font-body);
    color: var(--tp-gray-900);
    background: var(--tp-white);
    overflow-x: hidden;
}

.tp-landing * {
    box-sizing: border-box;
}

/* ===== TYPOGRAPHY ===== */
.tp-heading {
    font-family: var(--tp-font-heading);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.tp-subheading {
    font-family: var(--tp-font-heading);
    font-weight: 600;
    line-height: 1.2;
}

.tp-body-text {
    font-size: 16px;
    line-height: 1.7;
    color: var(--tp-gray-600);
}

.tp-section-label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--tp-accent);
    margin-bottom: 12px;
}

/* ===== NAVBAR ===== */
.tp-logo-img {
    height: 28px;
    object-fit: contain;
}

.tp-navbar.dark .tp-nav-links a,
.tp-navbar.dark-section .tp-nav-links a {
    color: rgba(255, 255, 255, 0.85);
}

.tp-navbar.dark .tp-nav-links a.active,
.tp-navbar.dark-section .tp-nav-links a.active {
    color: white;
}

/* Cuando esta sobre seccion clara (scrolled y NO dark-section) */
.tp-navbar.scrolled:not(.dark-section) .tp-nav-links a {
    color: var(--tp-gray-700);
}

.tp-navbar.scrolled:not(.dark-section) .tp-nav-links a:hover {
    color: var(--tp-gray-900);
}

.tp-navbar.scrolled:not(.dark-section) .tp-logo-text {
    color: var(--tp-gray-900);
}

.tp-navbar.scrolled:not(.dark-section) {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.tp-navbar.scrolled:not(.dark-section) .tp-nav-mobile-toggle {
    color: var(--tp-gray-900);
}

.tp-navbar {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 80px);
    max-width: 1200px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 24px;
    transition: all 0.3s ease;
}

.tp-navbar .tp-nav-links a {
    color: white;
}

.tp-hero-btns a {
    color: white;
}

.tp-navbar.scrolled {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.tp-navbar .tp-btn {
    border-radius: 999px;
    padding: 10px 20px;
}

.tp-navbar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tp-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.tp-logo-icon {
    width: 40px;
    height: 40px;
    background: var(--tp-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.tp-logo-text {
    font-family: var(--tp-font-heading);
    font-size: 22px;
    font-weight: 800;
    color: var(--tp-white);
    transition: var(--tp-transition);
}

.tp-navbar.scrolled .tp-logo-text {
    color: var(--tp-gray-900);
}

.tp-nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.tp-nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--tp-gray-900);
    /* transition: var(--tp-transition); */
    letter-spacing: 0.3px;
}

.tp-navbar.scrolled .tp-nav-links a {
    color: var(--tp-primary);
}

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

.tp-nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 4px;
}

.tp-navbar.scrolled .tp-nav-mobile-toggle {
    color: var(--tp-gray-900);
}

/* ===== BUTTONS ===== */
.tp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: var(--tp-radius-sm);
    font-family: var(--tp-font-heading);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--tp-transition);
}

.tp-btn,
.tp-btn a {
    color: inherit;
    text-decoration: none;
}

.tp-btn-primary {
    background: var(--tp-accent);
    background-size: 200% 200%;
    transition: all 0.4s ease;
    color: #1a1a1a !important;
    font-weight: 700 !important;
    box-shadow: 0 8px 30px rgba(200, 169, 106, 0.35);
}

.gold-text {
    background: var(--tp-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tp-btn-primary:hover {
    background-position: 100% 50%;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(200, 169, 106, 0.4);
}

.tp-btn-highlight {
    background: var(--tp-highlight);
    color: #000;
}

.tp-btn-outline {
    background: transparent;
    color: var(--tp-white);
    /* color: #1a1a1a !important; */
    color: var(--tp-white) !important;
    border: 2px solid rgba(255,255,255,0.4) !important;
}

.tp-btn-outline:hover {
    background: var(--tp-white);
    color: var(--tp-gray-900) !important;
    border-color: var(--tp-white);
}

.tp-btn-outline-dark {
    background: transparent;
    color: var(--tp-gray-900) !important;
    border: 2px solid rgba(0, 0, 0, 0.2) !important;
}

.tp-btn-outline-dark:hover {
    color: var(--tp-white) !important;
    background: var(--tp-gray-900) !important;
    border-color: var(--tp-white);
}

.tp-btn-dark {
    background: var(--tp-gray-900);
    color: var(--tp-white);
}

.tp-btn-dark:hover {
    background: var(--tp-black);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.tp-btn-sm {
    padding: 10px 24px;
    font-size: 12px;
}

.tp-btn-lg {
    padding: 18px 42px;
    font-size: 15px;
}

/* ===== HERO ===== */
.tp-hero {
    position: relative;
    min-height: calc(100vh - 60px);
    margin: 30px;
    border-radius: 24px;
    overflow: hidden;
    display: flex;
    align-items: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
}

.tp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.75) 0%, rgba(15, 52, 96, 0.6) 100%), url('../img/hero-bg.webp') center/cover no-repeat;
    z-index: 0;
}

.tp-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tp-hero-text h1 {
    font-size: 64px;
    color: var(--tp-white);
    margin: 0 0 24px;
    line-height: 1.05;
}

.tp-hero-text h1 span {
    color: var(--tp-accent);
}

.tp-hero-text p {
    font-size: 18px;
    /* Va encima de una foto: por debajo de ~0.85 el contraste no alcanza. */
    color: rgba(255,255,255,0.88);
    line-height: 1.7;
    margin: 0 0 40px;
    max-width: 500px;
}

.tp-hero-btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.tp-hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 48px;
}

.tp-hero-stat {
    text-align: left;
}

.tp-hero-stat-number {
    font-family: var(--tp-font-heading);
    font-size: 42px;
    font-weight: 800;
    color: var(--tp-white);
    line-height: 1;
}

.tp-hero-stat-label {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tp-hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.tp-hero-image-card {
    background: rgba(255,255,255,0.08);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--tp-radius-lg);
    padding: 40px;
    text-align: center;
    width: 100%;
    max-width: 420px;
}

.tp-hero-image-card .tp-tennis-icon {
    font-size: 80px;
    margin-bottom: 20px;
    display: block;
}

.tp-hero-image-card h3 {
    color: var(--tp-white);
    font-family: var(--tp-font-heading);
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px;
}

.tp-hero-image-card p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin: 0;
}

/* ===== SECTIONS ===== */
.tp-section {
    padding: 200px 0;
}

.tp-section-dark {
    background: var(--tp-gray-900);
    color: var(--tp-white);
}

.tp-section-light {
    background: var(--tp-white);
}

.tp-section-gray {
    background: var(--tp-gray-50);
}

.tp-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

.tp-section-header {
    text-align: center;
    margin-bottom: 64px;
}

.tp-section-header h2 {
    font-size: 44px;
    margin: 0 0 16px;
}

.tp-section-header p {
    font-size: 17px;
    color: var(--tp-gray-500);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.tp-section-dark .tp-section-header p {
    color: rgba(255,255,255,0.5);
}

/* ===== FEATURES GRID ===== */
.tp-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tp-feature-card {
    border: 1px solid #f1f1f1;
    background: #fff;
    border-radius: var(--tp-radius);
    padding: 36px 28px;
    text-align: center;
    transition: var(--tp-transition);
    position: relative;
    overflow: hidden;
}

.tp-feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    border-color: transparent;
}

.tp-feature-card:hover .tp-feature-icon span {
    background-position: 100% 50%;
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(200, 169, 106, 0.4);
}

.tp-feature-icon span {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--tp-accent);
    background-size: 200% 200%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
    transition: all 0.4s ease;
}

.tp-feature-card h3 {
    font-family: var(--tp-font-heading);
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--tp-gray-900);
}

.tp-feature-card p {
    font-size: 14px;
    color: var(--tp-gray-500);
    line-height: 1.6;
    margin: 0;
}

/* ===== ABOUT SECTION ===== */
.tp-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.tp-about-image {
    position: relative;
    border-radius: var(--tp-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    /* public/assets/img/tp-about.png */
    background: url('../img/tp-about.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-about-image .tp-big-icon {
    font-size: 120px;
    opacity: 0.3;
}

.tp-about-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--tp-accent);
    color: white;
    padding: 12px 24px;
    border-radius: var(--tp-radius-sm);
    font-family: var(--tp-font-heading);
    font-weight: 700;
    font-size: 14px;
}

.tp-about-text h2 {
    font-size: 40px;
    margin: 0 0 20px;
}

.tp-about-text p {
    font-size: 16px;
    color: var(--tp-gray-600);
    line-height: 1.8;
    margin: 0 0 24px;
}

.tp-about-list {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
}

.tp-about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-size: 15px;
    color: var(--tp-gray-700);
}

.tp-about-list li .check-icon {
    color: var(--tp-success);
    font-size: 20px;
    flex-shrink: 0;
}

/* ===== SERVICES GRID ===== */
.tp-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tp-service-card {
    position: relative;
    border-radius: var(--tp-radius);
    overflow: hidden;
    background: var(--tp-primary-light);
    min-height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: var(--tp-transition);
}

.tp-service-card:hover {
    transform: translateY(-4px);
}

.tp-service-card-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    opacity: 0.15;
    font-size: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tp-service-card h3 {
    font-family: var(--tp-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--tp-white);
    margin: 0 0 8px;
    position: relative;
    z-index: 1;
}

.tp-service-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.6;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* ===== BOOKING / CTA ===== */
.tp-cta-section {
    background: linear-gradient(135deg, var(--tp-primary), var(--tp-secondary));
    padding: 180px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tp-cta-court {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.tp-cta-court line {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 0.3;
}

.tp-cta-section .tp-container {
    position: relative;
    z-index: 1;
}

.tp-cta-section h2 {
    font-size: 44px;
    color: var(--tp-white);
    margin: 0 0 16px;
}

.tp-cta-section p {
    font-size: 17px;
    color: rgba(255,255,255,0.85);
    margin: 0 0 36px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.tp-cta-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.tp-cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--tp-white);
    font-size: 15px;
    font-weight: 500;
}

.tp-cta-feature .cta-icon {
    font-size: 22px;
}

/* ===== TESTIMONIALS ===== */
.tp-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tp-testimonial-card {
    background: var(--tp-white);
    border: 1px solid var(--tp-gray-200);
    border-radius: var(--tp-radius);
    padding: 32px;
    transition: var(--tp-transition);
}

.tp-testimonial-card:hover {
    box-shadow: var(--tp-shadow);
}

.tp-testimonial-stars {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.tp-testimonial-card blockquote {
    font-size: 15px;
    color: var(--tp-gray-600);
    line-height: 1.7;
    margin: 0 0 20px;
    font-style: italic;
}

.tp-testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tp-testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-accent), #ff6b8a);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 16px;
}

.tp-testimonial-info h3 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: var(--tp-gray-900);
}

.tp-testimonial-info span {
    font-size: 12px;
    color: var(--tp-gray-500);
}

/* ===== COMMUNITY ===== */
.tp-community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.tp-community-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--tp-radius);
    padding: 36px;
    text-align: center;
    transition: var(--tp-transition);
}

.tp-community-card:hover {
    background: rgba(255,255,255,0.08);
    transform: translateY(-4px);
}

.tp-community-icon {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
}

.tp-community-card h3 {
    font-family: var(--tp-font-heading);
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 10px;
    color: var(--tp-white);
}

.tp-community-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
    margin: 0;
}

/* ===== FOOTER ===== */
.tp-footer {
    background: var(--tp-black);
    padding: 64px 0 0;
    color: rgba(255,255,255,0.6);
}

.tp-logo-img-footer {
    height: 68px;
    object-fit: contain;
}

.tp-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.tp-footer-brand p {
    font-size: 14px;
    line-height: 1.8;
    margin: 16px 0 0;
}

.tp-footer h3,
.tp-footer .tp-footer-title {
    font-family: var(--tp-font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--tp-white);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0 0 20px;
}

.tp-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tp-footer-links li {
    margin-bottom: 10px;
}

.tp-footer-links a {
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    font-size: 14px;
    transition: var(--tp-transition);
}

.tp-footer-links a:hover {
    color: var(--tp-accent);
}

.tp-footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 13px;
    /* 0.3 daba 2.6:1 sobre el negro del pie; 0.65 llega a 7.2:1. */
    color: rgba(255,255,255,0.65);
}

/* ===== REGISTER PAGE ===== */
.tp-register-page {
    min-height: 100vh;
    background: linear-gradient(135deg, var(--tp-primary) 0%, var(--tp-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.tp-register-container {
    width: 100%;
    max-width: 520px;
}

.tp-register-card {
    background: var(--tp-white);
    border-radius: var(--tp-radius-lg);
    padding: 48px 40px;
    box-shadow: var(--tp-shadow-lg);
}

.tp-register-header {
    text-align: center;
    margin-bottom: 36px;
}

.tp-register-header h1 {
    font-family: var(--tp-font-heading);
    font-size: 28px;
    font-weight: 800;
    color: var(--tp-gray-900);
    margin: 16px 0 8px;
}

.tp-register-header p {
    font-size: 14px;
    color: var(--tp-gray-500);
    margin: 0;
}

.tp-stepper {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 32px;
}

.tp-step {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: var(--tp-gray-200);
    transition: var(--tp-transition);
}

.tp-step.active {
    background: var(--tp-secondary);
    width: 60px;
}

.tp-form-group {
    margin-bottom: 20px;
}

.tp-form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--tp-gray-700);
    margin-bottom: 6px;
}

.tp-form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--tp-gray-200);
    border-radius: var(--tp-radius-sm);
    font-size: 15px;
    font-family: var(--tp-font-body);
    transition: var(--tp-transition);
    outline: none;
    background: var(--tp-gray-50);
}

.tp-form-group input:focus {
    border-color: var(--tp-accent);
    background: var(--tp-white);
    box-shadow: 0 0 0 4px rgba(233, 69, 96, 0.1);
}

.tp-form-group input.error {
    border-color: #ef4444;
}

.tp-form-error {
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.tp-register-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--tp-gray-500);
}

.tp-register-footer a {
    color: var(--tp-accent);
    text-decoration: none;
    font-weight: 600;
}

.tp-register-footer a:hover {
    text-decoration: underline;
}

/* ===== SUCCESS STATE ===== */
.tp-success-state {
    text-align: center;
    padding: 20px 0;
}

.tp-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--tp-success), #00e676);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 40px;
    color: white;
}

/* ===== MOBILE NAV MENU ===== */
.tp-mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.tp-mobile-menu.open {
    display: flex;
}

.tp-mobile-menu a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 600;
}

.tp-mobile-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    color: white;
    font-size: 32px;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .tp-hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .tp-hero-text h1 {
        font-size: 48px;
    }
    .tp-hero-text p {
        margin: 0 auto 40px;
    }
    .tp-hero-btns {
        justify-content: center;
    }
    .tp-hero-stats {
        justify-content: center;
    }
    .tp-hero-image {
        display: none;
    }
    .tp-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tp-about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .tp-footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .tp-hero {
        margin: 10px;
    }

    .tp-navbar {
        top: 20px;
        width: calc(100% - 35px);
    }

    .tp-nav-links {
        display: none;
    }
    .tp-nav-mobile-toggle {
        display: block;
    }
    .tp-hero-text h1 {
        font-size: 36px;
    }
    .tp-hero-stats {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
    .tp-features-grid,
    .tp-services-grid,
    .tp-testimonials-grid,
    .tp-community-grid {
        grid-template-columns: 1fr;
    }
    .tp-section-header h2 {
        font-size: 32px;
    }
    .tp-section {
        padding: 120px 0;
    }
    .tp-cta-section h2 {
        font-size: 32px;
    }
    .tp-cta-features {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    .tp-container {
        padding: 0 20px;
    }
    .tp-navbar-inner {
        padding: 0 10px;
    }
    .tp-hero-content {
        padding: 100px 20px 60px;
    }
    .tp-footer-grid {
        grid-template-columns: 1fr;
    }
    .tp-register-card {
        padding: 32px 24px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tp-animate {
    animation: fadeInUp 0.6s ease forwards;
}

.tp-animate-delay-1 { animation-delay: 0.1s; }
.tp-animate-delay-2 { animation-delay: 0.2s; }
.tp-animate-delay-3 { animation-delay: 0.3s; }

/* ===== CONTACT FORM ===== */
.tp-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Estos selectores llevan .tp-form-group a propósito: sin él, la regla
   genérica «.tp-form-group input» (más específica) los pisaba y dejaba
   texto blanco sobre fondo claro. */
.tp-form-group .tp-form-label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

.tp-form-group .tp-form-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
    width: 100%;
    box-sizing: border-box;
}

.tp-form-group .tp-form-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.tp-form-group .tp-form-input:focus {
    border-color: #c8a96a;
    background: rgba(255, 255, 255, 0.12);
}

.tp-form-group .tp-form-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.tp-animate-delay-4 { animation-delay: 0.4s; }

/* ============================================================
   TORNEOS — sección pública
   ============================================================ */

/* Spinner */
.tp-spinner {
    width: 40px; height: 40px;
    border: 3px solid rgba(255,255,255,0.2);
    border-top-color: var(--tp-highlight);
    border-radius: 50%;
    animation: tp-spin 0.7s linear infinite;
    margin: 0 auto;
}
@keyframes tp-spin { to { transform: rotate(360deg); } }

.tp-tournaments-loading {
    display: flex;
    justify-content: center;
    padding: 60px 0;
}

.tp-tournaments-empty {
    text-align: center;
    padding: 60px 0;
    color: rgba(255,255,255,0.5);
}
.tp-tournaments-empty-icon {
    font-size: 56px;
    display: block;
    margin-bottom: 12px;
    opacity: 0.35;
}

/* Grid */
.tp-tournaments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

/* Card */
.tp-tournament-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--tp-radius);
    overflow: hidden;
    cursor: pointer;
    transition: var(--tp-transition);
    display: flex;
    flex-direction: column;
}
.tp-tournament-card:hover {
    transform: translateY(-4px);
    border-color: rgba(199,240,0,0.35);
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
}

/* Banner */
.tp-tournament-banner {
    height: 160px;
    background: linear-gradient(135deg, #1f2a44, #2c3a5a);
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px;
}
.tp-tournament-banner-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.55));
}
.tp-tournament-banner-logo {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.tp-tournament-banner-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.tp-tournament-badge, .tp-tournament-draw-badge {
    position: relative; z-index: 1;
    font-size: 11px; font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.tp-tournament-badge.tp-badge-open      { background: rgba(0,200,83,0.9); color: #fff; }
.tp-tournament-badge.tp-badge-active    { background: rgba(25,118,210,0.9); color: #fff; }
.tp-tournament-badge.tp-badge-progress  { background: rgba(255,152,0,0.9); color: #fff; }
.tp-tournament-badge.tp-badge-finished  { background: rgba(100,100,100,0.7); color: #fff; }
.tp-tournament-draw-badge {
    background: rgba(199,240,0,0.9);
    color: #0a0a0a;
    font-size: 11px;
    align-self: flex-end;
}

/* Body */
.tp-tournament-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tp-tournament-club {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}
.tp-tournament-club-logo {
    width: 20px; height: 20px;
    border-radius: 50%;
    object-fit: cover;
}
.tp-tournament-name {
    font-family: var(--tp-font-heading);
    font-weight: 700;
    font-size: 17px;
    color: var(--tp-white);
    margin: 0;
    line-height: 1.3;
}
.tp-tournament-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tp-tournament-meta-item {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    display: flex;
    align-items: center;
    gap: 5px;
}
.tp-tournament-cta {
    margin-top: auto;
    padding-top: 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--tp-highlight);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   MODAL / DIALOG
   ============================================================ */
.tp-modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.tp-modal {
    background: #1a2333;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--tp-radius-lg);
    width: 100%;
    max-width: 860px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    color: var(--tp-white);
}
.tp-modal-close {
    position: absolute; top: 14px; right: 14px;
    background: rgba(255,255,255,0.1);
    border: none; cursor: pointer;
    color: white; font-size: 20px;
    width: 34px; height: 34px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: var(--tp-transition);
    z-index: 10;
}
.tp-modal-close:hover { background: rgba(255,255,255,0.2); }

.tp-modal-loading {
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    padding: 80px 40px; gap: 16px;
    color: rgba(255,255,255,0.5);
}
.tp-modal-banner {
    height: 180px;
    background-size: cover; background-position: center;
    border-radius: var(--tp-radius-lg) var(--tp-radius-lg) 0 0;
}
.tp-modal-header {
    padding: 24px 28px 0;
}
.tp-modal-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
/* ── Category dropdown custom ── */
.tp-cat-dd {
    position: relative;
    flex-shrink: 0;
}
.tp-cat-dd-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    font-family: var(--tp-font-body);
    cursor: pointer;
    transition: var(--tp-transition);
    white-space: nowrap;
    min-height: 44px;
}
.tp-cat-dd-btn:hover { background: rgba(255,255,255,0.12); border-color: rgba(199,240,0,0.4); }
.tp-cat-dd-btn .mdi-shape-outline { color: var(--tp-highlight); font-size: 16px; }
.tp-cat-dd-btn .mdi-chevron-up,
.tp-cat-dd-btn .mdi-chevron-down { color: rgba(255,255,255,0.5); font-size: 16px; }
.tp-cat-dd-label {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tp-cat-dd-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 260px;
    background: #1a2540;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 14px;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    overflow: hidden;
    z-index: 100;
    animation: tp-dd-in 0.15s ease;
}
@keyframes tp-dd-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.tp-cat-dd-option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    background: none;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 500;
    font-family: var(--tp-font-body);
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.tp-cat-dd-option:last-child { border-bottom: none; }
.tp-cat-dd-option:hover { background: rgba(255,255,255,0.06); color: #fff; }
.tp-cat-dd-option.active {
    background: rgba(199,240,0,0.1);
    color: var(--tp-highlight);
    font-weight: 700;
}
.tp-cat-dd-option .mdi { font-size: 15px; flex-shrink: 0; }

/* bottom sheet en portrait */
@media (max-width: 768px) {
    .tp-cat-dd-panel {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        top: auto;
        border-radius: 20px 20px 0 0;
        min-width: unset;
        max-height: 60vh;
        overflow-y: auto;
    }
    .tp-cat-dd-option { padding: 16px 20px; font-size: 15px; }
}
/* bottom sheet también en landscape de teléfono */
@media (max-width: 768px),
       (orientation: landscape) and (max-height: 600px) {
    .tp-cat-dd-panel {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        top: auto;
        border-radius: 20px 20px 0 0;
        min-width: unset;
        max-height: 70vh;
        overflow-y: auto;
    }
    .tp-cat-dd-option { padding: 14px 20px; font-size: 15px; }
}
.tp-modal-title {
    font-family: var(--tp-font-heading);
    font-weight: 800; font-size: 22px;
    margin: 0 0 4px;
}
.tp-modal-subtitle {
    color: rgba(255,255,255,0.5);
    font-size: 13px; margin: 0;
}
.tp-modal-body {
    padding: 20px 28px 28px;
}
.tp-modal-desc {
    color: rgba(255,255,255,0.7);
    font-size: 14px; line-height: 1.6;
    margin-bottom: 20px;
}
.tp-modal-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.tp-modal-info-item {
    display: flex; gap: 10px; align-items: flex-start;
    background: rgba(255,255,255,0.06);
    border-radius: var(--tp-radius-sm);
    padding: 12px 14px;
    font-size: 13px; line-height: 1.5;
    color: rgba(255,255,255,0.75);
}
.tp-modal-info-icon { font-size: 18px; color: var(--tp-highlight); margin-top: 1px; }
.tp-modal-footer-cta { display: flex; justify-content: center; padding-top: 8px; }

/* Draw */
.tp-draw-category { margin-bottom: 32px; }
.tp-draw-cat-header {
    font-family: var(--tp-font-heading);
    font-weight: 700; font-size: 15px;
    color: var(--tp-highlight);
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.tp-draw-cat-type { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.4); }

.tp-draw-rounds {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
}
.tp-draw-round { min-width: 200px; }
.tp-draw-round-label {
    font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-bottom: 8px;
    text-align: center;
}
.tp-draw-match {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 8px;
    font-size: 13px;
}
.tp-draw-player {
    padding: 4px 0;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.tp-draw-player.winner { color: var(--tp-highlight); font-weight: 700; }
.tp-draw-winner-icon { font-size: 13px; flex-shrink: 0; }
.tp-draw-player-names {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 2px;
}
.tp-draw-player-names span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: block;
    font-size: 12px;
    line-height: 1.3;
}
.tp-draw-partner {
    color: rgba(255,255,255,0.45);
    font-size: 11px !important;
    padding-left: 8px;
    border-left: 2px solid rgba(255,255,255,0.15);
}
.tp-draw-player.winner .tp-draw-partner {
    color: rgba(199,240,0,0.6);
    border-left-color: rgba(199,240,0,0.3);
}
.tp-draw-vs {
    font-size: 10px; font-weight: 700;
    color: rgba(255,255,255,0.2);
    text-align: center;
    padding: 2px 0;
    letter-spacing: 0.05em;
}

/* Responsive — grid */
@media (max-width: 600px) {
    .tp-tournaments-grid { grid-template-columns: 1fr; }
}

/* Modal fullscreen — teléfono portrait O landscape */
@media (max-width: 768px),
       (orientation: landscape) and (max-height: 600px) {
    .tp-modal-overlay { padding: 0; align-items: stretch; }
    .tp-modal {
        border-radius: 0; border: none;
        max-width: 100%; max-height: 100%; min-height: 100%; width: 100%;
    }
    .tp-modal-close { top: 12px; right: 12px; }
    .tp-modal-header { padding: 18px 18px 0; }
    .tp-modal-body { padding: 16px 18px 22px; }
    .tp-draw-rounds { gap: 10px; }
    .tp-draw-round { min-width: 165px; }
    .tp-modal-header-top { flex-direction: column; gap: 12px; }
    .tp-cat-dd { width: 100%; }
    .tp-cat-dd-btn { width: 100%; justify-content: space-between; }
}

/* ═══════════════════════════════════════════════════════════════
   PÁGINAS INTERNAS (/jugadores, /clubes, /torneos)
   Todo va bajo .tp-page para no pisar el landing: .tp-section y
   .tp-community-grid ya existen arriba y sus valores son otros.
   ═══════════════════════════════════════════════════════════════ */

/* En el landing la navbar flota sobre un hero oscuro; aquí no hay
   nada detrás, así que necesita fondo propio. */
.tp-navbar--solid {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}
.tp-navbar--solid .tp-nav-links a { color: var(--tp-gray-700); }
.tp-navbar--solid .tp-nav-links a:hover,
.tp-navbar--solid .tp-nav-links a[aria-current="page"] { color: var(--tp-gray-900); }
.tp-navbar--solid .tp-nav-links a[aria-current="page"] { font-weight: 700; }

/* 200px por lado es el ritmo del landing; en estas páginas es demasiado. */
.tp-page .tp-section { padding: 88px 0; }

.tp-page-hero {
    padding: 190px 0 72px;
    background: linear-gradient(160deg, var(--tp-gray-50) 0%, #ffffff 60%);
    border-bottom: 1px solid var(--tp-gray-200);
    text-align: center;
}
.tp-page-hero h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    margin: 0 0 20px;
    color: var(--tp-gray-900);
}
.tp-page-hero-lead {
    max-width: 42rem;
    margin: 0 auto 32px;
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--tp-gray-600);
}
.tp-page-hero .tp-hero-btns { justify-content: center; display: flex; gap: 16px; flex-wrap: wrap; }
.tp-page-hero .tp-btn-outline,
.tp-page .tp-section .tp-btn-outline {
    color: var(--tp-gray-900) !important;
    border: 2px solid var(--tp-gray-300) !important;
}
.tp-page-hero .tp-btn-outline:hover,
.tp-page .tp-section .tp-btn-outline:hover {
    background: var(--tp-gray-900);
    color: #fff !important;
    border-color: var(--tp-gray-900) !important;
}

.tp-cta-strip {
    padding: 80px 0;
    text-align: center;
    background: var(--tp-gray-900);
    color: #fff;
}
.tp-cta-strip h2 { color: #fff; margin: 0 0 12px; font-size: clamp(1.5rem, 3vw, 2.1rem); }
.tp-cta-strip p { color: rgba(255, 255, 255, 0.75); margin: 0 0 28px; }

@media (max-width: 768px) {
    .tp-page-hero { padding: 140px 0 56px; }
    .tp-page .tp-section { padding: 60px 0; }
}
