/* Variables de Diseño - Paleta Profesional + Artística Suave */
:root {
    /* Colores Base (Día) - Ahora Vino para iniciar el degradado oscuro */
    --bg-day: #5D2A37; /* Color vino */
    --text-day: #FDF7F0; /* Crema para contrastar sobre vino */
    --text-secondary: rgba(253, 247, 240, 0.75); /* Crema suave */
    --accent-day: #D6A38F; /* Terracota claro */
    
    /* Colores Base (Noche) - Vino más oscuro */
    --bg-night: #30141D; /* Color vino oscuro */
    --text-night: #FDF7F0; /* Crema */
    --accent-night: #D6A38F; /* Terracota claro */

    /* Variables Dinámicas */
    --bg-general: var(--bg-day);
    --bg-secondary: rgba(0, 0, 0, 0.03);
    --text-primary: var(--text-day);
    --color-titles: var(--text-day);
    --accent: var(--accent-day);
    --border-color: rgba(0, 0, 0, 0.1);
    
    /* Tipografía */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Lato', 'Open Sans', sans-serif;
    
    /* Tamaños */
    --size-h1: 4.5rem;
    --size-h2: 2.3rem;
    --size-h3: 1.5rem;
    --size-body: 1.05rem;
    --size-nav: 1.125rem;
    
    --header-height: 4.5rem;
}

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

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    
    /* Configuración del Fondo */
    min-height: 100vh;
    margin: 0;
    background-color: var(--bg-night);
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -1;
    pointer-events: none;
    /* Viñeta suave superpuesta al degradado de color vino original */
    background-image: 
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 30%, rgba(23, 11, 14, 0.8) 100%),
        linear-gradient(180deg, var(--bg-day) 0%, var(--bg-night) 100%);
    background-size: cover;
    background-repeat: no-repeat;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.container {
    max-width: 68.75rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}

h1, h2, h3 {
    color: var(--color-titles);
    font-family: var(--font-heading);
    line-height: 1.2;
    font-weight: 700;
}

/* Header */
.main-header {
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    background-color: color-mix(in srgb, rgba(93, 42, 55, 0.5) calc(var(--scroll-pct, 0) * 100%), rgba(48, 20, 29, 0.7)); /* Efecto glass oscuro (vino a vino oscuro) */
    backdrop-filter: blur(24px); /* Desenfoque más fuerte */
    -webkit-backdrop-filter: blur(24px);
    position: fixed;
    width: 90%;
    max-width: 65rem;
    top: 1rem;
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 1000;
    border: 1px solid rgba(253, 247, 240, 0.15); /* Borde claro sutil */
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--text-day);
    white-space: nowrap;
    font-weight: 700;
    opacity: 0;
    transform: translateX(-1rem);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.logo-text.visible {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.hamburger-btn {
    display: none;
}

.header-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.header-nav a {
    font-family: var(--font-body);
    text-decoration: none;
    color: var(--text-day);
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.header-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-day);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.header-nav a:hover {
    color: var(--accent-day);
}

.header-nav a:hover::after {
    width: 100%;
    left: 0;
}

/* Hero Section */
body .hero-section {
    background-color: transparent;
}

.hero-section {
    max-width: 75rem;
    
    /* ==============================================================
       EDITA ESTE VALOR PARA CAMBIAR LA DISTANCIA CON EL NAVEGADOR
       (Aumenta o disminuye los 'rem' para subir o bajar el contenido)
       ============================================================== */
    margin-top: 5.5rem; 
    
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem 4rem 2rem;
    /* Se quitó min-height para que el margin-top dicte la posición exacta sin auto-centrados que interfieran */
    gap: 3rem;
}

.hero-text-container {
    flex: 1;
    max-width: 38rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-badge-container {
    margin-bottom: 2rem;
}

.hero-text-container h1 {
    color: var(--accent-day);
    font-size: var(--size-h1);
    margin-bottom: 1rem;
    font-weight: 1000;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--accent-day);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-weight: 400;
}

.hero-short-desc {
    font-size: 1.1rem;
    color: var(--text-day);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-image-container {
    flex: 0 0 40%;
    max-width: 32rem;
    transform: translateY(-20px);
}

.hero-img-floating {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/5;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    display: block;
    
    /* Efecto Frosted Frame (Marco Esmerilado) */
    padding: 1.2rem;
    background: rgba(253, 247, 240, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(253, 247, 240, 0.4);
    box-sizing: border-box;
}

/* Status Badge */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(0,0,0,0.2);
    border-radius: 2rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-day);
}

.pulse-icon {
    width: 0.625rem;
    height: 0.625rem;
    background-color: var(--accent-night);
    border-radius: 50%;
    position: relative;
}

.pulse-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: var(--accent-night);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(2.5); opacity: 0; }
    100% { transform: scale(0.95); opacity: 0; }
}

