/* Declaración de fuentes locales */
@font-face {
    font-family: 'Inter Tight';
    src: url('InterTight-VariableFont_wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
}

/* Variables y Resets */
:root {
    --bg-dark: #ffffff; /* Fondo claro principal */
}

body {
    font-family: "cesso", sans-serif;
    background-color: var(--bg-dark);
    color: rgb(0, 0, 0);
    overflow-x: hidden;
}

.fw-black { font-weight: 900; }

/* SECTION DIVIDER */

.section-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        transparent,
        #5151519e,
        transparent
    );
}

/* Navegación DESENFOQUE*/
.custom-nav {
    padding: 1.5rem 0;
    backdrop-filter: blur(10px);
}

/* Secciones */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: clamp(4rem, 15vw, 12rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.05em;
}

/* Contenedor de la animación ScrollTrigger */
.scroll-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.reveal-text {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    margin: 0;
    /* Estado inicial para GSAP */
    opacity: 0;
    transform: translateY(100px);
    filter: blur(20px);
}

/* Para que el título no salte al empezar la animación */
.hero-section {
    position: absolute; /* Superponemos las secciones para la transición */
    width: 100%;
    z-index: 2;
}

.section-trigger {
    position: relative;
    z-index: 1;
    height: 100vh;
}

.hero-title {
    will-change: transform, filter; /* Optimización de rendimiento */
}

/* Transición global para el fondo APARTADO DE "SKILLS"*/
body {
    transition: background-color 0.5s ease, color 0.5s ease;
}

/* Opcional: añade suavizado al cambio de color de los textos */
h1, h2, h3, p {
    transition: color 0.4s ease;
}

/* Clase para el cambio de fondo que activaremos con JS */
.bg-light-mode {
    background-color: #000000 !important;
    color: #ffffff !important;
}

.skill-card h3 {
    border-left: 3px solid #0b0b0b;
    padding-left: 15px;
    margin-bottom: 10px;
}

/* Clase que aplicaremos al menú mediante JS PARA QUE EL MENU SE VEA BIEN AL CAMBIO DE COLOR*/
.nav-dark-text .navbar-brand,
.nav-dark-text .nav-link,
.nav-dark-text .btn-outline-light {
    color: #0b0b0b !important;
    border-color: #0b0b0b !important;
}

/* Si tu botón de contacto tiene la clase btn-outline-light, 
   cambiamos su comportamiento al hacer hover en modo claro */
.nav-dark-text .btn-outline-light:hover {
    background-color: #0b0b0b !important;
    color: #ffffff !important;
}

/* RESET Y BASE NAV */
.custom-nav {
    padding: 15px 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.nav-logo {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgb(0, 0, 0);
    text-decoration: none;
}

.nav-logo span {
    font-weight: 300;
    opacity: 0.7;
}

/* MENÚ LINKS */
.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 60px;
    margin: 0;
    padding: 0;
}

