@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600&display=swap');

:root {
    --primary: #ffffff;
    --accent: #d4af37;
    --bg-overlay: rgba(0, 0, 0, 0.35); /* Lighter overlay */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    color: var(--primary);
    background-color: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
}

/* Background Handling */
.background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6; /* Un poco más bajo para resaltar el verde */
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(22, 54, 40, 0.9) 0%, 
        rgba(45, 90, 67, 0.6) 100%
    ); /* El verde esmeralda aplicado como filtro */
    z-index: 1;
}

/* Hero Layout */
.hero {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    width: 90%;
    align-items: center;
    padding: 2rem;
    z-index: 1;
}

/* Left Content */
.content {
    text-align: left;
    animation: slideInLeft 1s ease-out;
}

.logo {
    width: 280px;
    margin-bottom: 1.5rem;
}

.logo-horizontal {
    width: 350px; /* Wider for horizontal layout */
}

h1 {
    font-size: 3rem; /* Slightly smaller for the longer phrase */
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.2;
    margin-bottom: 0.8rem;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    margin-bottom: 1.5rem;
    color: var(--primary);
    max-width: 600px;
}

.description {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 500px;
}

.social-text {
    font-size: 0.95rem;
    font-weight: 400;
    margin-bottom: 1.2rem;
    color: var(--accent);
    letter-spacing: 0.05em;
}

/* Right Video Section */
.video-wrapper {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.8);
    border: 1px solid var(--glass-border);
    background: var(--glass);
    aspect-ratio: 4 / 5; /* Wider vertical format */
    max-height: 75vh;
    width: 100%; /* Occupy full column width up to max-height */
    max-width: 450px; /* Limit expansion */
    margin: 0 auto;
    animation: slideInRight 1.2s ease-out;
}

.video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Social Buttons */
.actions {
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-whatsapp {
    background: var(--primary);
    color: #000;
}

.btn-instagram, .btn-tiktok {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.btn-whatsapp:hover {
    background: #bf953f; /* Using gold on hover too */
    color: #fff;
}

.btn-instagram:hover, .btn-tiktok:hover {
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.05);
}

/* Footer */
.footer-text {
    margin-top: 4rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.4;
}

.gold-load {
    display: inline-block;
    color: rgba(255, 255, 255, 0.1);
    background: linear-gradient(
        to right, 
        #bf953f 0%, 
        #fcf6ba 20%, 
        #b38728 40%, 
        #fbf5b7 60%, 
        #aa771c 80%,
        #bf953f 100%
    );
    background-repeat: no-repeat;
    background-size: 0% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fillGold 3s forwards cubic-bezier(0.4, 0, 0.2, 1);
    animation-delay: 0.8s;
}

/* Animations */
@keyframes fillGold {
    0% { background-size: 0% 100%; }
    100% { background-size: 100% 100%; -webkit-text-fill-color: transparent; }
}

@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); }
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 0.4rem; /* Reducción drástica del gap */
        padding: 2rem 1.5rem; /* Menos padding superior */
    }
    
    /* Make content children participate directly in hero grid */
    .content {
        display: contents;
    }

    .logo {
        order: 1;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0.4rem;
        width: 180px;
    }

    h1 {
        order: 2;
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
        text-align: center;
        width: 100%;
        line-height: 1.2;
    }

    .video-wrapper {
        order: 3;
        width: 90%;
        max-width: 320px;
        margin: 0.5rem auto; /* Espacio mínimo alrededor del video */
    }

    .subtitle, .description, .social-text {
        order: 4;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 0.4rem; /* Reducción de márgenes entre párrafos */
        font-size: 0.9rem;
        text-align: center;
        max-width: 100%;
    }

    .subtitle {
        font-size: 1.2rem;
        margin-bottom: 0.3rem;
        line-height: 1.3;
    }

    .actions {
        order: 5;
        justify-content: center;
        width: 100%;
        margin-top: 0.8rem; /* Pequeño respiro antes de los botones */
    }

    .footer-text {
        order: 6;
        margin-top: 2rem; /* Reduced from 3rem */
        text-align: center;
        width: 100%;
    }
}

@media (max-width: 640px) {
    h1 { 
        font-size: 1.6rem; /* Further reduction for small screens */
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }
    .logo { width: 165px; }
    .btn { width: 100%; justify-content: center; }
}
