
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&display=swap');

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

body {
    font-family: 'Inter', sans-serif; 
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Cursor personalizado */
body {
    cursor: none;
}

.cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, #ff6b6b, #4ecdc4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
}

.cursor.hover {
    transform: scale(2);
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 50px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 15px 50px;
    background: rgba(10, 10, 10, 0.98);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    font-family: 'Playfair Display', serif; 
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400; 
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #ff6b6b;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    transition: width 0.3s ease;
}

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

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: #ffffff;
    margin: 3px 0;
    transition: 0.3s;
}


.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    
    background-image: url('/imagenes/portada2.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    background: linear-gradient(
        135deg, 
        rgba(255, 107, 107, 0.3), 
        rgba(78, 205, 196, 0.3),
        rgba(10, 10, 10, 0.4)
    );
    z-index: 1;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
    position: relative;
}

/* Media query para desktop */
@media (min-width: 768px) {
    .hero {
        background-attachment: fixed;
    }
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 400; /* Ajustado para Playfair Display */
    font-family: 'Playfair Display', serif; 
    margin-bottom: 20px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif; 
    margin-bottom: 40px;
    opacity: 0.8;
    animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    font-family: 'Inter', sans-serif; 
    transition: all 0.3s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(255, 107, 107, 0.3);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

/* Partículas flotantes */
.particle {
    position: absolute;
    background: radial-gradient(circle, #ff6b6b, transparent);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(odd) {
    background: radial-gradient(circle, #4ecdc4, transparent);
    animation-delay: -3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

        /* Portfolio Section */
.portafolio {
    padding: 100px 50px;
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 80px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gallery {
    columns: 3 !important;
    column-gap: 1rem !important;
    column-fill: balance !important;
    max-width: 1000px !important;
    margin: 0 auto 60px auto !important;
}

.gallery .gallery-item {
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 1rem !important;
    break-inside: avoid !important;
    background: none !important;
}

.gallery .gallery-item img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 20px !important;
}

/* Para las 6 destacadas */
.gallery-preview {
    columns: 3;
    column-gap: 2rem;
    column-fill: balance;
}
/*
.gallery-item {
    position: relative;
   height: 400px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
}*/

.gallery-item {
    position: relative;
    /* height: ELIMINAR COMPLETAMENTE */ 
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
   /* background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);*/
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
}

.gallery-item img {
    width: 100% !important;
    height: auto !important; 
    object-fit: cover !important; 
    display: block !important;
    border-radius: 20px !important;
    transition: transform 0.5s ease !important;
}


/*  REGLAS PARA IMÁGENES COMPLETAS - LAYOUT MASONRY */
.gallery-item {
    position: relative;
    display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.5s ease;
   /* background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);*/
}

.gallery-item img {
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
   object-fit: cover !important;
    display: block !important;
    border-radius: 20px !important;
    transition: transform 0.5s ease !important;
    position: relative !important; 
}
/* Efectos hover */
.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Overlay de hover */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.8), rgba(78, 205, 196, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    border-radius: 20px;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Contenido de texto */
.gallery-item-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    border-radius: 0 0 20px 20px;
}

.gallery-item:hover .gallery-item-content {
   /* opacity: 1;*/
    transform: translateY(0);
}

.gallery-item h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: white;
}

.gallery-item p {
    font-size: 1rem;
    opacity: 0.9;
    color: white;
}

/* Placeholder para imágenes sin cargar */
.no-image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    opacity: 0.3;
    border-radius: 20px;
}

.no-image-placeholder::after {
    content: "📷";
}

/* Soporte para diferentes navegadores */
.gallery-item img {
    -o-object-fit: cover !important;
    -webkit-object-fit: cover !important;
    -moz-object-fit: cover !important;
    -ms-object-fit: cover !important;
}

/* Vista previa en admin también */
.image-preview img {
    width: 100% !important;
    height: 100px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 8px !important;
}
        /* About Section */
        .about {
            padding: 100px 50px;
            background: linear-gradient(135deg, rgba(255, 107, 107, 0.05), rgba(78, 205, 196, 0.05));
        }

        .about-content {
            max-width: 1200px;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 80px;
            align-items: center;
        }

        .about-text {
            font-size: 1.2rem;
            line-height: 1.8;
            opacity: 0.9;
        }

      /* About Section */
.about-image {
    height: 500px;
    border-radius: 20px;
    background-image: url('/imagenes/cristhian.JPG'); /* Cambia por tu imagen */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}

/* Remover el emoji placeholder */
.about-image::after {
    display: none; 
}

/* Overlay sutil */
.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(78, 205, 196, 0.1));
    border-radius: 20px;
}

        /* Contact Section */
        .contact {
            padding: 100px 50px;
            text-align: center;
        }

        .contact-form {
            max-width: 600px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 30px;
            text-align: left;
        }

        .form-group label {
            display: block;
            margin-bottom: 10px;
            color: #ff6b6b;
        }

        .form-group input,
        .form-group textarea {
            width: 100%;
            padding: 15px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 10px;
            color: white;
            font-size: 1rem;
            transition: all 0.3s ease;
        }

        .form-group input:focus,
        .form-group textarea:focus {
            outline: none;
            border-color: #ff6b6b;
            box-shadow: 0 0 20px rgba(255, 107, 107, 0.3);
        }

        .form-group input::placeholder,
        .form-group textarea::placeholder {
            color: rgba(255, 255, 255, 0.5);
        }

        /* Footer */
        .footer {
            padding: 50px;
            text-align: center;
            background: rgba(255, 255, 255, 0.05);
            border-top: 1px solid rgba(255, 255, 255, 0.1);
        }

        .social-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin-bottom: 30px;
        }

        .social-links a {
            width: 50px;
            height: 50px;
            background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: white;
            font-size: 1.2rem;
            transition: all 0.3s ease;
        }

        .social-links a:hover {
            transform: translateY(-5px) scale(1.1);
            box-shadow: 0 10px 30px rgba(255, 107, 107, 0.4);
        }

        /* Animaciones */
        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(50px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .fade-in {
            opacity: 0;
            transform: translateY(30px);
            transition: all 0.6s ease;
        }

        .fade-in.visible {
            opacity: 1;
            transform: translateY(0);
        }


/* Contenedor de preview (6 fotos destacadas) */
.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Contenedor de portfolio completo */
.full-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

/* Botón Ver todo el portfolio */
.view-all-portafolio {
    text-align: center;
    margin-top: 2rem;
}

.view-all-btn {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.view-all-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.view-all-btn .arrow {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.view-all-btn:hover .arrow {
    transform: translateX(5px);
}

/* Botón volver al preview */
.back-to-preview {
    margin-bottom: 2rem;
    text-align: left;
}

.back-btn {
    background: linear-gradient(45deg, var(--accent-color, #45b7d1), var(--primary-color, #ff6b6b));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Categoría en portfolio completo */
.gallery-item-content .category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    margin-top: 8px;
    color: var(--primary-color, #ff6b6b);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estados de loading y error */
.loading, .error {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: var(--text-color, #333);
}

.loading {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.error {
    color: #e74c3c;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Responsivo */
@media (max-width: 768px) {
    .gallery-preview {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .full-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .view-all-btn {
        padding: 12px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-preview,
    .full-gallery {
        grid-template-columns: 1fr;
    }
    
    .view-all-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}


/* Portfolio Hero Section */
.portafolio-hero {
    min-height: 20vh; 
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color, #1f0f0f), var(--secondary-color, #115752));
    text-align: center;
    color: white;
    margin-top: 60px;
}

.portafolio-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease-out 0.5s both;
}

.portafolio-hero-content p {
    font-size: 1.3rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 1s both;

}

/* Filtros */
.portafolio-filters {
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
}

.filters-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    background: white;
    border: 2px solid var(--primary-color, #ff6b6b);
    color: var(--primary-color, #b92c2c);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: capitalize;
}

.filter-btn:hover {
    background: var(--primary-color, #ff6b6b);
    color: white;
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    color: white;
    border-color: transparent;
}

/* Portfolio Main */
.portafolio-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.portafolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.portafolio-gallery .gallery-item {
    background: rgb(22, 20, 20);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    transition: all 0.3s ease;
}

.portafolio-gallery .gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.portafolio-gallery {
   /* columns: 3;
    column-gap: 2rem;*/
  display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 1rem;
    grid-auto-rows: 10px;
    margin-bottom: 3rem;
}

.portafolio-gallery .gallery-item {
   display: inline-block;
    width: 100%;
    margin-bottom: 2rem;
    break-inside: avoid;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.portafolio-gallery .gallery-item img {
    width: 100% !important;
    height: auto !important; 
    object-fit: cover !important; 
    display: block !important;
    border-radius: 15px !important;
}

.portafolio-gallery .gallery-item-content {
    padding: 1.5rem;
}

.portafolio-gallery .gallery-item-content h3 {
    color: var(--primary-color, #ff6b6b);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.portafolio-gallery .gallery-item-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.portafolio-gallery .category {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    color: white;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Botón Cargar Más */
.load-more-container {
    text-align: center;
}

.load-more-btn {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}
@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SOLO CAMBIOS PARA MÓVILES - AJUSTAR GRID Y TAMAÑOS */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
        margin-bottom: 40px;
        padding: 0 1rem;
    }
     .portafolio-hero {
        min-height: 25vh; 
        margin-top: 50px;
    }
     .portafolio-hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
       .portafolio-hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    .gallery-item {
        height: 280px;
    }
    
    /* Cambiar hover por touch/active en tablets */
    .gallery-item:hover .gallery-item-content,
    .gallery-item:active .gallery-item-content {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-item:hover::before,
    .gallery-item:active::before {
        opacity: 1;
    }
}
@media (prefers-reduced-motion: reduce) {
    .portafolio-hero-content h1,
    .portafolio-hero-content p {
        animation: none;
    }
}
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 0.5rem;
    }
    
    .gallery-item {
        height: 180px; 
    }
    
    /* Mantener texto oculto por defecto en móvil también */
    .gallery-item-content {
        /* Mantener estilos originales - texto oculto por defecto */
        opacity: 0;
        transform: translateY(20px);
    }
    
    /* Activar con touch/tap en móvil */
    .gallery-item:active .gallery-item-content,
    .gallery-item:focus .gallery-item-content {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-item:active::before,
    .gallery-item:focus::before {
        opacity: 1;
    }
    
    /* Quitar efectos de escala en móvil para mejor performance */
    .gallery-item:active {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    
    .gallery-item:active img {
        transform: scale(1.02);
    }
}


/* Para tablet */
@media (max-width: 768px) {
    .gallery-preview .gallery-item {
        height: 180px;
    }
    
    .gallery-preview .gallery-item:active .gallery-item-content,
    .gallery-preview .gallery-item:focus .gallery-item-content {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-preview .gallery-item:active::before,
    .gallery-preview .gallery-item:focus::before {
        opacity: 1;
    }
}


/* Para móvil */
@media (max-width: 480px) {
    .gallery-preview .gallery-item {
        height: 350px !important;
    }
    
    .gallery-preview .gallery-item-content {
        opacity: 0;
        transform: translateY(20px);
    }
    
    .gallery-preview .gallery-item:active .gallery-item-content,
    .gallery-preview .gallery-item:focus .gallery-item-content {
        opacity: 1;
        transform: translateY(0);
    }
    
    .gallery-preview .gallery-item:active::before,
    .gallery-preview .gallery-item:focus::before {
        opacity: 1;
    }
    
    .gallery-preview .gallery-item:active {
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
    }
    
    .gallery-preview .gallery-item:active img {
        transform: scale(1.02);
    }
}


/* Estilos para testimonios */
.testimonials-sidebar {
    flex: 1;
    position: relative; 
    padding: 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    height: fit-content; 
}

.testimonials-title {
    text-align: center;
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.testimonials-container {
    position: relative;
    height: auto; 
    min-height: 250px; 
    margin-bottom: 1.5rem;
}

.testimonial-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.5s ease;
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(76, 205, 196, 0.1));
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.testimonial-card.active {
    opacity: 1;
    transform: translateX(0);
}

.quote-icon {
    font-size: 3rem;
    color: var(--primary-color, #ff6b6b);
    line-height: 0.5;
    margin-bottom: 1rem;
}

.testimonial-card p {
    color: #e0e0e0;
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.testimonial-rating {
    color: #ffd700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: white;
    font-weight: 600;
    font-size: 0.9rem;
}

.author-event {
    color: var(--secondary-color, #4ecdc4);
    font-size: 0.8rem;
}

/* Dots de navegación */
.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary-color, #ff6b6b);
    transform: scale(1.2);
}

/* Botón dejar testimonio */
.testimonial-actions {
    text-align: center;
}

.leave-review-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 25px;
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    color: white;
    text-decoration: none;
    border: none;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
}

.leave-review-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Estados */
.no-testimonials {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
}

.error {
    text-align: center;
    color: #e74c3c;
    padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
    .portafolio {
        flex-direction: column;
    }
    
    .testimonials-sidebar {
        position: relative;
        top: 0;
        margin-top: 2rem;
    }
    
    .testimonials-container {
        height: 250px;
    }
    
    .testimonial-card {
        padding: 1rem;
    }
}

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

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header,
    .testimonial-form {
        padding: 1rem;
    }
    
    .form-actions {
        flex-direction: column;

    }
}
/* Fix específico para iOS Safari */
.testimonial-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /*  de 100% a 100vh para iOS */
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.modal-content {
    width: 90%;
    max-width: 500px;
    max-height: 80vh; /* Reducir para iOS */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* Asegurar que los botones sean visibles en iPhone */
.form-actions {
    position: sticky;
    bottom: 0;
    background: rgba(30, 30, 30, 0.95);
    padding: 1rem;
    margin: 1rem -2rem -2rem -2rem;
    border-radius: 0 0 20px 20px;
}

/* Safari iOS específico */
@supports (-webkit-touch-callout: none) {
    .modal-content {
        max-height: 75vh;
    }
    
    .form-actions {
        padding: 1.5rem 1rem 2rem 1rem;
    }
}

/* Estados */
.loading, .error {
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.3rem;
    grid-column: 1 / -1;
}

.loading {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s infinite;
}

.error {
    color: #e74c3c;
}

/* Link activo en navegación */
.nav-links a.active {
    background: linear-gradient(45deg, var(--primary-color, #ff6b6b), var(--secondary-color, #4ecdc4));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

/* Responsivo */
@media (max-width: 768px) {
    .portafolio-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .portafolio-hero-content p {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .filters-container {
        padding: 0 1rem;
        gap: 0.5rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .portafolio-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .portafolio-main {
        padding: 2rem 1rem;
    }
}

@media (max-width: 480px) {
    .portafolio-hero {
        min-height: 40vh;
        margin-top: 50px;
    }
    
    .portafolio-hero-content h1 {
        font-size: 2rem;
    }
    
    .filters-container {
        flex-direction: column;
        align-items: center;
    }
}
/* Portafolio responsive para móvil */
@media (max-width: 768px) {
    .portafolio-gallery {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
        padding: 0 1rem;
    }
    
    .portafolio-hero-content h1 {
        font-size: 2.5rem;
    }
    
    .portafolio-hero-content p {
        font-size: 1.1rem;
    }
    
    .filters-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .portafolio-gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.5rem;
    }
    
    .portafolio-gallery .gallery-item img {
        height: 365px !important; 
        
    }
    
    .portafolio-hero-content h1 {
        font-size: 2rem;
    }
    
    .portafolio-hero-content p {
        font-size: 1rem;
    }
    
    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .portafolio-main {
        padding: 2rem 1rem;
    }
}


        /* Responsive */
        @media (max-width: 768px) {
            .navbar {
                padding: 15px 20px;
            }

            .nav-links {
                position: fixed;
                top: 70px;
                left: -100%;
                width: 100%;
                height: calc(100vh - 70px);
                background: rgba(10, 10, 10, 0.98);
                flex-direction: column;
                justify-content: start;
                align-items: center;
                gap: 20px;
                padding-top: 50px;
                transition: left 0.3s ease;
            }

            .nav-links.active {
                left: 0;
            }

            .menu-toggle {
                display: flex;
            }

            .menu-toggle.active span:nth-child(1) {
                transform: rotate(-45deg) translate(-5px, 6px);
            }

            .menu-toggle.active span:nth-child(2) {
                opacity: 0;
            }

            .menu-toggle.active span:nth-child(3) {
                transform: rotate(45deg) translate(-5px, -6px);
            }

            .hero h1 {
                font-size: 3rem;
            }

            .hero p {
                font-size: 1.2rem;
            }

            .portafolio,
            .about,
            .contact {
                padding: 60px 20px;
            }

            .gallery {
                grid-template-columns: 1fr;
                gap: 20px;
            }

            .about-content {
                grid-template-columns: 1fr;
                gap: 40px;
            }

            .about-image {
                height: 300px;
            }
        }

       /* Responsive */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
    }
    
    .gallery-item {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }
    
    .gallery-item {
        height: 300px;
    }
    
    .gallery-item-content {
        bottom: 20px;
        left: 20px;
        right: 20px;
    }
}


@media (max-width: 768px) {
    .filters-container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .filters-container {
        padding: 0 0.5rem;
    }
    
    .filter-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        margin: 2px;
    }
}



/* Reestructurar el layout del portfolio */
.portfolio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    align-items: start;
}

.portfolio-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
    position: sticky;
    top: 100px;
}

/* ===== CÁMARA EN PORTFOLIO  */
.camera-showcase {
    position: relative;
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.floating-elements-mini {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    top: 0;
    left: 0;
}

.photo-frame-mini {
    position: absolute;
    width: 30px;
    height: 22px;
    border: 2px solid rgba(255,255,255,0.6);
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    opacity: 0;
    animation: photoFloatMini 6s ease-in-out infinite;
}

.photo-frame-mini:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.photo-frame-mini:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 3s;
}

.light-ray-mini {
    position: absolute;
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3), transparent);
    top: 30%;
    right: 20%;
    animation: lightMoveMini 4s ease-in-out infinite;
    border-radius: 1px;
}

.camera-container-portfolio {
    position: relative;
    width: 140px;
    height: 100px;
    margin: 0 auto 20px;
    cursor: pointer;
}

.camera-portfolio {
    width: 100%;
    height: 100%;
    background: linear-gradient(145deg, #333, #1a1a1a);
    border-radius: 12px;
    position: relative;
    box-shadow: 
        0 15px 30px rgba(0,0,0,0.4),
        inset 0 2px 8px rgba(255,255,255,0.1);
    animation: cameraFloatMini 5s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.camera-portfolio:hover {
    transform: translateY(-3px) scale(1.05);
}

.lens-portfolio {
    position: absolute;
    width: 60px;
    height: 60px;
    background: 
        radial-gradient(circle at 35% 35%, rgba(255,255,255,0.7) 1px, transparent 3px),
        linear-gradient(45deg, #2a2a2a, #1a1a1a);
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 3px solid #444;
    box-shadow: 
        inset 0 0 15px rgba(0,0,0,0.6),
        0 0 20px rgba(255,255,255,0.1);
}

.lens-ring-portfolio {
    position: absolute;
    width: 45px;
    height: 45px;
    border: 2px solid #666;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: lensRotateMini 8s linear infinite;
}

.lens-ring-portfolio::before {
    content: '';
    position: absolute;
    width: 4px;
    height: 1px;
    background: #888;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 1px;
}

.flash-portfolio {
    position: absolute;
    width: 12px;
    height: 8px;
    background: linear-gradient(145deg, #f8f8f8, #e0e0e0);
    top: 15px;
    right: 20px;
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.viewfinder-portfolio {
    position: absolute;
    width: 10px;
    height: 6px;
    background: linear-gradient(145deg, #222, #111);
    top: 15px;
    right: 40px;
    border-radius: 2px;
    border: 1px solid #333;
}

.shutter-effect-portfolio {
    position: absolute;
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.2) 40%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
}

.camera-text {
    margin-bottom: 25px;
    z-index: 2;
    position: relative;
}

.camera-text h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #fff;
    background: linear-gradient(45deg, var(--primary-color, #4ecdc4), var(--secondary-color, #45b7d1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.camera-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
}

/* Botón mejorado */
.view-all-portfolio.enhanced {
    margin-top: 0;
}

.view-all-btn-enhanced {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(45deg, var(--primary-color, #4ecdc4), var(--secondary-color, #45b7d1));
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.view-all-btn-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.view-all-btn-enhanced:hover::before {
    left: 100%;
}

.view-all-btn-enhanced:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.view-all-btn-enhanced .arrow {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.view-all-btn-enhanced:hover .arrow {
    transform: translateX(5px);
}

/* ===== ANIMACIONES COMPACTAS ===== */
@keyframes cameraFloatMini {
    0%, 100% { 
        transform: translateY(0px); 
    }
    50% { 
        transform: translateY(-5px); 
    }
}

@keyframes lensRotateMini {
    from { 
        transform: translate(-50%, -50%) rotate(0deg); 
    }
    to { 
        transform: translate(-50%, -50%) rotate(360deg); 
    }
}

@keyframes photoFloatMini {
    0%, 100% { 
        opacity: 0; 
        transform: translateY(20px) rotate(0deg); 
    }
    50% { 
        opacity: 0.6; 
        transform: translateY(-10px) rotate(3deg); 
    }
}

@keyframes lightMoveMini {
    0%, 100% { 
        opacity: 0; 
        transform: translateX(-50px) rotate(45deg); 
    }
    50% { 
        opacity: 0.5; 
        transform: translateX(50px) rotate(45deg); 
    }
}

@keyframes flashBlink {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

@keyframes shutterClick {
    0% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.5); 
    }
    30% { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1.2); 
    }
    100% { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(1.5); 
    }
}

@keyframes cameraShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-2px); }
    75% { transform: translateX(2px); }
}

/* ===== RESPONSIVE PARA PORTFOLIO ===== */
@media (max-width: 1024px) {
    .portfolio-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .gallery {
        order: 1; 
    }
    
    .portfolio-sidebar {
        position: static;
        order: 2; 
    }
    
    .camera-showcase {
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .camera-container-portfolio {
        width: 120px;
        height: 85px;
    }
    
    .lens-portfolio {
        width: 50px;
        height: 50px;
    }
    
    .lens-ring-portfolio {
        width: 38px;
        height: 38px;
    }
    
    .camera-showcase {
        padding: 20px;
    }
    
    .camera-text h3 {
        font-size: 1.2rem;
    }
    
    .view-all-btn-enhanced {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .camera-container-portfolio {
        width: 100px;
        height: 70px;
    }
    
    .lens-portfolio {
        width: 40px;
        height: 40px;
    }
    
    .lens-ring-portfolio {
        width: 30px;
        height: 30px;
    }
    
    .camera-showcase {
        padding: 15px;
    }
}


/* ===== OPTIMIZACIÓN PARA DISPOSITIVOS CON MOVIMIENTO REDUCIDO ===== */
@media (prefers-reduced-motion: reduce) {
    .camera-portfolio, .lens-ring-portfolio, .photo-frame-mini, .light-ray-mini {
        animation: none;
    }
    
    .camera-text h3 {
        animation: none;
        opacity: 1;
        transform: none;
    }
}
/* RESPONSIVE MASONRY */
@media (max-width: 1024px) {
    .gallery,
    .gallery-preview {
        columns: 2;
    }
}

@media (max-width: 768px) {
    .gallery,
    .gallery-preview {
        columns: 2;
        column-gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery {
        columns: 1 !important;
        column-gap: 0 !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 auto 60px auto !important;
        width: 100% !important;
    }
    
    .gallery .gallery-item {
        margin-bottom: 1rem !important;
        width: 100% !important;
    }
    
    .gallery .gallery-item img {
        width: 100% !important;
        max-width: 100% !important;
    }
}
@media (max-width: 768px) {
    .gallery {
        columns: 2 !important;
        column-gap: 1rem !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
    }
}
/* SOLO AGREGAR ESTAS 3 LÍNEAS AL FINAL DEL CSS */
.gallery-item,
.portafolio-gallery .gallery-item {
    background: none !important;
}

.gallery-item,
.portafolio-gallery .gallery-item {
    flex: 1 1 auto;
    min-width: 300px;
    max-width: 400px;
    background: none !important;
}

.gallery-item,
.portafolio-gallery .gallery-item {
    width: 100% !important;
    max-width: none;
width: fit-content !important;
    background: none !important;
    margin-bottom: 0 !important;
    break-inside: unset !important;
}

/* FORZAR RESPONSIVE EN MÓVILES */
@media screen and (max-width: 480px) {
    .portfolio-content {
        display: block !important;
        padding: 0 15px !important;
        max-width: 100% !important;
    }
    
    .gallery {
        columns: 1 !important;
        width: 100% !important;
        margin: 0 0 40px 0 !important;
    }
    
    .portfolio-sidebar {
        margin-top: 30px !important;
    }
}

@media screen and (max-width: 480px) {
    .portfolio-content .gallery .gallery-item img,
    .gallery .gallery-item img {
        object-fit: contain !important;
        object-position: center !important;
        max-height: none !important;
    }
}
@media screen and (max-width: 480px) {
    .gallery .gallery-item {
        height: auto !important;
        min-height: auto !important;
    }
    
    .gallery .gallery-item img {
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
}
/*portafolio,completo*/
@media screen and (max-width: 480px) {
    .portafolio-gallery .gallery-item {
        height: auto !important;
        min-height: auto !important;
    }
    
    .portafolio-gallery .gallery-item img {
        object-fit: contain !important;
        width: 100% !important;
        height: auto !important;
    }
}
@media screen and (max-width: 768px) {
    .portafolio-gallery .gallery-item {
        height: auto !important;
    }
    
    .portafolio-gallery .gallery-item img {
        object-fit: contain !important;
    }
}
/* Estilos iconos de social media - solo verde */
.footer .social-links svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    transition: transform 0.3s ease;
}

.footer .social-links a:hover svg {
    transform: scale(1.1);
}

/* Solo color verde en lugar del gradiente */
.footer .social-links a {
    background: #034114 !important; /* Solo verde */
    color: white !important;
}

.footer .social-links a:hover {
    transform: translateY(-5px) scale(1.1) !important;
    box-shadow: 0 10px 30px rgba(18, 62, 4, 0.4) !important; /* Sombra verde */
}
/* ===== VARIABLES DE COLOR PROFESIONAL ===== */
:root {
    /* Esquema profesional para portfolio fotográfico */
    --primary-bg: #0a0a0a;           
    --secondary-bg: #1a1a1a;        
    --accent-bg: #2a2a2a;           
    
    --text-primary: #ffffff;         
    --text-secondary: #b8b8b8;      
    --text-muted: #888888;          
    
    --accent-primary: #ffffff;       
    --accent-secondary: #f5f5f5;    
    --border-color: #333333;        
    --accent-gold: #d4af37;         
    
    --hover-overlay: rgba(255, 255, 255, 0.1);
    --active-state: rgba(255, 255, 255, 0.2);
}

/* ===== ESTILOS PARA SECCIÓN DE VIDEOS - PROFESIONAL ===== */

.videos-hero {
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 100%);
    text-align: center;
    color: white;
    margin-top: 60px;
    position: relative;
}

.videos-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.3) 0%, 
        rgba(0, 0, 0, 0.5) 50%, 
        rgba(0, 0, 0, 0.3) 100%);
    z-index: 1;
}

.videos-hero-content {
    position: relative;
    z-index: 2;
}

.videos-hero-content h1 {
    font-size: 3.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease-out 0.5s both;
}

.videos-hero-content p {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out 1s both;
}

/* Videos Filters */
.videos-filters {
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 2rem 0;
    position: sticky;
    top: 60px;
    z-index: 100;
}

/* Contenedor de filtros */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 0;
    padding: 0 1rem;
    flex-wrap: wrap;
}

/* Botones de filtro  */
.category-filter,
.filter-btn,
button[data-filter] {
    background: var(--accent-bg);
    color: var(--text-secondary);
    border: 2px solid var(--border-color);
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    font-family: inherit;
}

/* Efecto hover  */
.category-filter::before,
.filter-btn::before,
button[data-filter]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

.category-filter:hover::before,
.filter-btn:hover::before,
button[data-filter]:hover::before {
    left: 100%;
}

.category-filter:hover,
.filter-btn:hover,
button[data-filter]:hover {
    background: var(--hover-overlay);
    color: var(--text-primary);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* Estado activo de filtros */
.category-filter.active,
.filter-btn.active,
button[data-filter].active {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.category-filter.active:hover,
.filter-btn.active:hover,
button[data-filter].active:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}


.videos-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
    background: var(--primary-bg);
    min-height: 100vh;
    border-radius: 0;
}

.videos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 0 1rem;
}


.video-item {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
}

.video-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--hover-overlay);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.video-item:hover::before {
    opacity: 1;
}

.video-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
    border-color: var(--accent-primary);
}

/* Video Thumbnail */
.video-thumbnail {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #000;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.video-item:hover .video-thumbnail img {
    transform: scale(1.02);
}

/* Play Button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.7);
    border: 2px solid var(--accent-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-primary);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 2;
}

.video-item:hover .play-button {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Video Duration */
.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border-color);
}

/* Video Content */
.video-content {
    padding: 1.5rem;
    position: relative;
    z-index: 2;
}

.video-content h3 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.video-item:hover .video-content h3 {
    color: var(--accent-gold);
}

.video-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.video-category {
    background: var(--accent-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.video-item:hover .video-category {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
}

/* Video Modal  */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.95) 0%, 
        rgba(10, 10, 10, 0.98) 50%, 
        rgba(0, 0, 0, 0.95) 100%);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(10px);
}

.video-modal-content {
    background: linear-gradient(145deg, var(--secondary-bg), var(--accent-bg));
    border: 2px solid var(--border-color);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background: var(--accent-bg);
    border-bottom: 1px solid var(--border-color);
}

.video-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    margin: 0;
    font-weight: 500;
}

.close-video-modal {
    background: var(--hover-overlay);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px 12px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-video-modal:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
    transform: scale(1.1);
}

.video-player {
    padding: 0;
    background: #000;
}

.video-player video {
    width: 100%;
    max-height: 70vh;
    height: auto;
    display: block;
    border: 2px solid var(--border-color);
}

.video-description {
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-height: 20vh;
    overflow-y: auto;
    background: var(--secondary-bg);
}

/* Estados de carga y error */
.videos-gallery .loading,
.videos-gallery .error {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    font-size: 1.3rem;
}

.videos-gallery .loading {
    color: var(--accent-gold);
    animation: pulse 2s infinite;
}

.videos-gallery .error {
    color: #e74c3c;
}

/* Cloudinary visualización */
.video-preview-container video {
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border: 1px solid var(--border-color);
}

.preview-actions button {
    min-width: 120px;
    font-weight: 500;
    background: var(--accent-bg);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.preview-actions button:hover {
    background: var(--accent-gold);
    color: var(--primary-bg);
    border-color: var(--accent-gold);
}

.upload-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.3);
    border-radius: 12px;
    padding: 20px;
    color: var(--text-secondary);
}

/* Animación suave para cambio de filtros */
.video-item.filtering {
    opacity: 0;
    transform: scale(0.8);
}

.video-item.show {
    opacity: 1;
    transform: scale(1);
}

/* ===== RESPONSIVE VIDEOS  ===== */
@media (max-width: 768px) {
    .videos-hero {
        min-height: 25vh;
        margin-top: 50px;
    }
    
    .videos-hero-content h1 {
        font-size: 2.2rem;
        margin-bottom: 0.5rem;
    }
    
    .videos-hero-content p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .videos-filters {
        padding: 1.5rem 0;
        position: relative;
        top: auto;
    }
    
    .category-filters {
        gap: 0.8rem;
        margin: 0;
    }
    
    .category-filter,
    .filter-btn,
    button[data-filter] {
        padding: 10px 18px;
        font-size: 0.8rem;
    }
    
    .videos-gallery {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .videos-main {
        padding: 2.5rem 1.5rem;
    }
    
    .video-thumbnail {
        height: 180px;
    }
    
    .video-modal {
        padding: 1rem;
    }
    
    .video-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }
    
    .video-modal-header {
        padding: 1rem 1.5rem;
    }
    
    .video-description {
        padding: 1rem 1.5rem;
    }
    
    .video-player video {
        max-height: 60vh;
    }
}

@media (max-width: 480px) {
    .videos-hero {
        min-height: 40vh;
        margin-top: 50px;
    }
    
    .videos-hero-content h1 {
        font-size: 2rem;
    }
    
    .category-filters {
        flex-direction: column;
        align-items: center;
        gap: 0.8rem;
    }
    
    .category-filter,
    .filter-btn,
    button[data-filter] {
        min-width: 120px;
        text-align: center;
    }
    
    .videos-gallery {
        grid-template-columns: 1fr;
        gap: 1.8rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
    }
    
    .video-item {
        margin-bottom: 0.5rem;
    }
    
    .video-thumbnail {
        height: 160px;
    }
    
    .play-button {
        width: 50px;
        height: 50px;
        font-size: 16px;
    }
    
    .video-modal {
        padding: 0.8rem;
    }
    
    .video-modal-header {
        padding: 1.2rem;
    }
    
    .video-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .video-description {
        padding: 1.2rem;
    }
}

@media (max-width: 360px) {
    .videos-gallery {
        gap: 1.5rem;
        padding: 0 0.8rem;
    }
    
    .videos-main {
        padding: 2rem 1rem;
    }
    
    .video-item {
        margin-bottom: 0.8rem;
    }
}

/* Animaciones */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

@media (prefers-reduced-motion: reduce) {
    .videos-hero-content h1,
    .videos-hero-content p,
    .video-item,
    .play-button,
    .category-filter,
    .filter-btn,
    button[data-filter] {
        animation: none;
        transition: none;
    }
}