/* --- FONDOS Y TRANSICIÓN --- */
.theme-transition-wrapper {
    background: transparent;
}

/* --- ZONA CLARA (Hero, Sobre mí, Título Trayectoria) --- */
body .hero-section h1,
body .hero-section .hero-subtitle,
body .about-signature,
body .header-nav a:hover {
    color: var(--accent-day);
}

body .about-section h2,
body .experience-section .section-title,
body .main-header .logo-text {
    color: var(--text-day);
}

body .hero-section .hero-short-desc,
body .status-badge {
    color: var(--text-secondary);
}

/* Botón Contactar en Hero */
body .hero-section .btn-cta {
    border: 1px solid var(--accent-day);
    color: var(--accent-day);
    background-color: transparent;
}

body .hero-section .btn-cta:hover {
    background-color: var(--accent-day);
    color: var(--bg-day);
}

/* --- ZONA OSCURA (Trayectoria Items, Habilidades, Contacto, Footer) --- */

/* Títulos (Crema puro) */
body .night-zone h1, 
body .night-zone h2, 
body .night-zone h3,
body .night-zone .section-title, 
body .night-zone .exp-title {
    color: var(--text-night);
}

/* Párrafos y Etiquetas (Crema suavizado) */
body .night-zone p, 
body .night-zone label, 
body .night-zone span, 
body .night-zone li,
body .night-zone .footer-copy p,
body .night-zone .about-signature {
    color: rgba(253, 247, 240, 0.85);
}

/* Acentos (Terracota) */
body .night-zone .exp-dates, 
body .night-zone .date-text,
body .night-zone .info-icon,
body .night-zone .icon-circle {
    color: var(--accent-night);
}

/* Botones Principales */
body .night-zone .btn-cta, 
body .night-zone .btn-send, 
body .night-zone .btn-cv {
    background-color: var(--text-night);
    color: var(--bg-night);
    border: none;
    font-weight: 600;
    border-radius: 4px;
}

body .night-zone .btn-cta:hover, 
body .night-zone .btn-send:hover, 
body .night-zone .btn-cv:hover {
    background-color: var(--accent-night);
    color: var(--text-night);
    transform: translateY(-3px);
}

/* Otros Elementos */
body .night-zone .btn-copy-secondary {
    border: 1px solid var(--accent-night);
    color: var(--accent-night);
    background: transparent;
}

