/**
 * ============================================
 * TARJETAS DIGITALES SIGI36 - ESTILOS BASE
 * ============================================
 * Este archivo contiene:
 * 1. Estilos base compartidos
 * 2. Variables CSS para cada industria
 * 3. Temas específicos con overrides
 */

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== VARIABLES GLOBALES ===== */
:root {
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.2);
    --transition: all 0.3s ease;
}

/* ===== UTILIDADES ===== */
.text-center { text-align: center; }
.hidden { display: none !important; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== SCROLLBAR PERSONALIZADA ===== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.05); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.25); }

/* ===== LOADING SPINNER ===== */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== TOOLTIP ===== */
.tooltip {
    position: relative;
}
.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 0.4rem 0.75rem;
    background: rgba(0,0,0,0.8);
    color: #fff;
    font-size: 0.75rem;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.tooltip:hover::after {
    opacity: 1;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}
.modal-content {
    background: #1a1a2e;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    animation: modalIn 0.3s ease;
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.9) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===== TEMAS POR INDUSTRIA ===== */

/* --- 1. INMOBILIARIA --- */
.tema-inmobiliaria {
    --color-primary: #1e3a5f;
    --color-secondary: #c9a227;
    --color-accent: #ffffff;
    --color-bg: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --overlay: rgba(30, 58, 95, 0.75);
    --card-bg: rgba(30, 58, 95, 0.9);
    --btn-style: rounded-elegant;
    --btn-radius: 50px;
    --icon: '\f015';
}

