/* ==========================================================================
   EL SALSEO - INTRO STYLE & PRE-LOADER (ESTILO ANFIBIO PREMIUM)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;600;700&family=Outfit:wght@300;400;600;800&family=Syne:wght@700;800&display=swap');

:root {
    /* Paleta de Colores de Marca */
    --color-primary: #cb151a;      /* Rojo Picante */
    --color-secondary: #ffe7aa;    /* Crema Suave */
    --color-bg-dark: #121214;      /* Negro Profundo */
    --color-bg-light: #faf6ee;     /* Crema de Fondo Claro */
    
    /* ConfiguraciÃ³n de Transiciones */
    --transition-fast: 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-normal: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Fuentes */
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-accent: 'Fredoka', sans-serif;
}

/* Reset de Estilos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    overflow-x: hidden;
    background-color: var(--color-bg-dark);
    font-family: var(--font-body);
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   TRANSITION PAGE LOADER
   -------------------------------------------------------------------------- */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121214;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-frog-wrapper {
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-frog {
    width: 85px;
    height: auto;
    animation: loaderJump 0.8s ease-in-out infinite alternate;
}

.loader-text-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.rotating-loader-svg {
    width: 100%;
    height: 100%;
    animation: spinClockwise 8s linear infinite;
}

.loader-text-path {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 2px;
    fill: var(--color-primary);
}

@keyframes loaderJump {
    0% { transform: translateY(15px) scaleY(0.85) scaleX(1.1); }
    30% { transform: translateY(15px) scaleY(0.9) scaleX(1.05); }
    100% { transform: translateY(-30px) scaleY(1.1) scaleX(0.95); }
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   ESTRUCTURA DE INTRO (APLASTA AL SAPO)
   -------------------------------------------------------------------------- */
.intro-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    z-index: 10;
    transition: opacity 0.8s ease;
}

.intro-container.fade-out {
    opacity: 0;
    pointer-events: none;
}

/* Degradado en Movimiento Continuo (Rojo/Crema Ã³ptimo contraste) */
.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #260305 0%, #cb151a 35%, #560a0d 70%, #ffe7aa 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    z-index: 1;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 95%;
    max-width: 800px;
}

.intro-brand {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 800;
    color: var(--color-primary);
    letter-spacing: -1px;
    margin-bottom: 2rem;
    white-space: nowrap;
    user-select: none;
}

/* Contenedor del Sapo y Texto Circular */
.sapo-interactive-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.circular-text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

#rotating-svg {
    width: 100%;
    height: 100%;
    animation: spinClockwise 16s linear infinite;
}

.rotating-text-path {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: 3.2px;
    fill: var(--color-primary);
}

/* CÃ­rculo Clicker del Sapo */
.sapo-clicker {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 231, 170, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 231, 170, 0.2);
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 3;
}

.sapo-avatar {
    width: 145px;
    height: auto;
    user-select: none;
    pointer-events: none;
    transition: transform var(--transition-fast);
}

.floating {
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(-7px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(-7px) rotate(0deg); }
}

.sapo-clicker:hover {
    transform: scale(1.05);
    background: rgba(255, 231, 170, 0.25);
    box-shadow: 0 15px 40px rgba(203, 21, 26, 0.25), inset 0 0 20px rgba(255, 231, 170, 0.3);
}

.sapo-clicker:active {
    transform: scale(0.92);
}

/* Indicadores de progreso e instrucciones */
.intro-instructions {
    width: 100%;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

#tap-hint {
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-secondary);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(4px);
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.2);
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #ffe7aa, #cb151a);
    border-radius: 20px;
    transition: width 0.2s ease-out;
}

.click-counter {
    font-family: var(--font-accent);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-secondary);
    background: rgba(0, 0, 0, 0.3);
    padding: 6px 16px;
    border-radius: 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-transform: uppercase;
}

/* PartÃ­culas del Splat */
.particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    z-index: 100;
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.3, 1), opacity 0.6s ease-out;
}