body .night-zone .info-block {
    background: rgba(253, 247, 240, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    border: 1px solid rgba(253, 247, 240, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

body .night-zone .form-group input, 
body .night-zone .form-group textarea {
    border-bottom: 1px solid var(--accent-night);
    color: var(--text-night);
    background: transparent;
}

body .night-zone .form-group input::placeholder, 
body .night-zone .form-group textarea::placeholder {
    color: rgba(239, 233, 225, 0.4);
}

body .night-zone.main-footer,
body footer.night-zone {
    border-top: 1px solid rgba(214, 163, 143, 0.3);
}

body .night-zone .social-icon .icon-circle {
    border-color: #D6A38F;
    color: #D6A38F;
}

body .night-zone .social-icon:hover .icon-circle {
    background-color: #D6A38F;
    color: #2A161A;
}

/* About Section (Manifesto) */
.about-section { padding: 6rem 0; }

.manifesto-container {
    max-width: 55rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.manifesto-text {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.6;
    color: var(--text-night);
    text-align: left;
    margin-bottom: 2rem;
}

.about-signature {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 2.5rem;
    color: var(--accent-day);
    text-align: right;
    margin-top: 2rem;
}

/* Experience Section */
.experience-section { padding: 4rem 0 8rem 0; }

.section-title { font-size: var(--size-h2); text-align: center; margin-bottom: 4rem; }

.exp-row {
    position: relative;
    padding: 3.5rem 0; /* Contenedor más corto en Y */
}

.parallax-wrapper { 
    position: relative; 
    overflow: hidden; 
}

.parallax-bg {
    position: absolute;
    top: -30%; left: 0; width: 100%; height: 160%;
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    filter: grayscale(100%); /* Imagen siempre en blanco y negro */
    scale: 1;
    transition: filter 0.6s ease, opacity 0.6s ease, scale 0.6s ease;
    will-change: transform, scale;
}

.parallax-wrapper:hover .parallax-bg {
    filter: grayscale(100%); /* Mantiene el blanco y negro */
    opacity: 0.35; /* Menos transparente al hacer hover */
    scale: 1.05; /* Leve zoom in de la imagen */
}

.escenario-contenido { position: relative; z-index: 10; }

.exp-content-wrapper {
    width: 60%;
    margin-left: auto;
}

.exp-title { font-size: 2.2rem; margin-bottom: 0.5rem; }

.exp-dates {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

/* Skills */
.skills-section { padding: 2.5rem 0; overflow: hidden; text-align: center; } /* Sección más corta en Y */

.skills-static-container { width: 100%; max-width: 65rem; margin: 0 auto; }

.skills-list {
    display: inline-block;
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 2vw, 1.6rem); /* Fuente aún más pequeña */
    line-height: 1.8;
    color: var(--text-night);
}

.skill-item {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: default;
    transform-origin: center;
}

.skill-item:hover {
    transform: scale(1.2); /* Crece gráficamente sin romper la línea */
}

.skill-separator {
    display: inline-block;
    color: var(--accent-night);
    opacity: 0.3;
    margin: 0 1.8rem; /* Espacio extra reservado para que la palabra pueda crecer sin pisar */
    font-size: 0.8em;
    vertical-align: middle;
}

/* Contact Section */
.contact-section { padding: 8rem 0; }

.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 5rem; }

.contact-form-container {
    background: rgba(253, 247, 240, 0.08); /* Leve color vino con transparencia */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid rgba(253, 247, 240, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.form-row { display: flex; gap: 2rem; }
.form-row .form-group { flex: 1; }

.form-group { margin-bottom: 2rem; display: flex; flex-direction: column; gap: 0.5rem; }

.form-group label { font-weight: 700; font-size: 0.9rem; text-transform: uppercase; }

.form-group input, .form-group textarea {
    padding: 0.8rem 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1.1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent);
}

.contact-info { display: flex; flex-direction: column; gap: 2rem; justify-content: center; }

.info-block {
    padding: 2.5rem;
    border: 1px solid var(--accent);
    border-radius: 1rem;
    width: 100%;
}

.info-block h3 { font-size: 1.3rem; margin-bottom: 1.5rem; }

.info-content, .info-content-stack { display: flex; align-items: center; gap: 1.5rem; }
.info-content-stack { flex-wrap: wrap; }

.info-icon, .icon-circle {
    width: 3rem; height: 3rem;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--accent);
    border-radius: 50%;
    font-weight: 700;
    color: var(--accent);
}

.info-link, .info-address { font-weight: 700; text-decoration: none; color: var(--text-primary); }
.info-address { overflow-wrap: anywhere; word-break: break-word; }

/* Buttons */
.btn-cta, .btn-send, .btn-cv, .btn-copy-secondary {
    display: inline-block;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-cta:hover, .btn-send:hover, .btn-cv:hover, .btn-copy-secondary:hover {
    background: var(--accent);
    color: var(--bg-night);
    transform: translateY(-3px);
}

/* Cuando el formulario tiene la clase 'intentado', los campos vacíos obligatorios se pintan */
.contact-form.intentado input:invalid,
.contact-form.intentado textarea:invalid {
    border-color: #ff4a4a !important;
    background-color: rgba(255, 74, 74, 0.05);
}

/* Opcional: una transición suave para que no sea un golpe a la vista */
.contact-form input, .contact-form textarea {
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

/* Footer Refactor */
.main-footer {
    padding: 3rem 0 6rem 0; /* Menos alto general, manteniendo el margen inferior para el reproductor */
    border-top: 1px solid rgba(214, 163, 143, 0.2);
}

.footer-content {
    display: flex;
    flex-direction: row; /* Distribuido horizontalmente */
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.footer-booking-text {
    flex: 1; /* Ocupa un tercio del espacio */
    font-family: var(--font-heading);
    font-size: 1.3rem; /* Tamaño más moderado */
    color: var(--text-night);
    font-style: italic;
    font-weight: 400;
    line-height: 1.3;
    text-align: left;
}

.footer-social { 
    flex: 1; /* Ocupa el centro */
    display: flex; 
    gap: 1.5rem; 
    align-items: center; 
    justify-content: center;
}

.footer-copy { 
    flex: 1; /* Ocupa la derecha */
    text-align: right;
    opacity: 0.6;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.social-icon { transition: transform 0.3s ease; display: inline-block; }
.social-icon:hover { transform: translateY(-3px); }
.social-icon svg { transition: stroke 0.3s ease; }
body .night-zone .social-icon:hover svg { stroke: #2A161A; }

/* Floating Spotify Integration */
#floating-spotify-container {
    position: fixed;
    bottom: 2rem; 
    right: 2rem;
    z-index: 2000;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}

.spotify-tooltip {
    position: absolute;
    bottom: calc(100% + 1.5rem);
    right: 0;
    width: max-content;
    background: rgba(93, 42, 55, 0.85); /* Vino theme */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-day);
    padding: 0.8rem 1.2rem;
    border-radius: 20px;
    border: 1px solid rgba(253, 247, 240, 0.2);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    transform-origin: bottom right;
}

.spotify-tooltip.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.spotify-tooltip button {
    background: transparent;
    border: none;
    color: var(--text-day);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.spotify-tooltip button:hover {
    opacity: 1;
}

.spotify-popover {
    position: absolute;
    bottom: calc(100% + 1.5rem);
    right: 0;
    background: rgba(93, 42, 55, 0.4); /* Vino oscuro glass */
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(253, 247, 240, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 16px;
    padding: 0.5rem;
    width: calc(100vw - 4rem);
    max-width: 350px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), inset 0 0 15px rgba(255, 255, 255, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
    transform-origin: bottom right;
}

.spotify-popover.show {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.floating-btn {
    background: rgba(255, 255, 255, 0.05); /* Cristal puro */
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    border-left: 1px solid rgba(255, 255, 255, 0.4);
    padding: 0.8rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    max-width: 55px;
    transition: all 0.4s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
    color: var(--text-night);
}

.floating-btn:hover, .floating-btn.active {
    max-width: 350px; 
    padding: 0.8rem 1.5rem;
}

.icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.icon-close.hidden, .icon-play.hidden {
    display: none;
}

.floating-btn .track-info {
    opacity: 0;
    margin-left: 0;
    white-space: nowrap;
    transition: all 0.3s ease;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.floating-btn:hover .track-info, .floating-btn.active .track-info {
    opacity: 1;
    margin-left: 1rem;
}

/* Responsive - Prevención de Overflow global */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* Laptops y Pantallas Medianas (max-width: 1200px) */
@media (max-width: 1200px) {
    .contact-grid { gap: 2.5rem; }
}

/* Tablets (max-width: 1024px) */
@media (max-width: 1024px) {
    .hero-section { flex-direction: column; text-align: center; padding: 4rem 1.5rem; }
    .hero-text-container { max-width: 100%; order: 1; }
    .hero-image-container { width: 90%; max-width: 28rem; order: 2; transform: translateY(0); margin-top: 3rem; }
    
    /* Contacto en 1 columna al 100% */
    .contact-grid { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .contact-form-container { width: 100%; box-sizing: border-box; }
    .info-block { width: 100%; box-sizing: border-box; }
    .info-content, .info-content-stack { justify-content: center; }
    
    .exp-content-wrapper { width: 100%; text-align: center; margin-left: 0; }
    .footer-content { flex-direction: column; justify-content: center; padding-right: 0; gap: 2rem; text-align: center; }
    .footer-booking-text { text-align: center; }
    .footer-copy { text-align: center; }
}

/* Móviles (max-width: 768px) */
@media (max-width: 768px) {
    /* Ajustes generales de tamaño */
    :root {
        --size-h1: 3rem;
        --size-h2: 2rem;
        --size-h3: 1.5rem;
    }
    
    /* Header y Menú Hamburguesa */
    .main-header { position: fixed; top: 0; width: 100%; border-radius: 0; height: 60px; padding: 10px 20px; flex-direction: row; justify-content: space-between; border: none; border-bottom: 1px solid rgba(253, 247, 240, 0.15); }
    .logo-text { font-size: 1.3rem; }
    
    .hamburger-btn { display: block; background: transparent; border: none; color: var(--text-day); cursor: pointer; z-index: 1001; }
    .hamburger-btn svg { width: 28px; height: 28px; }
    .hamburger-btn .hidden { display: none; }
    
    .header-nav { position: fixed; top: 60px; left: 0; width: 100%; height: auto; background: rgba(48, 20, 29, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 2rem 0; transform: translateY(-150%); transition: transform 0.4s ease; z-index: 999; box-shadow: 0 10px 30px rgba(0,0,0,0.5); opacity: 0; pointer-events: none; }
    .header-nav.nav-active { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .header-nav ul { flex-direction: column; align-items: center; margin-top: 0; gap: 2rem; }
    .header-nav a { font-size: 1.2rem; }
    
    /* Ajustes de paddings y fuentes */
    .hero-section { margin-top: 7rem; padding: 2rem 1rem; }
    .hero-img-floating { padding: 10px; }
    .hero-short-desc { font-size: 1rem; }
    .status-badge { font-size: 0.85rem; padding: 0.6rem 1rem; flex-direction: column; text-align: center; gap: 0.5rem; }
    
    .about-section { padding: 4rem 0; }
    .manifesto-container { padding: 0 20px; }
    .manifesto-text { font-size: 1.2rem; }
    .about-signature { font-size: 2rem; text-align: center; }
    
    .experience-section { padding: 3rem 0; }
    .exp-title { font-size: 1.8rem; }
    .exp-desc { font-size: 0.95rem; }
    
    /* Oficio: Lista vertical limpia y sin separadores */
    .skills-section { padding: 2rem 0; }
    .skills-section p { font-size: 1rem !important; }
    .skill-item { display: block; margin-bottom: 8px; }
    .skill-separator { display: none; }
    
    /* Formulario de contacto */
    .contact-section { padding: 4rem 0; }
    .contact-form-container { padding: 2rem 1.5rem; }
    .form-row { flex-direction: column; gap: 0; }
    
    /* Reproductor flotante responsivo */
    .spotify-popover { width: calc(100vw - 2rem); max-width: none; }
    .spotify-tooltip { font-size: 0.8rem; padding: 0.6rem 1rem; }
}

/* Pantallas muy pequeñas tipo iPhone SE (max-width: 400px) */
@media (max-width: 400px) {
    /* Header: apilar links para que no desborden */
    .main-header { padding: 8px 10px; }
    .header-nav ul { flex-direction: column; align-items: center; gap: 0.4rem; }
    .header-nav a { font-size: 0.7rem; }
    
    /* Contacto: apilar elementos y evitar overflow de textos largos (correo) */
    .info-content-stack { flex-direction: column; text-align: center; gap: 1rem; }
    .info-address { word-break: break-all; }
    
    /* Asegurar anchos y márgenes seguros */
    .contact-form-container, .info-block { width: 100%; box-sizing: border-box; padding: 1.5rem 1rem; }
    
    /* Footer: ajustar tamaños y espacios para evitar desbordes */
    .footer-content { gap: 1.2rem; padding: 0 1rem; }
    .footer-booking-text { font-size: 1rem; padding: 0 1rem; }
    .footer-copy { font-size: 0.75rem; }
}