/* --- Fuentes Personalizadas (NUEVO) --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital@0;1&family=Space+Mono:ital@0;1&display=swap');

/* --- Variables y Reseteo Global --- */
:root {
    /* Colores base */
    --bg-color: #f8fafc; 
    --primary-color: #1e293b;
    --secondary-color: #64748b;
    --accent-color-1: #0284c7; /* Azul principal moderno */
    --accent-color-2: #8b5cf6; /* Púrpura complementario */
    --accent-color-3: #06b6d4; /* Cian para detalles */
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.95); 
    --glass-border: 1px solid rgba(255, 255, 255, 0.2);
    --glass-blur: 10px;
    --panel-shadow: 0 12px 35px 0 rgba(2, 132, 199, 0.15); 
    
    /* Sistema de sombras moderno */
    --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);
    --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    
    /* Fuentes */
    --font-serif: 'Lora', serif;
    --font-modern: 'Space Mono', monospace;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Animaciones */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: auto; 
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color); 
    color: var(--primary-color);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* --- Pre-loader --- */
.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--glass-bg); 
    backdrop-filter: blur(var(--glass-blur)); 
    -webkit-backdrop-filter: blur(var(--glass-blur)); 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
}
.preloader-logo {
    opacity: 0; 
    transform: translateY(20px); 
    display: flex; 
    justify-content: center;
    align-items: center;
    position: relative; 
}
.preloader-logo img {
    height: 300px; 
    width: auto;
    display: block; 
    position: relative; 
    filter: drop-shadow(0 0 5px rgba(0, 122, 255, 0.4)); 
    animation: drop-shadow-pulse 2.5s infinite ease-in-out forwards; 
}
@keyframes drop-shadow-pulse {
    0% { filter: drop-shadow(0 0 5px rgba(0, 122, 255, 0.4)); }
    50% { filter: drop-shadow(0 0 30px rgba(0, 122, 255, 0.8)); }
    100% { filter: drop-shadow(0 0 5px rgba(0, 122, 255, 0.4)); }
}


/* ===========================================
   LOADING SCREEN MODERNO
   =========================================== */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #0284c7 0%, #8b5cf6 50%, #06b6d4 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-family: var(--font-primary);
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-logo {
    font-size: 4rem;
    margin-bottom: 2rem;
    animation: pulse 2s ease-in-out infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.loading-progress {
    width: 300px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto 1rem auto;
}

.loading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ffffff, #06b6d4);
    border-radius: 3px;
    transition: width 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.loading-percentage {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: var(--font-modern);
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

/* ===========================================
   DASHBOARD MODERNO
   =========================================== */
.dashboard-grid {
    display: grid;
    gap: 2rem;
    padding: 1rem;
}

.metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
}

.metric-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.metric-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.metric-content h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
    font-family: var(--font-primary);
}