/* Sacudida de la pantalla al explotar */
@keyframes shakeSplatted {
    0% { transform: translate(3px, 1px) rotate(0deg); }
    10% { transform: translate(-1px, -2px) rotate(-1deg); }
    20% { transform: translate(-3px, 0px) rotate(1deg); }
    30% { transform: translate(0px, 2px) rotate(0deg); }
    40% { transform: translate(1px, -1px) rotate(1deg); }
    50% { transform: translate(-1px, 2px) rotate(-1deg); }
    60% { transform: translate(-3px, 1px) rotate(0deg); }
    70% { transform: translate(2px, 1px) rotate(-1deg); }
    80% { transform: translate(-1px, -1px) rotate(1deg); }
    90% { transform: translate(2px, 2px) rotate(0deg); }
    100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .intro-brand {
        font-size: 2.6rem;
    }
    
    .sapo-interactive-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .sapo-clicker {
        width: 155px;
        height: 155px;
    }
    
    .sapo-avatar {
        width: 118px;
    }
    
    .rotating-text-path {
        font-size: 13.5px;
        letter-spacing: 2.8px;
    }
}
/* ==========================================================================
   EL SALSEO - NEO-BRUTALIST PREMIUM DESIGN SYSTEM (REDISEÃ‘O MÃNIMO Y DISRUPTIVO)
   Inspired by ToyFight & Flim split architecture
   Colors: Rojo (#cb151a), Crema (#ffe7aa), Charcoal (#121214), Light (#FAF6EE)
   ========================================================================== */

:root {
    --color-primary: #cb151a;      /* Spicy Red */
    --color-secondary: #ffe7aa;    /* Butter Cream */
    --color-bg-dark: #121214;      /* Obsidian Black */
    --color-bg-light: #FAF6EE;     /* Warm off-white */
    
    --color-text-dark: #121214;
    --color-text-light: #FAF6EE;
    --color-card-dark: rgba(30, 30, 36, 0.65);
    --color-card-light: rgba(255, 255, 255, 0.65);
    
    /* Theme variables - Premium Glassmorphism */
    --theme-bg: var(--color-bg-dark);
    --theme-text: var(--color-text-light);
    --theme-card: var(--color-card-dark);
    --theme-border: rgba(255, 255, 255, 0.08);
    --theme-shadow: rgba(0, 0, 0, 0.25);
    --theme-contrast: rgba(255, 255, 255, 0.15);
    
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-accent: 'Fredoka', sans-serif;
    
    --transition-fast: 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-normal: 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Light Theme overrides */
body.light-theme {
    --theme-bg: var(--color-bg-light);
    --theme-text: var(--color-text-dark);
    --theme-card: var(--color-card-light);
    --theme-border: rgba(18, 18, 20, 0.08);
    --theme-shadow: rgba(0, 0, 0, 0.08);
    --theme-contrast: rgba(18, 18, 20, 0.1);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--theme-bg);
    color: var(--theme-text);
    overflow-x: hidden;
    transition: background-color var(--transition-normal), color var(--transition-normal);
}

/* Elegant Soft Glowing Backgrounds */
.grid-lines {
    background-image: radial-gradient(circle at 10% 20%, rgba(203, 21, 26, 0.05) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 231, 170, 0.03) 0%, transparent 40%);
}

body.light-theme .grid-lines {
    background-image: radial-gradient(circle at 10% 20%, rgba(203, 21, 26, 0.03) 0%, transparent 40%),
                      radial-gradient(circle at 90% 80%, rgba(255, 231, 170, 0.04) 0%, transparent 40%);
}

a {
    color: inherit;
    text-decoration: none;
}

button, input, textarea {
    font-family: inherit;
}

/* Helper Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.accent {
    color: var(--color-primary);
}

.hidden {
    display: none !important;
}

/* --------------------------------------------------------------------------
   PANTALLA DE CARGA DINÃMICA (TRANSITION LOADER)
   -------------------------------------------------------------------------- */

.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #121214;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    pointer-events: all;
    transition: opacity 0.5s ease;
}

.page-loader.fade-out {
    opacity: 0;
    pointer-events: none;
}

.loader-content {
    position: relative;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-frog-wrapper {
    position: absolute;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-frog {
    width: 85px;
    height: auto;
    animation: loaderJump 0.8s ease-in-out infinite alternate;
}

.loader-text-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 5;
}

.rotating-loader-svg {
    width: 100%;
    height: 100%;
    animation: spinClockwise 8s linear infinite;
}

.loader-text-path {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: 2px;
    fill: var(--color-primary);
}

@keyframes loaderJump {
    0% { transform: translateY(15px) scaleY(0.85) scaleX(1.1); }
    30% { transform: translateY(15px) scaleY(0.9) scaleX(1.05); }
    100% { transform: translateY(-30px) scaleY(1.1) scaleX(0.95); }
}

@keyframes spinClockwise {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* --------------------------------------------------------------------------
   PANTALLA 1: INTRO INTERACTIVA
   -------------------------------------------------------------------------- */

.intro-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden;
    user-select: none;
}

.gradient-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #121214 0%, #3a0608 50%, #121214 100%);
    background-size: 300% 300%;
    animation: moveGradient 8s ease infinite;
    z-index: 1;
}

