/* Variables */
:root {
    --bg-primary: #080808;
    --bg-secondary: #0f0f0f;
    --accent-gold: #c9a84c;
    --text-primary: #f0ede8;
    --text-secondary: rgba(240, 237, 232, 0.5);
    --border-radius: 2px;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    cursor: none;
}

/* Cursor personalizado */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-gold);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(201, 168, 76, 0.3);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, border-color 0.3s;
}

body:hover .cursor-ring {
    border-color: rgba(201, 168, 76, 0.6);
}

/* Textura de grano */
.grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

/* Navegaci&oacute;n */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(8, 8, 8, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 3rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-gold);
}

/* Language toggle */
.lang-toggle {
    background: transparent;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: var(--text-secondary);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    cursor: pointer;
    padding: 0.35rem 0.7rem;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    line-height: 1;
}

.lang-toggle:hover {
    color: var(--accent-gold);
    border-color: var(--accent-gold);
}

/* Botón hamburguesa */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--accent-gold);
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    pointer-events: none;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    /* Cover technique: take whichever is larger — full width or full height */
    width: 100vw;
    height: 56.25vw; /* 16:9 ratio based on width */
    min-height: 100vh;
    min-width: 177.78vh; /* 16:9 ratio based on height */
    transform: translate(-50%, -50%);
    border: 0;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(8, 8, 8, 0.95) 0%, rgba(8, 8, 8, 0.75) 40%, rgba(8, 8, 8, 0.4) 70%, rgba(8, 8, 8, 0.3) 100%);
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 3;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.2s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 5rem;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 2rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.hero h1 em {
    font-style: italic;
    font-weight: 300;
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    letter-spacing: 0.03em;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    border: 1px solid var(--accent-gold);
    background: transparent;
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: var(--border-radius);
    transition: all 0.4s ease;
    opacity: 0;
    animation: fadeInUp 1s ease 0.8s forwards;
}

.cta-button:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Divider */
.divider {
    width: 100%;
    height: 1px;
    background: var(--accent-gold);
    margin: 8rem 0 4rem 0;
}

/* Section Title */
.section-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 4rem;
    color: var(--text-primary);
}

.section-title em {
    font-style: italic;
    color: var(--accent-gold);
}

/* Portafolio */
.portfolio {
    padding: 6rem 0;
    background: var(--bg-primary);
}

/* Fila de portafolio */
.portfolio-row {
    margin-bottom: 5rem;
    position: relative;
}

.row-title {
    font-size: 0.75rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 2rem;
    padding-left: 48px;
    font-weight: 400;
}

/* Scroll horizontal */
.portfolio-scroll {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 12px;
    padding: 0 48px;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE y Edge */
    scroll-behavior: smooth;
}

.portfolio-scroll::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Opera */
}

.portfolio-item {
    position: relative;
    flex-shrink: 0;
    cursor: pointer;
    background: var(--bg-secondary);
}

/* Videos horizontales: altura 280px, aspect-ratio 16:9 */
.portfolio-item.horizontal .portfolio-image {
    height: 280px;
    aspect-ratio: 16/9;
}

/* Videos verticales: altura 420px, aspect-ratio 9:16 */
.portfolio-item.vertical .portfolio-image {
    height: 420px;
    aspect-ratio: 9/16;
}

/* Afiches: altura 420px, aspect-ratio 4:5 */
.portfolio-item.afiche .portfolio-image {
    height: 420px;
    aspect-ratio: 4/5;
}

.portfolio-image {
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.02);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.play-icon {
    font-size: 3rem;
    color: var(--accent-gold);
}

.portfolio-info {
    padding: 1.5rem 1rem 1rem 1rem;
    background: var(--bg-primary);
}

.portfolio-brand {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.portfolio-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.03em;
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(8, 8, 8, 0.96);
    z-index: 10001;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: none;
}

.lightbox.active {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    padding: 0.5rem 1.5rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    text-transform: uppercase;
}

.lightbox-close:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-video-wrapper {
    display: none;
}

.lightbox-video-wrapper.active {
    display: block;
}