.metric-content p {
    color: var(--secondary-color);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.metric-trend {
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.metric-trend.positive {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

.metric-trend.negative {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

.charts-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.chart-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.chart-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.chart-controls select {
    padding: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: white;
    color: var(--primary-color);
}

.chart-container {
    height: 300px;
    position: relative;
}

.activity-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.activity-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.125rem;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.activity-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.activity-content p {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--secondary-color);
}

/* ===========================================
   TABS MODERNAS CON BADGES
   =========================================== */
.admin-tabs {
    display: flex;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 12px;
    padding: 0.5rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
    gap: 0.25rem;
    overflow-x: auto;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--secondary-color);
    font-weight: 500;
    font-family: var(--font-primary);
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition-normal);
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.tab-btn:hover {
    background: rgba(2, 132, 199, 0.1);
    color: var(--accent-color-1);
}

.tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
    box-shadow: var(--shadow-md);
}

.tab-btn i {
    font-size: 0.875rem;
}

.tab-badge {
    background: var(--accent-color-2);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 12px;
    min-width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===========================================
   TOAST NOTIFICATIONS MEJORADAS
   =========================================== */
.toast {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: var(--glass-border);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: var(--shadow-lg);
    color: var(--primary-color);
    border-left: 4px solid var(--accent-color-1);
}

.toast.error {
    border-left-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toast i {
    font-size: 1rem;
}

.toast.error i {
    color: #ef4444;
}

/* ===========================================
   RESPONSIVE DASHBOARD
   =========================================== */
@media (max-width: 1024px) {
    .charts-row {
        grid-template-columns: 1fr;
    }
    
    .metrics-row {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        padding: 0.5rem;
    }
    
    .admin-tabs {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .tab-btn {
        justify-content: flex-start;
    }
    
    .metrics-row {
        grid-template-columns: 1fr;
    }
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .metric-content h3 {
        font-size: 1.5rem;
    }
}

/* --- Header (Cliente) --- */
header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border-bottom: var(--glass-border);
    opacity: 0; /* Animado por GSAP en app.js */
}
header .container {
    max-width: 1200px; /* Ancho normal para cliente */
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo-header {
    font-size: 1.5rem; 
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.logo-header span { color: var(--accent-color-1); }
.logo-header img {
    height: 42px;
    width: auto;        
    display: block;     
    transition: height 0.3s ease;
}
nav a {
    text-decoration: none;
    color: var(--secondary-color);
    font-weight: 500;
    margin-left: 2rem;
    transition: color 0.3s ease;
}
nav a:hover { color: var(--accent-color-1); }
nav a[aria-current="page"] {
    color: var(--accent-color-1);
    font-weight: 600;
}
/* (NUEVO) Tamaños de Logo */
.logo-small img { height: 30px !important; }
.logo-medium img { height: 42px !important; }
.logo-large img { height: 60px !important; }


/* --- Header (Admin) --- */
.admin-header {
  background-color: #0d1117; /* Azul marino */
  background-image: linear-gradient(90deg, #0d1117, #161b22);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  opacity: 1;
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header .admin-header-grid {
  max-width: 1400px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 0 16px;
}
.admin-header .logo-header img {
  height: 40px;
}
.admin-header-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  color: #FFF;
}
.admin-header nav a.btn {
  color: #FFF;
  background: var(--accent-color-1);
  border-color: var(--accent-color-1);
  padding: 0.5rem 1rem;
}
.admin-header nav a.btn:hover {
  background: var(--accent-color-2);
  border-color: var(--accent-color-2);
}


/* --- Sección Hero (Principal) --- */
#hero {
    display: flex;
    /* align-items: center; (Controlado por JS) */
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    overflow: hidden; 
    background-size: cover;
    background-position: center;
    color: #fff; /* Color de texto por defecto para banner */
}
/* (NUEVO) Alturas de Banner */
#hero.hero-fullscreen { height: 100vh; }
#hero.hero-medium { height: 70vh; }
#hero.hero-small { height: 40vh; }

/* (NUEVO) Efecto Fijo/Parallax */
#hero.hero-fixed {
    background-attachment: fixed;
}
/* (NUEVO) Estilos para Video y Overlay */
#hero video,
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hero-overlay {
    background: rgba(0, 0, 0, 0.4); /* Capa oscura */
    z-index: 1;
}

#neural-network-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Encima del video/imagen */
    opacity: 0.6;
}
.hero-content {
    /* opacity: 0; y transform: translateY(30px); ELIMINADOS */
    z-index: 3; /* Encima de todo */
    position: relative;
    width: 100%;
    height: 100%; /* Ocupa toda la altura */
    display: flex;
    flex-direction: column;
    justify-content: center; /* Posición por defecto */
    align-items: center;
    padding: 2rem;
}
/* (NUEVO) Posiciones de Texto */
.hero-content.position-top { justify-content: flex-start; padding-top: 10rem; }
.hero-content.position-center { justify-content: center; }
.hero-content.position-bottom { justify-content: flex-end; padding-bottom: 10rem; }


#hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: #fff;
    opacity: 0; /* Opacidad 0 para ser animado por GSAP */
}
#hero p {
    font-size: 1.25rem;
    color: #f0f0f0;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    transition: font-family 0.3s ease;
    opacity: 0; /* Opacidad 0 para ser animado por GSAP */
}
/* (NUEVO) Estilos de Fuente */
#hero p.font-serif {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-style: italic;
}
#hero p.font-modern {
    font-family: var(--font-modern);
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.highlight-clouds {
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.cta-button {
    display: inline-block;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    color: #ffffff;
    padding: 0.85rem 1.8rem;
    border: none; 
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0; /* Opacidad 0 para ser animado por GSAP */
}
.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 122, 255, 0.7);
}


/* --- Hero para Páginas Internas --- */
#hero-subpage {
    padding: 6rem 2rem 4rem 2rem;
    height: auto;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-color: var(--bg-color); 
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
#hero-subpage h1 {
    font-size: 3.2rem;
    line-height: 1.2;
    z-index: 1;
    position: relative;
    opacity: 1;
    transform: none;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
#hero-subpage .hero-content {
    opacity: 1;
    transform: none;
}


