@font-face {
    font-family: 'Microsoft Himalaya';
    src: url('../assets/fonts/HIMALAYA.TTF') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primario: #1A1B1B;
    --secundario: #D6C339; 
    --texto-claro: #FDFBFA;
    --texto-menu: #F1EDD0;
    --bg-secundario: #212222;
    --fuente-principal: 'Microsoft Himalaya', serif;
    --header-height: 200px;  
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none !important; 
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

body {
    font-family: var(--fuente-principal);
    background-color: var(--primario);
    overflow-x: hidden;
}

/* --- HEADER --- */
header {
    background-color: var(--primario);
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
}

.logo {
    position: absolute;
    left: 20px;
}

.logo img {
    height: 150px; 
    width: auto;
}

.nav-menu ul {
    display: flex;
    gap: 50px; 
}

.nav-menu ul li a {
    color: var(--texto-claro);
    font-size: 1.6rem; 
    text-transform: uppercase;
    letter-spacing: 2px; 
    position: relative;
    transition: var(--transition);
}

.nav-menu ul li a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0%;
    height: 1px;
    background-color: var(--secundario);
    transition: var(--transition);
}

.nav-menu ul li a:hover { color: var(--secundario); }
.nav-menu ul li a:hover::after { width: 100%; }

/* --- HERO --- */
.hero {
    height: 100vh;
    background-image: linear-gradient(rgba(0,0,0,0.3), rgba(0,0,0,0.5)), url('../assets/fondo-index.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    padding-top: var(--header-height);
}

.hero-flex-container {
    height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-logo {
    height: 280px;
    width: auto;
    margin-bottom: 20px;
}

.main-title {
    display: flex;
    flex-direction: column;
    gap: 5px; 
    text-align: center;
}

.line-white {
    color: var(--texto-claro);
    font-size: 2.8rem;
    letter-spacing: 4px;
}

.line-gold {
    color: var(--secundario);
    font-size: 5rem; 
    font-weight: normal;
}

.btn-hero {
    color: var(--secundario);
    border: 1px solid var(--secundario);
    border-radius: 50px; 
    padding: 12px 60px; 
    font-size: 1.8rem; 
    text-transform: uppercase;
    background-color: rgba(0,0,0,0.6);
    transition: var(--transition);
    cursor: pointer;
}

.btn-hero:hover {
    background-color: var(--secundario);
    color: var(--primario);
    transform: scale(1.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    :root { --header-height: 140px; }
    .logo { left: 15px; }
    .logo img { height: 100px; }
    .line-white { font-size: 1.8rem; }
    .line-gold { font-size: 3.5rem; line-height: 1.1; }
}

@media (max-width: 768px) {
    :root { --header-height: 100px; }
    
    .navbar-container { justify-content: space-between; padding: 0 20px; }
    .logo { position: static; padding-left: 15px; }
    .logo img { height: 75px; }

    /* Menú Móvil - Estilos */
    .menu-toggle { display: block; cursor: pointer; z-index: 1001; }
    .menu-toggle .bar {
        display: block;
        width: 30px;
        height: 3px;
        margin: 6px auto;
        background-color: var(--secundario);
        transition: var(--transition);
    }

    /* Animación X del menú */
    #mobile-menu.active .bar:nth-child(2) { opacity: 0; }
    #mobile-menu.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    #mobile-menu.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: var(--header-height); 
        flex-direction: column;
        background-color: var(--primario);
        width: 100%;
        height: calc(100vh - var(--header-height)); 
        text-align: center;
        transition: 0.3s;
        justify-content: flex-start; 
        z-index: 1000;
        border-top: 1px solid rgba(214, 195, 57, 0.3); 
    }

    .nav-menu.active { left: 0; }
    .nav-menu ul { flex-direction: column; gap: 40px; }
    .nav-menu ul li a { font-size: 2.2rem; }

    /* Hero Mobile */
    .hero-flex-container { padding: 40px 20px; justify-content: center; gap: 50px; }
    .line-white { font-size: 1.4rem; letter-spacing: 2px; line-height: 1.2; }
    .line-gold { font-size: 2.8rem; margin-top: 10px; }
    .hero-logo { height: 160px; }
    .hero-text-wrapper { width: 100%; }
    .btn-hero { padding: 12px 40px; font-size: 1.5rem; width: 100%; max-width: 300px; }
}

/* --- QUIÉNES SOMOS --- */
.qs-page {
    padding-top: calc(var(--header-height) + 60px);
    background-color: #000000; 
    color: var(--texto-claro);
    min-height: 100vh;
    border-top: 5px solid var(--secundario);
}


.qs-page .container {
    max-width: 1650px;
}

.qs-intro-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 60px;
    margin-bottom: 80px;
}

.qs-intro-left { flex: 0.8; }
.qs-intro-right { 
    flex: 1.2; 
    padding-right: 0;
}

.qs-gold-title {
    font-family: var(--fuente-principal);
    color: var(--secundario);
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    line-height: 0.85;
    text-transform: capitalize;
    /* Estado inicial para la animación */
    font-weight: normal;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s ease-out;
}

@media (max-width: 768px) {
    .qs-gold-title, .qs-main-title {
        transform: translateY(30px); 
    }
}

.qs-gold-title.reveal {
    opacity: 1;
    transform: translateX(0);
    transform: translateY(0);
}

.qs-description {
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    line-height: 1.3;
    text-align: left;
    text-justify: none;
    max-width: 100%;
    color: var(--texto-claro);
    hyphens: auto;
    word-break: auto-phrase;
}

/* Tarjetas con animación Reveal */
.qs-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
    margin-top: 40px;
    content-visibility: auto;
    contain-intrinsic-size: 1px 500px;
}