@keyframes moveGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.intro-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 95%;
    max-width: 800px; /* Permitimos mÃ¡s ancho para que quepa todo el texto de largo */
}

.intro-brand {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 4.5rem); /* TamaÃ±o responsivo y fluido */
    font-weight: 800;
    color: var(--color-primary); /* Cambiado a rojo picante para excelente contraste */
    letter-spacing: -1px;
    margin-bottom: 2rem;
    white-space: nowrap; /* Evita que se divida en múltiples líneas */
}

.sapo-interactive-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2.5rem;
}

.circular-text-container {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    animation: spinCircle 15s linear infinite;
    transform-origin: center;
}

@keyframes spinCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotating-text-path {
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: 3.2px;
    fill: var(--color-primary); /* Cambiado a rojo picante para contraste Ã³ptimo */
}

.sapo-clicker {
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255, 231, 170, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 15px rgba(255, 231, 170, 0.2);
    transition: transform var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
    z-index: 3;
}

.sapo-avatar {
    width: 145px;
    height: auto;
    user-select: none;
    pointer-events: none;
    transition: transform var(--transition-fast);
}

.floating {
    animation: floatAnimation 3s ease-in-out infinite;
}

@keyframes floatAnimation {
    0% { transform: translateY(-7px) rotate(0deg); } /* Desplazamos la base hacia arriba para centrar visualmente */
    50% { transform: translateY(-15px) rotate(2deg); }
    100% { transform: translateY(-7px) rotate(0deg); }
}

.sapo-clicker:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2), inset 0 0 20px rgba(255, 231, 170, 0.35);
    background: rgba(255, 231, 170, 0.25);
}

.sapo-clicker:active {
    transform: scale(0.95) translateY(2px);
}