/* --- Secciones Generales y Tarjetas --- */
.section-container {
    padding: 6rem 0;
}
#hero-subpage + .section-container {
    padding-top: 3rem; 
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: 2.5rem;
    opacity: 0;
    transform: translateY(30px);
}
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}
.service-card {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: var(--panel-shadow); 
    padding: 2.5rem 2rem;
    border-radius: 16px;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(50px);
}
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 16px 40px 0 rgba(0, 122, 255, 0.25); 
}
.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.about-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    font-size: 1.15rem;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(50px);
}

/* ============================================== */
/* ---               FOOTER                   --- */
/* ---      (NUEVO DISEÑO 3 COLUMNAS)         --- */
/* ============================================== */
footer {
    text-align: left; /* Resetea el centrado general */
    padding: 4rem 2rem 3rem 2rem;
    color: var(--secondary-color);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    margin-top: 4rem;
}

/* 1. Contenedor principal del Footer (CSS Grid) */
footer #contacto {
    display: grid;
    /* Define 3 columnas: Izquierda, Centro (más ancha), Derecha */
    grid-template-columns: 1fr 1.5fr 1fr;
    /* Nombra las áreas para ordenar */
    grid-template-areas: "legal copyright contact";
    align-items: start; /* Alinea el contenido de las 3 columnas arriba */
    gap: 2rem; /* Espacio entre columnas */
    max-width: 1200px; /* Coincide con el .container del header */
    margin: 0 auto; /* Centra el grid en la página */
}

/* 2. Asignar cada elemento a un área */

/* Copyright (Centro) */
footer #footer-copyright {
    grid-area: copyright; /* Asigna al área central */
    text-align: center; /* Centra el texto *dentro* de su columna */
    font-size: 0.9rem;
    margin: 0; /* Resetea márgenes */
}

/* Links Legales (Izquierda) */
/* Selector: "el div hijo de #contacto que NO es #footer-contact-info" */
footer #contacto > div:not(#footer-contact-info) {
    grid-area: legal; /* Asigna al área izquierda */
    text-align: left;
    
    /* Anula los estilos en línea que tenían los HTML */
    margin-top: 0 !important; 
    font-size: 0.9rem !important;
}

/* Info de Contacto (Derecha) */
footer #footer-contact-info {
    grid-area: contact; /* Asigna al área derecha */
    text-align: right;
    font-size: 0.9rem;
}

/* 3. Estilo de los links (para Legal y Contacto) */
footer #contacto a {
    color: var(--secondary-color);
    text-decoration: none;
    display: block; /* Hace que se apilen verticalmente en su columna */
    margin-bottom: 0.5rem; /* Espacio entre links (ej. email y whatsapp) */
    transition: color 0.3s ease;
}

footer #contacto a:hover {
    color: var(--accent-color-1);
}

/* 4. Estilos para Móvil (apilado) */
@media (max-width: 768px) {
    footer #contacto {
        grid-template-columns: 1fr; /* 1 sola columna */
        grid-template-areas:  /* Re-ordenar verticalmente */
            "copyright"
            "contact"
            "legal";
        gap: 2.5rem; /* Espacio vertical entre bloques */
        text-align: center; /* Centrar todo en móvil */
    }
    
    /* Resetear alineaciones de las columnas en móvil */
    footer #footer-copyright,
    footer #contacto > div:not(#footer-contact-info),
    footer #footer-contact-info {
        text-align: center;
    }
}
/* ============================================== */
/* ---          FIN DEL FOOTER                --- */
/* ============================================== */


/* --- Pop-up Modal --- */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; 
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-content {
    background: var(--glass-bg);
    border: var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    margin: 5% auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-50px);
    opacity: 0;
    max-height: 85vh;
    overflow-y: auto;  
}
.close-button {
    color: var(--primary-color);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}
.close-button:hover,
.close-button:focus {
    color: var(--accent-color-1);
    text-decoration: none;
}
#contact-form h4 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--primary-color);
}
.modal-content input[type="text"],
.modal-content input[type="email"],
.modal-content input[type="tel"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--primary-color);
    font-size: 16px;
}
.contact-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.contact-options label {
    background-color: rgba(0, 122, 255, 0.1);
    color: var(--accent-color-1);
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    border: 1px solid rgba(0, 122, 255, 0.3);
    transition: all 0.3s;
}
.contact-options label:has(input:checked) {
    background-color: var(--accent-color-1);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(0, 122, 255, 0.5);
}
.contact-options input[type="radio"] {
    display: none; 
}
.submit-button {
    width: 100%;
    border: none;
    background: linear-gradient(90deg, var(--accent-color-1), var(--accent-color-2));
    color: white;
    padding: 12px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.3s, transform 0.3s;
}
.submit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}
#form-message {
    margin-top: 15px; 
    font-weight: 600; 
    color: var(--accent-color-1);
    opacity: 0; 
}


