/* ==========================================================================
   PORTAFOLIO FOTOGRÁFICO - LUIS CARRERA ZÚÑIGA
   Diseño de Alta Gama, Minimalista y Responsivo (CSS Vanilla)
   ========================================================================== */

/* 1. RESET Y CONFIGURACIÓN GENERAL */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    /* Tipografía */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Tiempos de Transición */
    --transition-smooth: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.25s ease;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Sombras */
    --shadow-soft: 0 4px 30px rgba(0, 0, 0, 0.03);
    --shadow-medium: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* 1.1 ANIMACIÓN DE NAVEGACIÓN Y SCROLLBARS PERSONALIZADOS */
@view-transition {
    navigation: auto;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border: 2px solid var(--bg-primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

/* 2. SISTEMA DE TEMAS (Colores HSL Curados) */
/* Tema Oscuro (Por Defecto) - "Claroscuro" */
body.theme-dark {
    --bg-primary: #08080a;
    --bg-secondary: #0f0f13;
    --bg-tertiary: #17171d;
    --text-primary: #f8f9fa;
    --text-secondary: #a5a5b5;
    --accent: #ffffff;
    --accent-rgb: 255, 255, 255;
    --accent-muted: #575765;
    --border-color: rgba(255, 255, 255, 0.08);
    --glass-bg: rgba(8, 8, 10, 0.75);
    --glass-border: rgba(255, 255, 255, 0.05);
    --input-bg: rgba(255, 255, 255, 0.02);
    --input-focus: rgba(255, 255, 255, 0.15);
    --shadow-darkroom: 0 20px 50px rgba(0, 0, 0, 0.5);
    color-scheme: dark;
}

/* Tema Claro - "Albedo" */
body.theme-light {
    --bg-primary: #fcfcfd;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f1f5;
    --text-primary: #111115;
    --text-secondary: #5a5a6a;
    --accent: #000000;
    --accent-rgb: 0, 0, 0;
    --accent-muted: #a5a5b5;
    --border-color: rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(252, 252, 253, 0.75);
    --glass-border: rgba(0, 0, 0, 0.05);
    --input-bg: rgba(0, 0, 0, 0.01);
    --input-focus: rgba(0, 0, 0, 0.1);
    --shadow-darkroom: 0 20px 50px rgba(0, 0, 0, 0.05);
    color-scheme: light;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.5s ease, color 0.5s ease;
    -webkit-font-smoothing: antialiased;
}

/* Estilos de Contenedor */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

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

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

/* 3. BARRA DE NAVEGACIÓN (Glassmorphism) */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--glass-bg);
    border-bottom: 1px solid var(--glass-border);
    backdrop-filter: blur(15px) saturate(160%);
    -webkit-backdrop-filter: blur(15px) saturate(160%);
    transition: var(--transition-smooth), background-color 0.5s ease;
}

.site-header.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow-soft);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem var(--spacing-md);
    transition: var(--transition-smooth);
}

.site-header.scrolled .header-container {
    padding: 0.75rem var(--spacing-md);
}

/* Logo */
.logo {
    display: flex;
    flex-direction: column;
    letter-spacing: 0.25em;
    line-height: 1.1;
}

.logo-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.logo-sub {
    font-size: 0.6rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.45em;
    margin-top: 2px;
}

/* Menú de Navegación */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-secondary);
    position: relative;
    padding: 0.25rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Botón del Tema (Alternador) */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    transition: var(--transition-fast);
}

.theme-toggle:hover {
    background-color: var(--bg-tertiary);
    border-color: var(--accent);
}

/* Mostrar íconos según tema activo */
body.theme-dark .sun-icon { display: block; }
body.theme-dark .moon-icon { display: none; }
body.theme-light .sun-icon { display: none; }
body.theme-light .moon-icon { display: block; }

/* 4. SECCIÓN HERO (Portada Inmersiva) */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 115%;
    z-index: 1;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.05);
    animation: slowZoom 20s infinite alternate ease-in-out;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 10, 0.4) 0%,
        rgba(8, 8, 10, 0.65) 60%,
        rgba(8, 8, 10, 0.95) 100%
    );
    transition: var(--transition-smooth);
}

/* Ajuste de degradado del hero en modo claro */
body.theme-light .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(252, 252, 253, 0.2) 0%,
        rgba(252, 252, 253, 0.6) 60%,
        rgba(252, 252, 253, 0.98) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin-left: 8%;
    padding: 0 var(--spacing-md);
    color: var(--text-primary);
}

