/* ============================================= */
/* ==     HORARIOS.SITE - HOME PAGE           == */
/* ==     Professional Edition v2.0           == */
/* ============================================= */

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Brand Colors */
    --primary-color: #811313;
    --primary-light: #a51b1b;
    --primary-dark: #5c0e0e;
    --primary-glow: rgba(129, 19, 19, 0.4);
    --secondary-color: #2a2a2a;
    --accent-color: #e6100d;
    --accent-glow: rgba(230, 16, 13, 0.3);
    
    /* Background */
    --bg-primary: #0c0c0f;
    --bg-secondary: #121216;
    --bg-tertiary: #18181c;
    --bg-card: rgba(30, 30, 30, 0.85);
    --bg-card-hover: rgba(40, 40, 40, 0.9);
    
    /* Glass Effect */
    --glass-bg: rgba(22, 22, 28, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    
    /* Text Colors */
    --dark-color: #f5f5f5;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --text-tertiary: #6b6b75;
    --text-muted: #50505a;
    --text-color: #e0e0e0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    --gradient-text: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px var(--primary-glow);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --ease-out: cubic-bezier(0.25, 1, 0.5, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
}

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

/* ===== BASE STYLES ===== */
html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--dark-color);
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
}

::selection {
    background: var(--primary-color);
    color: white;
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: var(--radius-full);
    filter: blur(40px);
    opacity: 0.15;
    animation: float 15s infinite ease-in-out;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: var(--primary-color);
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: var(--accent-color);
    bottom: -75px;
    right: -75px;
    animation-delay: 5s;
}

.shape-3 {
    width: 100px;
    height: 100px;
    background: var(--primary-color);
    top: 50%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}


/* ===== APP LAYOUT - CENTERED ===== */
.app-wrapper {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.app-container {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-6);
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding-top: var(--space-2);
}

.logo-container {
    display: inline-block;
}

.logo img,
.logo-img {
    width: 70px;
    height: auto;
    opacity: 0;
    filter: drop-shadow(0 4px 16px var(--primary-glow));
    transition: transform var(--transition-normal) var(--ease-spring);
    animation: logoEntrance 0.8s var(--ease-out) 0.1s both;
}

.logo img:hover,
.logo-img:hover {
    transform: scale(1.08) rotate(-2deg);
}

@keyframes logoEntrance {
    from { 
        opacity: 0; 
        transform: scale(0.85) translateY(-10px);
        filter: blur(10px) drop-shadow(0 4px 16px var(--primary-glow));
    }
    to { 
        opacity: 1; 
        transform: scale(1) translateY(0);
        filter: blur(0) drop-shadow(0 4px 16px var(--primary-glow));
    }
}

