/* Título arriba de las cards de galería */
.portfolio-digital-title {
    display: inline-block;
    font-family: 'Albert Sans', Arial, sans-serif;
    font-size: 4rem;
    font-weight: 900;
    color: #111;
    margin-bottom: 1px;
    text-align: center;
    padding-top: 40px;
}
.logo-container a,
.logo-container a:visited,
.logo-container a:active,
.logo-container a:hover,
.logo-container .instagram-handle {
    font-size: 0.7rem !important;
}
/* Forzar sin subrayado solo al texto Instagram */
.logo-container .instagram-handle {
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline-block;
}
/* SUBTÍTULO ESTÁTICO INICIO */
.main-subtitle-static {
    display: block;
    font-family: 'Albert Sans', 'Arial', sans-serif;
    font-size: 1.3rem;
    font-weight: 200;
    color: #fff;
    text-align: center;
    margin-bottom: 1.7em;
    margin-top: -1.2em;
    text-shadow: 0 2px 12px rgba(0,0,0,0.13);
    z-index: 10;
    position: relative;
    pointer-events: none;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .main-subtitle-static {
        font-size: 1rem;
        margin-bottom: 0.7em;
    }
}
/* TÍTULO ESTÁTICO INICIO */
.main-title-static {
    display: block;
    font-family: 'Albert Sans', 'Arial', sans-serif;
    font-size: 6rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    color: #fff;
    text-align: center;
    margin-bottom: 0.2em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.18);
    z-index: 10;
    position: relative;
    pointer-events: none;
    opacity: 1 !important;
}

@media (max-width: 768px) {
    .main-title-static {
        font-size: 2rem;
        margin-bottom: 0.1em;
    }
}