.sapo-clicker.tap-animate, .hero-sapo-img.tap-animate {
    animation: squishEffect 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes squishEffect {
    0% { transform: scale(1); }
    30% { transform: scale(1.15, 0.8) translateY(10px); }
    60% { transform: scale(0.85, 1.1) translateY(-5px); }
    100% { transform: scale(1); }
}

.intro-instructions {
    pointer-events: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#tap-hint {
    font-family: var(--font-accent);
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffe7aa;
    background: rgba(18, 18, 20, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    padding: 0.5rem 1.5rem;
    border-radius: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    margin-bottom: 1.2rem;
    display: inline-block;
    letter-spacing: 0.5px;
}

.progress-bar-container {
    width: 80%;
    max-width: 320px;
    height: 12px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 0 auto 1rem;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #cb151a, #ffe7aa);
    border-radius: 30px;
    transition: width 0.3s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.click-counter {
    font-size: 0.95rem;
    font-weight: 700;
    color: #ffe7aa;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    pointer-events: none;
    border: 2px solid #121214;
    border-radius: 50%;
    z-index: 99;
    animation: particleFly 0.6s cubic-bezier(0.1, 0.8, 0.1, 1) forwards;
}

@keyframes particleFly {
    to {
        transform: translate(var(--dx), var(--dy)) scale(0);
        opacity: 0;
    }
}

.intro-container.fade-out {
    animation: slideUpOut 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes slideUpOut {
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* --------------------------------------------------------------------------
   PORTAFOLIO CONTAINER
   -------------------------------------------------------------------------- */

.portfolio-container {
    opacity: 0;
    animation: fadeInPortfolio 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInPortfolio {
    to { opacity: 1; }
}

/* --------------------------------------------------------------------------
   HEADER & NAVBAR (NEO-BRUTALIST)
   -------------------------------------------------------------------------- */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 900;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(18, 18, 20, 0.8);
    backdrop-filter: blur(16px);
    transition: background-color var(--transition-normal), border-color var(--transition-normal);
}

body.light-theme .main-header {
    border-bottom: 1px solid rgba(18, 18, 20, 0.08);
    background: rgba(250, 246, 238, 0.8);
}

.header-inner {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.logo-sapo {
    width: 42px;
    height: auto;
    border: none;
    border-radius: 0;
    background: none;
    padding: 0;
    transition: transform var(--transition-fast);
}

.logo-area:hover .logo-sapo {
    transform: rotate(360deg) scale(1.1);
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.45rem;
    letter-spacing: -0.5px;
    color: var(--theme-text);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 30px;
    color: var(--theme-text);
    transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 231, 170, 0.15);
    color: var(--color-secondary);
}

body.light-theme .nav-link:hover, body.light-theme .nav-link.active {
    background: rgba(203, 21, 26, 0.1);
    color: var(--color-primary);
}

.contact-btn {
    background: linear-gradient(135deg, #cb151a, #e03b3f);
    color: white !important;
    border: none;
    box-shadow: 0 4px 15px rgba(203, 21, 26, 0.3);
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(203, 21, 26, 0.45);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-btn, .audio-btn, .mobile-menu-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    color: var(--theme-text);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
    transition: all var(--transition-fast);
}

body.light-theme .theme-btn, body.light-theme .audio-btn, body.light-theme .mobile-menu-btn {
    background: rgba(18, 18, 20, 0.05);
    border-color: rgba(18, 18, 20, 0.08);
}

.theme-btn:hover, .audio-btn:hover, .mobile-menu-btn:hover {
    transform: scale(1.05);
    background: rgba(255, 231, 170, 0.15);
    color: var(--color-secondary);
}

body.light-theme .theme-btn:hover, body.light-theme .audio-btn:hover, body.light-theme .mobile-menu-btn:hover {
    background: rgba(203, 21, 26, 0.1);
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
}

/* --------------------------------------------------------------------------
   SECCIONES GENERALES (NEO-BRUTALIST)
   -------------------------------------------------------------------------- */

section {
    padding: 120px 0 100px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body.light-theme section {
    border-bottom: 1px solid rgba(18, 18, 20, 0.05);
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--theme-text);
    opacity: 0.7;
}

/* --------------------------------------------------------------------------
   SECCIÃ“N 1: HERO
   -------------------------------------------------------------------------- */

.hero-section {
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.badge {
    font-family: var(--font-accent);
    background: rgba(255, 231, 170, 0.1);
    color: var(--color-secondary);
    border: 1px solid rgba(255, 231, 170, 0.25);
    padding: 6px 16px;
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 25px;
    border-radius: 50px;
    text-transform: uppercase;
    width: fit-content;
    backdrop-filter: blur(8px);
}

body.light-theme .badge {
    background: rgba(203, 21, 26, 0.08);
    color: var(--color-primary);
    border-color: rgba(203, 21, 26, 0.2);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -2px;
    margin-bottom: 25px;
    text-transform: uppercase;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), #ff7a7d);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.6;
    margin-bottom: 35px;
    max-width: 550px;
    opacity: 0.85;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

/* Elegant Glass-Gradient Buttons */
.btn {
    font-family: var(--font-body);
    font-weight: 700;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all var(--transition-fast);
}

.btn-primary {
    background: linear-gradient(135deg, #cb151a, #e03b3f);
    color: white;
    box-shadow: 0 6px 20px rgba(203, 21, 26, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 25px rgba(203, 21, 26, 0.45);
}

.btn-primary:active {
    transform: translateY(1px);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--theme-text);
    backdrop-filter: blur(8px);
}

body.light-theme .btn-secondary {
    background: rgba(18, 18, 20, 0.04);
    border-color: rgba(18, 18, 20, 0.08);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.02);
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--color-secondary);
    color: var(--color-secondary);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body.light-theme .btn-secondary:hover {
    background: rgba(203, 21, 26, 0.06);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Sapo Card Hero (Glassmorphism) */
.sapo-card {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    backdrop-filter: blur(16px);
    box-shadow: 0 15px 35px var(--theme-shadow);
    padding: 35px 30px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.sapo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(203, 21, 26, 0.12);
}

.sapo-card-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-sapo-img {
    display: block;
    margin: 0 auto 25px;
    width: 170px;
    height: auto;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.pulse-slow {
    animation: pulseSapo 4s infinite alternate;
}

@keyframes pulseSapo {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.03) translateY(-5px); }
}

.hero-sapo-img:hover {
    transform: scale(1.05) rotate(3deg);
}

.hero-sapo-img:active {
    transform: scale(0.9) rotate(-3deg);
}

.sapo-card-info {
    width: 100%;
    text-align: center;
}

.sapo-card-info h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.sapo-card-info p {
    font-size: 0.9rem;
    margin-bottom: 15px;
    opacity: 0.75;
}

.sapo-health-bar {
    width: 100%;
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 12px;
    border-radius: 30px;
}

body.light-theme .sapo-health-bar {
    background: rgba(18, 18, 20, 0.06);
    border-color: rgba(18, 18, 20, 0.05);
}

.health-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary), #ff7a7d);
    border-radius: 30px;
    transition: width 0.3s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.tap-counter-badge {
    display: inline-block;
    background: rgba(255, 231, 170, 0.1);
    border: 1px solid rgba(255, 231, 170, 0.25);
    color: var(--color-secondary);
    font-family: var(--font-accent);
    padding: 4px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 20px;
    backdrop-filter: blur(8px);
}

body.light-theme .tap-counter-badge {
    background: rgba(203, 21, 26, 0.08);
    border-color: rgba(203, 21, 26, 0.25);
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   SECCIÃ“N 2: SOBRE MÃ
   -------------------------------------------------------------------------- */

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
}

.about-info-card, .about-photo-card {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    backdrop-filter: blur(16px);
    padding: 45px;
    border-radius: 24px;
    box-shadow: 0 15px 35px var(--theme-shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.about-info-card:hover, .about-photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 45px rgba(203, 21, 26, 0.08);
}

.portrait-frame {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    margin: 0 auto 30px;
    max-width: 300px;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

body.light-theme .portrait-frame {
    border-color: rgba(18, 18, 20, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portrait-frame:hover .portrait-img {
    transform: scale(1.05);
}

.skills-mini-list {
    width: 100%;
}

.skills-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.skills-tags span {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 14px;
    border: 1px solid rgba(255, 231, 170, 0.25);
    background: rgba(255, 231, 170, 0.1);
    color: var(--color-secondary);
    border-radius: 30px;
    text-transform: uppercase;
}

body.light-theme .skills-tags span {
    background: rgba(203, 21, 26, 0.08);
    border-color: rgba(203, 21, 26, 0.2);
    color: var(--color-primary);
}

.info-icon {
    font-size: 2.2rem;
    color: var(--color-primary);
    margin-bottom: 20px;
}

.about-info-card h3 {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.about-info-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.personal-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 25px;
}

body.light-theme .personal-details {
    border-top: 1px solid rgba(18, 18, 20, 0.08);
}

.detail-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.detail-label {
    opacity: 0.7;
    font-weight: 600;
}

.detail-val {
    font-weight: 800;
}

/* --------------------------------------------------------------------------
   SECCIÃ“N 3: PROYECTOS
   -------------------------------------------------------------------------- */

.portfolio-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
}

.filter-btn {
    font-family: var(--font-body);
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--theme-border);
    color: var(--theme-text);
    padding: 10px 24px;
    cursor: pointer;
    font-size: 0.95rem;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all var(--transition-fast);
}

body.light-theme .filter-btn {
    background: rgba(18, 18, 20, 0.04);
}

.filter-btn:hover, .filter-btn.active {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(203, 21, 26, 0.25);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.project-card {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    border-radius: 20px;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px var(--theme-shadow);
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(203, 21, 26, 0.12);
}

.project-img-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.light-theme .project-img-wrapper {
    border-bottom: 1px solid rgba(18, 18, 20, 0.08);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.project-card:hover .project-img {
    transform: scale(1.05);
}

.project-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(18, 18, 20, 0.6);
    color: #ffe7aa;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.75rem;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 5;
}

body.light-theme .project-tag {
    background: rgba(255, 255, 255, 0.85);
    color: var(--color-primary);
    border-color: rgba(203, 21, 26, 0.15);
}

.project-content {
    padding: 25px;
}

.project-content h3 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.project-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 20px;
    opacity: 0.8;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.project-tech-tags span {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    text-transform: uppercase;
}

body.light-theme .project-tech-tags span {
    background: rgba(18, 18, 20, 0.03);
    border-color: rgba(18, 18, 20, 0.08);
}

/* --------------------------------------------------------------------------
   NUEVA PANTALLA DE PROYECTO DETALLE SPLIT (INSPIRACIÃ“N FLIM / SIDEBAR FIJO)
   -------------------------------------------------------------------------- */

.project-detail-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    background: var(--theme-bg);
    display: grid;
    grid-template-columns: 420px 1fr;
    overflow: hidden;
}

/* Sidebar estÃ¡tico izquierdo */
.detail-sidebar {
    background: var(--color-bg-light); /* Fondo crema estÃ¡tico */
    border-right: 4px solid var(--color-bg-dark);
    height: 100vh;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: auto;
    color: var(--color-bg-dark);
    position: relative;
    z-index: 5;
}

/* BotÃ³n atrÃ¡s en el sidebar */
.detail-back-btn {
    width: 50px;
    height: 50px;
    border: 3px solid var(--color-bg-dark);
    background: var(--color-secondary);
    color: var(--color-bg-dark);
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 3px 3px 0px var(--color-bg-dark);
    margin-bottom: 30px;
    transition: all var(--transition-fast);
}

.detail-back-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 5px 5px 0px var(--color-bg-dark);
    background: var(--color-primary);
    color: white;
}

.detail-back-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--color-bg-dark);
}

.detail-sidebar-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}

.detail-project-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.8vw, 2.2rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.detail-project-subtitle {
    font-family: var(--font-accent);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
}

.detail-project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 15px 0;
}

.detail-project-tags span {
    font-size: 0.75rem;
    font-weight: 800;
    padding: 5px 10px;
    border: 2px solid var(--color-bg-dark);
    background: white;
    text-transform: uppercase;
}

.detail-project-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.detail-sidebar-footer {
    width: 100%;
}

.detail-live-btn {
    width: 100%;
    font-family: var(--font-body);
    font-weight: 800;
    padding: 15px;
    border: 3px solid var(--color-bg-dark);
    background: var(--color-primary);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--color-bg-dark);
    transition: all var(--transition-fast);
}

.detail-live-btn:hover {
    transform: translate(-3px, -3px);
    box-shadow: 7px 7px 0px var(--color-bg-dark);
}

.detail-live-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 2px 2px 0px var(--color-bg-dark);
}

/* Ãrea de contenido dinÃ¡mico derecho scrollable */
.detail-content-area {
    height: 100vh;
    overflow-y: auto;
    padding: 60px;
}

/* Visuales en la columna derecha */
.detail-visual-wrapper {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-main-img {
    width: 100%;
    height: auto;
    display: block;
    border: 4px solid var(--theme-contrast);
    box-shadow: 10px 10px 0px var(--theme-contrast);
}

.detail-video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 4px solid var(--theme-contrast);
    box-shadow: 10px 10px 0px var(--theme-contrast);
    background: black;
}

.detail-video-container iframe {
    width: 100%;
    height: 100%;
}

/* Grilla de imÃ¡genes extra */
.detail-extra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.detail-extra-img {
    width: 100%;
    height: auto;
    border: 3px solid var(--theme-contrast);
    box-shadow: 6px 6px 0px var(--theme-contrast);
}

/* Collage de imágenes y videos (¿Qué se restaura?) */
.detail-collage-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 20px;
}

