/* ==========================================================================
   CSS Variables & Tokens (Light Mode Premium)
   ========================================================================== */
   :root {
    /* Colors */
    --bg-main: #ffffff;
    --bg-alt: #f8fafc; /* light slate for alternating sections */
    --text-main: #0f172a;
    --text-muted: #64748b;
    
    /* Brand Gradients & Accents */
    /* A premium vibrant gradient: Electric Blue to Purple/Pink */
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #ec4899 100%);
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    
    /* WhatsApp Color */
    --whatsapp-color: #25d366;
    --whatsapp-hover: #128c7e;

    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Shadows & Glassmorphism */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --shadow-colored: 0 10px 25px -5px rgba(79, 70, 229, 0.3);
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.5);
    
    /* Spacing */
    --section-padding: 5rem 0;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

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

.section-padding {
    padding: var(--section-padding);
}

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

.text-center {
    text-align: center;
}

/* Typography Utilities */
.text-gradient {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.section-subtitle {
    display: inline-block;
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-colored);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(79, 70, 229, 0.4);
    color: white;
}

.btn-outline {
    background: transparent;
    border-color: var(--text-main);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--text-main);
    color: white;
}

/* ==========================================================================
   Components: Glass Card & Hover Lift
   ========================================================================== */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.hover-lift {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

/* ==========================================================================
   Header & Navbar
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all var(--transition-normal);
    padding: 1.5rem 0;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: var(--shadow-sm);
}

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

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding: 12rem 0 6rem;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 10s infinite ease-in-out alternate;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #ec4899;
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #4f46e5;
    animation-delay: -5s;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Mockup CSS art */
.mockup-card {
    width: 100%;
    height: 400px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    background: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,1);
    position: relative;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.mockup-card:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.mockup-body {
    flex: 1;
    padding-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.line {
    height: 12px;
    background: rgba(0,0,0,0.05);
    border-radius: 6px;
    width: 100%;
}
.line.title {
    height: 24px;
    width: 60%;
    background: var(--primary-gradient);
    opacity: 0.8;
}
.line.short { width: 80%; }

.metrics {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}
.metric-box {
    flex: 1;
    height: 80px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.image-wrapper {
    position: relative;
}

.about-placeholder {
    width: 100%;
    height: 500px;
    background: var(--bg-alt);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed rgba(0,0,0,0.1);
}

.experience-badge {
    position: absolute;
    bottom: -2rem;
    right: -2rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
}

.experience-badge .number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
}

.experience-badge .text {
    font-weight: 600;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-weight: 500;
    color: var(--text-main);
}

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

.service-card {
    padding: 2.5rem 2rem;
    text-align: left;
    background: white;
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-methods {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 1rem;
    background: var(--bg-alt);
    transition: all var(--transition-fast);
}

.whatsapp-method {
    background: rgba(37, 211, 102, 0.1);
    color: var(--text-main);
}

.whatsapp-method:hover {
    background: var(--whatsapp-color);
    color: white;
}

.whatsapp-method:hover p {
    color: rgba(255,255,255,0.9);
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.whatsapp-icon {
    color: var(--whatsapp-color);
}

.contact-method h4 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.contact-method p {
    margin-bottom: 0;
    font-size: 0.9rem;
}

.contact-form-wrapper {
    padding: 2.5rem;
    background: white;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-alt);
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #020617; /* Very dark slate */
    color: white;
    padding: 5rem 0 2rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer .logo {
    color: white;
    display: block;
    margin-bottom: 1rem;
}

.footer p {
    color: #94a3b8;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

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

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

.footer-links h4 {
    color: white;
    margin-bottom: 1.5rem;
}

.footer-links ul li {
    margin-bottom: 0.75rem;
}

.footer-links ul li a {
    color: #94a3b8;
}

.footer-links ul li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
}

/* ==========================================================================
   Floating WhatsApp
   ========================================================================== */
.floating-whatsapp {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: var(--whatsapp-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: transform var(--transition-fast);
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    color: white;
}

/* ==========================================================================
   Animations & Utilities
   ========================================================================== */
@keyframes float {
    0% { transform: translateY(0) scale(1); }
    100% { transform: translateY(-20px) scale(1.05); }
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.appear {
    opacity: 1;
    transform: translateY(0);
}

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

/* Values Item (Nosotros) */
.value-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* ==========================================================================
   Media Queries (Responsive)
   ========================================================================== */
@media (max-width: 992px) {
    .hero-container,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding: 8rem 0 4rem;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-top {
        grid-template-columns: 1fr;
    }
    
    .experience-badge {
        right: 0;
        bottom: 0;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: white;
        flex-direction: column;
        justify-content: center;
        transition: right 0.4s ease;
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .hamburger {
        display: block;
        z-index: 1001;
    }
    
    .hamburger.active i::before {
        content: "\f00d"; /* FontAwesome X icon */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    /* Reducir espaciado entre secciones en móviles */
    .section-padding {
        padding: 3rem 0;
    }

    /* Reducir espaciado entre tarjetas en móviles */
    .services-grid {
        gap: 0.75rem;
    }
    
    .about-core-values {
        margin-top: 1.5rem !important;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }
    
    /* Asegurar que el texto sea legible en 2x2 en móviles pequeños */
    .values-grid h4 {
        font-size: 1rem !important;
    }
    
    .values-grid p {
        font-size: 0.85rem !important;
    }

    .value-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 0.5rem;
    }
}
