/* ==========================================================================
   CUPRA PULSE - Main CSS
   Estilos principales para toda la web
   ========================================================================== */

/* CUPRA Official Website Colors */
:root {
    --cupra-midnight-black: #000000;
    --cupra-glacial-white: #ffffff;
    --cupra-vapor-grey: #6b7280;
    --cupra-granite-grey: #374151;
    --cupra-sport-black: #111827;
    --cupra-silver: #d1d5db;
    --cupra-light-silver: #f3f4f6;
    --cupra-copper-accent: #b87333;
}

/* Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'GT-America';
    src: url('https://m.media-amazon.com/images/G/02/CupraMusicHub_Temp/GT-America-Expanded-Light._CB794222962_.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'GT-America', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    line-height: 1.6;
    color: var(--cupra-granite-grey);
    background: var(--cupra-midnight-black);
}

/* Header Section with Video
   ========================================================================== */
.header-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.header-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.video-controls {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 10;
}

.play-pause-btn {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-pause-btn:hover {
    background: rgba(0, 0, 0, 0.5);
    border-color: white;
    transform: scale(1.05);
}

.header-content {
    position: relative;
    z-index: 5;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.logo {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease forwards;
}

.logo img {
    max-width: 310px;
    height: auto;
    width: 100%;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.header-text {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease 0.3s forwards;
}

/* Loading States */
.loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Fallback Background */
.fallback-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cupra-sport-black) 0%, var(--cupra-granite-grey) 50%, var(--cupra-vapor-grey) 100%);
    z-index: 0;
}

/* Main Content Container
   ========================================================================== */
.main-content {
    position: relative;
    z-index: 10;
    background: var(--cupra-glacial-white);
}

.section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Link Tree Section
   ========================================================================== */
.link-tree-section {
    background: linear-gradient(135deg, var(--cupra-light-silver) 0%, var(--cupra-glacial-white) 100%);
    padding: 5rem 0;
}

.section-title {
    font-size: 2.25rem;
    color: var(--cupra-midnight-black);
    text-align: center;
    font-weight: bold;
    margin-bottom: 4rem;
    font-family: 'GT-America', sans-serif;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.links-grid {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.country-link {
    display: flex;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--cupra-glacial-white);
    border: 2px solid var(--cupra-silver);
    border-radius: 12px;
    text-decoration: none;
    color: var(--cupra-granite-grey);
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.country-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(209, 213, 219, 0.3), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.country-link > * {
    position: relative;
    z-index: 2;
}

.country-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--cupra-granite-grey);
}

.country-link:hover::before {
    left: 100%;
}

.country-link.uk:hover { border-color: var(--cupra-sport-black); }
.country-link.es:hover { border-color: var(--cupra-granite-grey); }
.country-link.de:hover { border-color: var(--cupra-vapor-grey); }
.country-link.fr:hover { border-color: var(--cupra-sport-black); }
.country-link.it:hover { border-color: var(--cupra-granite-grey); }

.flag-icon {
    font-size: 2rem;
    margin-right: 1.5rem;
    min-width: 40px;
    text-align: center;
    flex-shrink: 0;
}

.country-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.country-name {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--cupra-granite-grey);
    margin-bottom: 0.25rem;
}

.store-url {
    font-size: 0.9rem;
    color: var(--cupra-vapor-grey);
    font-family: 'Courier New', monospace;
}

.arrow {
    font-size: 1.5rem;
    color: var(--cupra-vapor-grey);
    transition: all 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.country-link:hover .arrow {
    color: var(--cupra-granite-grey);
    transform: translateX(5px);
}

/* About CUPRA Music Section
   ========================================================================== */
.about-section {
    background: linear-gradient(135deg, var(--cupra-glacial-white) 0%, var(--cupra-light-silver) 100%);
    padding: 6rem 0;
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cupra-silver), transparent);
}

.about-content {
    max-width: 1000px;
    margin: 0 auto;
}

.about-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.intro-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--cupra-granite-grey);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro p:not(.intro-text) {
    font-size: 1rem;
    color: var(--cupra-vapor-grey);
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
}

.about-flow {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.flow-section {
    margin-bottom: 3.5rem;
    position: relative;
}

.flow-section:last-child {
    margin-bottom: 0;
}

.flow-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--cupra-midnight-black);
    margin-bottom: 1.5rem;
    font-family: 'GT-America', sans-serif;
    letter-spacing: -0.01em;
    position: relative;
    padding-bottom: 0.5rem;
}

.flow-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--cupra-granite-grey), var(--cupra-vapor-grey));
    border-radius: 1px;
}

.flow-section p {
    color: var(--cupra-granite-grey);
    line-height: 1.7;
    font-size: 1rem;
    margin: 0;
    text-align: justify;
    hyphens: auto;
}

.artists-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.artist-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--cupra-granite-grey), var(--cupra-vapor-grey));
    color: var(--cupra-glacial-white);
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
}

.artist-tag::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
    transform: translate(-50%, -50%);
}

.artist-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(55, 65, 81, 0.3);
}

.artist-tag:hover::before {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.about-formats {
    background: var(--cupra-glacial-white);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(209, 213, 219, 0.5);
    margin-bottom: 3rem;
}

.formats-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--cupra-midnight-black);
    margin-bottom: 1rem;
    text-align: center;
    font-family: 'GT-America', sans-serif;
}

.about-formats > p {
    text-align: center;
    color: var(--cupra-vapor-grey);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.format-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--cupra-light-silver), var(--cupra-glacial-white));
    border-radius: 12px;
    transition: all 0.3s ease;
    border: 1px solid rgba(209, 213, 219, 0.3);
}