/* ============================================== */
/* --- ESTILOS ADICIONALES PARA ADMIN.HTML --- */
/* ============================================== */

/* Contenedor principal del admin más ancho */
.admin-wrap { max-width: 1400px; margin: 24px auto 48px; padding: 0 16px; }

.admin-tabs { display:flex; flex-wrap: wrap; gap:4px; margin-bottom:16px; border-bottom:1px solid rgba(0,0,0,.1); padding: 0 16px; }
.tab-btn { padding:10px 16px; border:none; background:none; cursor:pointer; font-size:1rem; border-bottom:3px solid transparent; }
.tab-btn.active { border-bottom-color: var(--accent-color-1); font-weight:600; }

.tab-content { display:none; }
.tab-content.active { display:block; }

.topbar {
  background: #fff; border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px; padding: 12px; display:flex; flex-wrap:wrap; gap: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}
.topbar input, .topbar select {
  padding: .6rem .75rem; border:1px solid rgba(0,0,0,.12); border-radius:10px; background:#fff;
}
.topbar .spacer { flex:1; }
.btn { border:none; padding:.6rem .85rem; border-radius:10px; cursor:pointer; background:#fff; border:1px solid rgba(0,0,0,.12) }
.btn.primary { background: linear-gradient(90deg, var(--accent-color-1,#007aff), var(--accent-color-2,#00c6ff)); border:none; color:#fff; }
.btn.secondary {
    background: #f0f0f0;
    border-color: #ddd;
    text-align: center;
    color: var(--primary-color);
}
.btn.secondary:hover {
    background: #e9e9e9;
}


.card {
  background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.06); margin-top: 16px;
}
.card-header { padding: 14px 16px; border-bottom:1px solid rgba(0,0,0,.06); font-weight:600; }
.card-body { padding: 8px 16px 16px; overflow-x: auto; }

.table { width:100%; border-collapse:collapse; table-layout: fixed; min-width: 900px; }
.table th, .table td { padding: .9rem .8rem; border-bottom:1px solid rgba(0,0,0,.06); text-align:left; word-break: break-word; overflow-wrap: anywhere; }
.table th { color: rgba(0,0,0,.6); font-weight:600; }

/* Ancho general de tabla de Leads */
#leadsTable { min-width: 1200px; }
#leadsTable th:nth-child(1) { width: 180px; } /* Fecha */
#leadsTable th:nth-child(2) { width: 160px; } /* Nombre */
#leadsTable th:nth-child(3) { width: 200px; } /* Contacto */
#leadsTable th:nth-child(4) { width: 140px; } /* Preferencia */
#leadsTable th:nth-child(5) { width: 120px; } /* Estado */
/* Col 6 (Notas) es flexible */
#leadsTable th:last-child   { width: 220px; text-align: right; } /* Acciones */

.row-actions { display:flex; gap:.4rem; flex-wrap:wrap; justify-content:flex-end; }
.note-input { width:100%; min-width:140px; }

/* Control de formulario en-línea (ya no se usa) */
.form-control {
  padding: .6rem .75rem;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 8px;
  background: #fff;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
}
select.form-control {
  padding-right: 24px;
}
input[type="color"].form-control {
  padding: 0.3rem 0.5rem;
  height: 45px;
}

.badge { padding:.28rem .55rem; border-radius:999px; font-size:.82rem; border:1px solid rgba(0,0,0,.08); background:#fff; white-space:nowrap; }
.b-nuevo{ background:#eef; } /* Azul (pendiente, nuevo) */
.b-en_proceso{ background:#fff6e0; } /* Amarillo (en proceso, enviado a pago) */
.b-contactado{ background:#e6ffed; } /* Verde (contactado, pagado total) */
.b-no_contactado{ background:#ffecec; } /* Rojo (no contactado, cancelado) */

/* Formulario de Ajustes */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid-tri { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }
.form-group label { font-weight: 600; margin-bottom: 6px; font-size: 0.9rem; }
.form-group input, .form-group textarea, .form-group select {
  padding: .6rem .75rem; border:1px solid rgba(0,0,0,.12); border-radius:10px; background:#fff;
  font-family: inherit; font-size: 1rem;
}
.form-group textarea { min-height: 150px; resize: vertical; }

/* Barra de Guardado Fija */
.save-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    padding: 16px;
    margin: 16px -16px -16px -16px; /* Ajustar a bordes del .admin-wrap */
    border-top: 1px solid var(--glass-border);
    text-align: right;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.05);
}
.btn-save-settings {
    font-size: 1.1rem;
    padding: 0.8rem 2rem;
}


/* Estilos para texto "muted" */
.muted {
  color: #777;
  font-style: italic;
  font-size: 0.9rem;
}

@media (max-width: 680px) {
  .row-actions .btn { padding:.5rem .6rem; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid-tri { grid-template-columns: 1fr; }
}

/* ============================================== */
/* --- Estilos para Admin Servicios --- */
/* ============================================== */
.radio-group {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-top: 8px;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.radio-group input {
  transform: scale(1.1);
}

#servicesTable th:nth-child(2),
#servicesTable td:nth-child(2) { width: 120px; }
#servicesTable th:nth-child(3),
#servicesTable td:nth-child(3) { width: 140px; }
#servicesTable th:last-child,
#servicesTable td:last-child { width: 180px; }

/* ============================================== */
/* --- Estilos para Admin Presupuestos --- */
/* ============================================== */

#quotesTable {
  min-width: 1200px;
}
#quotesTable th, 
#quotesTable td {
  white-space: nowrap;
}
#quotesTable th:nth-child(1), /* N° */
#quotesTable td:nth-child(1) { width: 80px; }
#quotesTable th:nth-child(2), /* Fecha */
#quotesTable td:nth-child(2) { width: 120px; }
#quotesTable th:nth-child(3), /* Cliente */
#quotesTable td:nth-child(3) { width: 200px; }
/* Col 4 (Servicio) es flexible */
#quotesTable th:nth-child(5), /* Precio */
#quotesTable td:nth-child(5) { width: 140px; }
#quotesTable th:nth-child(6), /* Estado */
#quotesTable td:nth-child(6) { width: 130px; }
#quotesTable th:nth-child(7), /* Pago */
#quotesTable td:nth-child(7) { width: 160px; }
#quotesTable th:nth-child(8), /* Acciones */
#quotesTable td:nth-child(8) { width: 100px; text-align: right; }


/* ============================================== */
/* --- Estilos para Modal de Presupuestos --- */
/* ============================================== */

#quote-modal-form .form-grid {
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}
#quote-modal-form .form-group label {
  font-size: 0.85rem;
  color: var(--secondary-color);
}
#quote-modal-form .form-group {
  margin-bottom: 0;
}
#quote-modal-form h4 {
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding-bottom: 8px;
  grid-column: 1 / -1;
}
#quote-modal-form input,
#quote-modal-form textarea,
#quote-modal-form select {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  background-color: #fff;
  font-size: 1rem;
}
#quote-modal-form textarea:disabled {
  background-color: #eee;
  color: #555;
  cursor: not-allowed;
}

/* Historial de Pagos */
.payment-history-list {
  background: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
  padding: 8px;
}
.payment-history-item {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}
.payment-history-item:last-child {
  border-bottom: none;
}
.payment-history-item span:nth-child(1) {
  font-size: 0.9rem;
  color: #555;
}
.payment-history-item span:nth-child(2) {
  font-size: 0.9rem;
  text-align: center;
}
.payment-history-item strong {
  text-align: right;
  color: var(--primary-color);
}

/* ============================================== */
/* --- Estilos para TOASTS (NUEVO) --- */
/* ============================================== */
#toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.toast {
  background: #28a745; /* Verde éxito */
  color: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-weight: 600;
  opacity: 0;
  transform: translateY(50px);
}
.toast.error {
  background: #dc3545; /* Rojo error */
}