.hero-tagline {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 2.5rem;
}

/* Botón Minimalista */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 0;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.btn-outline {
    border: 1px solid var(--accent);
    color: var(--text-primary);
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    z-index: -1;
    transition: var(--transition-smooth);
}

.btn-outline:hover {
    color: var(--bg-primary) !important;
}

body.theme-light .btn-outline:hover {
    color: var(--bg-primary) !important;
}

.btn-outline:hover::before {
    left: 0;
}

.btn-outline:hover .arrow-down {
    transform: translateY(3px);
}

.arrow-down {
    transition: var(--transition-fast);
}

/* Indicador de Scroll */
.scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
}

.mouse-icon {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

/* 5. DISEÑO DE SECCIONES COMUNES */
section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.section-header {
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    color: var(--text-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-desc {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
}

/* 6. GALERÍA FILTRABLE */
.gallery-filters {
    display: flex;
    justify-content: flex-start;
    gap: 1.5rem;
    margin-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition-fast);
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
}

.filter-btn.active {
    color: var(--text-primary);
    font-weight: 600;
}

.filter-btn.active::after {
    width: 100%;
}

/* Rejilla de la Galería (CSS Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
    gap: var(--spacing-md);
    transition: var(--transition-smooth);
}

.gallery-item {
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    display: none;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.gallery-item.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.gallery-figure {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-tertiary);
    cursor: pointer;
    aspect-ratio: 1 / 1;
}

.gallery-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

/* Capa de Información al hacer Hover */
.gallery-caption {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, rgba(0, 0, 0, 0.1) 100%);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 2;
}

.item-category {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    transition-delay: 0.05s;
}

.item-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    transform: translateY(15px);
    transition: var(--transition-smooth);
    transition-delay: 0.1s;
}

.view-details-hint {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    width: fit-content;
    padding-bottom: 2px;
    transform: translateY(15px);
    opacity: 0;
    transition: var(--transition-smooth);
    transition-delay: 0.15s;
}

/* Efecto de Hover */
.gallery-figure:hover img {
    transform: scale(1.04);
    filter: brightness(0.65) contrast(1.15);
}

.gallery-figure:hover .gallery-caption {
    opacity: 1;
}

.gallery-figure:hover .item-category,
.gallery-figure:hover .item-title,
.gallery-figure:hover .view-details-hint {
    transform: translateY(0);
    opacity: 1;
}

/* 7. BIOGRAFÍA (Diseño en Cuadrícula Dividida) */
.bio-section {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.5s ease;
}

.bio-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.2fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.bio-image-container {
    position: relative;
}

.bio-image {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--border-color);
}

.bio-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background-color: var(--accent);
    color: var(--bg-primary);
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    letter-spacing: 0.1em;
    box-shadow: var(--shadow-medium);
    transition: var(--transition-smooth);
}

.badge-num {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 2.2rem;
    line-height: 1;
}

.badge-txt {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-top: 4px;
    color: var(--text-secondary);
    opacity: 0.8;
}

body.theme-light .badge-txt {
    color: var(--bg-primary);
}

/* Estilo del Contenido de Bio */
.bio-content .lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.bio-text p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    font-size: 0.95rem;
}

.bio-quote {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin: 2rem 0;
}

.bio-quote p {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.bio-quote cite {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-muted);
    font-style: normal;
}

/* Tabla del Equipo técnico */
.gear-specs {
    margin-top: 2.5rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.5rem;
}

.gear-specs h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.gear-specs ul {
    list-style: none;
}

.gear-specs li {
    display: flex;
    justify-content: space-between;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
}

.gear-specs li:last-child {
    border-bottom: none;
}

.gear-specs li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.gear-specs li span {
    color: var(--text-secondary);
    text-align: right;
    max-width: 70%;
}

/* 8. FORMULARIO DE CONTACTO (Estilo Flotante Minimalista) */
.contact-section {
    background-color: var(--bg-primary);
    transition: background-color 0.5s ease;
}

.contact-card {
    max-width: 850px;
    margin: 0 auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: var(--spacing-lg);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: background-color 0.5s ease;
}

.text-center {
    text-align: center;
}

.contact-form {
    margin-top: var(--spacing-md);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    position: relative;
    margin-bottom: 2rem;
}

.msg-group {
    margin-bottom: 2.5rem;
}

/* Inputs de Texto y TextArea */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.85rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition-fast);
}

.contact-form textarea {
    resize: none;
}

