/* ===== VARIABLES Y ESTILOS GLOBALES ===== */
:root {
    --color-primary: #d4af37; /* Dorado */
    --color-background: #050505;
    --color-surface: #111111;
    --color-surface-dark: #000000;
    --color-text: #f0f0f0;
    --color-text-secondary: #a0a0a0;
    --color-border: #222222;
    --font-primary: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* ===== BOTONES ===== */
.btn {
    display: inline-block;
    font-weight: bold;
    text-decoration: none;
    border-radius: 9999px;
    transition-property: transform, background-color, color;
    transition-duration: 0.3s;
}

.btn:hover {
    transform: scale(1.05);
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-background);
    padding: 0.5rem 1.25rem;
}

.btn-primary:hover {
    background-color: #e6c35c;
}

.btn-secondary {
    border: 2px solid var(--color-primary);
    color: var(--color-primary);
    padding: 0.75rem 2rem;
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: var(--color-background);
}

.btn-large {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* ===== HEADER Y NAVEGACIÓN ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1001;
    transition: all 0.3s ease-in-out;
}

.header.scrolled {
    background-color: rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--color-text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 30px;
    width: auto;
    border-radius: 50%;
}

.nav-menu {
    display: none;
    align-items: center;
    list-style: none;
    gap: 1.5rem; 
}

.nav-link {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--color-primary);
}

.mobile-header-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switcher-btn {
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text-secondary);
    padding: 0.4rem 0.8rem;
    border-radius: 9999px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switcher-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.mobile-menu-button {
    display: block;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}


/* ===== MENÚ MÓVIL OVERLAY ===== */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--color-background);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.is-open {
    transform: translateX(0);
}

.mobile-menu-close-button {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--color-text);
    cursor: pointer;
}

.mobile-menu-close-button svg {
    width: 2rem;
    height: 2rem;
}

.mobile-menu-overlay .mobile-menu-link,
.mobile-menu-overlay .mobile-menu-link-contact {
    font-size: 2rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    border: none;
    padding: 0;
    background: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.mobile-menu-overlay .mobile-menu-link:hover {
    color: var(--color-primary);
}

.mobile-menu-overlay .mobile-menu-link-contact {
    color: var(--color-primary);
    font-weight: 700;
    margin-top: 1rem;
}

.mobile-menu-overlay.is-open .mobile-menu-link,
.mobile-menu-overlay.is-open .mobile-menu-link-contact {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(2) { transition-delay: 0.1s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(4) { transition-delay: 0.2s; }
.mobile-menu-overlay.is-open .mobile-menu-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu-overlay.is-open .mobile-menu-link-contact { transition-delay: 0.35s; }


/* ===== SECCIONES ===== */
.section {
    padding-top: 5rem;
    padding-bottom: 5rem;
    position: relative;
}

.section-dark {
    background-color: var(--color-surface-dark);
}

.section-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    opacity: 0.5;
}

.section-title {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
}
.section-title-animaciones {
    font-size: 2.25rem;
    font-weight: bold;
    margin-bottom: 1rem;
    padding: 2rem;
}

.section-subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
    color: var(--color-text-secondary);
}

.section-paragraph {
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}


/* ===== HERO SECTION ===== */
.hero-section {
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    perspective: 1500px;
}

.video-grid-background {
    position: absolute;
    top: -25%;
    left: -10%;
    width: 120%;
    height: 150%;
    z-index: 1;
    display: flex;
    gap: 1rem;
    transform: rotateX(35deg) scale(1.05); 
}

.video-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.video-column video {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    object-fit: cover;
}

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

@keyframes scroll-down {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); }
}

.video-column:nth-child(odd) { animation: scroll-up 60s linear infinite; }
.video-column:nth-child(even) { animation: scroll-down 60s linear infinite; }
.video-column:nth-child(3) { animation-duration: 45s; }


.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding: 0 1rem;
}


