@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@300;400;500;600;700&family=Nunito:wght@300;400;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* Temas Globales de NFCNEX */
:root {
    /* 1. Tema Base / Glassmorfismo Oscuro (Acarbonado) */
    --font-family: 'Outfit', sans-serif;
    --bg-primary: #121316;
    --bg-secondary: #17181c;
    --glass-bg: rgba(23, 24, 28, 0.75);
    --glass-card: rgba(255, 255, 255, 0.03);
    --glass-card-hover: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-focus: rgba(13, 148, 136, 0.4);
    
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    --accent-blue: #0d9488; /* Verde azulado / Teal premium */
    --accent-purple: #854d0e; /* Bronce cálido */
    --accent-pink: #d97706; /* Ámbar cálido */
    --accent-medical: #ef4444;
    --accent-medical-bg: rgba(239, 68, 68, 0.15);
    
    --state-active: #10b981;
    --state-active-bg: rgba(16, 185, 129, 0.15);
    --state-pending: #d97706;
    --state-pending-bg: rgba(217, 119, 6, 0.15);
    --state-suspended: #ef4444;
    --state-suspended-bg: rgba(239, 68, 68, 0.15);
    --state-inactive: #71717a;
    --state-inactive-bg: rgba(113, 113, 122, 0.15);
    
    --glow-blue: 0 0 20px rgba(13, 148, 136, 0.3);
    --glow-purple: 0 0 20px rgba(133, 77, 14, 0.3);
    --glow-medical: 0 0 20px rgba(239, 68, 68, 0.3);

    --card-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --card-radius: 24px;
    --backdrop-blur: blur(16px);
    --transition-theme: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, color 0.4s ease, font-family 0.4s ease;
    --body-bg-gradient: radial-gradient(circle at 50% 0%, #282a30 0%, #121316 85%);
    
    --input-bg: rgba(255, 255, 255, 0.05);
    --btn-glow-hover: rgba(13, 148, 136, 0.4);
    --glow-focus-shadow: 0 0 0 4px rgba(13, 148, 136, 0.2);
}

/* 2. Tema Glassmorfismo Claro (Tonos Cálidos/Piedra/Marfil) */
[data-theme="glassmorphism-light"] {
    --font-family: 'Inter', sans-serif;
    --bg-primary: #fafaf9;
    --bg-secondary: #f5f5f4;
    --glass-bg: rgba(250, 250, 249, 0.8);
    --glass-card: rgba(28, 25, 23, 0.03);
    --glass-card-hover: rgba(28, 25, 23, 0.06);
    --glass-border: rgba(28, 25, 23, 0.08);
    --text-primary: #1c1917;
    --text-secondary: #44403c;
    --text-muted: #78716c;
    --accent-blue: #0d9488; /* Teal / Verde orgánico cálido */
    --accent-purple: #854d0e; /* Bronce elegante */
    --glow-blue: 0 0 20px rgba(13, 148, 136, 0.15);
    --glow-purple: 0 0 20px rgba(133, 77, 14, 0.15);
    --card-shadow: 0 10px 30px rgba(28, 25, 23, 0.04);
    --body-bg-gradient: radial-gradient(circle at 50% 0%, #fdfdfc 0%, #f4f3f0 85%);
    
    --input-bg: rgba(28, 25, 23, 0.04);
    --btn-glow-hover: rgba(13, 148, 136, 0.2);
    --glow-focus-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

/* 3. Tema Inmersivo 3D (Carbono y Grafito Profundo) */
[data-theme="immersive-3d"] {
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --bg-primary: #090a0c;
    --bg-secondary: #0e0f11;
    --glass-bg: rgba(14, 15, 17, 0.95);
    --glass-card: rgba(255, 255, 255, 0.04);
    --glass-card-hover: rgba(255, 255, 255, 0.08);
    --glass-border: rgba(13, 148, 136, 0.25);
    --accent-blue: #0d9488;
    --accent-purple: #a1a1aa;
    --card-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95), 0 0 30px rgba(13, 148, 136, 0.1);
    --backdrop-blur: none;
    --body-bg-gradient: radial-gradient(circle at 50% 0%, #202227 0%, #090a0c 85%);
    
    --input-bg: rgba(255, 255, 255, 0.05);
    --btn-glow-hover: rgba(13, 148, 136, 0.3);
    --glow-focus-shadow: 0 0 0 4px rgba(13, 148, 136, 0.15);
}

/* 4. Tema Neumorfismo 2.0 (Diseño Cálido Arena / Hueso) */
[data-theme="neumorphism"] {
    --font-family: 'Nunito', sans-serif;
    --bg-primary: #f3ebe1;
    --bg-secondary: #e9decb;
    --glass-bg: #f3ebe1;
    --glass-card: #f3ebe1;
    --glass-card-hover: #e9decb;
    --glass-border: transparent;
    --text-primary: #292524;
    --text-secondary: #57534e;
    --text-muted: #78716c;
    --accent-blue: #0f766e;
    --accent-purple: #854d0e;
    --card-shadow: 10px 10px 20px #d4cab8, -10px -10px 20px #ffffff;
    --backdrop-blur: none;
    --card-radius: 28px;
    --body-bg-gradient: #f3ebe1;
    
    --input-bg: #e9decb;
    --btn-glow-hover: rgba(15, 118, 110, 0.2);
    --glow-focus-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

/* 5. Tema Material 3 Expressive (Modo Arena Fina Cálida) */
[data-theme="material3"] {
    --font-family: 'Plus Jakarta Sans', sans-serif;
    --bg-primary: #fbf9f6;
    --bg-secondary: #f4efe6;
    --glass-bg: #ece5d9;
    --glass-card: rgba(133, 77, 14, 0.04);
    --glass-card-hover: rgba(133, 77, 14, 0.08);
    --glass-border: rgba(133, 77, 14, 0.12);
    --text-primary: #1f1b16;
    --text-secondary: #4f4639;
    --text-muted: #7f7565;
    --accent-blue: #854d0e;
    --accent-purple: #4f7a60; /* Verde salvia */
    --card-shadow: 0px 4px 12px rgba(133, 77, 14, 0.05);
    --card-radius: 32px;
    --backdrop-blur: none;
    --body-bg-gradient: #fbf9f6;
    
    --input-bg: #f4efe6;
    --btn-glow-hover: rgba(133, 77, 14, 0.25);
    --glow-focus-shadow: 0 0 0 4px rgba(133, 77, 14, 0.15);
}

/* 6. Tema Cyberpunk (Space Grotesk Tech) */
[data-theme="futuristic"] {
    --font-family: 'Space Grotesk', sans-serif;
    --bg-primary: #050506;
    --bg-secondary: #0d0e10;
    --glass-bg: rgba(13, 14, 16, 0.85);
    --glass-card: rgba(0, 240, 255, 0.02);
    --glass-card-hover: rgba(240, 0, 255, 0.05);
    --glass-border: #00f0ff;
    --accent-blue: #00f0ff;
    --accent-purple: #f000ff;
    --text-primary: #00ffff;
    --text-secondary: #d946ef;
    --card-shadow: 0 0 15px rgba(0, 240, 255, 0.3), inset 0 0 15px rgba(240, 0, 255, 0.1);
    --backdrop-blur: blur(8px);
    --card-radius: 8px;
    --body-bg-gradient: radial-gradient(circle at 50% 0%, #17181c 0%, #050506 85%);
    
    --input-bg: rgba(0, 240, 255, 0.03);
    --btn-glow-hover: rgba(0, 240, 255, 0.4);
    --glow-focus-shadow: 0 0 0 4px rgba(0, 240, 255, 0.2);
}

/* 7. Tema Arduino IDE (Sketch, Flat Teal) */
[data-theme="arduino"] {
    --font-family: 'Inter', monospace;
    --bg-primary: #f3f7f9;
    --bg-secondary: #e5eef2;
    --glass-bg: #ffffff;
    --glass-card: #ffffff;
    --glass-card-hover: #f3f7f9;
    --glass-border: #00979c;
    --text-primary: #2d3e50;
    --text-secondary: #4c6072;
    --text-muted: #7b8e9d;
    --accent-blue: #00979c; /* Arduino Teal */
    --accent-purple: #008184; /* Arduino Dark Teal */
    --accent-pink: #e47128; /* Arduino Orange */
    --glow-blue: 0 0 15px rgba(0, 151, 156, 0.15);
    --glow-purple: 0 0 15px rgba(0, 129, 132, 0.15);
    --card-shadow: 0px 3px 6px rgba(0, 151, 156, 0.08);
    --card-radius: 4px;
    --backdrop-blur: none;
    --body-bg-gradient: #f3f7f9;
    
    --input-bg: #ffffff;
    --btn-glow-hover: rgba(0, 151, 156, 0.2);
    --glow-focus-shadow: 0 0 0 3px rgba(0, 151, 156, 0.2);
}

/* 8. Tema Industrial Metal (Acero, Cromo y Cobre) */
[data-theme="metal"] {
    --font-family: 'Outfit', sans-serif;
    --bg-primary: #d5dbdb;
    --bg-secondary: #bdc3c7;
    --glass-bg: rgba(255, 255, 255, 0.4);
    --glass-card: rgba(255, 255, 255, 0.7);
    --glass-card-hover: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(140, 150, 160, 0.45);
    --text-primary: #2c3e50;
    --text-secondary: #566573;
    --text-muted: #7f8c8d;
    --accent-blue: #34495e; /* Hierro oscuro */
    --accent-purple: #7f8c8d; /* Cromo */
    --accent-pink: #d35400; /* Cobre pulido */
    --card-shadow: 6px 6px 16px rgba(0,0,0,0.1), -6px -6px 16px rgba(255,255,255,0.7);
    --card-radius: 12px;
    --backdrop-blur: blur(5px);
    --body-bg-gradient: linear-gradient(180deg, #ecf0f1 0%, #bdc3c7 100%);
    
    --input-bg: rgba(255, 255, 255, 0.6);
    --btn-glow-hover: rgba(52, 73, 94, 0.2);
    --glow-focus-shadow: 0 0 0 3px rgba(52, 73, 94, 0.25);
}

/* 9. Tema Salud & Bienestar (Clínico y Esmeralda) */
[data-theme="salud"] {
    --font-family: 'Inter', sans-serif;
    --bg-primary: #e8f5e9;
    --bg-secondary: #c8e6c9;
    --glass-bg: #ffffff;
    --glass-card: #ffffff;
    --glass-card-hover: #f1fcf2;
    --glass-border: #2e7d32;
    --text-primary: #1b5e20;
    --text-secondary: #2e7d32;
    --text-muted: #66bb6a;
    --accent-blue: #2e7d32; /* Verde esmeralda médico */
    --accent-purple: #ef5350; /* Rojo emergencia */
    --accent-pink: #26a69a; /* Azul turquesa salud */
    --card-shadow: 0 8px 30px rgba(46, 125, 50, 0.05);
    --card-radius: 20px;
    --backdrop-blur: none;
    --body-bg-gradient: linear-gradient(135deg, #e8f5e9 0%, #e0f2f1 100%);
    
    --input-bg: #ffffff;
    --btn-glow-hover: rgba(46, 125, 50, 0.15);
    --glow-focus-shadow: 0 0 0 3px rgba(46, 125, 50, 0.2);
}

/* 10. Tema Futuro Binario (Terminal Hacker / Matriz) */
[data-theme="binario"] {
    --font-family: 'Space Grotesk', monospace;
    --bg-primary: #000000;
    --bg-secondary: #050f05;
    --glass-bg: #000000;
    --glass-card: rgba(0, 15, 0, 0.95);
    --glass-card-hover: rgba(0, 30, 0, 0.9);
    --glass-border: #00ff00;
    --text-primary: #00ff00; /* Fósforo verde */
    --text-secondary: #39ff14;
    --text-muted: #008000;
    --accent-blue: #00ff00;
    --accent-purple: #003300;
    --accent-pink: #00ffcc;
    --card-shadow: 0 0 10px rgba(0, 255, 0, 0.35), inset 0 0 8px rgba(0, 255, 0, 0.15);
    --card-radius: 2px;
    --backdrop-blur: none;
    --body-bg-gradient: #000000;
    
    --input-bg: rgba(0, 10, 0, 0.8);
    --btn-glow-hover: 0px 0px 12px rgba(0, 255, 0, 0.5);
    --glow-focus-shadow: 0 0 0 3px rgba(0, 255, 0, 0.3);
}

/* 11. Tema Espacial Cosmos (Nebulosa y Polvo de Estrellas) */
[data-theme="espacio"] {
    --font-family: 'Outfit', sans-serif;
    --bg-primary: #020208;
    --bg-secondary: #0b091a;
    --glass-bg: rgba(11, 9, 26, 0.75);
    --glass-card: rgba(20, 16, 45, 0.55);
    --glass-card-hover: rgba(32, 26, 70, 0.65);
    --glass-border: rgba(168, 85, 247, 0.45);
    --text-primary: #f3e8ff;
    --text-secondary: #c084fc;
    --text-muted: #7c3aed;
    --accent-blue: #a855f7; /* Púrpura cósmico */
    --accent-purple: #ec4899; /* Rosa nebulosa */
    --accent-pink: #6366f1; /* Azul interestelar */
    --card-shadow: 0 10px 30px rgba(168, 85, 247, 0.15);
    --card-radius: 24px;
    --backdrop-blur: blur(8px);
    --body-bg-gradient: radial-gradient(circle at 50% 0%, #1e1b4b 0%, #03000a 85%);
    
    --input-bg: rgba(20, 16, 45, 0.85);
    --btn-glow-hover: rgba(168, 85, 247, 0.35);
    --glow-focus-shadow: 0 0 0 3px rgba(168, 85, 247, 0.25);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family), 'Outfit', sans-serif;
    -webkit-tap-highlight-color: transparent;
}

body {
    background: var(--body-bg-gradient);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    line-height: 1.5;
    transition: var(--transition-theme);
}

/* Premium Glassmorphism Container */
.glass-container {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-theme);
}

/* Header & Navigation */
header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: var(--transition-theme);
}


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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo span {
    font-weight: 300;
    color: var(--text-primary);
    -webkit-text-fill-color: var(--text-primary);
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: none;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    color: #ffffff;
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px var(--btn-glow-hover);
    filter: brightness(1.1);
}

.btn-secondary {
    background: var(--glass-card);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-card-hover);
    border-color: var(--accent-blue);
    transform: translateY(-2px);
}

.btn-danger {
    background: linear-gradient(135deg, var(--accent-medical) 0%, #b91c1c 100%);
    color: white;
    box-shadow: var(--glow-medical);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(239, 68, 68, 0.5);
    filter: brightness(1.1);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    color: white;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.4);
}

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

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 2rem;
    text-align: center;
    flex: 1;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    font-weight: 300;
}

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

.feature-card {
    padding: 2.5rem 2rem;
    text-align: left;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(99, 102, 241, 0.3);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Forms & Auth */
.auth-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
    flex: 1;
}

.auth-card {
    width: 100%;
    max-width: 450px;
    padding: 3rem 2.5rem;
}

.auth-card h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-card .subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 0.95rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--input-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: var(--input-bg);
    box-shadow: var(--glow-focus-shadow);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 600;
}

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

/* Dashboard Style */
.dashboard-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    width: 100%;
    flex: 1;
}

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

.welcome-msg h2 {
    font-size: 2rem;
    font-weight: 800;
}

.welcome-msg p {
    color: var(--text-secondary);
}

.billing-widget {
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.billing-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.status-badge {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.status-active {
    background: var(--state-active-bg);
    color: var(--state-active);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-pending {
    background: var(--state-pending-bg);
    color: var(--state-pending);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-suspended {
    background: var(--state-suspended-bg);
    color: var(--state-suspended);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.status-inactive {
    background: var(--state-inactive-bg);
    color: var(--state-inactive);
    border: 1px solid rgba(107, 114, 128, 0.3);
}

.billing-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.profile-card {
    padding: 2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.profile-card-header {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    background: var(--bg-secondary);
}

.profile-title-group h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.profile-type-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
}

.profile-type-badge.medical {
    background: var(--accent-medical-bg);
    color: var(--accent-medical);
}

.profile-type-badge.contact {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
}

.profile-card-body {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-card-body p {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.profile-card-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.nfc-tools-panel {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nfc-tools-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    border: 1px dashed var(--glass-border);
    border-radius: 24px;
}

.empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Public Profile View (Premium Mobile Native Look) */
.profile-view-body {
    background: var(--body-bg-gradient) !important;
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
}

.profile-mobile-wrapper {
    width: 100%;
    max-width: 440px;
    min-height: 80vh;
    padding: 2.5rem 1.75rem;
    position: relative;
    overflow: hidden;
}

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

.profile-view-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
    margin-bottom: 1.25rem;
    background: var(--bg-secondary);
}

.profile-view-name {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.profile-view-title {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
    background: var(--glass-card-hover);
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.social-btn.facebook:hover { color: #1877f2; border-color: rgba(24, 119, 242, 0.5); }
.social-btn.instagram:hover { color: #c13584; border-color: rgba(193, 53, 132, 0.5); }
.social-btn.linkedin:hover { color: #0a66c2; border-color: rgba(10, 102, 194, 0.5); }
.social-btn.twitter:hover { color: #1da1f2; border-color: rgba(29, 161, 242, 0.5); }
.social-btn.tiktok:hover { color: #010101; border-color: rgba(255, 255, 255, 0.5); }
.social-btn.youtube:hover { color: #ff0000; border-color: rgba(255, 0, 0, 0.5); }

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: var(--glass-card-hover);
    border-color: var(--accent-blue);
}

.contact-item-icon {
    font-size: 1.25rem;
    color: var(--accent-blue);
}

.contact-item-content {
    display: flex;
    flex-direction: column;
}

.contact-item-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.contact-item-value {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Medical Profile Details */
.medical-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--accent-medical-bg);
    color: var(--accent-medical);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    animation: pulse-medical 2s infinite;
}

@keyframes pulse-medical {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.medical-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.medical-card-info {
    background: rgba(239, 68, 68, 0.03);
    border: 1px solid rgba(239, 68, 68, 0.12);
    padding: 1rem 1.25rem;
    border-radius: 16px;
    text-align: left;
}

.medical-card-info.full-width {
    grid-column: 1 / -1;
}

.medical-info-label {
    font-size: 0.75rem;
    color: rgba(239, 68, 68, 0.7);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.medical-info-value {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.medical-emergency-section {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 20px;
    text-align: center;
}

.medical-emergency-title {
    font-weight: 800;
    color: var(--accent-medical);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.medical-emergency-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    max-width: 400px;
    width: 90%;
    padding: 2.5rem 2rem;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.modal-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.modal-buttons {
    display: flex;
    gap: 1rem;
}

.modal-buttons button, .modal-buttons a {
    flex: 1;
}

/* Alerts */
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-success {
    background: rgba(16, 185, 129, 0.15);
    color: var(--state-active);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.alert-danger {
    background: rgba(239, 68, 68, 0.15);
    color: var(--state-suspended);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--state-pending);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

/* Suspended View styles */
.suspended-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3rem 1.5rem;
    max-width: 400px;
}

.suspended-icon {
    font-size: 4rem;
    color: var(--accent-medical);
    margin-bottom: 1.5rem;
}

/* Helper / Utility */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.flex-grow { flex: 1; }

.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--glass-border);
    padding: 2rem;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: auto;
    transition: var(--transition-theme);
}

/* Responsive grid changes */
@media(max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    .nav-container {
        padding: 1rem;
    }
    .nav-menu {
        gap: 1rem;
    }
    .dashboard-container {
        padding: 0 1rem;
    }
    .billing-widget {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Estilo dinámico y adaptación de colores para logotipos SVG */
.site-logo-wrapper svg, .site-logo-svg {
    display: inline-block;
    vertical-align: middle;
    width: 32px;
    height: 32px;
    margin-right: 0.5rem;
    transition: all 0.4s ease;
}
.site-logo-wrapper svg path, .site-logo-wrapper svg circle, .site-logo-wrapper svg rect,
.site-logo-svg path, .site-logo-svg circle, .site-logo-svg rect {
    transition: stroke 0.4s ease, fill 0.4s ease;
}
.site-logo-wrapper svg [stroke], .site-logo-svg [stroke] {
    stroke: var(--accent-blue);
}
.site-logo-wrapper svg [fill], .site-logo-svg [fill] {
    fill: var(--accent-blue);
}
.site-logo-wrapper svg [fill="none"], .site-logo-svg [fill="none"] {
    fill: none !important;
}
.site-logo-wrapper svg [stroke="none"], .site-logo-svg [stroke="none"] {
    stroke: none !important;
}