.qs-card-icon img {
    aspect-ratio: 1 / 1;
}

.qs-card {
    background-color: var(--bg-secundario);
    padding: 40px;
    border-radius: 5px;
    opacity: 0; 
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.qs-card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.qs-card-icon img {
    height: 60px;
    width: auto;
    filter: brightness(0) invert(1); 
}

.qs-card.reveal {
    opacity: 1;
    transform: translateY(0);
}

.qs-card-title {
    text-align: center;
    color: var(--secundario);
    font-size: 3rem;
    margin-bottom: 15px;
    font-weight: normal;
    text-transform: capitalize;
}

.qs-card-text {
    font-size: 1.8rem;
    line-height: 1.4;
    text-align: left;
    hyphens: auto;
}

/* Responsivo Quiénes Somos */
@media (max-width: 850px) {
    .qs-intro-flex {
        flex-direction: column;
        gap: 30px;
    }
    .qs-cards-grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }
    .qs-card { padding: 30px; }
    .qs-card-title { font-size: 2.5rem; }
    .qs-card-text { font-size: 1.6rem; }
}

/* --- GALERÍA DESLIZANTE --- */
.qs-gallery-section {
    margin-top: 100px;
    padding-bottom: 50px;
    overflow: hidden; 
    background-color: #000;
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

.gallery-cta {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.gallery-container {
    width: 100%;
    display: flex;
    position: relative;
    align-items: center;
}

.gallery-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    animation: scroll 90s linear infinite; /*velocidad de desplazamiento */
    width: calc(600px * 17 + 20px * 16);
    padding: 20px 0;
}

/* Ajuste de Galería para Móvil */
@media (max-width: 768px) {
    .gallery-track {
        width: calc(300px * 17 + 15px * 16);
        gap: 15px;
    }
    .gallery-track img {
        width: 300px;
        height: 220px;
    }
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-315px * 11)); } 
    }
}