/* ============================================== */
/* --- Estilos para Nuestros Servicios --- */
/* ============================================== */
.service-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0, 0.05);
}
.service-card-type {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent-color-1);
    background: rgba(0, 122, 255, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}
.service-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    border-top: 1px solid rgba(0,0,0, 0.08);
    padding-top: 16px;
}
.service-card-price {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--primary-color);
}
a.service-link {
    text-decoration: none;
    color: inherit;
}
a.service-link:hover {
    color: inherit.
}

/* --- Estilos para Detalle de Servicio --- */
.detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
}
.service-detail-image {
    width: 100%;
    border-radius: 16px;
    box-shadow: var(--panel-shadow);
    border: 1px solid rgba(0,0,0, 0.08);
    margin-bottom: 16px;
}
.service-detail-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-color-1);
    margin: 8px 0 24px 0;
}
.service-detail-description {
    line-height: 1.8;
    color: var(--secondary-color);
}
.detail-column-form .form-group {
    margin-bottom: 12px;
}
.detail-column-form .form-group label {
    margin-bottom: 4px;
}
.detail-column-form input,
.detail-column-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}
.detail-column-form textarea {
    min-height: 80px;
}
.form-success {
    background: rgba(0, 122, 255, 0.1);
    border: 1px solid var(--accent-color-1);
    color: var(--primary-color);
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    text-align: center;
}

