/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat';
    line-height: 1.6;
    color: white;
    overflow-x: hidden;
}

/* Animaciones keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    animation: fadeIn 0.8s ease-in-out;
}

/* Header y Navegación */
.header {
    background: #373f47;
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: fadeInDown 0.6s ease-out;
    transition: all 0.3s ease;
}

.header:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
    font-weight: bold;
    animation: slideInLeft 0.8s ease-out;
    transition: transform 0.3s ease, color 0.3s ease;
}

.logo:hover {
    transform: scale(1.1);
    color: #3498db;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    animation: slideInRight 0.8s ease-out;
}

.nav-menu li {
    transition: transform 0.3s ease;
}

.nav-menu li:hover {
    transform: translateY(-3px);
}

.nav-menu a {
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 5px;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #ad1e44;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.nav-menu a:hover {
    color: #ad1e44;
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #ad1e44 0%, #812237 50%, #3d101a 100%);
    color: white;
    padding: 50px 20px 100px;
    text-align: center;
    margin-top: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    to {
        left: 100%;
    }
}

.hero-content {
    animation: fadeInUp 1s ease-out;
}

.hero-content h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.btn {
    display: inline-block;
    background: whitesmoke;
    color: #ad1e44;
    padding: 12px 30px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.4s ease;
    animation: fadeInUp 1s ease-out 0.6s both;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(234, 102, 102, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(-150px) scale(1.02);
}

/* Secciones */
.section {
    padding: 80px 20px;
}

.section-alt {
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #3d101a;
}

/* Sobre Nosotros */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.content-block h3 {
    color: #ad1e44;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.content-block p {
    line-height: 1.8;
    color: #555;
}

/* Servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.service-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
    line-height: 1.6;
}

.service-link {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s ease;
}

.service-link:hover {
    transform: translateY(-5px);
}

/* Galería */
 .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 20px;
        }

        .gallery-item {
            position: relative;
            overflow: hidden;
            border-radius: 10px;
            cursor: pointer;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            will-change: transform;
        }

        .gallery-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 12px rgba(0,0,0,0.2);
        }

        .gallery-item img {
            width: 100%;
            height: 300px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s ease;
            will-change: transform;
            backface-visibility: hidden;
        }

        .gallery-item:hover img {
            transform: scale(1.1) translateZ(0);
        }

        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
            color: white;
            padding: 20px;
            transform: translateY(100%);
            transition: transform 0.3s ease;
        }

        .gallery-item:hover .gallery-overlay {
            transform: translateY(0);
        }

        .gallery-overlay h3 {
            margin-bottom: 5px;
            font-size: 1.2rem;
        }

        .gallery-overlay p {
            font-size: 0.9rem;
            opacity: 0.9;
        }

        /* Lightbox Styles */
        .lightbox {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .lightbox.active {
            display: flex;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }
            to {
                opacity: 1;
            }
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
            animation: zoomIn 0.3s ease;
        }

        @keyframes zoomIn {
            from {
                transform: scale(0.8);
            }
            to {
                transform: scale(1);
            }
        }

        .lightbox-content img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            border-radius: 5px;
        }

        .lightbox-close {
            position: absolute;
            top: 20px;
            right: 40px;
            font-size: 40px;
            color: white;
            cursor: pointer;
            background: none;
            border: none;
            z-index: 1001;
            transition: transform 0.2s ease;
        }

        .lightbox-close:hover {
            transform: scale(1.2);
        }

        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 50px;
            color: white;
            cursor: pointer;
            background: rgba(0, 0, 0, 0.5);
            border: none;
            padding: 20px;
            border-radius: 5px;
            transition: background 0.3s ease;
            user-select: none;
        }

        .lightbox-nav:hover {
            background: rgba(0, 0, 0, 0.8);
        }

        .lightbox-prev {
            left: 20px;
        }

        .lightbox-next {
            right: 20px;
        }

        .lightbox-counter {
            position: absolute;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 18px;
            background: rgba(0, 0, 0, 0.7);
            padding: 10px 20px;
            border-radius: 20px;
        }

        .lightbox-title {
            position: absolute;
            top: 20px;
            left: 50%;
            transform: translateX(-50%);
            color: white;
            font-size: 24px;
            background: rgba(0, 0, 0, 0.7);
            padding: 10px 30px;
            border-radius: 5px;
            text-align: center;
        }