/* --- MODAL / LIGHTBOX --- */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: flex;
    max-width: 95%;
    max-height: 70vh;
    object-fit: contain;
    border: 2px solid var(--secundario);
    border-radius: 5px;
    animation: zoom 0.3s ease;
}

.close-modal {
    position: absolute;
    top: 40px;
    right: 50px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

.gallery-track img {
    width: 600px; 
    height: 450px;
    object-fit: cover; 
    border-radius: 8px;
    filter: grayscale(30%);
    transition: var(--transition);
    cursor: pointer;
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    padding: 20px;
    transition: var(--transition);
}
.modal-nav:hover { color: var(--secundario); }
.m-prev { left: 5%; }
.m-next { right: 5%; }

.gallery-track:hover, .gallery-track.paused {
    animation-play-state: paused; /* Se detiene al pasar el mouse */
}

.gallery-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.02);
}

@keyframes zoom {
    from {transform:scale(0)} 
    to {transform:scale(1)}
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-620px * 11)); } 
}

/* --- ESTILOS PÁGINA SERVICIOS --- */

.services-page {
    padding-top: calc(var(--header-height) + 60px);
    background-color: #000000;
    color: var(--texto-claro);
}

.s-intro {
    text-align: center;
    margin-bottom: 50px;
}

.qs-main-title {
    color: var(--secundario);
    font-size: clamp(2.5rem, 8vw, 3.8rem);
    text-transform: capitalize;
    line-height: 0.85;
    font-weight: normal;
    /* Estado inicial para la animación */
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1.2s ease-out;
}

.qs-main-title.reveal {
    opacity: 1;
    transform: translateX(0);
    transform: translateY(0);
}

.qs-text {
    color: var(--texto-claro);
    line-height: 1.4;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 80px;
}

.service-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #333;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secundario);
}

.service-card.qs-card {
    padding: 0;
}

.s-card-img {
    width: 100%;
    height: 350px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}

.s-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .s-card-img img {
    transform: scale(1.1);
}

/* Caja de información debajo de la imagen */
.s-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex-grow: 1;
}

.s-title {
    color: var(--secundario);
    font-size: 2.2rem;
    text-transform: capitalize;
    font-weight: normal;
    margin-bottom: 15px;
}

.s-desc {
    color: var(--texto-claro);
    font-size: 1.4rem;
    line-height: 1.3;
    text-align: justify;
    margin-bottom: 25px;
}

/* Ajuste del botón dentro de las tarjetas de servicio */
.s-info .btn-hero {
    margin-top: auto;
    padding: 10px 30px;
    font-size: 1.4rem;
}

/* Responsive */
@media (max-width: 992px) {
    .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 650px) {
    .services-grid { grid-template-columns: 1fr; }
    .service-card { height: auto; }
}

/* --- PÁGINA CONTACTO ESPECÍFICO --- */
.contacto-page {
    padding-top: calc(var(--header-height) + 80px);
    background-color: #000000;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.contacto-flex {
    display: flex;
    justify-content: space-between;
    gap: 80px;
    align-items: flex-start;
}

.contacto-info {
    flex: 1;
}

.contacto-highlight {
    margin-top: 30px;
    font-size: clamp(1.8rem, 2.2vw, 2.4rem);
    line-height: 1.3;
    color: var(--texto-claro);
}