/* ============================================== */
/* ---    NUEVO: Botón WhatsApp Flotante      --- */
/* ============================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 990; /* Debajo de modales (1000+) y toasts (9999) */
    
    background-color: #25D366; /* Color oficial de WhatsApp */
    color: #FFFFFF;
    
    display: none; /* Se activa con JS si existe el número */
    align-items: center;
    gap: 8px;
    
    padding: 10px 16px;
    border-radius: 50px;
    
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}
.whatsapp-fab svg {
    width: 18px;
    height: 18px;
}
/* ============================================== */
/* ---           FIN WHATSAPP                 --- */
/* ============================================== */


@media (max-width: 900px) {
    .detail-layout {
        grid-template-columns: 1fr; /* Apilado en móvil */
    }
}


/* ========================================================== */
/* MEJORAS PROFESIONALES PRO - WORK CLOUDS 2.0               */
/* Agregadas para funcionalidades extendidas                  */
/* ========================================================== */

/* Variables adicionales para nuevas secciones */
:root {
    --radius-xl: 24px;
    --shadow-hover: 0 12px 40px rgba(0, 122, 255, 0.2);
}

/* === ESTADÍSTICAS ANIMADAS === */
.stats-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.03) 0%, rgba(0, 198, 255, 0.03) 100%);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-box {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color-1), var(--accent-color-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-title {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 500;
}

/* === TESTIMONIOS === */
.testimonials-section {
    padding: 5rem 0;
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-box {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    position: relative;
    transition: all 0.3s ease;
}

.testimonial-box::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    font-size: 5rem;
    color: var(--accent-color-1);
    opacity: 0.08;
    font-family: Georgia, serif;
    line-height: 1;
}

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

.testimonial-content {
    position: relative;
    z-index: 1;
    font-style: italic;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar-img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-color-1);
}

