:root {
    /* Main Theme Colors */
    --primary: #FF6B00; /* Vibrant Orange for distinguished branding */
    --primary-hover: #E66000;
    --dark: #0F172A;
    --darker: #020617;
    --light: #F8FAFC;
    --white: #FFFFFF;
    --gray: #64748B;
    --gray-light: #E2E8F0;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Shadows & Transitions */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-body);
    font-size: 16px;
    color: var(--dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 800;
    line-height: 1.2;
}

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-orange {
    color: var(--primary);
}

.section {
    padding: 7rem 0;
}

.bg-light {
    background-color: var(--light);
}

/* ================= Buttons ================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    cursor: pointer;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--darker);
    transform: translateY(-3px);
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 0.6rem 1.8rem;
}

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

/* ================= Navbar ================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: var(--transition);
    padding: 0.5rem 0; /* Adjusted for taller logo */
}

.navbar.scrolled {
    padding: 0.25rem 0; /* Slightly smaller when scrolled */
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--gray-light);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-links a:not(.btn) {
    position: relative;
    color: var(--dark);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
}

.nav-links a:not(.btn):hover {
    color: var(--primary);
}

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

.nav-links a:not(.btn):hover::after {
    width: 100%;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--dark);
    padding: 0.5rem;
}

/* ================= Hero Section ================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--dark);
    color: var(--white);
    overflow: hidden;
    padding-top: 130px; /* Increased to account for taller navbar with new logo */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark gradient base with orange flares */
    background: radial-gradient(circle at 80% 20%, rgba(255, 107, 0, 0.2) 0%, transparent 50%),
                radial-gradient(circle at 10% 90%, rgba(255, 107, 0, 0.1) 0%, transparent 40%),
                linear-gradient(135deg, #020617 0%, #0F172A 100%);
    z-index: 1;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Industrial/Technical subtle pattern overlay */
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 850px;
    text-align: center;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1.5rem;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: #CBD5E1;
    margin-bottom: 3rem;
    font-weight: 300;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s forwards;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.4s forwards;
}

/* ================= Section Headers ================= */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.section-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    color: var(--darker);
}

.section-header p {
    color: var(--gray);
    font-size: 1.15rem;
}

/* ================= Services Grid ================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-light);
    padding: 3rem 2.5rem;
    border-radius: 1.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,107,0,0.05) 0%, transparent 100%);
    opacity: 0;
    z-index: -1;
    transition: var(--transition);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: transparent;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--light);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    transition: var(--transition);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

.service-card:hover .service-icon {
    background: rgba(255, 107, 0, 0.1);
    transform: scale(1.1) rotate(-5deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--darker);
}

.service-card p {
    color: var(--gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* ================= Work Process / Nosotros ================= */
.process-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 5rem;
    align-items: center;
}

.process-content h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: 1.5rem;
}

.process-content > p {
    color: var(--gray);
    font-size: 1.15rem;
    margin-bottom: 3rem;
    line-height: 1.8;
}

.process-list li {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.process-icon {
    background-color: var(--white);
    box-shadow: var(--shadow-md);
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

/* Connecting line design */
.process-list li:not(:last-child) .process-icon::after {
    content: '';
    position: absolute;
    top: 64px;
    left: 50%;
    width: 2px;
    height: 2.5rem;
    background-color: var(--gray-light);
    transform: translateX(-50%);
    z-index: -1;
}

.process-list h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--darker);
}

.process-list p {
    color: var(--gray);
    line-height: 1.6;
}

.image-placeholder {
    width: 100%;
    aspect-ratio: 4/5;
    background: linear-gradient(135deg, var(--gray-light) 0%, rgba(226, 232, 240, 0.4) 100%);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 3px dashed #CBD5E1;
    transition: var(--transition);
}

.process-image:hover .image-placeholder {
    border-color: var(--primary);
    transform: scale(1.02);
}

/* ================= CTA Contacto ================= */
.cta {
    background: linear-gradient(135deg, var(--primary) 0%, #CC5600 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    top: -100px;
    right: -100px;
}

.cta::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    bottom: -50px;
    left: -50px;
}

.cta-container {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 3.5rem;
    opacity: 0.95;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.25rem;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.5);
}