.collage-item {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 3px solid var(--theme-contrast);
    box-shadow: 6px 6px 0px var(--theme-contrast);
    transition: transform 0.2s ease;
}

.collage-item:hover {
    transform: scale(1.02);
}

.collage-item.collage-img {
    aspect-ratio: 4 / 3;
}

.collage-item.collage-video {
    aspect-ratio: 16 / 9;
}

/* Estructura de collage asimétrico alternado */
.detail-collage-container .collage-item:nth-child(3n+1) {
    grid-column: span 2;
    aspect-ratio: 16 / 9;
}

/* --------------------------------------------------------------------------
   SECCIÃ“N 4: EL ANFIBIÃ“METRO
   -------------------------------------------------------------------------- */

.salseometro-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
    background: var(--theme-card);
    border: 3px solid var(--theme-contrast);
    padding: 50px;
    box-shadow: 8px 8px 0px var(--theme-contrast);
}

.badge-game {
    font-family: var(--font-accent);
    background: var(--color-secondary);
    color: #121214;
    border: 2px solid var(--theme-contrast);
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 2px 2px 0px var(--theme-contrast);
}

.game-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.game-description {
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 30px;
    opacity: 0.9;
}

.sound-board {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 35px;
}

.sound-btn {
    font-family: var(--font-body);
    font-weight: 800;
    font-size: 0.95rem;
    background: var(--theme-bg);
    border: 3px solid var(--theme-contrast);
    color: var(--theme-text);
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 3px 3px 0px var(--theme-contrast);
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.sound-btn i {
    font-size: 1.1rem;
    color: var(--color-primary);
}

.sound-btn:hover {
    transform: translate(-1px, -1px);
    box-shadow: 4px 4px 0px var(--theme-contrast);
    background: var(--color-secondary);
    color: #121214;
}

.sound-btn:active {
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0px var(--theme-contrast);
}

.meter-container {
    background: rgba(0, 0, 0, 0.15);
    border: 3px solid var(--theme-contrast);
    padding: 20px 25px;
    box-shadow: 3px 3px 0px var(--theme-contrast);
}

body.light-theme .meter-container {
    background: rgba(0, 0, 0, 0.02);
}

.meter-header {
    display: flex;
    justify-content: space-between;
    font-weight: 800;
    margin-bottom: 10px;
    font-size: 1rem;
    text-transform: uppercase;
}

.meter-bar {
    width: 100%;
    height: 16px;
    background: #121214;
    border: 2px solid var(--theme-contrast);
    overflow: hidden;
    margin-bottom: 10px;
}

.meter-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    transition: width 0.3s ease;
}