.testimonial-author-name {
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.testimonial-author-role {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.testimonial-stars {
    color: #f59e0b;
    margin-top: 0.5rem;
}

/* === EQUIPO === */
.team-section {
    padding: 5rem 0;
    background: var(--bg-color);
}

.team-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2.5rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.team-member {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    text-align: center;
}

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

.team-member-photo {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.team-member:hover .team-member-photo {
    transform: scale(1.08);
}

.team-member-details {
    padding: 1.5rem;
}

.team-member-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.team-member-position {
    color: var(--accent-color-1);
    font-weight: 500;
    margin-bottom: 1rem;
}

.team-member-social {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.team-member-social a {
    color: var(--secondary-color);
    font-size: 1.2rem;
    transition: color 0.2s ease;
}

.team-member-social a:hover {
    color: var(--accent-color-1);
}

/* === FAQ === */
.faq-section {
    padding: 5rem 0;
}

.faq-wrapper {
    max-width: 850px;
    margin: 0 auto;
    padding: 0 2rem;
}

.faq-entry {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-entry.active {
    border-color: var(--accent-color-1);
}

.faq-query {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    transition: background 0.2s ease;
    user-select: none;
}

.faq-query:hover {
    background: rgba(0, 122, 255, 0.04);
}

.faq-response {
    padding: 0 1.5rem;
    color: var(--secondary-color);
    line-height: 1.8;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-entry.active .faq-response {
    max-height: 800px;
    padding: 0 1.5rem 1.5rem;
}

.faq-toggle-icon {
    color: var(--accent-color-1);
    font-weight: bold;
    font-size: 1.4rem;
    transition: transform 0.3s ease;
}

.faq-entry.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* === NEWSLETTER === */
.newsletter-cta {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, var(--accent-color-1) 0%, var(--accent-color-2) 100%);
    text-align: center;
    color: #fff;
    margin: 4rem 0;
}

.newsletter-heading {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.newsletter-subtext {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-signup {
    display: flex;
    gap: 0.5rem;
    max-width: 520px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.2rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
}

.newsletter-btn {
    padding: 1rem 2rem;
    background: #fff;
    color: var(--accent-color-1);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

/* === PORTAFOLIO === */
.portfolio-section {
    padding: 5rem 0;
}

.portfolio-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.portfolio-project {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

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

.portfolio-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-project:hover .portfolio-img {
    transform: scale(1.15);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #fff;
    padding: 2.5rem 1.5rem 1.5rem;
}

.portfolio-tag {
    display: inline-block;
    background: var(--accent-color-1);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.portfolio-desc {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* === RESPONSIVE PARA NUEVAS SECCIONES === */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-container,
    .team-container,
    .portfolio-gallery {
        grid-template-columns: 1fr;
    }
    
    .newsletter-signup {
        flex-direction: column;
    }
    
    .stat-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}


/* ========================================
   WORK CLOUDS - ESTILOS MODERNOS Y ESPECTACULARES
   FRONTEND DEL CLIENTE - GLOW UP TOTAL
   ======================================== */

/* === VARIABLES CSS MODERNAS PARA FRONTEND === */
:root {
    /* Colores Principales */
    --primary-color: #667eea;
    --primary-dark: #5a6fd8;
    --secondary-color: #764ba2;
    --accent-color: #f093fb;
    --accent-light: #f5f7fa;
    --success-color: #00d2ff;
    --warning-color: #ff6b6b;
    
    /* Gradientes */
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    
    /* Glassmorphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    
    /* Tipografía */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'Space Mono', monospace;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    
    /* Bordes */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 20px rgba(102, 126, 234, 0.3);
    
    /* Transiciones */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Z-index */
    --z-background: -1;
    --z-content: 1;
    --z-overlay: 10;
    --z-modal: 100;
    --z-tooltip: 1000;
}

/* === BACKGROUND PARTÍCULAS === */
.particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: var(--z-background);
    opacity: 0.7;
}

/* === HEADER MODERNO === */
.modern-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: var(--z-overlay);
    transition: all var(--transition-normal);
}

.modern-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
    transition: var(--transition-normal);
}

.logo-header:hover {
    transform: translateY(-2px);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    animation: float 3s ease-in-out infinite;
}

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

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

.nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    transition: var(--transition-normal);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::before {
    content: attr(data-text);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: var(--primary-color);
    font-weight: 700;
    opacity: 0;
    transition: var(--transition-normal);
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-cta {
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-glow);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: var(--transition-normal);
}

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
}

.hero-bg-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    animation: float-orb 6s ease-in-out infinite;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.8) 0%, transparent 70%);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(118, 75, 162, 0.8) 0%, transparent 70%);
    top: 50%;
    right: 20%;
    animation-delay: 2s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.6) 0%, transparent 70%);
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float-orb {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

.hero-content {
    position: relative;
    z-index: var(--z-content);
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
}

.hero-text-content {
    color: white;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin-bottom: 2rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.badge-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.gradient-text {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: var(--border-radius-lg);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

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

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.cta-button.primary:hover {
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.cta-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: var(--transition-slow);
}

.cta-button:hover::before {
    left: 100%;
}

.hero-stats {
    display: flex;
    gap: 2rem;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

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

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    color: white;
    animation: float-card 4s ease-in-out infinite;
}

.floating-card.card-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-card.card-2 {
    top: 50%;
    right: 20%;
    animation-delay: 1s;
}

.floating-card.card-3 {
    bottom: 20%;
    left: 30%;
    animation-delay: 2s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(1deg); }
    50% { transform: translateY(-5px) rotate(0deg); }
    75% { transform: translateY(-15px) rotate(-1deg); }
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.card-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.card-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-text {
    font-size: 0.8rem;
    font-weight: 500;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* === SERVICES SECTION === */
.services-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(102, 126, 234, 0.1);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 600px;
    margin: 0 auto;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    color: white;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-card.premium-card {
    border: 2px solid rgba(102, 126, 234, 0.3);
    transform: scale(1.05);
}

.service-card.premium-card::before {
    background: var(--gradient-accent);
    height: 6px;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.card-glow {
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-xl);
    opacity: 0;
    z-index: -1;
    transition: var(--transition-normal);
}

.service-card:hover .card-glow {
    opacity: 0.1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.service-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-cta {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-cta:hover {
    background: var(--primary-color);
    color: white;
}

/* === ABOUT SECTION === */
.about-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

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

.about-text .section-badge {
    background: rgba(240, 147, 251, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(240, 147, 251, 0.2);
}

.about-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.about-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature-content h4 {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.about-visual {
    position: relative;
}

.about-cards {
    display: grid;
    gap: 1rem;
}

.about-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    color: white;
    transition: var(--transition-normal);
}

.about-card:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.08);
}

.about-card.card-accent {
    border-color: rgba(240, 147, 251, 0.3);
}

.about-card h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.about-card p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* === FOOTER MODERNO === */
.modern-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem 0 2rem;
    color: white;
}

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

.footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-brand .footer-logo i {
    font-size: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition-normal);
}

.footer-section a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-section p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* === MODAL MODERNO === */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: var(--z-modal);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-normal);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin: 0 auto 1rem;
}

.modal-header h3 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* === FORMULARIO MODERNO === */
.modern-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    color: white;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1rem;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    transition: var(--transition-normal);
    pointer-events: none;
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label {
    top: -0.5rem;
    left: 0.75rem;
    font-size: 0.8rem;
    color: var(--primary-color);
    background: rgba(15, 23, 42, 0.95);
    padding: 0 0.25rem;
}

.contact-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.option-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-normal);
}

