@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;500;700;900&display=swap');

:root {
    --palo-orange: #f07a18;
    --palo-blue: #0a3d62;
    --pitch-green: #10b981;
    --apple-bg: #F2F2F7;
    --apple-card: rgba(255, 255, 255, 0.85);
    --apple-blur: blur(20px);
    --text-main: #1D1D1F;
    --text-muted: #86868B;
    --radius-premium: 28px;
    --shadow-premium: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-deep: 0 20px 60px rgba(0,0,0,0.12);
}

* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: #FFFFFF; /* Fondo base blanco puro para que resalte la textura */
    color: var(--text-main);
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* CAPA DE TEXTURA FUTBOLERA SUTIL */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; 
    width: 100%; height: 100%;
    background-image: url('../images/app_bg_texture.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.6; /* Subido al 60% para mayor definición del fondo */
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px 100px;
}

/* === APPLE STYLE GLASSMORHISM === */
.glass-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: var(--apple-blur);
    -webkit-backdrop-filter: var(--apple-blur);
    padding: 15px 20px;
    border-bottom: 0.5px solid rgba(0,0,0,0.1);
}

.hero-featured {
    position: relative;
    background: linear-gradient(135deg, var(--palo-blue), #1e3a8a);
    border-radius: var(--radius-premium);
    padding: 30px 25px;
    margin-top: 20px;
    color: white;
    overflow: hidden;
    box-shadow: var(--shadow-deep);
}

.hero-featured::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* === CARD SYSTEM === */
.premium-card {
    background: var(--apple-card);
    backdrop-filter: var(--apple-blur);
    -webkit-backdrop-filter: var(--apple-blur);
    border-radius: var(--radius-premium);
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-premium);
    border: 0.5px solid rgba(255,255,255,0.5);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.premium-card:active {
    transform: scale(0.97);
}

/* === FOOTBALL SPECIFIC === */
.scoreboard {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.team-info {
    flex: 1;
    text-align: center;
}

.team-flag {
    width: 56px;
    height: 40px;
    border-radius: 10px;
    object-fit: cover;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-name {
    font-weight: 900;
    font-size: 14px;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.match-scores {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.score-input {
    width: 65px;
    height: 65px;
    background: rgba(255,255,255,0.9);
    border: 2px solid #E5E5EA;
    border-radius: 18px;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.score-input:focus {
    border-color: var(--palo-orange);
    outline: none;
    box-shadow: 0 0 0 4px rgba(240, 122, 24, 0.1);
}

/* === TICKET STYLE === */
.ticket-voucher {
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 2px dashed #D1D1D6;
    position: relative;
}

/* === BOTTOM NAV === */
.bottom-nav {
    position: fixed;
    bottom: 25px;
    left: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 35px;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    z-index: 2000;
    border: 0.5px solid rgba(255,255,255,0.5);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
}

.nav-item.active {
    color: var(--palo-orange);
}

.nav-icon {
    font-size: 22px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

/* === BUTTONS === */
.btn-main {
    background: var(--palo-orange);
    color: white;
    border: none;
    padding: 20px;
    border-radius: 22px;
    font-weight: 900;
    font-size: 16px;
    width: 100%;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(240, 122, 24, 0.3);
    transition: 0.3s;
}

.btn-main:active {
    transform: scale(0.96);
}
