:root {
    --primary: #ec4899;
    --primary-hover: #db2777;
    --primary-light: #fdf2f8;
    --secondary: #8b5cf6;
    --accent: #f59e0b;
    --dark: #0f172a;
    --dark-surface: #1e293b;
    --light-bg: #fff1f2;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --radius-lg: 1rem;
    --radius-md: 0.5rem;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 14px rgba(236, 72, 153, 0.15);
    --shadow-lg: 0 10px 25px -5px rgba(236, 72, 153, 0.25);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #faf5f7;
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

/* Glassmorphism & Header */
.header-glass {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 2px 15px rgba(0,0,0,0.03);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-link {
    font-weight: 600;
    color: #4b5563;
    transition: color 0.2s ease;
}

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

/* Botones con Micro-animaciones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #f43f5e);
    color: #ffffff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--primary-hover), #e11d48);
}

.btn-secondary {
    background: #ffffff;
    color: var(--primary);
    border: 2px solid #fbcfe8;
}

.btn-secondary:hover {
    background: var(--primary-light);
    transform: translateY(-2px);
}

/* Hero Carrusel */
.hero-slider {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    margin: 1.5rem 0 3rem 0;
    min-height: 480px;
    box-shadow: var(--shadow-lg);
}

.slide-item {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.slide-item.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0.3) 70%, transparent 100%);
}

.slide-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    max-width: 600px;
    padding: 3rem;
}

.slide-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.slide-subtitle {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Secciones & Tarjetas */
.section-title {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 2rem;
    border: 1px solid #f3e8ff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(236, 72, 153, 0.12);
}

/* Chatbot Flotante WhatsApp */
.wa-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
}

.wa-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #25D366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.wa-btn:hover {
    transform: scale(1.1);
}

.wa-popup {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.wa-popup.active {
    display: block;
}

.wa-header {
    background: #075E54;
    color: white;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.wa-body {
    padding: 1rem;
    background: #e5ddd5;
    max-height: 300px;
    overflow-y: auto;
}

.wa-msg {
    background: #white;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

.wa-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.wa-opt-btn {
    background: white;
    border: 1px solid #cbd5e1;
    padding: 0.6rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
    transition: background 0.2s;
}

.wa-opt-btn:hover {
    background: #f1f5f9;
}

/* Botón Hamburguesa Móvil */
.hamburger-btn {
    display: none;
    background: transparent;
    border: none;
    font-size: 1.75rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
    transition: color 0.2s;
}

.hamburger-btn:hover {
    color: var(--primary);
}

/* Media Query Responsive para Dispositivos Móviles y Tablets */
@media (max-width: 768px) {
    .hamburger-btn {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        flex-direction: column;
        gap: 1.25rem;
        padding: 2rem;
        border-bottom: 1px solid var(--glass-border);
        box-shadow: 0 10px 25px rgba(0,0,0,0.1);
        display: none;
        transform: translateY(-10px);
        opacity: 0;
        transition: all 0.3s ease-in-out;
    }

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

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links .btn {
        width: 100%;
    }
}
