/* =========================================================================
   DESIGN SYSTEM - CLUB DEPORTIVO TALLERES PUERTO MONTT
   Premium Aesthetic: Deep Navy, Gold Accents, Clean White
   ========================================================================= */

:root {
    /* Color Palette */
    --primary: #0A192F;      /* Deep Navy */
    --primary-light: #112240;
    --secondary: #FFB000;    /* Vibrant Gold */
    --secondary-hover: #E6A000;
    --accent: #64FFDA;       /* Secondary Accent */
    --text-main: #E6F1FF;
    --text-muted: #8892B0;
    --bg-body: #020C1B;      /* Dark Theme */
    --white: #FFFFFF;
    
    /* Functional Colors */
    --success: #10B981;
    --error: #EF4444;
    
    /* Typography */
    --font-heading: 'Outfit', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, oxygen, ubuntu, cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-body: 'Outfit', sans-serif;
    
    /* Layout */
    --container-max: 1200px;
    --header-height: 80px;
    
    /* Effects */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
    --glass: rgba(17, 34, 64, 0.85);
    --border-glass: rgba(255, 255, 255, 0.1);
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-body);
    font-family: var(--font-body);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
}

/* =========================================================================
   GENERIC COMPONENTS
   ========================================================================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--primary);
}
.btn-primary:hover {
    background-color: var(--secondary-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 176, 0, 0.3);
}

.btn-outline {
    border-color: var(--secondary);
    color: var(--secondary);
    background: transparent;
}
.btn-outline:hover {
    background: rgba(255, 176, 0, 0.1);
    border-color: var(--secondary-hover);
    color: var(--white);
}

/* =========================================================================
   HEADER
   ========================================================================= */

.header {
    height: var(--header-height);
    background-color: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    height: 48px;
}

.logo span {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--secondary);
    text-transform: uppercase;
}

.navbar .nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--secondary);
}

.header-action {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* =========================================================================
   HERO SECTION
   ========================================================================= */

.hero-section {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(2, 12, 27, 0.95) 0%, rgba(2, 12, 27, 0.3) 100%);
    z-index: 1;
}

/* Background image is set dynamically or via CSS */
.hero-bg-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-bg-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 60px 0;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1;
    margin-bottom: 24px;
    text-transform: uppercase;
    color: var(--white);
}

.hero-content h1 span {
    color: var(--secondary);
    display: block;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 550px;
}

.hero-actions {
    display: flex;
    gap: 20px;
}

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

.hero-content {
    animation: fadeInUp 1s ease-out;
}

/* =========================================================================
   NOTICIAS / NEWS SECTIONS
   ========================================================================= */

.news-section {
    padding: 100px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
}
.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--secondary);
}

.link-more {
    color: var(--secondary);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.link-more:hover {
    gap: 12px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 40px;
}

.news-card {
    background: var(--primary-light);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-glass);
}

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255, 176, 0, 0.3);
}

.news-image {
    height: 220px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-card-content {
    padding: 25px;
}

.news-card-content h3 {
    margin-bottom: 15px;
    font-size: 1.4rem;
    line-height: 1.3;
}

.news-card-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* =========================================================================
   FOOTER
   ========================================================================= */

.footer {
    background-color: var(--primary);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-glass);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-col h3 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.footer-col p {
    color: var(--text-muted);
    max-width: 300px;
}

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

.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */

@media (max-width: 1024px) {
    .footer-container {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .header-action {
        display: none; /* In a real app, add mobile menu toggle */
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