.hero-title {
    font-size: clamp(2.2rem, 10vw, 4.5rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    line-height: 1.2;
}

.hero-title span {
    color: var(--color-primary);
}

.hero-subtitle {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    color: var(--color-text-secondary);
}

.hero-cta {
    margin-top: 2.5rem;
}

.content-wrapper {
    position: relative;
    z-index: 5;
    background-color: var(--color-background);
}


/* ===== NOSOTROS SECTION ===== */
.grid-2-cols {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.stats-container {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.stat-number {
    display: block;
    font-size: 2.25rem;
    font-weight: bold;
    color: var(--color-primary);
}

.stat-label {
    color: var(--color-text-secondary);
}

/* ===== SERVICIOS SECTION ===== */
.services-grid {
    display: grid;
    gap: 2rem;
}

.service-card {
    background-color: var(--color-surface);
    padding: 2rem;
    border-radius: 0.5rem;
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgba(212, 175, 55, 0.1), 0 10px 10px -5px rgba(212, 175, 55, 0.04);
}

.service-icon {
    width: 3rem;
    height: 3rem;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* ===== TIPOS DE VIDEO SECTION ===== */
.video-types-intro {
    margin-bottom: 3rem;
}

.video-types-grid {
    display: grid;
    gap: 2rem;
}

.video-type-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background-color: var(--color-surface);
    padding: 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid var(--color-border);
}

.video-type-card .card-icon {
    color: var(--color-primary);
}

.video-type-card .card-icon svg {
    width: 2.5rem;
    height: 2.5rem;
}

.video-type-card h3 {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.video-type-card p {
    color: var(--color-text-secondary);
    line-height: 1.6;
}


/* ===== PORTAFOLIO SECTION ===== */
.portfolio-grid {
    display: grid;
    gap: 1.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

.portfolio-item-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    z-index: 10;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 80%);
    opacity: 0;
    transform: translateY(2.5rem);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.portfolio-item:hover .portfolio-item-overlay {
    opacity: 1;
    transform: translateY(0);
}

.portfolio-item-overlay h3 {
    font-size: 1.5rem;
    font-weight: bold;
}

.portfolio-cta {
    margin-top: 3rem;
}

/* ===== PROCESO SECTION ===== */
.process-timeline {
    position: relative;
    display: grid;
    gap: 2.5rem;
}

.process-icon {
    width: 4rem;
    height: 4rem;
    background-color: var(--color-surface);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin: 0 auto 1rem auto;
    border: 2px solid var(--color-border);
}

.process-icon svg {
    width: 2rem;
    height: 2rem;
}

.process-step {
    text-align: center;
}

.process-title {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

/* ===== CONTACTO SECTION ===== */
.contact-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    text-align: center;
}

.contact-form {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.form-group {
    position: relative;
}

.form-input, .form-textarea {
    width: 100%;
    background-color: transparent;
    border: none;
    border-bottom: 2px solid var(--color-border);
    border-radius: 0;
    padding: 0.75rem 0;
    color: var(--color-text);
    transition: border-color 0.3s ease;
    font-size: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 80px;
}

.form-label {
    position: absolute;
    top: 0.75rem;
    left: 0;
    color: var(--color-text-secondary);
    pointer-events: none;
    transition: all 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:valid + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:valid + .form-label {
    top: -1.25rem;
    font-size: 0.875rem;
    color: var(--color-primary);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}

.form-grid {
    display: grid;
    gap: 2.5rem;
}

.form-status {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 2rem;
    text-align: center;
    transition: opacity 0.3s ease;
}
.form-status.success {
    background-color: rgba(212, 175, 55, 0.1);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}
.form-status.error {
    background-color: rgba(255, 77, 77, 0.1);
    color: #ff4d4d;
    border: 1px solid #ff4d4d;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.4); }
    70% { box-shadow: 0 0 25px 10px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.highlight-section {
    animation: pulse-glow 1.5s ease-out;
    border-radius: 0.5rem;
}

/* ===== BOTÓN FLOTANTE DE WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--color-primary);
    color: var(--color-background);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

.whatsapp-float svg {
    width: 32px;
    height: 32px;
}


/* ===== FOOTER ===== */
.footer {
    background-color: var(--color-surface);
    padding: 3rem 0;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links a,
.social-links .social-link-btn {
    color: var(--color-text-secondary);
    transition: color 0.3s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.social-links a:hover,
.social-links .social-link-btn:hover {
    color: var(--color-primary);
}


/* ===== MODALES ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1002; /* Por encima del header */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--color-surface);
    max-width: 56rem;
    width: 100%;
    border-radius: 0.5rem;
    overflow: hidden;
    position: relative;
}

.phone-modal-content {
    background-color: var(--color-surface);
    padding: 2.5rem;
    border-radius: 0.5rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
}
.phone-modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-primary);
}
.phone-modal-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    font-weight: 500;
}

.modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.modal-close-button:hover {
    color: var(--color-primary);
}

.modal-close-button i,
.modal-close-button svg {
    width: 2rem;
    height: 2rem;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; 
    height: 0;
    background-color: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-text {
    padding: 2rem;
}

.modal-text h3 {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.modal-text p {
    color: var(--color-text-secondary);
}

/* ===== MEDIA QUERIES (RESPONSIVE) ===== */

@media (max-width: 1023px) {
    .mobile-header-buttons {
        display: flex;
    }
    .nav-menu {
        display: none;
    }
    .video-grid-background {
        transform: rotateX(35deg) scale(1.2);
        top: -15%;
        left: -25%;
        width: 150%;
        height: 130%;
        gap: 0.5rem;
    }

    .video-column video {
        min-height: 35vh;
        object-fit: cover;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 0.05em;
    }
}

@media (min-width: 1024px) {
    .section {
        padding-top: 8rem;
        padding-bottom: 8rem;
    }
    
    .nav-menu {
        display: flex;
    }

    .mobile-header-buttons {
        display: none;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .grid-2-cols {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-text {
        order: 1;
    }
    
    .about-image {
        order: 2;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .video-types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .process-timeline {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .form-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