/* Animación de Etiqueta Flotante */
.form-group label {
    position: absolute;
    left: 0;
    top: 0.85rem;
    color: var(--text-secondary);
    pointer-events: none;
    transition: var(--transition-fast);
    font-size: 0.95rem;
    font-weight: 300;
}

/* Mover etiqueta al enfocar o tener texto */
.contact-form input:focus ~ label,
.contact-form input:not(:placeholder-shown) ~ label,
.contact-form textarea:focus ~ label,
.contact-form textarea:not(:placeholder-shown) ~ label {
    top: -1.2rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-transform: uppercase;
}

/* Línea de enfoque animada */
.input-underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent);
    transition: var(--transition-smooth);
}

.contact-form input:focus ~ .input-underline,
.contact-form textarea:focus ~ .input-underline {
    width: 100%;
}

/* Mensajes de Validación */
.error-msg {
    display: block;
    font-size: 0.75rem;
    color: #ff4d4d;
    margin-top: 0.35rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: var(--transition-fast);
    position: absolute;
}

.form-group.invalid input,
.form-group.invalid textarea {
    border-bottom-color: #ff4d4d;
}

.form-group.invalid .error-msg {
    opacity: 1;
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
}

body.theme-light .btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--text-primary);
}

.btn-primary:hover .send-icon {
    transform: translate(3px, -3px);
}

.send-icon {
    transition: var(--transition-fast);
}

/* Pantalla de Éxito */
.form-status {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    padding: 3rem 0;
    text-align: center;
    flex-direction: column;
}

.form-status.active {
    display: flex;
    animation: fadeIn 0.6s ease forwards;
}

.success-icon {
    color: #4dd0e1;
    width: 48px;
    height: 48px;
    border: 2px solid #4dd0e1;
    border-radius: 50%;
    padding: 8px;
}

.success-message h3 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.success-message p {
    color: var(--text-secondary);
}

/* 9. VISOR MODAL (Lightbox Accesible) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(6, 6, 8, 0.98);
    z-index: 2000;
    display: none;
    opacity: 0;
    justify-content: center;
    align-items: center;
    transition: opacity 0.4s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2.5rem;
    font-size: 3rem;
    font-weight: 200;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition-fast);
    z-index: 2005;
}

.lightbox-close:hover {
    color: #ffffff;
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    z-index: 2002;
    transition: var(--transition-fast);
}

.lightbox-nav:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.lightbox-prev { left: 3rem; }
.lightbox-next { right: 3rem; }

.lightbox-content {
    max-width: 80%;
    max-height: 80%;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: zoomIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.lightbox-content img {
    max-height: 70vh;
    width: auto;
    object-fit: contain;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.lightbox-caption {
    margin-top: 1.5rem;
    color: #ffffff;
    text-align: center;
    max-width: 650px;
}

.lightbox-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.lightbox-caption p {
    font-size: 0.85rem;
    color: #adb5bd;
    margin-bottom: 0.75rem;
    font-weight: 300;
}

.lightbox-meta {
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 0.5rem;
}

/* 10. PIE DE PÁGINA */
.site-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: var(--spacing-md) 0;
    transition: background-color 0.5s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 300;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
}

.social-link:hover {
    color: var(--text-primary);
    border-color: var(--accent);
    background-color: var(--bg-tertiary);
    transform: translateY(-2px);
}

/* 11. ANIMACIONES Y EFECTOS DE REVELADO AL HACER SCROLL */
@keyframes slowZoom {
    0% { transform: scale(1.02); }
    100% { transform: scale(1.08); }
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(12px); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

/* Clases de animación por scroll (Intersection Observer) */
.animate-up {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.animate-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Retrasos para animaciones del Hero */
.hero-content .animate-up:nth-child(1) { transition-delay: 0.1s; }
.hero-content .animate-up:nth-child(2) { transition-delay: 0.2s; }
.hero-content .animate-up:nth-child(3) { transition-delay: 0.3s; }
.hero-content .animate-up:nth-child(4) { transition-delay: 0.4s; }

/* Efecto de entrada izquierda / derecha para Biografía */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: var(--transition-smooth);
}

.reveal-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: var(--transition-smooth);
}