/* --- 2. FINANCIERA --- */
.tema-financiera {
    --color-primary: #2d5a3d;
    --color-secondary: #c9a227;
    --color-accent: #f5f5f5;
    --color-bg: linear-gradient(135deg, #2d5a3d 0%, #1a3a25 50%, #2c2c2c 100%);
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --overlay: rgba(45, 90, 61, 0.8);
    --card-bg: rgba(44, 44, 44, 0.95);
    --btn-style: squared;
    --btn-radius: 4px;
    --icon: '\f201';
}

/* --- 3. ESTÉTICA / SPA --- */
.tema-estetica {
    --color-primary: #f8c8dc;
    --color-secondary: #d4af37;
    --color-accent: #fff8f0;
    --color-bg: linear-gradient(135deg, #f8c8dc 0%, #f0d4e8 50%, #fff8f0 100%);
    --font-heading: 'Great Vibes', cursive;
    --font-body: 'Lato', sans-serif;
    --overlay: rgba(248, 200, 220, 0.6);
    --card-bg: rgba(255, 248, 240, 0.95);
    --btn-style: oval;
    --btn-radius: 50px;
    --icon: '\f5bb';
}

/* --- 4. RESTAURANTE --- */
.tema-restaurante {
    --color-primary: #c0392b;
    --color-secondary: #e67e22;
    --color-accent: #fdf2e9;
    --color-bg: linear-gradient(135deg, #c0392b 0%, #e67e22 50%, #d35400 100%);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --overlay: rgba(192, 57, 43, 0.75);
    --card-bg: rgba(253, 242, 233, 0.95);
    --btn-style: rounded-food;
    --btn-radius: 16px;
    --icon: '\f2e7';
}

/* --- 5. MECÁNICO --- */
.tema-mecanico {
    --color-primary: #dc0000;
    --color-secondary: #333333;
    --color-accent: #f0f0f0;
    --color-bg: linear-gradient(135deg, #dc0000 0%, #8b0000 50%, #333333 100%);
    --font-heading: 'Roboto Condensed', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --overlay: rgba(0, 0, 0, 0.7);
    --card-bg: rgba(51, 51, 51, 0.95);
    --btn-style: angular;
    --btn-radius: 2px;
    --icon: '\f0ad';
}

/* --- 6. GIMNASIO --- */
.tema-gimnasio {
    --color-primary: #39ff14;
    --color-secondary: #0a0a0a;
    --color-accent: #cccccc;
    --color-bg: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    --font-heading: 'Bebas Neue', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --overlay: rgba(0, 0, 0, 0.6);
    --card-bg: rgba(10, 10, 10, 0.95);
    --btn-style: neon;
    --btn-radius: 4px;
    --icon: '\f44b';
}

/* --- 7. DISEÑO GRÁFICO --- */
.tema-diseno {
    --color-primary: #8e44ad;
    --color-secondary: #e84393;
    --color-accent: #1a1a2e;
    --color-bg: linear-gradient(135deg, #8e44ad 0%, #e84393 50%, #6c3483 100%);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --overlay: rgba(0, 0, 0, 0.5);
    --card-bg: rgba(26, 26, 46, 0.95);
    --btn-style: asymmetric;
    --btn-radius: 12px 4px;
    --icon: '\f53f';
}

/* --- 8. LEGAL --- */
.tema-legal {
    --color-primary: #1a5276;
    --color-secondary: #7b241c;
    --color-accent: #f8f9fa;
    --color-bg: linear-gradient(135deg, #1a5276 0%, #154360 50%, #1a5276 100%);
    --font-heading: 'Merriweather', serif;
    --font-body: 'Lato', sans-serif;
    --overlay: rgba(26, 82, 118, 0.85);
    --card-bg: rgba(248, 249, 250, 0.98);
    --btn-style: formal;
    --btn-radius: 2px;
    --icon: '\f24e';
}

/* --- 9. DOCTOR --- */
.tema-doctor {
    --color-primary: #3498db;
    --color-secondary: #1abc9c;
    --color-accent: #ffffff;
    --color-bg: linear-gradient(135deg, #3498db 0%, #2980b9 50%, #1abc9c 100%);
    --font-heading: 'Nunito', sans-serif;
    --font-body: 'Nunito', sans-serif;
    --overlay: rgba(52, 152, 219, 0.7);
    --card-bg: rgba(255, 255, 255, 0.98);
    --btn-style: friendly;
    --btn-radius: 25px;
    --icon: '\f0f0';
}

/* --- 10. COACH --- */
.tema-coach {
    --color-primary: #ff6b35;
    --color-secondary: #004e89;
    --color-accent: #ffffff;
    --color-bg: linear-gradient(135deg, #ff6b35 0%, #f7931e 50%, #004e89 100%);
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Inter', sans-serif;
    --overlay: rgba(0, 0, 0, 0.55);
    --card-bg: rgba(255, 255, 255, 0.95);
    --btn-style: large-shadow;
    --btn-radius: 12px;
    --icon: '\f130';
}

/* --- 11. VETERINARIA --- */
.tema-veterinaria {
    --color-primary: #98d8c8;
    --color-secondary: #f4a261;
    --color-accent: #fefae0;
    --color-bg: linear-gradient(135deg, #98d8c8 0%, #b8e6d4 50%, #f4a261 100%);
    --font-heading: 'Quicksand', sans-serif;
    --font-body: 'Quicksand', sans-serif;
    --overlay: rgba(152, 216, 200, 0.5);
    --card-bg: rgba(254, 250, 224, 0.98);
    --btn-style: rounded-paw;
    --btn-radius: 25px;
    --icon: '\f1b0';
}

/* --- 12. TRANSPORTE --- */
.tema-transporte {
    --color-primary: #f1c40f;
    --color-secondary: #2c3e50;
    --color-accent: #ecf0f1;
    --color-bg: linear-gradient(135deg, #f1c40f 0%, #f39c12 50%, #2c3e50 100%);
    --font-heading: 'Ubuntu', sans-serif;
    --font-body: 'Ubuntu', sans-serif;
    --overlay: rgba(0, 0, 0, 0.65);
    --card-bg: rgba(44, 62, 80, 0.95);
    --btn-style: transport;
    --btn-radius: 8px;
    --icon: '\f1ba';
}

/* --- 13. MÚSICO --- */
.tema-musico {
    --color-primary: #000000;
    --color-secondary: #c0392b;
    --color-accent: #f1c40f;
    --color-bg: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2c0000 100%);
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Inter', sans-serif;
    --overlay: rgba(0, 0, 0, 0.7);
    --card-bg: rgba(0, 0, 0, 0.95);
    --btn-style: vibrate;
    --btn-radius: 50px;
    --icon: '\f001';
}

/* --- 14. INFLUENCER --- */
.tema-influencer {
    --color-primary: #ff0080;
    --color-secondary: #00ffff;
    --color-accent: #000000;
    --color-bg: linear-gradient(135deg, #000000 0%, #1a0010 50%, #000a1a 100%);
    --font-heading: 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --overlay: rgba(0, 0, 0, 0.5);
    --card-bg: rgba(0, 0, 0, 0.9);
    --btn-style: social-gradient;
    --btn-radius: 12px;
    --icon: '\f030';
}

/* --- 15. TIENDA --- */
.tema-tienda {
    --color-primary: #ff9900;
    --color-secondary: #232f3e;
    --color-accent: #ffffff;
    --color-bg: linear-gradient(135deg, #232f3e 0%, #131921 50%, #232f3e 100%);
    --font-heading: 'Arial', sans-serif;
    --font-body: 'Arial', sans-serif;
    --overlay: rgba(35, 47, 62, 0.8);
    --card-bg: rgba(255, 255, 255, 0.98);
    --btn-style: amazon;
    --btn-radius: 8px;
    --icon: '\f07a';
}

/* ===== ESTILOS DE BOTONES POR TIPO ===== */

/* Rounded Elegant (Inmobiliaria) */
.btn-style-rounded-elegant {
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Squared (Financiera) */
.btn-style-squared {
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

/* Oval (Estética) */
.btn-style-oval {
    border-radius: 50px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    font-weight: 500;
}

/* Rounded Food (Restaurante) */
.btn-style-rounded-food {
    border-radius: 16px;
}
.btn-style-rounded-food::after {
    content: '\f2e7';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 8px;
    opacity: 0.5;
}

/* Angular (Mecánico) */
.btn-style-angular {
    border-radius: 2px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Neon (Gimnasio) */
.btn-style-neon {
    border-radius: 4px;
    border: 1px solid rgba(57, 255, 20, 0.3);
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}
.btn-style-neon:hover {
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.4);
}

/* Asymmetric (Diseño) */
.btn-style-asymmetric {
    border-radius: 12px 4px 12px 4px;
    font-weight: 600;
}

/* Formal (Legal) */
.btn-style-formal {
    border-radius: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    font-weight: 600;
}

/* Friendly (Doctor) */
.btn-style-friendly {
    border-radius: 25px;
    font-weight: 600;
}

/* Large Shadow (Coach) */
.btn-style-large-shadow {
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    font-size: 1rem;
    padding: 1rem 2rem;
}

/* Rounded Paw (Veterinaria) */
.btn-style-rounded-paw {
    border-radius: 25px;
    font-weight: 600;
}

/* Transport */
.btn-style-transport {
    border-radius: 8px;
    font-weight: 600;
}
.btn-style-transport i {
    font-size: 1.3rem;
}

/* Vibrate (Músico) */
.btn-style-vibrate {
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.btn-style-vibrate:hover {
    animation: vibrate-btn 0.3s ease;
}
@keyframes vibrate-btn {
    0%, 100% { transform: translateY(-3px) rotate(0deg); }
    25% { transform: translateY(-3px) rotate(-1deg); }
    75% { transform: translateY(-3px) rotate(1deg); }
}

/* Social Gradient (Influencer) */
.btn-style-social-gradient {
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(255,0,128,0.8), rgba(0,255,255,0.8));
    border: none;
}

/* Amazon (Tienda) */
.btn-style-amazon {
    border-radius: 8px;
    background: linear-gradient(to bottom, #ff9900, #e8890e);
    border: none;
    font-weight: 600;
}
.btn-style-amazon:hover {
    background: linear-gradient(to bottom, #ffb84d, #ff9900);
}

/* ===== ANIMACIONES GLOBALES ===== */

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

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

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

@keyframes pulse-ring {
    0% { transform: scale(0.8); opacity: 0.5; }
    100% { transform: scale(1.3); opacity: 0; }
}

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

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    :root {
        --radius-lg: 12px;
        --radius-xl: 16px;
    }
}

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