/* ==========================================================================
   Variables y Configuración Global (Inspirado en el logo)
   ========================================================================== */
:root {
    /* Colores extraídos del logo: Azul/Celeste -> Morado -> Fucsia */
    --color-primary: #a259ff; /* Morado central */
    --color-secondary: #ff007f; /* Fucsia / Rosa vibrante */
    --color-tertiary: #8e8ffa; /* Azul celeste / Periwinkle */
    
    /* Degradado principal basado en los colores del logo */
    --gradient-brand: linear-gradient(135deg, var(--color-tertiary) 0%, var(--color-primary) 50%, var(--color-secondary) 100%);
    --gradient-hover: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-primary) 50%, var(--color-tertiary) 100%);
    
    /* Colores oscuros premium para el fondo */
    --bg-dark: #0f0f13;
    --bg-card: #1a1a24;
    --bg-secondary: #14141b;
    
    /* Texto */
    --text-main: #ffffff;
    --text-muted: #b3b3b3;
    
    /* Sombras y Borders */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(162, 89, 255, 0.4);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    
    /* Tipografía moderna */
    --font-main: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

a {
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

/* ==========================================================================
   Utilidades Visuales Premium
   ========================================================================== */
.gradient-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--gradient-brand);
    border-radius: 2px;
    margin-bottom: 2rem;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.mt-2 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.img-fluid {
    max-width: 100%;
    height: auto;
    display: block;
}

.rounded {
    border-radius: var(--border-radius);
}

.shadow-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shadow-hover:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

/* Botones */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--gradient-brand);
    color: #fff;
    font-weight: 600;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 127, 0.3);
}

.btn-primary:hover {
    background: var(--gradient-hover);
    box-shadow: 0 6px 20px rgba(255, 0, 127, 0.5);
    transform: translateY(-2px);
    color: #fff;
}

.btn-block {
    width: 100%;
    display: block;
}

/* ==========================================================================
   Navegación (Navbar)
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 1000;
    transition: all 0.3s ease;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(15, 15, 19, 0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

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

.logo img {
    height: 40px; /* Ajusta según el tamaño de tu logo */
    max-width: 200px;
    object-fit: contain;
}

.nav-menu ul {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    transition: width 0.3s ease;
}

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

.nav-link:hover {
    color: var(--color-tertiary);
}

.btn-contacto {
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-contacto:hover {
    background: var(--gradient-brand);
    border-color: transparent;
    color: #fff;
}

.btn-contacto::after {
    display: none;
}

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

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    position: relative;
    /* Un fondo sutil o un gradiente radial de fondo */
    background: radial-gradient(circle at top right, rgba(162, 89, 255, 0.2), transparent 40%),
                radial-gradient(circle at bottom left, rgba(255, 0, 127, 0.15), transparent 40%);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('img/s3.png') no-repeat center center/cover;
    opacity: 0.15; /* Sutil imagen de fondo si existe */
    z-index: -1;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.hero p {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ==========================================================================
   Secciones Generales
   ========================================================================== */
.section {
    padding: 100px 0;
}

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

.section-title h2 {
    font-size: 2.5rem;
}

/* Grid Layouts */
.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.gap-large {
    gap: 60px;
}

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

/* ==========================================================================
   Empresa Section
   ========================================================================== */
.feature-list {
    margin-bottom: 20px;
}

.feature-list li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.feature-list i {
    color: var(--color-secondary);
    margin-top: 4px;
}

.img-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    position: relative;
}

.mt-top {
    margin-top: 40px;
}

/* ==========================================================================
   Servicios / Cards
   ========================================================================== */
.premium-card {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(255,255,255,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.premium-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--gradient-brand);
}

.premium-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
    border-color: rgba(162, 89, 255, 0.3);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-tertiary);
    background: -webkit-linear-gradient(135deg, var(--color-tertiary), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.small-list li {
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.small-list i {
    color: var(--color-tertiary);
}

.images-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ==========================================================================
   Contacto Section
   ========================================================================== */
.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.info-item i {
    font-size: 1.8rem;
    color: var(--color-primary);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(162, 89, 255, 0.1);
    border-radius: 50%;
}

.info-item h4 {
    margin-bottom: 5px;
    font-size: 1.1rem;
}

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

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.social-icon:hover {
    background: var(--gradient-brand);
    color: #fff;
    transform: translateY(-3px);
}

/* Formulario */
.contact-form-wrapper {
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.05);
}

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

.modern-form input,
.modern-form textarea {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modern-form input:focus,
.modern-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 10px rgba(162, 89, 255, 0.2);
    background: rgba(0,0,0,0.4);
}

/* ==========================================================================
   Footer & Elementos Flotantes
   ========================================================================== */
.footer {
    background: #08080a;
    padding: 40px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

/* Botón WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    border-radius: 50%;
    width: 65px;
    height: 65px;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    transform: scale(1.08);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    object-fit: contain;
    display: block;
}

/* ==========================================================================
   Responsive (Media Queries)
   ========================================================================== */
@media (max-width: 992px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .mt-top {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(15, 15, 19, 0.98);
        padding: 20px 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
        transition: all 0.4s ease-in-out;
    }
    
    .nav-menu.active {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero {
        text-align: center;
    }
    
    .hero p {
        margin: 0 auto 30px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .images-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .img-grid {
        grid-template-columns: 1fr;
    }
    
    .premium-card {
        padding: 25px;
    }
}