.meter-status {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.toad-interactive-playground {
    position: relative;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(255, 231, 170, 0.15) 0%, transparent 70%);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.playground-img {
    width: 180px;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 3;
}

.playground-img:hover {
    transform: scale(1.1) rotate(5deg);
}

.playground-img:active {
    transform: scale(0.9) rotate(-10deg);
}

.playground-bubble {
    position: absolute;
    top: -10px;
    background: rgba(255, 231, 170, 0.95);
    color: #121214;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-family: var(--font-accent);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border-radius: 20px;
    animation: bounceBubble 2s infinite alternate;
    pointer-events: none;
    z-index: 4;
}

.playground-bubble::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px 8px 0;
    border-style: solid;
    border-color: rgba(255, 231, 170, 0.95) transparent;
}

body.light-theme .playground-bubble::after {
    border-color: rgba(255, 231, 170, 0.95) transparent;
}

@keyframes bounceBubble {
    0% { transform: translateY(0) rotate(-2deg); }
    100% { transform: translateY(-8px) rotate(2deg); }
}

.toad-jump {
    animation: toadJumpAnim 0.4s ease;
}

@keyframes toadJumpAnim {
    0% { transform: scale(1) translateY(0); }
    50% { transform: scale(0.9, 1.2) translateY(-40px); }
    100% { transform: scale(1) translateY(0); }
}