.format-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--cupra-granite-grey);
}

.format-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.format-item span:last-child {
    color: var(--cupra-granite-grey);
    font-size: 0.9rem;
    font-weight: 400;
}

.about-conclusion {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.about-conclusion > p {
    color: var(--cupra-vapor-grey);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1rem;
}

.conclusion-highlight {
    background: linear-gradient(135deg, var(--cupra-granite-grey), var(--cupra-midnight-black));
    color: var(--cupra-glacial-white);
    padding: 2rem;
    border-radius: 16px;
    font-size: 1.1rem;
    line-height: 1.6;
    position: relative;
    overflow: hidden;
}

.conclusion-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

.conclusion-highlight strong {
    color: var(--cupra-glacial-white);
    font-weight: 600;
}

/* Footer
   ========================================================================== */
.main-footer {
    background: linear-gradient(135deg, var(--cupra-sport-black) 0%, var(--cupra-granite-grey) 100%);
    color: var(--cupra-glacial-white);
    padding: 4rem 0 2rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-brand {
    text-align: left;
}

.footer-logo {
    max-width: 200px;
    height: auto;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-weight: 300;
}

.footer-links {
    text-align: left;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--cupra-glacial-white);
    letter-spacing: 0.5px;
}

.footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link:hover {
    color: var(--cupra-glacial-white);
    transform: translateX(3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-copyright {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.5rem;
}

.footer-copyright a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-copyright a:hover {
    color: var(--cupra-glacial-white);
}

.footer-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    margin: 0;
}

/* Cookie Banner
   ========================================================================== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--cupra-glacial-white);
    padding: 1.5rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-top: 3px solid var(--cupra-silver);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text {
    flex: 1;
    min-width: 0;
}

.cookie-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--cupra-glacial-white);
}

.cookie-text p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
    align-items: center;
}

.cookie-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    font-family: inherit;
    outline: none;
    background: transparent;
    color: var(--cupra-glacial-white);
}

.cookie-btn:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

.cookie-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
}

/* Animations
   ========================================================================== */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Responsive Design
   ========================================================================== */
@media (max-width: 768px) {
    .header-section {
        min-height: 500px;
    }
    
    .logo img {
        max-width: 230px;
    }
    
    .header-text {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .video-controls {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .play-pause-btn {
        width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.75rem;
        margin-bottom: 3rem;
    }

    .country-link {
        padding: 1.25rem 1.5rem;
    }

    .flag-icon {
        font-size: 1.75rem;
        margin-right: 1rem;
        min-width: 35px;
    }

    .country-name {
        font-size: 1rem;
    }

    .store-url {
        font-size: 0.8rem;
    }

    /* About Section Mobile */
    .about-section {
        padding: 4rem 0;
    }

    .about-intro {
        margin-bottom: 3rem;
    }

    .intro-text {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    .about-flow {
        margin-bottom: 3rem;
    }

    .flow-section {
        margin-bottom: 2.5rem;
    }

    .flow-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .flow-section p {
        font-size: 0.95rem;
        text-align: left;
    }

    .artists-list {
        gap: 0.5rem;
    }

    .artist-tag {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .about-formats {
        padding: 2rem;
        margin-bottom: 2rem;
    }

    .formats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .format-item {
        padding: 0.75rem;
    }

    .conclusion-highlight {
        padding: 1.5rem;
        font-size: 1rem;
    }

    .main-footer {
        padding: 3rem 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .footer-brand {
        text-align: center;
    }
    
    .footer-logo {
        max-width: 160px;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-container {
        padding: 0 1rem;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        align-items: center;
    }

    .cookie-text {
        text-align: center;
    }

    .cookie-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cookie-btn {
        padding: 0.7rem 1rem;
        font-size: 0.85rem;
        min-width: 90px;
    }
}

@media (max-width: 480px) {
    .logo img {
        max-width: 180px;
    }
    
    .header-text {
        font-size: 0.9rem;
    }
    
    .header-content {
        padding: 0 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 2.5rem;
        padding: 0 1rem;
    }

    .country-link {
        padding: 1rem 1.25rem;
        margin: 0 1rem;
    }

    .flag-icon {
        font-size: 1.5rem;
        margin-right: 0.75rem;
        min-width: 30px;
    }

    .arrow {
        font-size: 1.25rem;
    }

    /* About Section Small Mobile */
    .intro-text {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .about-intro p:not(.intro-text) {
        font-size: 0.9rem;
        padding: 0 1rem;
    }

    .about-flow {
        padding: 0 1rem;
    }

    .flow-section {
        margin-bottom: 2rem;
    }

    .flow-title {
        font-size: 1.2rem;
    }

    .flow-section p {
        font-size: 0.9rem;
    }

    .about-formats {
        padding: 1.5rem;
        margin: 0 1rem 2rem;
    }

    .about-conclusion {
        padding: 0 1rem;
    }

    .conclusion-highlight {
        padding: 1.25rem;
        font-size: 0.95rem;
        margin: 0 1rem;
    }

    .footer-content {
        gap: 2rem;
    }
    
    .footer-logo {
        max-width: 140px;
    }
    
    .footer-copyright {
        font-size: 0.8rem;
        line-height: 1.4;
    }
    
    .footer-subtitle {
        font-size: 0.75rem;
    }

    .cookie-banner {
        padding: 1rem;
    }

    .cookie-content {
        gap: 1rem;
    }

    .cookie-text h3 {
        font-size: 1rem;
    }

    .cookie-text p {
        font-size: 0.8rem;
    }

    .cookie-buttons {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        padding: 0.8rem;
        font-size: 0.9rem;
    }
}