/* Contacto */
.contact-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h3 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.contact-info p {
    margin-bottom: 1rem;
    color: #555;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #667eea;
}

.contact-form button {
    background: #667eea;
    color: white;
    border: none;
    cursor: pointer;
}

.contact-form button:hover {
    background: #5568d3;
}
.p{
    color: #373f47;
    text-align: justify; 
    text-justify: inter-word;
}
.liSQ{
    color: #555;
    font-size: 1rem;
    font-weight: bold; /* O 700, 800, etc. */
}
.liSQ p {
    font-weight: normal; /* Resetea negritas si no quieres */
    text-align: left; /* O justify, pero diferente del li si es necesario */
    margin: 0; /* Resetea márgenes heredados o default */
    padding: 0;
    color: inherit; /* O un color específico si el li lo cambia */
    /* Agrega lo que necesites resetear, basado en lo que aplica .liSQ */
}
.h3SQ{
    color: #555;
    font-size: 2rem;
    font-weight: bold; /* O 700, 800, etc. */
}
.ul{
    padding-left: 3.5rem;
}
/* .logosHC{
    padding-top: 2%;
    padding-bottom: 50px;
     padding-left: 10px; 
    text-align: center;
    width: 500px;
    height: 350px;
} */
 .logosHC{
    padding: 2% 5% 50px;
    text-align: center;
    width: 90%;
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.logo-icon{
    width: 60px;
    height: 60px;
}
.gallery-item video.gallery-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#lightboxVideo {
    max-width: 90%;
    max-height: 80vh;
    margin: auto;
}

/* Indicador de video en galería */
.gallery-item[data-type="video"] {
    position: relative;
    overflow: hidden; /* Cambiado de hidden a visible para videos */
}

/* Mantener overflow hidden solo para las imágenes */
.gallery-item:not([data-type="video"]) {
    overflow: hidden;
}

.video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 15px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 15;
    pointer-events: none;
    transition: all 0.3s ease;
    font-weight: bold;
    font-size: 14px;
}

.video-badge::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.gallery-item[data-type="video"]:hover .video-badge {
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    transform: translate(-50%, -50%) scale(1.1);
}

.gallery-item[data-type="video"]:hover .video-badge::before {
    border-left-color: #333;
}

/* Asegurar que el video no tape el badge */
.gallery-item video.gallery-thumbnail {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.gallery-overlay {
    z-index: 5;
}

/* Footer */
.footer {
    background: #373f47;
    color: white;
    text-align: center;
    padding: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #2c3e50;
        flex-direction: column;
        padding: 0; /* Cambiado de 1rem 0 */
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        opacity: 0; /* Agregado */
        visibility: hidden; /* Agregado */
    }
    
    .nav-menu.active {
        max-height: 300px;
        opacity: 1; /* Agregado */
        visibility: visible; /* Agregado */
        padding: 1rem 0; /* Movido aquí */
    }
    
    .nav-menu li {
        padding: 0.5rem 20px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 120px 20px 80px;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .section {
        padding: 60px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== Animaciones al hacer scroll ===== */

/* Estado inicial (oculto) */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 0.8s ease;
}

/* Estado visible */
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Variantes opcionales */
.reveal-left {
    transform: translateX(-60px);
}
.reveal-right {
    transform: translateX(60px);
}
.reveal-left.visible,
.reveal-right.visible {
    transform: translateX(0);
    opacity: 1;
}