.toad-shake {
    animation: toadShakeAnim 0.3s linear;
}

@keyframes toadShakeAnim {
    0%, 100% { transform: rotate(0); }
    20%, 60% { transform: rotate(-10deg) scale(1.1); }
    40%, 80% { transform: rotate(10deg) scale(1.1); }
}

.toad-spin {
    animation: toadSpinAnim 0.6s cubic-bezier(0.1, 0.8, 0.1, 1);
}

@keyframes toadSpinAnim {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.3) rotate(180deg); }
    100% { transform: scale(1) rotate(360deg); }
}

/* --------------------------------------------------------------------------
   SECCIÃ“N 5: CONTACTO
   -------------------------------------------------------------------------- */

.contact-card {
    background: var(--theme-card);
    border: 1px solid var(--theme-border);
    backdrop-filter: blur(16px);
    padding: 60px;
    border-radius: 24px;
    box-shadow: 0 15px 35px var(--theme-shadow);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 60px;
    align-items: center;
}

.contact-text h2 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    margin-bottom: 20px;
    line-height: 1.1;
    text-transform: uppercase;
}

.contact-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.c-link {
    display: flex;
    align-items: center;
    gap: 20px;
}

.c-link i {
    width: 48px;
    height: 48px;
    background: rgba(255, 231, 170, 0.1);
    border: 1px solid rgba(255, 231, 170, 0.25);
    color: var(--color-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    border-radius: 50%;
}

body.light-theme .c-link i {
    background: rgba(203, 21, 26, 0.08);
    border-color: rgba(203, 21, 26, 0.2);
    color: var(--color-primary);
}

.c-link h4 {
    font-size: 0.9rem;
    margin-bottom: 2px;
    opacity: 0.7;
    text-transform: uppercase;
}

.c-link a {
    font-weight: 800;
    font-size: 1.1rem;
    transition: color var(--transition-fast);
}

.c-link a:hover {
    color: var(--color-primary);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--theme-text);
    font-size: 1rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

body.light-theme .social-icons a {
    background: rgba(18, 18, 20, 0.05);
    border-color: rgba(18, 18, 20, 0.08);
}

.social-icons a:hover {
    transform: scale(1.1);
    background: rgba(255, 231, 170, 0.15);
    color: var(--color-secondary);
}

body.light-theme .social-icons a:hover {
    background: rgba(203, 21, 26, 0.1);
    color: var(--color-primary);
}

/* Elegant Modern Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    width: 100%;
}

.form-group input, .form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    color: var(--theme-text);
    font-size: 1rem;
    outline: none;
    transition: all var(--transition-fast);
}

body.light-theme .form-group input, body.light-theme .form-group textarea {
    background: rgba(18, 18, 20, 0.03);
    border-color: rgba(18, 18, 20, 0.08);
}

.form-group textarea {
    resize: none;
}

.form-group input:focus, .form-group textarea:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--color-secondary);
    box-shadow: 0 0 15px rgba(255, 231, 170, 0.15);
}

body.light-theme .form-group input:focus, body.light-theme .form-group textarea:focus {
    background: white;
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(203, 21, 26, 0.1);
}

.form-group label {
    position: absolute;
    left: 20px;
    top: 18px;
    font-weight: 600;
    pointer-events: none;
    transition: all var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.9rem;
    opacity: 0.6;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -10px;
    left: 15px;
    font-size: 0.75rem;
    font-weight: 700;
    background: var(--theme-bg);
    border: 1px solid var(--theme-border);
    color: var(--color-primary);
    padding: 2px 8px;
    border-radius: 6px;
}

body.light-theme .form-group input:focus ~ label,
body.light-theme .form-group input:not(:placeholder-shown) ~ label,
body.light-theme .form-group textarea:focus ~ label,
body.light-theme .form-group textarea:not(:placeholder-shown) ~ label {
    color: var(--color-primary);
}

.btn-submit {
    background: linear-gradient(135deg, #cb151a, #e03b3f);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(203, 21, 26, 0.3);
    transition: all var(--transition-fast);
    text-transform: uppercase;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(203, 21, 26, 0.45);
}

.btn-submit:active {
    transform: translateY(1px);
}

/* --------------------------------------------------------------------------
   FOOTER
   -------------------------------------------------------------------------- */

.main-footer {
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.9rem;
    font-weight: 700;
}

body.light-theme .main-footer {
    border-top: 1px solid rgba(18, 18, 20, 0.08);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   MENÃš MÃ“VIL OVERLAY
   -------------------------------------------------------------------------- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 20, 0.98);
    backdrop-filter: blur(16px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

body.light-theme .mobile-nav-overlay {
    background: rgba(250, 246, 238, 0.98);
}

.mobile-nav-overlay.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    position: relative;
    width: 80%;
}

.mobile-close-btn {
    position: absolute;
    top: -60px;
    right: 0;
    background: none;
    border: none;
    color: var(--theme-text);
    font-size: 2rem;
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.mobile-close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    color: var(--color-primary);
}

.mobile-nav-link {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--theme-text);
    transition: all var(--transition-fast);
}