.social-contact {
    margin-top: 40px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-item {
    color: var(--secundario);
    border: 1px solid var(--secundario);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border-radius: 50%;
    transition: var(--transition);
}

.social-item:hover {
    background-color: var(--secundario);
    color: var(--primario);
}

/* Colores de Redes Sociales */
.social-fb { color: #1877F2; border-color: #1877F2; }
.social-fb:hover { background-color: #1877F2; color: #fff; }


.social-ig { color: #E4405F; border-color: #E4405F; }
.social-ig:hover { background-color: #E4405F; color: #fff; }

.social-tk { color: #FE2C55; border-color: #FE2C55; }
.social-tk:hover { background-color: #FE2C55; color: #fff; }

.social-wa { color: #25D366; border-color: #25D366; }
.social-wa:hover { background-color: #25D366; color: #fff; }

.contacto-form-wrapper {
    flex: 1;
    background-color: var(--bg-secundario);
    padding: 50px;
    border-radius: 10px;
    border: 1px solid rgba(214, 195, 57, 0.2);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: var(--secundario);
    font-size: 2.5rem;
    font-weight: normal;
    margin-bottom: 10px;
}

.form-header p {
    color: var(--texto-claro);
    font-size: 1.2rem;
    opacity: 0.8;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    color: var(--secundario);
    font-size: 1.4rem;
    margin-bottom: 8px;
    text-align: left;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 15px;
    background-color: var(--primario);
    border: 1px solid #444;
    color: white;
    font-family: var(--fuente-principal);
    font-size: 1.4rem;
    border-radius: 5px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    border-color: var(--secundario);
    box-shadow: 0 0 10px rgba(214, 195, 57, 0.1);
}

.contact-form .btn-hero {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .contacto-flex {
        flex-direction: column;
        gap: 50px;
        text-align: center;
    }
    .contacto-info .qs-description {
        text-align: center;
    }
    .social-contact {
        justify-content: center;
    }
    .contacto-form-wrapper { width: 100%; padding: 30px; }
}

/* --- SECCIÓN CONTACTO --- */
.contacto {
    background-color: #000;
    padding: 100px 0;
    color: white;
}
.container-con {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}
.info-cont { flex: 1; }
.info-cont h1 { color: var(--secundario); font-size: 3.5rem; margin-bottom: 20px; font-weight: normal; }
.info-cont p { font-size: 1.6rem; margin-bottom: 40px; }
.whatsapp-card, .tel-card { display: flex; align-items: center; gap: 20px; margin-bottom: 20px; }
.icon-ws { width: 50px; }
.num-cont h2, .tel-info h2 { color: var(--secundario); font-size: 1.4rem; font-weight: normal; }
.num-cont p, .tel-info p { font-size: 1.8rem; margin: 0; }
.image-section { flex: 1; text-align: right; }
.main-image { max-width: 400px; width: 100%; }

.fin {
    background-color: var(--bg-secundario);
    padding: 40px 0;
    text-align: center;
    color: var(--texto-claro);
    font-size: 1.2rem;
}

@media (max-width: 850px) {
    .container-con { flex-direction: column; text-align: center; gap: 50px; }
    .image-section { order: -1; text-align: center; }
    .main-image { max-width: 250px; }
}

/* --- FOOTER GLOBAL --- */
.site-footer {
    background-color: var(--bg-secundario);
    padding: 40px 0 20px;
    color: var(--texto-claro);
    margin-top: 60px;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-main {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    position: relative;
    min-height: 100px;
}

.footer-logo {
    position: absolute;
    left: 0;
    height: 100px;
    width: auto;
}

.footer-text {
    text-align: center;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.footer-social .social-item {
    width: 35px;
    height: 35px;
    font-size: 1.2rem;
}

.footer-title {
    color: var(--secundario);
    font-size: 2rem;
    font-weight: normal;
    margin-bottom: 5px;
}

.footer-info {
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.footer-info a {
    color: var(--texto-claro);
    transition: var(--transition);
}

.footer-info a:hover {
    color: var(--secundario);
}

.footer-copy {
    width: 100%;
    text-align: center;
    font-size: 1.1rem;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    opacity: 0.8;
}

.footer-copy a {
    color: var(--texto-claro);
    margin-left: 15px;
    text-decoration: underline !important;
}

@media (max-width: 768px) {
    .footer-main { 
        flex-direction: column; 
        text-align: center; 
        gap: 20px; 
        width: 100%; 
        position: static;
    }
    .footer-logo {
        position: static;
    }
    .footer-container { justify-content: center; }
}