.lightbox-video-wrapper iframe {
    border: none;
}

/* Videos horizontales en lightbox */
.lightbox-video-wrapper.horizontal iframe {
    width: 80vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
}

/* Videos verticales en lightbox */
.lightbox-video-wrapper.vertical iframe {
    height: 85vh;
    aspect-ratio: 9/16;
}

/* Imagen en lightbox */
.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    display: none;
}

.lightbox-image.active {
    display: block;
}

/* Flechas de navegación */
.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #c9a84c;
    border-radius: 50%;
    color: #c9a84c;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    line-height: 1;
    padding: 0;
}

.scroll-arrow:hover {
    background: rgba(201, 168, 76, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.scroll-arrow-left {
    left: 4px;
}

.scroll-arrow-right {
    right: 4px;
}

/* Desktop: ocultar flechas hasta hover en la fila */
@media (min-width: 769px) {
    .scroll-arrow {
        opacity: 0;
        pointer-events: none;
    }

    .portfolio-row:hover .scroll-arrow {
        opacity: 1;
        pointer-events: auto;
    }
}

/* Servicios */
.services {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.service-card {
    padding: 0;
    border: none;
    background: transparent;
}

.service-card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    letter-spacing: 0.03em;
}

/* Value Proposition */
.value-proposition {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.value-content {
    max-width: 900px;
    margin: 0 auto;
}

.value-statement {
    font-size: 1.25rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    line-height: 1.8;
}

.value-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
}

.feature {
    text-align: center;
}

.feature-number {
    font-family: 'Cormorant Garamond', serif;
    font-size: 3rem;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 1rem;
}

.feature p {
    color: var(--text-secondary);
    letter-spacing: 0.03em;
}

/* Contact */
.contact {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    margin-top: 4rem;
}

.contact-info h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method a,
.contact-method span {
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--text-primary);
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(201, 168, 76, 0.3);
    color: var(--text-primary);
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    letter-spacing: 0.03em;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-secondary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-bottom-color: var(--accent-gold);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-button {
    padding: 1rem 3rem;
    background: transparent;
    border: 1px solid var(--accent-gold);
    color: var(--accent-gold);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s ease;
    align-self: flex-start;
    border-radius: var(--border-radius);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
}

.submit-button:hover {
    background: var(--accent-gold);
    color: var(--bg-primary);
}

/* Botón flotante de WhatsApp */
.whatsapp-button {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    background: #0f0f0f;
    border: 1px solid #c9a84c;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-icon {
    color: #c9a84c;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.whatsapp-text {
    position: absolute;
    right: 62px;
    background: #0f0f0f;
    border: 1px solid #c9a84c;
    color: #c9a84c;
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    font-size: 0.7rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-weight: 300;
}

.whatsapp-button:hover .whatsapp-text {
    opacity: 1;
}

/* Footer */
.footer {
    padding: 4rem 0;
    text-align: center;
    background: var(--bg-primary);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
}

/* Animaciones de scroll */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .section-title {
        font-size: 3rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .row-title {
        padding-left: 24px;
    }

    .portfolio-scroll {
        padding: 0 24px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(8, 8, 8, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.3s ease;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 2.5rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .value-features {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .divider {
        margin: 4rem 0 2rem 0;
    }

    /* Deshabilitar cursor personalizado en mobile */
    body {
        cursor: auto;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .lightbox-video-wrapper.horizontal iframe {
        width: 95vw;
    }

    .lightbox-video-wrapper.vertical iframe {
        height: 80vh;
    }

    .row-title {
        padding-left: 24px;
    }

    .portfolio-scroll {
        padding: 0 24px;
    }

    .contact {
        padding: 4rem 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-form {
        width: 100%;
        padding: 0 20px;
        box-sizing: border-box;
    }

    .form-group input,
    .form-group textarea {
        width: 100%;
        box-sizing: border-box;
        font-size: 1rem;
    }

    .submit-button {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .cta-button,
    .submit-button {
        width: 100%;
        text-align: center;
    }
}
