/* =========================================
   Variables y Configuraciones Generales
========================================= */
:root {
    /* Paleta de Colores - Premium Black & Elegant Gold */
    --primary: #000000;       /* Pure Black */
    --secondary: #1A1A1A;     /* Charcoal / Off Black */
    --accent: #D4AF37;        /* Metallic Gold */
    --accent-hover: #C5A028;  /* Deep Gold */
    --text-main: #FFFFFF;     /* Pure White for dark bg */
    --text-muted: #A0A0A0;    /* Muted Gray */
    --bg-light: #F8F9FA;      /* Light background for sections */
    --text-dark: #000000;     /* Dark text for light bg */
    --white: #FFFFFF;
    
    /* Efectos Glassmorphism - Black tinted */
    --glass-bg: rgba(0, 0, 0, 0.85);
    --glass-border: rgba(212, 175, 55, 0.2); /* Tinted with gold */
    
    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* =========================================
   Tipografía y Botones
========================================= */
h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 20px;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    color: var(--primary);
    margin-bottom: 20px;
}

.subtitle {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 2px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary);
}

/* =========================================
   Navbar (Glassmorphism)
========================================= */
.glass-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.glass-navbar.scrolled {
    padding: 12px 0;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: var(--accent);
}

.logo span {
    color: var(--accent);
}

.glass-navbar:not(.scrolled) .logo,
.glass-navbar:not(.scrolled) .nav-links a {
    color: var(--white);
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); /* Mejor visibilidad si la imagen es clara a veces, aunque es dark blue */
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-main);
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: var(--accent);
    transition: var(--transition);
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    font-size: 1.8rem;
    color: var(--white);
    cursor: pointer;
}

/* =========================================
   Hero Section
========================================= */
.hero {
    height: 100vh;
    min-height: 600px;
    background: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    width: 100%;
    padding: 0 20px;
    margin-top: 60px;
}

.hero-content h1 span {
    color: var(--accent);
}

.hero-content p {
    color: var(--text-main);
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 30px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* =========================================
   Estructura Secciones Generales
========================================= */
.section-padding {
    padding: 100px 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 60px;
}

/* =========================================
   Servicios Section
========================================= */
.services {
    background-color: var(--bg-light);
}

.services-video-container {
    max-width: 900px;
    margin: 0 auto 50px auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

.services-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-bottom: 4px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.2);
    border-bottom: 4px solid var(--accent);
}

.icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 107, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: var(--transition);
}

.icon-wrapper i {
    font-size: 24px;
    color: var(--accent);
}

.service-card:hover .icon-wrapper {
    background: var(--accent);
}

.service-card:hover .icon-wrapper i {
    color: var(--white);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.service-card p {
    color: #555;
}

/* =========================================
   Beneficios Section
========================================= */
.benefits-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    align-items: center;
}

.benefits-text {
    flex: 1;
}

.benefits-text p {
    color: #555;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.benefits-list {
    margin-bottom: 40px;
}

.benefits-list li {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--text-dark);
}

.benefits-list i {
    color: var(--accent);
    font-size: 1.2rem;
}

.benefits-stats {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.stat-box {
    background: var(--white);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.stat-box.highlighted {
    background: var(--primary);
    color: var(--white);
    border: none;
}

.stat-box.highlighted p {
    color: var(--text-muted);
}

.stat-box.highlighted h3 {
    color: var(--accent);
}

.stat-box h3 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-box p {
    font-weight: 500;
    color: #666;
}

/* =========================================
   CTA Banner Parallax
========================================= */
.cta-banner {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.85)), url('./assets/hero_bg.png') center/cover no-repeat fixed;
    text-align: center;
    padding: 100px 20px;
    color: var(--white);
}

.cta-banner h2 {
    color: var(--white);
}

.cta-banner p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: var(--text-main);
}

/* =========================================
   Work Gallery Section
========================================= */
.work-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.work-item {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.1);
}

.work-video-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.work-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-info {
    padding: 30px;
    text-align: center;
}

.work-info h3 {
    color: var(--accent);
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
    .work-video-container {
        height: 300px;
    }
}

/* =========================================
   Payments Section
========================================= */
.payments {
    background-color: var(--secondary);
    position: relative;
    overflow: hidden;
}

