/* ============================================
   VARIABLES Y COLORES MODERNOS 2025
   ============================================ */
:root {
    --primary: #2563EB; /* Azul vibrante */
    --primary-dark: #1e40af;
    --accent: #EC4899; /* Rosa/magenta */
    --accent-light: #f472b6;
    --dark: #0f172a;
    --light: #f8fafc;
    --text: #0f172a;
    --text-light: #475569;
    --border: #e2e8f0;
    --surface: #ffffff;

    /* Sombras modernas y difusas */
    --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-glow: 0 0 20px rgba(15, 82, 186, 0.15);

    /* Transiciones */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   RESET Y BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text);
    background-color: #FAFCFF;
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 70px;
}

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

/* Utilidades Glassmorphism */
.glass-panel {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-md);
}

.icon-sm {
    width: 18px;
    height: 18px;
    margin-left: 8px;
    vertical-align: middle;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 2px solid var(--border);
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar.scrolled {
    box-shadow: var(--shadow-sm);
    background: rgba(255, 255, 255, 0.95);
}

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

.logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark);
    letter-spacing: -0.5px;
}

.logo-highlight {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: var(--primary);
}

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

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

.cta-btn {
    background: var(--dark);
    color: white !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition);
}

.cta-btn:hover {
    background: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 350px;
    height: 350px;
}

.btn-primary:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 60px rgba(37, 99, 235, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 700;
}

.btn-secondary:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.3);
}

.w-100 { width: 100%; }

/* ============================================
   HERO SECTION - MODERNO Y LIMPIO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 60px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 50%, #f0f4f8 100%);
}

.wave-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 24px;
    border: none;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    color: var(--dark);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-light);
    margin-bottom: 48px;
    max-width: 95%;
    line-height: 1.7;
}

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

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-visual {
    position: relative;
    height: 550px;
}

.profile-card {
    background: var(--surface);
    border-radius: 32px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
    border: 1px solid rgba(37, 99, 235, 0.1);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.profile-photo {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* ============================================
   SECCIONES GENERALES
   ============================================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.underline {
    width: 48px;
    height: 4px;
    background: var(--primary);
    margin: 0 auto;
    border-radius: 2px;
}

/* ============================================
   NOSOTROS
   ============================================ */
.nosotros {
    background: var(--surface);
}

.nosotros-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.nosotros-text .lead {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 24px;
}

.nosotros-text p {
    color: var(--text-light);
    margin-bottom: 16px;
}

.nosotros-values {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.value-item {
    background: var(--surface);
    padding: 32px;
    border-radius: 18px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.value-item:hover {
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12);
    transform: translateY(-8px);
}

.value-icon {
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
}

.value-icon svg {
    width: 32px;
    height: 32px;
}

.value-item h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--dark);
}

.value-item p {
    font-size: 0.9rem;
    color: var(--text-light);
}

/* ============================================
   EXPERIENCIA
   ============================================ */
.experiencia {
    background: var(--light);
}

.experience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.experience-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 36px;
    border: none;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.experience-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.exp-icon {
    color: var(--primary);
    margin-bottom: 16px;
    font-size: 2rem;
    display: flex;
    justify-content: center;
}

.exp-icon svg {
    width: 40px;
    height: 40px;
}

.experience-card h3 {
    font-size: 1.2rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.experience-card .role {
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.experience-card .description {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.experience-card .mini-features {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 600;
    padding-top: 12px;
    border-top: 1px solid rgba(37, 99, 235, 0.1);
    margin: 0;
}

/* ============================================
   SERVICIOS
   ============================================ */
.servicios {
    background: var(--light);
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.servicio-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 40px 32px;
    border: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    height: 100%;
    position: relative;
    overflow: visible;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.servicio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.15);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.service-icon svg {
    width: 28px;
    height: 28px;
}

.servicio-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--dark);
}

.service-list {
    list-style: none;
}

.service-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.service-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
    font-size: 1.2rem;
}

/* ============================================
   CONTACTO
   ============================================ */
.contacto {
    position: relative;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="1" fill="%230F52BA" fill-opacity="0.2"/></svg>') repeat;
}

.contacto-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.15);
}

.contacto-info {
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 100%);
    color: white;
    padding: 64px;
}

.contacto-info h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    font-weight: 900;
}

.contacto-info p {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 48px;
    font-size: 1.05rem;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.info-item svg {
    color: var(--secondary);
    width: 24px;
    height: 24px;
    margin-top: 4px;
}

.info-item h4 {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.info-item span, .info-item a {
    color: white;
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
}

.contacto-qr {
    background: linear-gradient(135deg, #f8fafc 0%, #f0f4f8 100%);
    color: var(--text);
    padding: 64px;
    text-align: center;
}

.contacto-qr h2 {
    color: var(--dark);
    margin-bottom: 12px;
    font-size: 1.8rem;
    font-weight: 800;
}

.contacto-qr p {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 1rem;
}

.qr-container {
    background: white;
    padding: 24px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.12);
    margin-bottom: 20px;
    border: 1px solid rgba(37, 99, 235, 0.1);
    min-width: 230px;
    min-height: 230px;
}

#qrcode {
    display: flex;
    align-items: center;
    justify-content: center;
}

#qrcode canvas {
    display: block;
    max-width: 100%;
    height: auto;
}

