/*
Theme Name: NAUW Starter
Theme URI: https://nauw.es
Author: NAUW Urban
Description: Tema custom para NAUW Urban - Plataforma de eventos y artistas emergentes
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: nauw-starter
*/

/* ============================================
   ACCESIBILIDAD / SEO
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   FUENTES
   ============================================ */
@font-face {
    font-family: 'PP Neue Montreal';
    src: url('./assets/fonts/ppneuemontreal-thin.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('./assets/fonts/ppneuemontreal-book.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('./assets/fonts/ppneuemontreal-medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('./assets/fonts/ppneuemontreal-bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('./assets/fonts/ppneuemontreal-semibolditalic.otf') format('opentype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Bright Melody';
    src: url('./assets/fonts/brightmelodypersonaluseonly-ovogd.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

:root {
    /* Colores */
    --color-red: #E30613;
    --color-red-dark: #B50510;
    --color-dark: #1A1014;
    --color-dark-brown: #2D1A1E;
    --color-white: #FFFFFF;
    --color-gray: #B0B0B0;
    --color-dark-gray: #333333;

    /* Gradientes */
    --gradient-hero: linear-gradient(180deg, #1A1014 0%, #3D0A0A 50%, #E30613 100%);
    --gradient-section: linear-gradient(180deg, var(--color-dark-brown) 0%, var(--color-red) 100%);
    --gradient-footer: linear-gradient(180deg, var(--color-red) 0%, var(--color-dark-brown) 100%);

    /* Tipografías */
    --font-body: 'PP Neue Montreal', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Bright Melody', Georgia, serif;

    /* Tamaños */
    --container-max: 1400px;
    --container-padding: 2rem;

    /* Transiciones */
    --transition: all 0.3s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-dark);
    color: var(--color-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

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

a:hover {
    opacity: 0.8;
}

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

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    color: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   TIPOGRAFÍA
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.1;
    font-weight: 400;
}

.section-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 100;
    margin-bottom: 2rem;
}

.section-title em,
.section-title i {
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 400;
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: var(--transition);
    text-align: center;
    width: 100%;
}

.btn-outline {
    border: 1px solid var(--color-white);
    color: var(--color-white);
    background: transparent;
}

.btn-outline:hover {
    background: var(--color-white);
    color: var(--color-dark);
    opacity: 1;
}

.btn-dark {
    background: var(--color-dark-gray);
    color: var(--color-white);
    border: 1px solid transparent;
}

.btn-dark:hover {
    background: var(--color-white);
    color: var(--color-dark);
    opacity: 1;
}

.btn-arrow::after {
    content: '\2192';
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.btn-arrow:hover::after {
    transform: translateX(4px);
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--color-red);
    border-radius: 4px;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.5rem 0;
    transition: background 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background: rgba(26, 16, 20, 0.95);
    backdrop-filter: blur(10px);
    padding: 0.5rem 0;
}

/* WordPress admin bar offset */
.admin-bar .site-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .site-header {
        top: 46px;
    }
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

.site-header.scrolled .header-inner {
    min-height: 40px;
}

.header-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.header-logo-img {
    height: 100px;
    width: auto;
    margin: -22px 0;
    transform: translateY(-2px);
    transition: opacity 0.3s ease;
}

.nav-list {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-list li a {
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 0.5rem 0;
    position: relative;
}

.nav-list li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-red);
    transition: width 0.3s ease;
}

.nav-list li a:hover::after,
.nav-list li.current-menu-item a::after {
    width: 100%;
}

/* Hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-line {
    width: 28px;
    height: 2px;
    background: var(--color-white);
    transition: var(--transition);
}

.menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   ARTISTA CARD (shared)
   ============================================ */
.artista-card {
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.artista-card:hover {
    border-color: var(--color-red);
}

.artista-card-image-link {
    display: block;
    aspect-ratio: 3/4;
    overflow: hidden;
    border-radius: 14px 14px 0 0;
}

.artista-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.artista-card:hover .artista-card-img {
    filter: grayscale(0%);
}

.artista-card-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-dark-gray);
}

.artista-card-info {
    padding: 0.75rem 1rem;
    text-align: center;
    background: var(--color-dark);
}

.artista-card-name {
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 0.4rem;
}

.artista-card-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.artista-card-social a {
    color: var(--color-white);
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
}

.artista-card-social a:hover {
    opacity: 1;
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
    padding: 4rem 0 2rem;
    background: var(--gradient-footer);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-logo-img {
    height: 60px;
    width: auto;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 2rem;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    color: var(--color-white);
    transition: var(--transition);
}

.footer-social .social-link:hover {
    opacity: 0.7;
}

.footer-social .social-link svg {
    width: 24px;
    height: 24px;
}

.footer-nav a {
    font-size: 0.9rem;
    opacity: 0.7;
    transition: var(--transition);
}

.footer-nav a:hover {
    opacity: 1;
}

.footer-legal {
    margin-top: 0.25rem;
}

.legal-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.legal-list li a {
    font-size: 0.85rem;
    opacity: 0.7;
    text-decoration: none;
}

.legal-list li a:hover {
    opacity: 1;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    position: relative;
}

.scroll-top {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 44px;
    height: 44px;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: var(--transition);
}

.scroll-top:hover {
    background: var(--color-white);
    color: var(--color-dark);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.6;
    text-align: center;
}

/* ============================================
   FLOATING CTA (mobile only)
   ============================================ */
.floating-cta {
    display: none;
}

/* ============================================
   RESPONSIVE (shared)
   ============================================ */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 50%;
        max-width: 220px;
        height: 100vh;
        background: var(--color-dark);
        padding: 5rem 2rem 2rem;
        transition: right 0.3s ease;
        z-index: 1000;
    }

    .header-nav.open {
        right: 0;
    }

    /* Hide nav on internal pages in mobile (no hamburger) */
    body:not(.home) .header-nav {
        display: none;
    }

    .nav-list {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-end;
    }

    .nav-list li a {
        font-size: 1.2rem;
    }

    .legal-list {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .scroll-top {
        position: static;
    }

    .header-logo-img {
        height: 70px;
        margin: -14px 0;
    }

    /* Floating CTA — matches .evento-card .btn-dark style */
    .floating-cta {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        position: fixed;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        z-index: 999;
        background: var(--color-dark-gray);
        color: var(--color-white);
        padding: 0.9rem 1.5rem;
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 400;
        border-radius: 8px;
        border: 1px solid transparent;
        transition: transform 0.3s ease, background 0.3s ease;
        white-space: nowrap;
    }

    .floating-cta:hover {
        opacity: 1;
        background: var(--color-white);
        color: var(--color-dark);
    }

    .floating-cta.hidden {
        transform: translateX(-50%) translateY(calc(100% + 1rem));
    }
}