.payments .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.payments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
    margin-bottom: 60px;
}

.payment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.1);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.payment-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.payment-card.highlighted {
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.payment-icon {
    font-size: 3rem;
    color: var(--accent);
    margin-bottom: 20px;
}

.payment-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #fff;
}

.payment-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
    line-height: 1.6;
}

.payment-card .price {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 30px;
}

.payment-card .price span {
    font-size: 1.2rem;
}

.btn-gold-outline {
    padding: 14px 28px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
}

.btn-gold-outline:hover {
    background: var(--accent);
    color: var(--primary);
}

.trust-badges {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.trust-badges p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.badge-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    font-size: 2.5rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 25px;
}

.badge-icons i {
    transition: var(--transition);
}

.badge-icons i:hover {
    color: var(--accent);
    transform: scale(1.1);
}

.secure-note {
    font-size: 0.8rem !important;
    color: #4BB543 !important; /* Success Green */
}

/* =========================================
   Contacto Section
========================================= */
.contact {
    background: var(--bg-light);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
}

.contact-info {
    flex: 1;
}

.contact-info p {
    margin-bottom: 40px;
    color: #555;
    font-size: 1.1rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--accent);
}

.info-item h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.info-item p {
    margin-bottom: 0;
    font-size: 1rem;
}

.contact-form-container {
    flex: 1;
}

.glass-form {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--primary);
    font-size: 0.95rem;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: var(--transition);
    background: #fafafa;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, 0.1);
}

.submit-btn {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.form-status {
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
    color: #27ae60;
}

.hidden {
    display: none;
}

/* =========================================
   Footer
========================================= */
footer {
    background: var(--primary);
    color: var(--text-main);
    padding: 80px 20px 20px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin: 20px 0;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent);
    transform: translateY(-3px);
}

.footer-links h3 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-muted);
    transition: var(--transition);
}

.footer-links ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* =========================================
   Animaciones (Para script.js Observer)
========================================= */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards;
}

.fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-element.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { animation-delay: 0.2s; transition-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; transition-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; transition-delay: 0.6s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   Responsive Design
========================================= */
@media (max-width: 992px) {
    .benefits-container, .contact-container {
        flex-direction: column;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        background: var(--primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.4s ease;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 20px 0;
    }
    
    .nav-links a {
        font-size: 1.2rem;
        color: var(--white) !important;
    }

    .desktop-btn {
        display: none;
    }
    
    .menu-icon {
        display: block;
        z-index: 1001; /* Asegura que el icono quede sobre el menú al abrirlo */
    }

    .hero {
        height: 550px; /* Reducido de 100vh para evitar recorte agresivo del video */
        min-height: 550px;
    }

    .hero-content {
        margin-top: 40px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-content p {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}

/* =========================================
   WhatsApp Floating Button
========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: var(--transition);
    text-decoration: none;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: #fff;
}

/* =========================================
   Chatbot Widget
========================================= */
.chatbot-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--white);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-toggle:hover {
    transform: scale(1.1);
    background-color: var(--accent-hover);
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    border: 1px solid #eee;
}

.chat-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.chat-header {
    background: var(--primary);
    color: var(--white);
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-chat {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
}

.chat-body {
    height: 300px;
    padding: 15px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fdfdfd;
}

.chat-message {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    word-wrap: break-word;
}

.chat-message.bot {
    background: #f0f2f5;
    color: var(--text-dark);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.chat-message.user {
    background: var(--accent);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-message p {
    margin: 0;
}

.chat-footer {
    padding: 15px;
    border-top: 1px solid #eee;
    background: var(--white);
}

#chat-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 20px;
    outline: none;
    font-family: inherit;
    font-size: 0.95rem;
}

#send-chat {
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

#send-chat:hover {
    background: var(--accent-hover);
}

.typing-indicator {
    padding: 10px 14px;
    background: #f0f2f5;
    border-radius: 12px;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    display: flex;
    gap: 4px;
    align-items: center;
    height: 40px;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    background: #8892b0;
    border-radius: 50%;
    display: inline-block;
    animation: typingBounce 1.4s infinite ease-in-out both;
}

.typing-indicator span:nth-child(1) { animation-delay: -0.32s; }
.typing-indicator span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}