.reveal-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* 12. RESPONSIVIDAD (Media Queries) */
@media (max-width: 1024px) {
    :root {
        --spacing-xl: 5rem;
    }
    
    .bio-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .bio-image-container {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 1rem var(--spacing-md);
    }
    
    .main-nav {
        display: none; /* Simplificado para mantener enfoque minimalista */
    }
    
    .hero-content {
        margin-left: 0;
        text-align: center;
        padding: 0 var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .contact-card {
        padding: var(--spacing-md);
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-prev { left: 1rem; }
    .lightbox-next { right: 1rem; }
    
    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .lightbox-caption h3 {
        font-size: 1.1rem;
    }
    
    .lightbox-caption p {
        font-size: 0.75rem;
    }
    
    .lightbox-meta {
        font-size: 0.6rem;
    }
}

/* Soporte de Idiomas (Trilingüe) */
body.lang-es :is(.lang-en, .lang-pt) { display: none !important; }
body.lang-en :is(.lang-es, .lang-pt) { display: none !important; }
body.lang-pt :is(.lang-es, .lang-en) { display: none !important; }

/* Contenedor de acciones del header */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-selector-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3px 5px;
}

.lang-select-btn {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 16px;
    padding: 4px 9px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.lang-select-btn:hover {
    color: var(--text-primary);
    opacity: 0.8;
}

.lang-select-btn.active {
    color: var(--text-primary);
    opacity: 1;
    background-color: var(--bg-tertiary);
    border-bottom: 2px solid var(--accent);
    border-radius: 14px 14px 12px 12px;
}

/* ==========================================================================
   11. SECCIÓN DE CONTACTO ESTILO FICHA DE GALERÍA
   ========================================================================== */
.contact-section {
    padding: var(--spacing-lg) 0;
    border-top: 1px solid var(--border-color);
}

.gallery-label-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: var(--spacing-md);
    perspective: 1000px;
}

.gallery-label {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-medium);
    padding: 3rem;
    width: 100%;
    max-width: 580px;
    border-radius: 4px;
    position: relative;
    transition: var(--transition-smooth);
    font-family: Georgia, serif;
    color: var(--text-primary);
}

.gallery-label::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    bottom: 12px;
    border: 1px solid rgba(var(--accent-rgb), 0.05);
    pointer-events: none;
}

.gallery-label:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-darkroom);
    border-color: var(--accent);
}

.label-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
}

.label-number {
    font-family: var(--font-body);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    font-weight: 500;
}

.label-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.label-field {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 1px dashed var(--border-color);
    padding-bottom: 0.5rem;
}

.label-field.block {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.label-property {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    min-width: 110px;
    flex-shrink: 0;
}

.label-field.block .label-property {
    min-width: auto;
}

.label-input {
    background: transparent;
    border: none;
    outline: none;
    font-family: Georgia, serif;
    font-size: 1rem;
    color: var(--text-primary);
    width: 100%;
    padding: 0.25rem 0;
}

.label-input::placeholder {
    color: var(--accent-muted);
    font-style: italic;
    opacity: 0.5;
}

.label-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='currentColor' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/><path d='M0 0h24v24H0z' fill='none'/></svg>");
    background-repeat: no-repeat;
    background-position: right center;
    padding-right: 1.5rem;
    color: var(--text-primary);
}

body.theme-dark .label-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

body.theme-light .label-select option {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
}

.label-textarea {
    height: 120px;
    resize: none;
    line-height: 1.5;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.label-textarea:focus {
    border-color: var(--accent);
    background-color: var(--input-bg);
}

.label-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.label-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-family: var(--font-body);
}

.art-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--text-primary);
    color: var(--bg-primary);
    border: 1px solid var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: var(--transition-fast);
}

.art-submit-btn:hover {
    background: transparent;
    color: var(--text-primary);
}

.dot-red-status {
    width: 8px;
    height: 8px;
    background-color: #ef4444;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 8px #ef4444;
}

/* Consola o respuesta de contacto artístico */
.art-console-response {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 4px;
    background-color: var(--bg-tertiary);
    border-left: 3px solid var(--accent);
    font-family: var(--font-body);
    font-size: 0.85rem;
}

.art-console-response.hidden {
    display: none;
}

.response-line {
    margin: 0.25rem 0;
}

.response-line.info-line {
    color: var(--text-secondary);
}

.response-line.success-line {
    color: var(--text-primary);
    font-weight: 500;
}

/* Adaptación móvil del formulario de galería */
@media (max-width: 768px) {
    .gallery-label {
        padding: 1.5rem;
    }
    
    .label-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .label-footer {
        flex-direction: column;
        gap: 1.5rem;
        align-items: flex-start;
    }
    
    .art-submit-btn {
        width: 100%;
        justify-content: center;
    }
}