.option-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.option-item input[type="radio"] {
    margin: 0;
}

.option-icon {
    width: 30px;
    height: 30px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    color: white;
}

.submit-button {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: var(--border-radius-md);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

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

.form-message {
    text-align: center;
    padding: 1rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    margin-top: 1rem;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .hero-visual {
        height: 400px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-card.premium-card {
        transform: none;
    }
    
    .contact-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .modal-content {
        padding: 2rem 1.5rem;
        width: 95%;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .floating-card {
        position: relative;
        margin-bottom: 1rem;
    }
    
    .hero-visual {
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* === ANIMACIONES DE ENTRADA === */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate {
    opacity: 1;
    transform: translateY(0);
}

/* === EFECTOS ADICIONALES === */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-effect {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

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

.hover-lift:hover {
    transform: translateY(-5px);
}

/* === MEJORAS DE ACCESIBILIDAD === */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* === PRINT STYLES === */
@media print {
    .loading-screen,
    .particles-bg,
    .modern-header,
    .scroll-indicator,
    .modal {
        display: none !important;
    }
}

/* ========================================
   PÁGINA DE SERVICIOS - ESTILOS ESPECÍFICOS
   ======================================== */

/* === SERVICES HERO === */
.services-hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
    padding-top: 100px;
}

.services-hero-content {
    text-align: center;
    color: white;
    z-index: var(--z-content);
    max-width: 800px;
    padding: 0 2rem;
}

.services-hero .hero-badge {
    margin-bottom: 2rem;
}

.services-hero .hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.services-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
}

/* === SERVICES SHOWCASE === */
.services-showcase {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-showcase-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 2.5rem;
    color: white;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-showcase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.service-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.service-showcase-card.featured {
    border: 2px solid rgba(102, 126, 234, 0.3);
    background: rgba(102, 126, 234, 0.05);
}

.service-showcase-card.featured::before {
    background: var(--gradient-accent);
    height: 6px;
}

.service-showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.service-showcase-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: var(--border-radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.service-badge {
    background: var(--gradient-accent);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.service-showcase-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-showcase-content p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-features-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-features-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.service-features-list li i {
    color: var(--success-color);
    font-size: 0.9rem;
}

.service-price {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary-color);
}

.price-currency {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
}

.price-period {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.service-action {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.service-action:hover {
    background: var(--primary-color);
    color: white;
}

/* === PROCESS SECTION === */
.process-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 1.5rem;
    position: relative;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.step-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    margin: 0 auto;
}

/* Conectar pasos con líneas */
.process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 100%;
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    z-index: -1;
}

/* === SERVICES CTA === */
.services-cta {
    padding: 6rem 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* === RESPONSIVE PARA SERVICIOS === */
@media (max-width: 1024px) {
    .services-stats {
        gap: 2rem;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
    
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .services-stats {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .services-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .services-hero-content {
        padding: 0 1rem;
    }
    
    .service-showcase-card {
        padding: 2rem 1.5rem;
    }
    
    .cta-actions .cta-button {
        width: 100%;
        max-width: 300px;
    }
}

/* === ANIMACIONES ESPECÍFICAS PARA SERVICIOS === */
@keyframes serviceCardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.service-showcase-card {
    animation: serviceCardSlideIn 0.6s ease-out forwards;
}

.process-step {
    animation: serviceCardSlideIn 0.6s ease-out forwards;
}

/* === LOADING ESTADO PARA SERVICIOS === */
.services-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: rgba(255, 255, 255, 0.6);
}

.services-loading::after {
    content: '';
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* === MEJORAS DE ACCESIBILIDAD PARA SERVICIOS === */
@media (prefers-reduced-motion: reduce) {
    .service-showcase-card,
    .process-step,
    .step-number {
        animation: none;
    }
    
    .process-step:not(:last-child)::after {
        display: none;
    }
}