.mobile-nav-link:hover {
    color: var(--color-primary);
    transform: scale(1.05);
}

.mobile-contact-btn {
    background: linear-gradient(135deg, #cb151a, #e03b3f);
    color: white !important;
    padding: 12px 35px;
    border-radius: 50px;
    font-size: 1.2rem;
    box-shadow: 0 6px 20px rgba(203, 21, 26, 0.3);
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .salseometro-wrapper {
        grid-template-columns: 1fr;
        padding: 40px;
    }
    
    .project-detail-view {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }
    
    .detail-sidebar {
        height: auto;
        border-right: none;
        border-bottom: 4px solid var(--color-bg-dark);
        overflow-y: visible;
        padding: 30px 20px;
    }
    
    .detail-content-area {
        height: auto;
        overflow-y: visible;
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 2.2rem;
    }
    
    section {
        padding: 80px 0 60px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }
    
    .hero-description {
        font-size: 1rem;
        margin: 0 auto 25px auto;
    }
    
    .hero-text-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .intro-brand {
        font-size: 2.4rem;
    }
    
    .sapo-interactive-wrapper {
        width: 280px;
        height: 280px;
    }
    
    .sapo-clicker {
        width: 150px;
        height: 150px;
    }
    
    .sapo-avatar {
        width: 115px;
    }
    
    .rotating-text-path {
        font-size: 13.5px;
        letter-spacing: 2.8px;
    }
    
    .contact-card, .salseometro-wrapper {
        padding: 30px 20px;
    }
    
    .about-info-card, .about-photo-card {
        padding: 30px 20px;
    }
    
    .sapo-card {
        padding: 25px 20px;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .contact-text h2 {
        font-size: 2.2rem;
    }
    
    .footer-inner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    /* Grid de proyectos responsivo */
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
    }
    
    /* Centrado del playground de anfibiómetro en tablet/móvil */
    .salseometro-canvas-area {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 20px;
    }
    
    /* Detalle de proyectos: collage y grillas extra */
    .detail-extra-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .detail-collage-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .detail-collage-container .collage-item:nth-child(3n+1) {
        grid-column: span 1;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 6px 12px;
        white-space: normal;
        max-width: 100%;
        text-align: center;
        display: inline-block;
        word-wrap: break-word;
    }
}

@media (max-width: 480px) {
    /* Ajustes específicos para smartphones estrechos */
    .logo-text {
        font-size: 1.15rem;
    }
    
    .logo-sapo {
        width: 32px;
    }
    
    .header-actions {
        gap: 6px;
    }
    
    .theme-btn, .audio-btn, .mobile-menu-btn {
        width: 38px;
        height: 38px;
        font-size: 0.9rem;
    }
    
    .hero-title {
        font-size: 1.95rem;
        letter-spacing: -0.5px;
    }
    
    .hero-description {
        font-size: 0.95rem;
    }
    
    .sound-board {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .sound-btn {
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .game-title {
        font-size: 1.8rem;
    }
    
    .contact-text h2 {
        font-size: 1.8rem;
    }
    
    .detail-sidebar h1 {
        font-size: 2rem;
    }
}