/* LOGO FIJO Y CENTRADO */
.logo-container {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    opacity: 1 !important;
    pointer-events: auto;
    transition: transform 0.3s;
}
.logo-container a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc !important; /* Gris claro */
    text-decoration: none !important;
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 400;
    transition: color 0.3s;
}
.logo-container a:hover {
    color: #ccc;
}
.logo-container:hover {
    /* Sin efecto de escala en hover */
    transform: translateX(-50%);
}
.site-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: grayscale(1) brightness(0.8);
    opacity: 0.85;
    transition: opacity 0.3s, filter 0.3s;
}
.site-logo:hover {
    opacity: 1;
    filter: grayscale(1) brightness(0.8) drop-shadow(0 0 10px #ccc8);
}
.logo-container .instagram-handle {
    text-decoration: none !important;
    border-bottom: none !important;
    display: inline-block;
}
@media (max-width: 768px) {
    .logo-container {
        top: 20px;
    }
    .site-logo {
        width: 28px;
        height: 28px;
    }
}
/* (Fragmento eliminado por error de sintaxis. Si alguna regla era necesaria, reubicarla en el selector correcto.) */
/* ============================================
   LOGO
   ============================================ */

.logo-container {
    position: fixed;
    top: 35px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    z-index: 0;
    transition: transform 0.3s ease;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.logo-container[style*="opacity: 0"] {
    opacity: 1 !important;
    visibility: visible !important;
}


.logo-container a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}
.logo-container a:visited,
.logo-container a:active,
.logo-container a:hover {
    text-decoration: none !important;
    color: #fff !important;
}
.logo-container a:visited,
.logo-container a:active,
.logo-container a:hover {
    color: #fff !important;
    font-family: var(--font-sans);
    font-size: 0.4rem;
    font-weight: 400;
    
}

.logo-container a:hover {
    color: var(--color-white);
}

.logo-container:hover {
    transform: translateX(-50%) scale(1.1);
}

.site-logo {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.site-logo:hover {
    opacity: 1;
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

/* Music controls removed from UI; styles deleted */

/* ============================================
   SECCIÓN PRINCIPAL - CONTENIDO HEROICO
   ============================================ */

.principal-text {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
    z-index: 10;
    pointer-events: none;
    color: var(--color-white);
    font-family: var(--font-sans);
    font-style: italic;
    font-weight: 900;
    font-size: 3.5rem;
    letter-spacing: 0rem;
    padding: 20px;
}

.subtitle-text {
    position: fixed;
    top: 25%;
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    transform: translateY(-50%);
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-size: .7rem;
    font-style: normal;
    font-weight: 300;
    letter-spacing: 0px;
    line-height: 1.8;
    color: var(--color-white);
    text-align: center;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    z-index: 11;
}

.home-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.color-text {
    color:rgb(255, 255, 255);
}

/* Botón Explorar */
.explore-btn {
    position: fixed;
    bottom: 260px;
    left: 50%;
    transform: translateX(-50%);
    font-family:Arial, Helvetica, sans-serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1rem;
    color: var(--color-white);
    text-decoration: none;
    cursor: pointer;
    letter-spacing: 0.5px;
    pointer-events: auto;
    z-index: 0;
    padding: 12px 28px;
    border: 1px solid white;
    border-radius: 1px;
    background: rgba(255, 255, 255, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
}

.explore-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.explore-btn:hover::before {
    left: 100%;
}

.explore-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    transform: translateX(-50%) translateY(-2px);
}

/* Accesibilidad: subrayado al enfocar con teclado */
.explore-btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

/* ============================================
   MODAL GALERÍA - FULLSCREEN INMERSIVO
   ============================================ */

.gallery-section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    /* Fondo gris claro para la galería */
    background: #f5f5f5;
    /* Reduce top padding so gallery appears closer to top when scrolled into view */
    padding: 20px 20px;
    /* Ensure the section scrolls flush to the top */
    scroll-margin-top: 0;
}

.gallery-modal {
    display: flex;
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: auto;
    background: transparent;
    z-index: 10000;
    overflow: visible;
    opacity: 1;
    transition: none;
    perspective: 2000px;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
}

.gallery-modal.active {
    display: flex;
    opacity: 1;
}

.gallery-parallax {
    animation: parallaxEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes parallaxEnter {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-modal.fullscreen-mode {
    background: rgb(0, 0, 0);
}

/* Cambiar colores de texto en fullscreen */
.gallery-modal.fullscreen-mode .gallery-counter {
    color: var(--color-white);
}

.gallery-modal.fullscreen-mode .gallery-caption {
    color: rgba(255, 255, 255, 0.8);
}

.gallery-modal.fullscreen-mode .gallery-caption strong {
    color: var(--color-white);
}

.gallery-modal.fullscreen-mode .gallery-title {
    color: var(--color-white);
}

.gallery-modal.fullscreen-mode .key-hint {
    color: rgba(255, 255, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-modal.fullscreen-mode .key-hint-arrow {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--color-white);
}

.gallery-modal.fullscreen-mode .key-hint-arrow:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    border-color: var(--color-white);
}

.gallery-modal.fullscreen-mode .key-hint-label {
    color: rgba(255, 255, 255, 0.6);
}

.gallery-modal.fullscreen-mode .thumbnail {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-modal.fullscreen-mode .thumbnail:hover {
    background: rgba(255, 255, 255, 0.5);
}

.gallery-modal.fullscreen-mode .thumbnail.active {
    background: var(--color-white);
}

.gallery-modal.fullscreen-mode .gallery-close-btn {
    color: var(--color-white);
}

.gallery-modal.fullscreen-mode .gallery-close-btn:hover {
    color: #a9a9a9;
}

.gallery-modal.fullscreen-mode .fullscreen-toggle {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-modal.fullscreen-mode .fullscreen-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-modal.fullscreen-mode .fullscreen-toggle svg {
    stroke: var(--color-white);
}

.gallery-modal.fullscreen-mode .slideshow-btn {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-modal.fullscreen-mode .slideshow-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.gallery-modal.fullscreen-mode .slideshow-btn svg {
    stroke: var(--color-white);
}

.gallery-modal.fullscreen-mode .slideshow-btn.active svg {
    stroke: #4CAF50;
}

/* Fullscreen Toggle Button */
.fullscreen-toggle {
    display: none; /* Botón removido */
}

.fullscreen-toggle:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.fullscreen-toggle svg {
    width: 24px;
    height: 24px;
    stroke: #333;
}

/* Slideshow Controls */
.slideshow-controls {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1002;
}

.slideshow-btn {
    background: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slideshow-btn:hover {
    background: rgba(0, 0, 0, 0.2);
    transform: scale(1.1);
}

.slideshow-btn.active {
    background: rgba(76, 175, 80, 0.2);
    border-color: #4CAF50;
}

.slideshow-btn svg {
    width: 20px;
    height: 20px;
    stroke: #333;
}

.slideshow-btn.active svg {
    stroke: #4CAF50;
}

.gallery-modal-content {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 20px 20px 40px;
}

.gallery-close-btn {
    position: absolute;
    top: 20px;
    right: 15px;
    background: transparent;
    border: none;
    color: var(--color-black);
    font-size: 9rem;
    cursor: pointer;
    z-index: 1001;
    transition: transform 0.2s ease, color 0.2s ease;
    line-height: 1;
    font-weight: 300;
    transform-origin: center center;
}

.gallery-close-btn:hover {
    transform: rotate(90deg);
    color:#a9a9a9;
}

/* Gallery Preloader */
.gallery-preloader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.gallery-preloader.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-preloader-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top: 4px solid #000;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.gallery-preloader-text {
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: #000;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.gallery-title {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 900;
    color:#000000;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

/* Gallery scroll wrapper - permite scroll vertical */
.gallery-scroll-wrapper {
    /* Use the main page scroll — avoid nested scrolling */
    overflow-y: visible;
    overflow-x: hidden;
    width: 100%;
    height: auto;
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr; /* Hace que todas las filas tengan la misma altura */
    gap: 20px;
    padding: 80px 40px 100px 40px; /* Más padding top/bottom para respirar */
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    opacity: 1;
    visibility: visible;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    height: 100%; /* Ocupa toda la altura de la celda del grid */
    min-height: 0; /* Permite que los hijos flexibles se contraigan correctamente */
    align-items: stretch;
}

/* Hover effect for gallery items */
.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* Project Cards Styling */
.gallery-project-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.gallery-project-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.project-image {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(76, 175, 80, 0.05) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* quitar padding para que la imagen ocupe todo el contenedor */
    font-size: 2rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 2px solid rgba(76, 175, 80, 0.3);
    height: auto;
    min-height: 0;
}

/* Ensure thumbnail images fill the project image area */
.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-caption {
    padding: 12px 18px;
}

.project-caption strong {
    font-size: 1rem;
    display: block;
    margin-bottom: 2px;
}

.project-description {
    font-size: 0.8rem;
    color: rgba(87, 87, 87, 0.6);
    display: block;
    margin-top: 0;
    line-height: 1.3;
}


/* Gallery item image container */
.gallery-item-image {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8f8f8 0%, #f0f0f0 100%);
    flex: 1 1 0%; /* Permite que el contenedor de la imagen crezca y ocupe el espacio disponible */
    min-height: 160px; /* Altura mínima consistente para las cards */
}

/* Like Button */
.like-btn {
    background: rgba(236, 236, 236, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid #c5c4c4;
    border-radius: 50px;
    padding: 4px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    color: var(--color-black);
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 500;
    margin-top: 0;
    margin-bottom: 6px;
    vertical-align: middle;
}

.like-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.like-btn.liked {
    background: rgba(220, 38, 38, 0.1);
    border-color: #dc2626;
}

.like-btn svg {
    transition: all 0.3s ease;
    width: 14px;
    height: 14px;
}

.like-btn.liked svg {
    fill: #dc2626;
    stroke: #dc2626;
    animation: heartBeat 0.3s ease;
}

@keyframes heartBeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}



.gallery-item-image img {
    width: 100%;
    height: 100%; /* Rellena el contenedor para tener altura uniforme */
    object-fit: cover; /* Recorta la imagen para mantener proporción y llenar el contenedor */
    display: block;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-item-image img {
    transform: scale(1.05);
}

/* Preload indicator */
.gallery-item-image.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.gallery-item-image img.loaded {
    animation: fadeInScale 0.6s ease;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Caption for grid cards */
.gallery-caption {
    padding: 15px 18px 18px 18px;
    color: rgb(79, 78, 78);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    text-align: left;
    background: white;
    line-height: 1.5;
}

.gallery-caption strong {
    font-weight: 700;
    font-size: 1rem;
    margin: 0;
    display: block;
    color: rgb(0, 0, 0);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.gallery-caption .collection-name {
    display: block;
    text-align: right;
    font-style: italic;
    margin-top: 5px;
}

.gallery-caption hr {
    width: 0;
    border: none;
    border-top: 1px solid #999;
    margin: 10px auto;
    animation: expandLine 0.6s ease forwards;
    animation-delay: 0.3s;
}

@keyframes expandLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Contador de posición - oculto en modo grid */
.gallery-counter {
    display: none;
}

/* Indicadores de teclado - ocultos en modo grid */
.keyboard-hints {
    display: none;
}

.keyboard-hints:hover {
    opacity: 1;
}

.key-hint {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #999;
    border-radius: 3px;
    font-size: 1rem;
    min-width: 35px;
    text-align: center;
    background: transparent;
    color: #666;
    transition: all 0.3s ease;
}

.key-hint-arrow {
    cursor: pointer;
    font-size: 1.2rem;
    padding: 5px 12px;
    border: 2px solid #333;
    color: #333;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.key-hint-arrow:hover {
    background: #333;
    color: white;
    transform: scale(1.1);
    border-color: #333;
}

.key-hint-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #666;
    text-align: center;
    flex-shrink: 0;
}

/* Thumbnails - ocultos en modo grid */
.gallery-thumbnails {
    display: none;
}

.thumbnail {
    width: 10px;
    height: 10px;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.thumbnail:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: scale(1.2);
}

.thumbnail.active {
    background: #333;
    width: 12px;
    height: 12px;
}

/* Lightbox Fullscreen */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.lightbox img.zoomed {
    cursor: zoom-out;
}

.lightbox-close {
    position: fixed;
    top: 20px;
    right: 30px;
    background: transparent;
    border: none;
    color: white;
    font-size: 4rem;
    cursor: pointer;
    z-index: 10001;
    transition: transform 0.2s ease;
    line-height: 1;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-zoom-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10001;
}

.lightbox-zoom-controls button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: white;
    padding: 10px 20px;
    font-size: 1.2rem;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease;
    font-family: Helvetica, Arial, sans-serif;
}

.lightbox-zoom-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Animación de entrada para gallery items */
.gallery-item {
    animation: fadeInSlide 0.6s ease forwards;
    opacity: 0;
}

@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Sombra y efectos en fotos */
.gallery-item-image img {
    filter: contrast(1.05);
}

/* ============================================
   SECCIÓN PORTAFOLIO
   ============================================ */

.portfolio-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    padding: 60px 20px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(50, 50, 50, 0.8) 100%);
    color: var(--color-white);
    text-align: center;
    z-index: 5;
}

.portfolio-section h2 {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.portfolio-section p {
    font-family: var(--font-serif);
    font-size: 1.2rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.8);
}

/* ============================================
   COMPONENTES UI - BOTONES Y ELEMENTOS
   ============================================ */



/* Texto Pie de Página */
.bottom-text {
    position: fixed;
    bottom: 42px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--color-white);
    font-family: var(--font-sans);
    text-align: center;
    z-index: 30;
    pointer-events: none;
}



/* ============================================
   MEDIA QUERIES - DISEÑO RESPONSIVO
   ============================================ */

/* ===== MOBILE (hasta 768px) ===== */
@media (max-width: 768px) {

    /* Video background ajuste para mobile */
    .video-background {
        object-fit: cover;
        object-position: center;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        min-width: 60%;
    }

    /* Título Principal */
    .principal-text {
        top: 35%;
        font-size: 3.5rem;
        animation: none;
        max-width: 90%;
        line-height: 0.9;
    }

    /* Subtítulo separado */
    .subtitle-text {
        bottom: auto;
        top: 20%;
        transform: translateY(-50%);
        font-size: 0.55rem;
        line-height: 1.9;
        padding: 0 30px;
        font-weight: 400;
        letter-spacing: 0.8px;
        max-width: 85%;
    }

    /* Subtítulo antiguo (por si acaso) */
    .principal-text .subtitle-text {
        display: none;
    }

    /* Logo */
    .logo-container {
        top: 20px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        
    }
    
    .logo-container:hover {
        transform: translateX(-50%) scale(1.1);
    }

    .site-logo {
        width: 28px;
        height: 28px;
    }

    /* Mobile music control styles removed */

    /* Botón Explorar */
    .explore-btn {
        font-size: 1.1rem;
        margin-top: 15px;
        padding: 14px 32px;
        bottom: 120px;
        white-space: nowrap;
    }

    /* Modal Galería */
    .gallery-title {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 60px 20px 100px 20px;
    }
    
    /* Nuevas características responsive */
    .gallery-counter {
        top: 15px;
        font-size: 0.75rem;
    }
    
    .gallery-scroll-wrapper {
        width: 100%;
        overflow-y: visible;
    }
    
    .keyboard-hints {
        bottom: 50px;
        gap: 15px;
    }
    
    .key-hint-arrow {
        font-size: 1rem;
        padding: 4px 10px;
    }
    
    .key-hint-label {
        font-size: 0.8rem;
    }
    
    .gallery-item {
        flex-direction: column;
        gap: 10px;
        padding: 0;
        width: 100%;
        min-width: 100%;
        flex: 0 0 100%;
        align-items: center;
        justify-content: flex-start;
    }
    
    .gallery-item-image {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 5%;
        margin-top: 30px;
    }
    
    /* Like button en mobile */
    .like-btn {
        padding: 5px 10px;
        font-size: 0.7rem;
        margin-top: 6px;
    }
    
    .like-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .gallery-item-image img {
        max-height: 50vh;
        max-width: 100%;
        width: auto;
        margin: 0 auto;
    }
    
    .gallery-caption {
        max-width: 85%;
        width: 85%;
        padding: 10px 15px;
        font-size: 0.75rem;
        align-self: center;
        margin: 0 auto;
    }

    .gallery-caption strong,
    .project-caption strong {
        font-size: 0.85rem;
        margin-bottom: 2px;
    }

    /* Project card caption in mobile */
    .project-caption {
        padding: 10px 15px;
    }
    
    .lightbox-zoom-controls {
        bottom: 15px;
        gap: 5px;
    }
    
    .lightbox-zoom-controls button {
        padding: 8px 15px;
        font-size: 1rem;
    }

    .gallery-close-btn {
        font-size: 2.5rem;
        top: 10px;
        right: 10px;
        transform-origin: center center;
    }

    /* Portafolio */
    .portfolio-section {
        padding: 40px 15px;
    }

    .portfolio-section h2 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .portfolio-section p {
        font-size: 1rem;
    }

    /* Texto Inferior */
    .bottom-text {
        bottom: 16px;
        font-size: 0.65rem;
        font-weight: 500;
        letter-spacing: 0.8px;
        opacity: 0.8;
    }
}

/* ===== TABLET (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {

    /* Título Principal */
    .principal-text {
        top: 38%;
        font-size: 3.5rem;
    }

    /* Subtítulo */
    .principal-text .subtitle-text {
        font-size: 0.5rem;
        margin-top: -50px;
    }

    /* Botón Explorar */
    .explore-btn {
        font-size: 1.05rem;
    }

    /* Modal Galería */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 70px 30px 100px 30px;
    }

    /* Portafolio */
    .portfolio-section h2 {
        font-size: 2.5rem;
    }

    /* Texto Inferior */
    .bottom-text {
        font-size: 0.55rem;
    }
}

/* ===== DESKTOP (1025px - 1919px) ===== */
@media (min-width: 1025px) and (max-width: 1919px) {

    /* Título Principal */
    .principal-text {
        font-size: 3.5rem;
    }

    /* Subtítulo */
    .principal-text .subtitle-text {
        font-size: 0.6rem;
        margin-top: -45px;
    }

    /* Texto Inferior */
    .bottom-text {
        font-size: 0.6rem;
    }
}

/* ===== 4K (1920px+) ===== */
@media (min-width: 1920px) {

    /* Título Principal */
    .principal-text {
        font-size: 3rem;
    }

    /* Subtítulo */
    .principal-text .subtitle-text {
        font-size: 0.7rem;
        margin-top: -50px;
    }

    /* Texto Inferior */
    .bottom-text {
        bottom: 20px;
        font-size: 0.8rem;
    }

    /* Thumbnails responsive */
    .thumbnail {
        width: 8px;
        height: 8px;
    }
    
    .thumbnail.active {
        width: 10px;
        height: 10px;
    }

    .gallery-thumbnails {
        gap: 8px;
        padding: 15px;
    }
}