.nav-link-custom {
    color: rgba(0, 0, 0, 0.7);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link-custom::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.nav-link-custom:hover {
    color: rgb(0, 0, 0);
}

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

/* BOTÓN MODERNO */
.btn-contact-modern {
    background: rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    padding: 10px 22px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-contact-modern:hover {
    transform: scale(1.05);
    background: #000000;
}

/* EFECTO SCROLL */
.nav-scrolled {
    padding: 15px 0;
    background: srgba(11, 11, 11, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* CAMBIO A MODO CLARO (GSAP) */
.nav-dark-mode .nav-logo,
.nav-dark-mode .nav-link-custom {
    color: #ffffff;
}

.nav-dark-mode .btn-contact-modern {
    background: #ffffff;
    color: rgb(0, 0, 0);
}

.nav-dark-mode.nav-scrolled {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Estilos para el nuevo listado de SOBRE MI */
/* 2. Título ocupando el 100% del ancho del viewport */
.sobremi-main-title {
    font-family: "cesso", sans-serif; /* Nombre que asigna Adobe */
    font-size: 15vw;
    font-weight: 400; /* Ajusta el peso según los que activaste */
    text-transform: uppercase;
    text-align: center;
    width: 100%;
    margin-bottom: -150px;
}

/* Eliminamos los márgenes negativos que causan el solapamiento */
.skills-section .container {
    margin-top: 0; 
    margin-bottom: 0;
    z-index: 2;
    max-width: 1200px;
    position: relative;
}

/* Ajustamos el título para que sea un bloque normal que ocupe su espacio */
.skills-main-title {
    font-family: "cesso", sans-serif;
    font-size: 15vw; 
    font-weight: 400;
    font-style: normal;
    line-height: 0.9;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    text-align: center;
    width: 100%; /* Cambiado de 100vw para evitar desbordes */
    display: block;
    position: relative;
    margin-top: -40px;
    margin-bottom: 40px; /* Espacio entre el título y las apps */
    transform: none; /* Quitamos traslaciones manuales si las hubiera */
    left: 0;
}

/* Aseguramos que la sección de skills distribuya los elementos de arriba a abajo */
.skills-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 100px 0;
    padding-top: 50px;
    height: auto;
    opacity: 0; /* Añade esto para que GSAP lo "aparezca" */
    position: relative;
    z-index: 5; /* Asegúrate de que esté por encima de otros elementos */
}

/* Reducimos el margen superior de las apps si es necesario */
.apps-container-static {
    margin: 20px auto 60px auto; /* Centrado y con espacio abajo para las tarjetas */
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .skill-row {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 0;
    }
    .skill-name { font-size: 1.8rem; }
    .skill-description { max-width: 100%; }
    .skill-tags-minimal { text-align: left; margin-top: 10px; }
}

/* Stack de herramientas minimalista */
.apps-minimal-footer {
    border-top: 1px solid rgb(255, 255, 255);
    padding-top: 2rem;
    text-align: center;
}
.apps-title {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #d9d9d9;
}

/* --- FOOTER MODERNIZADO --- */
.footer-modern {
    padding: 55px 0; /* Espacio muy reducido y compacto */
    background-color: #000000d7 !important; /* Gris sutil */
    color: #e9e9e9 !important;
    border-top: 1px solid #5151519e; /* Línea divisoria muy fina */
}

.footer-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 700;
    color: #999; /* Gris medio para etiquetas */
    margin-bottom: 8px;
}

.footer-name {
    font-size: 0.85rem;
    font-weight: 800;
    margin: 0;
}

.social-links-minimal {
    display: flex;
    justify-content: center;
    gap: 15px;
    color: #e9e9e9 !important;
}

.social-links-minimal a, .footer-email {
    text-decoration: none;
    color: #e9e9e9 !important;
    font-size: 0.8rem;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.footer-email:hover, .social-links-minimal a:hover {
    opacity: 0.5;
}

/* Bordes laterales sutiles para la columna central */
.border-start, .border-end {
    border-color: rgba(0, 0, 0, 0.05) !important;
}

/* Ajuste para móviles: en pantallas pequeñas vuelven a ser filas */
@media (max-width: 767px) {
    .col-md-4 {
        margin-bottom: 30px;
    }
    .border-start, .border-end {
        border: none !important;
    }
}

/* --- ESTILOS SECCIÓN STICKY CARDS --- */
:root {
  --card-1: #2E5266;
  --card-2: #6E8898;
  --card-3: #9FB1BC;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  overflow-x: hidden;
}

img {
  border: none;
  outline: none;
  display: block; /* Elimina un pequeño espacio que dejan las imágenes por defecto abajo */
  width: 100%;
  height: 100%;
  object-fit: cover;
}

section {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 2rem;
}

.intro, .outro {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.intro h1, .outro h1 {
  width: 50%;
  font-size: 4rem;
}

.sticky {
    position: relative;
    margin-top: 0px;
    margin-bottom: 50px;
    height: 100vh; 
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent; /* Para que se vea el cambio de color del body */
}

.sticky-header {
  position: absolute;
  top: 15%; /* Ajustado para que no choque con las cartas */
  width: 100%;
  text-align: center;
  z-index: 10;
}

/* CORRECCIÓN: Eliminado el espacio y el nombre "header" */
.sticky-header h1 {
    font-size: 5rem;
    will-change: transform, opacity;
    transform: translateY(50px);
    opacity: 0;
}

.card-container {
  position: relative;
  width: 75vw;
  display: flex;
  perspective: 1500px; /* Aumentado para mejor efecto 3D */
  will-change: width, gap;
}

.card {
  position: relative;
  flex: 1;
  aspect-ratio: 5/7;
  transform-style: preserve-3d;
  will-change: transform;
  transform-origin: center; /* Mejorado para el giro */
  border: none !important; /* <--- AÑADE ESTO */
  background: transparent; /* <--- AÑADE ESTO */
}

#card-1 { border-radius: 20px 0 0 20px; }
#card-2 { border-radius: 0; }
#card-3 { border-radius: 0 20px 20px 0; }

.card-front, .card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: inherit;
  overflow: hidden;
  background: transparent; /* Asegura que no haya color de fondo */
  border: none !important;  /* Elimina cualquier borde heredado */
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centrado horizontal */
    justify-content: center; /* Centrado vertical */
    width: 100%;
    padding: 1.5rem;
}

/* Categoría o Label superior */
.card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    opacity: 0.8;
    margin-bottom: 0.5rem;
}

/* Título principal de la tarjeta */
.card-title {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

/* Línea divisoria minimalista */
.card-divider {
    width: 40px;
    height: 2px;
    background: white;
    margin-bottom: 1.2rem;
    opacity: 0.5;
}

/* Texto descriptivo */
.card-description {
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 400;
    margin: 0;
    max-width: 85%;
}

/* Ajuste específico para que el reverso sea legible */
.card-back {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: rotateY(180deg);
    /* Eliminamos el padding genérico para controlarlo en .card-content */
    padding: 0; 
}

#card-1 .card-back { background-color: var(--card-1); color: #ffffff; }
#card-2 .card-back { background-color: var(--card-2); color: #ffffff;}
#card-3 .card-back { background-color: var(--card-3); color: #ffffff;}

/* Responsivo */
@media (max-width: 1000px) {
  .sticky-header { position: relative; top: 0; opacity: 1; transform: none; }
  .sticky-header h1 { opacity: 1; transform: none; font-size: 3rem; }
  .card-container { flex-direction: column; width: 100%; gap: 2rem; }
  .card { aspect-ratio: 16/9; border-radius: 20px !important; }
}

/* --- RESPONSIVE PARA EL TEXTO DE LAS CARTAS --- */

/* Ajustes para Tablets y Pantallas medianas */
@media (max-width: 1200px) {
    .card-title {
        font-size: 1.5rem; /* Un poco más pequeño para que no rompa líneas */
    }
    .card-description {
        font-size: 0.9rem;
    }
}

/* Ajustes para Móviles (Donde las cartas pasan a ser verticales) */
@media (max-width: 768px) {
    .card-content {
        padding: 2rem; /* Más aire en los bordes */
    }
    
    .card-title {
        font-size: 1.8rem; /* Recuperamos tamaño ya que en móvil la carta ocupa más ancho */
        font-weight: 800;
    }

    .card-category {
        font-size: 0.65rem;
        margin-bottom: 0.8rem;
    }

    .card-description {
        font-size: 1rem;
        max-width: 100%; /* Aprovechamos todo el ancho del móvil */
    }

    .card-divider {
        margin-bottom: 1.5rem;
    }
}

/* --- ESTILOS SECCIÓN APPS TIMELINE --- */
/* Contenedor principal del Dock */
.apps-container-static {
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Alinea los iconos por la base */
    gap: 45px; /* Mayor espacio entre apps */
    padding: 30px 50px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    backdrop-filter: blur(15px);
    margin: 50px auto;
    width: fit-content;
}

.app-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    /* Esta es la clave de la fluidez */
    transition: all 0.45s cubic-bezier(0.165, 0.84, 0.44, 1); 
}

.app-item img {
    width: 65px; /* Tamaño base */
    height: 65px;
    object-fit: contain;
    transition: inherit;
    filter: grayscale(100%);
    opacity: 0.6;
}

/* --- ANIMACIÓN HOVER --- */
/* Contenedor más amplio y estilizado */
.apps-container-static {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 55px; 
    padding: 40px 60px;
    margin: 20px auto 10px auto; /* Reducimos el margen de arriba e inferior de las apps */
    width: fit-content;
    height: 180px;
    position: relative;
    /* Eliminamos background, border y backdrop-filter */
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
}

.app-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    will-change: transform;
}

/* Efecto de Reflejo (Highlight) */
.app-item img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    filter: grayscale(100%) drop-shadow(0 5px 10px rgba(0,0,0,0.1));
    opacity: 0.4;
    transition: filter 0.5s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.5s ease;
    
    /* Reflejo mucho más sutil para que no parezca un suelo sólido */
    -webkit-box-reflect: below 2px linear-gradient(transparent 20%, rgba(255,255,255,0.1));    
    
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.app-item:hover img {
    filter: grayscale(0%) drop-shadow(0 15px 25px rgba(0,0,0,0.2));
    opacity: 1;
}


/* --- SERVICES INTERACTIVE GRID --- */
.services-interactive-grid {
    display: grid;
    /* Forzamos 3 columnas de igual tamaño */
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 10%; /* Añadimos margen lateral para que respire */
    perspective: 1000px;
    width: 100%;
    margin-top: 40px; /* Espacio respecto a las apps */
}

.service-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px;
    min-height: 400px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: border-color 0.4s ease;
    cursor: pointer;
}

/* Modo claro: si el body tiene color negro, ajustamos las cards */
body[style*="background-color: rgb(255, 255, 255)"] .service-card {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
    color: #0b0b0b;
}

.service-content {
    position: relative;
    z-index: 2;
    pointer-events: none; /* Permite que el ratón "atraviese" el texto hacia la card */
}

.service-number {
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0.5;
    margin-bottom: 10px;
    display: block;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 15px;
}

.service-text {
    font-size: 1rem;
    opacity: 0.7;
    max-width: 280px;
    margin-bottom: 25px;
    transform: translateY(20px);
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.service-tags {
    display: flex;
    gap: 10px;
}

.service-tags span {
    font-size: 0.7rem;
    padding: 6px 12px;
    border: 1px solid currentColor;
    border-radius: 100px;
    opacity: 0.6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* El "Visual" que aparece al hacer hover */
.service-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), 
                rgba(255,255,255,0.1) 0%, 
                transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 1;
}

/* Colores específicos para cada servicio al hacer hover */
.service-card[data-service="graphic"]:hover .service-visual { 
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), #1e3c4c 0%, transparent 85%); 
}
.service-card[data-service="web"]:hover .service-visual { 
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), #1e3c4c 0%, transparent 85%); 
}
.service-card[data-service="motion"]:hover .service-visual { 
    background: radial-gradient(circle at var(--mouse-x) var(--mouse-y), #1e3c4c 0%, transparent 85%); 
}

.service-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

.service-card:hover .service-visual {
    opacity: 1;
}

.service-card:hover .service-text {
    transform: translateY(0);
    opacity: 1;
}

/* RESPONSIVE: Si la pantalla es pequeña, entonces sí las ponemos en vertical */
@media (max-width: 1024px) {
    .services-interactive-grid {
        grid-template-columns: 1fr; /* Una columna en tablets/móvil */
        padding: 0 20px;
    }
}

/* --- ESTILO MEJORADO DROPDOWN --- */
/* --- NAVEGACIÓN DESPLEGABLE HOMOGÉNEA --- */

.nav-item-dropdown {
    position: relative;
    display: flex;
    align-items: center; /* Alinea el enlace principal internamente */
    height: 100%; /* Asegura que ocupe el mismo alto que sus hermanos */
}

.dropdown-menu-custom {
    position: absolute;
    top: 100%;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 15px; /* Mismo gap visual que el menú principal */
    background: transparent; /* Sin fondos raros */
    padding: 20px 0;
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

/* Mostrar al hacer hover */
.nav-item-dropdown:hover .dropdown-menu-custom {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Enlaces del desplegable: Copiamos exactamente .nav-link-custom */
.dropdown-menu-custom li a {
    color: rgba(0, 0, 0, 0.7); /* Color inicial igual al principal */
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    position: relative;
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* El mismo efecto de línea inferior que el menú principal */
.dropdown-menu-custom li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -5px;
    left: 0;
    background-color: currentColor;
    transition: width 0.3s ease;
}

.dropdown-menu-custom li a:hover {
    color: rgb(0, 0, 0);
}

.dropdown-menu-custom li a:hover::after {
    width: 100%;
}

/* ADAPTACIÓN MODO OSCURO (Coherencia con tu JS) */
.nav-dark-mode .dropdown-menu-custom li a {
    color: rgba(255, 255, 255, 0.7);
}

.nav-dark-mode .dropdown-menu-custom li a:hover {
    color: #ffffff;
}

.nav-menu > li {
    display: flex;
    align-items: center;
}

/* Igualar altura visual de enlaces y botón */
.nav-link-custom,
.btn-contact-modern {
    display: flex;
    align-items: center;
    line-height: 1;
}

/* El culpable habitual: el ▼ */
.nav-item-dropdown span {
    display: inline-flex;
    align-items: center;
    margin-top: 0;        /* evita que suba el texto */
    transform: translateY(0.5px); /* microajuste si hace falta */
}



.category-section {
    padding: 40px 0; /* Espacio reducido entre secciones */
    margin-top: -300px;
    margin-bottom: 150px;
}

.category-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    font-weight: 700;
    color: #888;
    margin-bottom: 40px;
}

/* Grid de 4 columnas exactas */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 15px; /* Espacio entre miniaturas */
}

.project-card {
    position: relative;
    aspect-ratio: 3 / 4; /* Cuadrados, o puedes usar 4/5 para vertical */
    background: #111;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
}

.project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Efecto hover minimalista */
.project-hover {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-hover span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 8px 15px;
}

.project-card:hover img {
    transform: scale(1.05);
}

.project-card:hover .project-hover {
    opacity: 1;
}

/* Responsive: 2 columnas en móvil */
@media (max-width: 992px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .portfolio-container { padding-top: 80px; }
    .category-title { font-size: 0.65rem; }
}

/* Estilos del Lightbox */
.modal-caption {
    color: #ddd;
    font-size: 1.1rem;
    margin-top: 15px;
    text-align: center;
    max-width: 90%;
    padding: 0 1rem;
}

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.337);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    max-width: 92%;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

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

.close-modal {
    position: absolute;
    top: 30px;
    right: 50px;
    color: white;
    font-size: 50px;
    font-weight: 300;
    cursor: pointer;
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 20px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 10001;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover { background: rgba(255, 255, 255, 0.035); }
.prev-btn { left: 30px; }
.next-btn { right: 30px; }

@media (max-width: 768px) {
    .nav-btn { padding: 10px; width: 40px; height: 40px; font-size: 1.2rem; }
}