.contact-card .icon {
    font-size: 1.5rem;
}

/* Formulario de Cotización */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    text-align: left;
    margin-top: 2rem;
}

.contact-direct h3, .contact-form-wrapper h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.contact-direct > p {
    color: rgba(255,255,255,0.8);
    margin-bottom: 2rem;
}

.contact-form-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
}

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.75rem;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select:invalid,
.form-group select option {
    color: var(--darker);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

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

.w-100 {
    width: 100%;
}

/* ================= Footer ================= */
.footer {
    background-color: var(--darker);
    color: var(--white);
    padding: 5rem 0 0;
    border-top: 5px solid var(--primary);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand {
    max-width: 400px;
}

.footer-brand p {
    color: var(--gray);
    margin-top: 1.5rem;
    line-height: 1.6;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    color: var(--white);
    font-weight: 600;
}

.footer-links p {
    color: var(--gray);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-links p::before {
    content: '→';
    color: var(--primary);
    font-weight: bold;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    text-align: center;
    color: var(--gray);
    font-size: 0.9rem;
}

/* ================= Beneficios y Pagos ================= */
.benefits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.5rem; }
.benefit-card { background: var(--white); padding: 2.5rem 2rem; border-radius: 1rem; box-shadow: var(--shadow-md); text-align: center; transition: var(--transition); border: 1px solid var(--gray-light); }
.benefit-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-xl); border-color: var(--primary); }
.benefit-icon { font-size: 3rem; margin-bottom: 1rem; }
.benefit-card h3 { font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--darker); }
.mt-3 { margin-top: 1rem; }
.payment-methods { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; }
.badge { background: rgba(255,107,0,0.1); color: var(--primary); padding: 0.4rem 0.8rem; border-radius: 50px; font-size: 0.85rem; font-weight: 600; border: 1px solid rgba(255,107,0,0.2); }

/* ================= Testimonios ================= */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; }
.testimonial-card { background: var(--light); padding: 2.5rem; border-radius: 1.5rem; border-left: 4px solid var(--primary); box-shadow: var(--shadow-sm); transition: var(--transition); }
.testimonial-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stars { color: #F59E0B; font-size: 1.5rem; margin-bottom: 1rem; letter-spacing: 2px; }
.review { font-size: 1.05rem; font-style: italic; color: var(--dark); line-height: 1.8; margin-bottom: 1.5rem; }
.testimonial-card .name { font-size: 1.1rem; color: var(--darker); font-weight: 700; }

/* ================= FAQ ================= */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: 0.75rem; margin-bottom: 1rem; box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid var(--gray-light); }
.faq-question { width: 100%; text-align: left; padding: 1.5rem; background: transparent; border: none; font-family: var(--font-heading); font-size: 1.15rem; font-weight: 600; color: var(--darker); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-icon { font-size: 1.5rem; color: var(--primary); transition: transform 0.3s ease; display: inline-block; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; padding: 0 1.5rem; }
.faq-answer p { padding-bottom: 1.5rem; color: var(--gray); margin-bottom: 0; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(45deg); }
@media (max-width: 768px) { .faq-item.active .faq-answer { max-height: 300px; } }

/* ================= Animations ================= */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

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

/* ================= Responsive Design ================= */
@media (max-width: 992px) {
    .process-wrapper {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .process-image {
        order: -1;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: var(--shadow-md);
        text-align: center;
        border-top: 1px solid var(--gray-light);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition);
        backdrop-filter: blur(15px);
        background: rgba(255, 255, 255, 0.95);
        height: 100vh;
        justify-content: flex-start;
        padding-top: 4rem;
    }

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

    .mobile-menu-btn {
        display: block;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .section {
        padding: 5rem 0;
    }
    
    .contact-card {
        width: 100%;
        justify-content: center;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .contact-direct h3, .contact-form-wrapper h3 {
        text-align: center;
    }
}

/* ================= Botón WhatsApp Flotante ================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37,211,102,0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: whatsappFloat 3s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37,211,102,0.6);
}

@keyframes whatsappFloat {
    0% { transform: translateY(0px) }
    50% { transform: translateY(-8px) }
    100% { transform: translateY(0px) }
}