.qr-hint {
    color: var(--text-light);
    font-size: 0.85rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--surface);
    padding: 32px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* ============================================
   BOTÓN SUBIR (SCROLL TO TOP)
   ============================================ */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 100px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    color: var(--dark);
    border: 1px solid var(--border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    z-index: 1998;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   CHAT WIDGET MODERNO
   ============================================ */
.chat-toggle {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 40px rgba(37, 99, 235, 0.35);
    z-index: 2000;
    transition: var(--transition);
}

.chat-toggle svg {
    width: 30px;
    height: 30px;
}

.chat-toggle:hover {
    transform: scale(1.1) translateY(-8px);
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.45);
}

.chat-toggle.hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chat-widget {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 380px;
    height: 550px;
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    z-index: 1999;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition);
    pointer-events: none;
    overflow: hidden;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.chat-widget.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

.chat-header-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.chat-avatar svg {
    width: 20px;
    height: 20px;
}

.chat-header h3 {
    font-size: 1rem;
    color: white;
    margin: 0;
    font-weight: 700;
}

.chat-status {
    font-size: 0.8rem;
    color: #86efac;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.chat-status::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #86efac;
    border-radius: 50%;
    display: inline-block;
}

.chat-minimize {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
}

.chat-minimize svg {
    width: 20px;
    height: 20px;
}

.chat-minimize:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1) rotate(90deg);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: rgba(250, 252, 255, 0.9);
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: fadeIn 0.3s ease-out;
}

.chat-message.bot { justify-content: flex-start; }
.chat-message.user { justify-content: flex-end; }

.chat-message-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.chat-message.bot .chat-message-bubble {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-bottom-left-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-message.user .chat-message-bubble {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
    box-shadow: var(--shadow-sm);
}

.chat-input-area {
    padding: 16px 24px;
    background: var(--surface);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-option {
    padding: 12px 16px;
    background: var(--light);
    border: none;
    color: var(--text);
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: var(--transition);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chat-option svg {
    width: 16px;
    height: 16px;
    color: var(--primary);
    transition: var(--transition);
}

.chat-option:hover {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: white;
    transform: translateX(6px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.2);
}

.chat-option:hover svg {
    color: white;
}

/* ============================================
   ANIMACIONES AVANZADAS Y SOFISTICADAS
   ============================================ */

/* Reveal animations con stagger */
.reveal-item {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: all 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-item.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.reveal-text {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Stagger effect para múltiples elementos */
.reveal-item:nth-child(2) { transition-delay: 0.15s; }
.reveal-item:nth-child(3) { transition-delay: 0.3s; }
.reveal-item:nth-child(4) { transition-delay: 0.45s; }
.reveal-item:nth-child(5) { transition-delay: 0.6s; }
.reveal-item:nth-child(6) { transition-delay: 0.75s; }

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

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

/* ============================================
   SPLASH SCREEN - PANTALLA DE CARGA
   ============================================ */
.splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #2563EB 0%, #1e40af 50%, #EC4899 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: splashFadeOut 0.8s ease-out forwards;
    animation-delay: 4s;
}

.splash-content {
    text-align: center;
    perspective: 1000px;
    animation: splashZoom 0.6s ease-out;
}

.splash-header {
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.splash-header h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: white;
    margin-bottom: 12px;
    font-weight: 900;
    letter-spacing: -1px;
}

.splash-header p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.splash-qr-container {
    margin: 30px 0;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#splashQR {
    background: white;
    padding: 20px;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    border: 3px solid white;
}

#splashQR canvas {
    display: block !important;
    width: 180px !important;
    height: 180px !important;
}

.splash-qr-label {
    font-size: 1.3rem;
    color: white;
    font-weight: 800;
    margin-top: 20px;
    letter-spacing: -0.5px;
}

.splash-footer {
    margin-top: 40px;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.splash-footer p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

@keyframes splashZoom {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

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

@keyframes splashFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 992px) {
    .hero-content, .nosotros-content, .contacto-wrapper {
        grid-template-columns: 1fr;
    }

    .hero-visual {
        height: 350px;
        margin-top: 40px;
    }

    .contacto-wrapper {
        grid-template-rows: auto auto;
        gap: 0;
    }

    .contacto-info, .contacto-qr {
        padding: 48px 32px;
        height: auto;
    }

    .contacto-qr {
        min-height: auto;
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .nav-toggle span {
        width: 30px;
        height: 2px;
        background: var(--dark);
        transition: var(--transition);
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-md);
        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%);
    }

    .scroll-top-btn {
        right: 20px;
        bottom: 20px;
    }

    .chat-widget {
        width: calc(100vw - 40px);
        right: 20px;
        bottom: 90px;
    }

    section {
        padding: 60px 0;
    }

    .nosotros-values, .servicios-grid {
        grid-template-columns: 1fr;
    }

    .contacto-info, .contacto-qr {
        padding: 32px 20px;
    }

    .contacto-info h2 {
        font-size: 1.5rem;
    }

    .info-list {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .contacto-wrapper {
        grid-template-columns: 1fr;
        border-radius: 16px;
    }

    .contacto-info, .contacto-qr {
        padding: 28px 16px;
    }

    .contacto-info h2 {
        font-size: 1.3rem;
    }

    .contacto-info p {
        font-size: 0.9rem;
    }

    .info-item {
        gap: 12px;
    }

    .info-item h4 {
        font-size: 0.8rem;
    }

    .info-item span, .info-item a {
        font-size: 0.95rem;
    }

    .social-links {
        flex-direction: column;
        gap: 12px;
    }

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