/* ===== MAIN CONTENT ===== */
.main {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== TITLE ===== */
.title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.title-line {
    display: block;
    opacity: 0;
    animation: wordReveal 0.7s var(--ease-out) forwards;
}

.title-line:nth-child(1) {
    animation-delay: 0.3s;
}

.title-line:nth-child(2) {
    animation-delay: 0.5s;
}

.title-line.highlight {
    font-size: 2.5rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes wordReveal {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--space-8);
    font-weight: 400;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 0.7s forwards;
}

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

/* ===== SPORT OPTIONS ===== */
.options {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.sport-option {
    display: flex;
    align-items: center;
    padding: var(--space-5);
    background: var(--bg-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--dark-color);
    transition: all var(--transition-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    opacity: 0;
    animation: optionSlideIn 0.6s var(--ease-out) forwards;
}

.sport-option:nth-child(1) {
    animation-delay: 0.9s;
}

.sport-option:nth-child(2) {
    animation-delay: 1.1s;
}

.sport-option:nth-child(3) {
    animation-delay: 1.3s;
}

@keyframes optionSlideIn {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Gradient fill on hover */
.sport-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s var(--ease-out);
    z-index: 0;
}

.sport-option:hover::before {
    width: 100%;
}

.sport-option:hover {
    border-color: transparent;
    transform: translateX(4px);
    box-shadow: var(--shadow-lg), 0 4px 20px var(--primary-glow);
}

.sport-option:active {
    transform: scale(0.98) translateX(4px);
}

/* Sport Icon */
.sport-icon {
    width: 52px;
    height: 52px;
    background: rgba(129, 19, 19, 0.15);
    border: 1px solid rgba(129, 19, 19, 0.3);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: var(--space-4);
    position: relative;
    z-index: 1;
    transition: all var(--transition-normal) var(--ease-spring);
    flex-shrink: 0;
}

.sport-option:hover .sport-icon {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.sport-icon i {
    font-size: 1.4rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.sport-option:hover .sport-icon i {
    color: white;
    transform: scale(1.1);
}

/* Sport Info */
.sport-info {
    flex: 1;
    position: relative;
    z-index: 1;
    min-width: 0;
}

.sport-info h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 2px;
    transition: color var(--transition-normal);
    letter-spacing: -0.01em;
}

.sport-option:hover .sport-info h2 {
    color: white;
}

.sport-info span {
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color var(--transition-normal);
}

.sport-option:hover .sport-info span {
    color: rgba(255, 255, 255, 0.85);
}

/* Sport Arrow */
.sport-arrow {
    margin-left: var(--space-4);
    position: relative;
    z-index: 1;
}

.sport-arrow i {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: all var(--transition-normal) var(--ease-spring);
}

.sport-option:hover .sport-arrow i {
    color: white;
    transform: translateX(6px);
}

/* Sport Glow */
.sport-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
    filter: blur(30px);
    z-index: -1;
}

.sport-option:hover .sport-glow {
    opacity: 0.15;
}

/* ===== INFO SECTION ===== */
.info {
    display: flex;
    justify-content: center;
    gap: var(--space-8);
    padding: var(--space-4) 0;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 1.4s forwards;
}

.info-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: all var(--transition-normal);
}

.info-item:hover {
    color: var(--primary-light);
    transform: translateY(-2px);
}

.info-item i {
    font-size: 1rem;
    color: var(--primary-color);
    transition: all var(--transition-normal);
}

.info-item:hover i {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px var(--primary-glow));
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: var(--space-4) 0;
    opacity: 0;
    animation: fadeInUp 0.6s var(--ease-out) 1.6s forwards;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all var(--transition-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    margin-bottom: var(--space-3);
}

.social-link::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.social-link:hover::before {
    opacity: 1;
}

.social-link:hover {
    transform: scale(1.1);
    border-color: transparent;
    box-shadow: var(--shadow-glow);
}

.social-link i {
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
    transition: color var(--transition-normal);
}

.social-link:hover i {
    color: white;
}

.footer-info {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    line-height: 1.6;
}

.footer-info a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.footer-info a:hover {
    color: var(--primary-light);
}

.separator {
    margin: 0 var(--space-2);
    opacity: 0.5;
}

.brand-link {
    font-weight: 600;
}

/* ===== LANDSCAPE ADJUSTMENT ===== */
@media (orientation: landscape) and (max-height: 600px) {
    .app-wrapper {
        padding: var(--space-4);
    }
    
    .title {
        font-size: 1.6rem;
        margin-bottom: var(--space-2);
    }
    
    .title-line.highlight {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 0.875rem;
        margin-bottom: var(--space-5);
    }
    
    .sport-option {
        padding: var(--space-4);
    }
    
    .sport-icon {
        width: 44px;
        height: 44px;
    }
    
    .sport-icon i {
        font-size: 1.1rem;
    }
    
    .sport-info h2 {
        font-size: 1rem;
    }
    
    .sport-info span {
        font-size: 0.8rem;
    }
    
    .info {
        gap: var(--space-6);
        padding: var(--space-3) 0;
    }
}

/* ===== MOBILE ===== */
@media (max-width: 767px) {
    .app-wrapper {
        padding: var(--space-5);
    }
    
    .app-container {
        gap: var(--space-5);
    }
    
    .logo img,
    .logo-img {
        width: 60px;
    }
    
    .title {
        font-size: 1.75rem;
    }
    
    .title-line.highlight {
        font-size: 2.1rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
        margin-bottom: var(--space-6);
    }
    
    .sport-option {
        padding: var(--space-4);
    }
    
    .sport-icon {
        width: 48px;
        height: 48px;
        margin-right: var(--space-3);
    }
    
    .sport-icon i {
        font-size: 1.2rem;
    }
    
    .sport-info h2 {
        font-size: 1.05rem;
    }
    
    .sport-info span {
        font-size: 0.8rem;
    }
    
    .info {
        gap: var(--space-6);
    }
    
    .info-item {
        font-size: 0.8rem;
    }
}

/* ===== TABLET AND DESKTOP ===== */
@media (min-width: 768px) {
    .app-wrapper {
        padding: var(--space-8);
    }
    
    .app-container {
        max-width: 500px;
        gap: var(--space-8);
    }
    
    .logo img,
    .logo-img {
        width: 80px;
    }
    
    .title {
        font-size: 2.5rem;
    }
    
    .title-line.highlight {
        font-size: 3rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
    }
    
    .sport-option {
        padding: var(--space-6);
    }
    
    .sport-icon {
        width: 60px;
        height: 60px;
    }
    
    .sport-icon i {
        font-size: 1.6rem;
    }
    
    .sport-info h2 {
        font-size: 1.35rem;
    }
    
    .sport-info span {
        font-size: 0.95rem;
    }
}

@media (min-width: 1024px) {
    .app-container {
        max-width: 540px;
    }
    
    .title {
        font-size: 2.75rem;
    }
    
    .title-line.highlight {
        font-size: 3.25rem;
    }
    
    .sport-option {
        padding: 28px;
    }
    
    .sport-icon {
        width: 68px;
        height: 68px;
    }
    
    .sport-icon i {
        font-size: 1.8rem;
    }
    
    .sport-info h2 {
        font-size: 1.5rem;
    }
    
    .sport-info span {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .app-container {
        max-width: 580px;
    }
}

/* ===== FOCUS STATES ===== */
:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}


/* ===== LOADING STATES ===== */
.sport-option.loading {
    pointer-events: none;
    opacity: 0.7;
}

.sport-option.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 10;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== SAFE AREAS ===== */
@supports (padding: max(0px)) {
    .app-wrapper {
        padding-top: max(var(--space-6), env(safe-area-inset-top));
        padding-bottom: max(var(--space-6), env(safe-area-inset-bottom));
        padding-left: max(var(--space-6), env(safe-area-inset-left));
        padding-right: max(var(--space-6), env(safe-area-inset-right));
    }
}

/* ===== PRINT ===== */
@media print {
    .ambient-bg,
    .sport-glow {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .sport-option {
        border: 1px solid #ccc;
        background: white;
    }
}