/* ============================================
   PROVIWEB - Estilos Globales Mejorados
   ============================================ */

:root {
    --primary-color: #007BFF;
    --primary-dark: #0056b3;
    --primary-light: #4da3ff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --dark-text: #212529;
    --light-text: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.2);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    background-attachment: fixed;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.auth-page {
    background-image: url("assets/backloginweb.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

@media (min-width: 768px) {
    body {
        cursor: auto;
    }
}

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

.app-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.app-header-bar {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: var(--shadow-md);
}

.app-brand {
    font-weight: 700;
    font-size: 20px;
    letter-spacing: -0.3px;
    color: #fff;
    text-decoration: none;
}
.app-brand:hover { opacity: 0.95; }

.app-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.app-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 999px;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.15);
}

.app-nav a:hover,
.app-nav a:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.app-nav a.is-active {
    background: #fff;
    color: var(--primary-color);
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}


.app-page {
    padding-top: 120px;
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    background: #fff;
    color: var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    font-weight: 600;
    z-index: 2000;
    transition: var(--transition);
}

.skip-link:focus-visible {
    top: 16px;
}

/* Shared UI elements */
.card-surface {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-surface:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transform: translateY(-2px);
}

.section-title {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

/* Legal pages */
.legal-page .legal-container {
    max-width: 960px;
    margin: 36px auto 80px;
    padding: 0 20px;
}

.legal-card {
    padding: 34px;
    position: relative;
    overflow: hidden;
}

.legal-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0.6;
}

.legal-hero {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 18px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-title {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.4px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.legal-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(0, 123, 255, 0.18));
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.legal-lead {
    font-size: 16px;
    color: #0f172a;
    font-weight: 600;
    line-height: 1.7;
}

.legal-subtitle {
    font-size: 15px;
    color: var(--light-text);
    line-height: 1.7;
}

.legal-page main h2 {
    margin-top: 26px;
    font-size: 18px;
    color: #0f172a;
    position: relative;
    padding-left: 12px;
}

.legal-page main h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 4px;
    height: 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark));
}

.legal-page main h3 {
    margin-top: 18px;
    font-size: 16px;
    color: #1e293b;
}

.legal-page main p {
    margin-top: 10px;
    color: var(--light-text);
}

.legal-page main ul {
    margin: 10px 0 0 18px;
    color: var(--light-text);
}

.legal-page main li {
    margin: 6px 0;
}

.legal-page main strong {
    color: #0f172a;
}

@media (max-width: 768px) {
    .legal-page .legal-container {
        margin: 28px auto 60px;
        padding: 0 16px;
    }

    .legal-card {
        padding: 26px;
    }

    .legal-title {
        font-size: 24px;
    }
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    padding: 14px 24px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover,
.btn-primary:focus-visible {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

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

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(255, 255, 255, 0.3);
}

.section-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 10px;
}

.section-subtitle {
    color: var(--light-text);
    font-size: 14px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 12px;
}

.info-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border-color: rgba(0, 123, 255, 0.25);
    background: rgba(255, 255, 255, 1);
}

.info-card:hover::before {
    opacity: 1;
}

.info-card h4 {
    margin-bottom: 8px;
    font-size: 16px;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
}

.info-card p {
    font-size: 13px;
    color: var(--light-text);
}

.info-card .meta-line {
    margin-top: 10px;
    font-size: 12px;
    color: var(--secondary-color);
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(0, 123, 255, 0.18));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 700;
    border: 1px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.1);
    transition: all 0.2s ease;
}

.pill:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0.25));
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.2);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid rgba(0, 123, 255, 0.4);
    outline-offset: 2px;
}

/* Canvas de partículas (decorativo, no interrumpe flujo) */
#particlesCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    contain: paint;
}

/* Stickers flotantes */
.floating-stickers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.sticker {
    position: absolute;
    font-size: 32px; /* Reducido de 40px para más compacto */
    animation: floatSticker 6s ease-in-out infinite;
    pointer-events: all;
    cursor: pointer;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 10;
}

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

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

/* Control de sonido */
.sound-control {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.95) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    backdrop-filter: blur(10px);
}

.sound-control:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
}

/* Cursor personalizado */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.1s ease;
    mix-blend-mode: difference;
    display: none;
}

@media (min-width: 768px) {
    .custom-cursor {
        display: block;
    }
    
    body:hover .custom-cursor {
        transform: scale(1.5);
    }
    
    button:hover ~ .custom-cursor,
    a:hover ~ .custom-cursor {
        transform: scale(2);
        border-color: var(--success-color);
    }
}

/* Efecto ripple */
.ripple {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.6) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    animation: rippleEffect 0.6s ease-out;
    transform: translate(-50%, -50%);
}

@keyframes rippleEffect {
    0% {
        width: 20px;
        height: 20px;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* ============================================
   LOGIN PAGE
   ============================================ */

.brand-name {
    position: absolute;
    top: 24px;
    left: 32px;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.85));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    cursor: pointer;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 20px rgba(0, 123, 255, 0.3);
    }
    50% {
        text-shadow: 0 2px 8px rgba(0,0,0,0.3), 0 0 30px rgba(0, 123, 255, 0.6);
    }
}

.brand-name:hover {
    transform: scale(1.08) translateX(4px);
    filter: drop-shadow(0 4px 8px rgba(0, 123, 255, 0.3));
}

.page-logo {
    position: absolute;
    top: 20px;
    right: 20px;
    transition: var(--transition);
    z-index: 100;
    animation: logoFloat 3s ease-in-out infinite;
    cursor: pointer;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.page-logo:hover {
    transform: scale(1.2) rotate(15deg) !important;
    filter: drop-shadow(0 8px 16px rgba(0, 123, 255, 0.5));
}

.logo-img {
    width: 55px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.login-container {
    width: 100%;
    max-width: 480px;
    margin: auto;
    margin-top: 120px;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    padding: 36px; /* Reducido de 48px para más compacto */
    border-radius: 24px; /* Reducido de 28px */
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.6s ease-out;
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-container:hover {
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.2), 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transform: translateY(-4px);
}

.login-container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007BFF, #6f42c1, #e83e8c, #007BFF);
    border-radius: var(--border-radius-lg);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

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

.login-container:hover::before {
    opacity: 0.3;
}

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

h1 {
    color: var(--primary-color);
    font-size: 32px; /* Reducido de 36px para más compacto */
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    color: var(--light-text);
    font-size: 16px;
    margin-bottom: 25px;
}

input {
    width: 100%;
    padding: 16px 20px;
    margin: 14px 0;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 16px;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

input::placeholder {
    color: #94a3b8;
}

input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 1);
}

@keyframes inputGlow {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 123, 255, 0.15);
    }
    50% {
        box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2), 0 4px 12px rgba(0, 123, 255, 0.25);
    }
}

input::placeholder {
    color: #adb5bd;
}

.btn-primary {
    width: 100%;
    padding: 16px 24px;
    border-radius: 16px;
    border: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    margin-top: 8px;
}

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

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.divider {
    margin: 25px 0;
    color: var(--light-text);
    position: relative;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 45%;
    height: 1px;
    background: var(--border-color);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.btn-google {
    width: 100%;
    padding: 14px 20px;
    border-radius: 16px;
    border: 2px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    overflow: hidden;
    color: #1e293b;
}

.btn-google::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 123, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-google:hover::after {
    left: 100%;
}

.btn-google:hover {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.25);
}

.btn-google:active {
    transform: translateY(-1px);
}

.btn-google .icon {
    width: 22px;
    height: 22px;
}

.error {
    color: var(--danger-color);
    margin-top: 10px;
    font-size: 14px;
    padding: 10px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--danger-color);
}

.links {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    flex-wrap: wrap;
    gap: 10px;
}

.links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 14px;
}

.links a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.legal {
    margin-top: 50px;
    text-align: center;
    color: white;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.6) 100%);
    padding: 25px;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.legal:hover {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.legal a {
    color: #ffeb3b;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.legal a:hover {
    color: #fff;
    text-decoration: underline;
}

.creator {
    margin-top: 15px;
    font-size: 13px;
    opacity: 0.9;
}

/* ============================================
   SECCIÓN INFORMATIVA DE LA APLICACIÓN
   ============================================ */

.app-info-section {
    width: 100%;
    margin-top: 50px; /* Reducido de 60px */
    padding: 32px 20px; /* Reducido de 40px */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    animation: fadeInUp 0.8s ease-out 0.3s both;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.app-info-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Hero Section */
.info-hero {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    padding: 30px 20px;
}

.info-title {
    font-size: 36px; /* Reducido de 42px para más compacto */
    font-weight: 700;
    background: linear-gradient(135deg, #007BFF 0%, #6f42c1 50%, #e83e8c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 12px; /* Reducido de 15px */
    animation: fadeInUp 0.6s ease-out;
}

.info-subtitle {
    font-size: 18px; /* Reducido de 20px */
    color: var(--dark-text);
    font-weight: 500;
    opacity: 0.9;
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-gradient {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

/* Descripción */
.info-description {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 20px;
}

.description-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-text);
    max-width: 800px;
    margin: 0 auto;
    opacity: 0.85;
}

/* Grid de Características */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 60px;
    padding: 0 20px;
}

.feature-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 32px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0.6;
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 123, 255, 0.2);
}

.feature-icon {
    font-size: 40px; /* Reducido de 48px para más compacto */
    margin-bottom: 16px; /* Reducido de 20px */
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}

.feature-card:nth-child(2) .feature-icon {
    animation-delay: 0.2s;
}

.feature-card:nth-child(3) .feature-icon {
    animation-delay: 0.4s;
}

.feature-card:nth-child(4) .feature-icon {
    animation-delay: 0.6s;
}

.feature-card:nth-child(5) .feature-icon {
    animation-delay: 0.8s;
}

.feature-card:nth-child(6) .feature-icon {
    animation-delay: 1s;
}

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

.feature-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 12px;
}

.feature-text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--light-text);
}

/* Sección de Beneficios */
.benefits-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(111, 66, 193, 0.05) 100%);
    padding: 32px; /* Reducido de 40px */
    border-radius: var(--border-radius-lg);
    margin-bottom: 40px; /* Reducido de 50px */
    border: 2px solid rgba(0, 123, 255, 0.1);
}

.benefits-title {
    font-size: 26px; /* Reducido de 28px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px; /* Reducido de 30px */
    background: linear-gradient(135deg, #007BFF 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 700px;
    margin: 0 auto;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.benefit-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 123, 255, 0.2);
}

.benefit-check {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

.benefit-text {
    font-size: 16px;
    color: var(--dark-text);
    font-weight: 500;
}

/* Call to Action */
.cta-section {
    text-align: center;
    padding: 32px 20px; /* Reducido de 40px */
    background: linear-gradient(135deg, #007BFF 0%, #6f42c1 100%);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    margin-top: 32px; /* Reducido de 40px */
}

.cta-text {
    font-size: 22px; /* Reducido de 24px */
    font-weight: 600;
    color: white;
    margin-bottom: 20px; /* Reducido de 25px */
}

.cta-button {
    display: inline-block;
    padding: 16px 36px; /* Reducido de 18px 40px */
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #007BFF;
    font-size: 17px; /* Reducido de 18px */
    font-weight: 700;
    text-decoration: none;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

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

.cta-button:hover::before {
    width: 300px;
    height: 300px;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 1);
}

/* Programa de verificación (Google Play) */
.tester-section {
    margin: 32px 0 16px; /* Reducido de 40px 0 20px */
    padding: 24px 20px; /* Reducido de 30px */
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.tester-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.tester-text {
    font-size: 15px;
    color: var(--light-text);
    max-width: 700px;
    margin: 0 auto 18px;
    line-height: 1.6;
}

.tester-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 700;
    font-size: 15px;
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.3);
    transition: var(--transition);
}

.tester-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 123, 255, 0.4);
}

.tester-note {
    margin-top: 10px;
    font-size: 12px;
    color: #6c757d;
}

.tester-gallery {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.tester-gallery img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tester-gallery img:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

@media (max-width: 768px) {
    .tester-gallery {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    }
}

/* Sección de Propósito */
.purpose-section {
    margin-bottom: 40px; /* Reducido de 50px */
    padding: 32px; /* Reducido de 40px */
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.03) 0%, rgba(111, 66, 193, 0.03) 100%);
    border-radius: var(--border-radius-lg);
    border-left: 4px solid var(--primary-color);
}

.section-title {
    font-size: 26px; /* Reducido de 28px */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px; /* Reducido de 25px */
    background: linear-gradient(135deg, #007BFF 0%, #6f42c1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.purpose-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.purpose-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.purpose-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 18px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.purpose-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 123, 255, 0.2);
}

.purpose-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.purpose-item span:last-child {
    font-size: 16px;
    color: var(--dark-text);
    line-height: 1.6;
}

/* Sección ¿Qué hace PROVIWEB? */
.what-does-section {
    margin-bottom: 30px;
    text-align: center;
}

/* Sección ¿Quiénes pueden usar? */
.who-can-use-section {
    margin-bottom: 40px; /* Reducido de 50px */
    padding: 32px; /* Reducido de 40px */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.who-can-use-section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.user-types-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 30px;
}

.user-type-item {
    padding: 15px 20px;
    background: white;
    border-radius: var(--border-radius);
    font-size: 15px;
    font-weight: 500;
    color: var(--dark-text);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.user-type-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(111, 66, 193, 0.1) 100%);
}

/* Sección de Visión */
.vision-section {
    margin-bottom: 40px; /* Reducido de 50px */
    padding: 32px; /* Reducido de 40px */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-section:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.vision-text {
    font-size: 18px;
    line-height: 1.8;
    color: var(--dark-text);
    text-align: center;
    margin-bottom: 30px;
    opacity: 0.9;
}

.vision-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.vision-item {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    font-size: 17px;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vision-item:hover {
    transform: translateX(8px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 123, 255, 0.3);
}

/* Sección del Equipo */
.team-section {
    margin-bottom: 50px;
    padding: 40px 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 800px;
    margin: 40px auto 0;
}

.team-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 1) 100%);
    padding: 40px 30px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
    transition: var(--transition);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007BFF, #6f42c1, #e83e8c);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.team-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.team-card.is-dimmed {
    opacity: 0;
    transform: translateY(14px) scale(0.94);
    filter: blur(2px);
    transition: opacity 0.4s ease, transform 0.4s ease, filter 0.4s ease;
    pointer-events: none;
}

.team-card.is-opening {
    position: fixed;
    top: 50%;
    left: 50%;
    width: min(420px, 90vw);
    transform: translate(-50%, -50%) scale(1.02);
    z-index: 10001;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 45px rgba(79, 168, 255, 0.35),
        0 0 90px rgba(111, 66, 193, 0.25);
    border-color: rgba(79, 168, 255, 0.6);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 248, 255, 0.98) 100%);
    background-size: 200% 200%;
    animation: cardHolo 0.9s cubic-bezier(0.16, 1, 0.3, 1), holoSweep 1.2s ease;
}

@keyframes cardHolo {
    0% { transform: translate(-50%, -50%) scale(0.92) rotate(0deg); filter: brightness(0.92); }
    30% { transform: translate(-50%, -50%) scale(1.05) rotate(-0.8deg); filter: brightness(1.08); }
    60% { transform: translate(-50%, -50%) scale(1.01) rotate(0.6deg); filter: brightness(1.02); }
    100% { transform: translate(-50%, -50%) scale(1.02) rotate(0deg); filter: brightness(1); }
}

@keyframes holoSweep {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

.team-card.is-opening::after {
    content: "Cargando historia...";
    position: absolute;
    bottom: 14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 14px;
    background: rgba(10, 16, 28, 0.75);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.3px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.team-card.is-opening::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    padding: 2px;
    background: conic-gradient(from 90deg, rgba(79, 168, 255, 0.8), rgba(111, 66, 193, 0.8), rgba(0, 255, 209, 0.7), rgba(79, 168, 255, 0.8));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: orbitGlow 1.4s linear infinite;
    opacity: 0.8;
    pointer-events: none;
}

.team-card.is-opening .team-avatar {
    box-shadow:
        0 0 0 6px rgba(79, 168, 255, 0.2),
        0 0 25px rgba(79, 168, 255, 0.35),
        0 0 45px rgba(111, 66, 193, 0.25);
    transform: scale(1.18);
    animation: avatarPulse 0.9s ease-out, avatarGlow 1.2s ease-in-out infinite;
}

.team-card.is-opening .team-name {
    text-shadow: 0 0 14px rgba(79, 168, 255, 0.45);
}

@keyframes avatarPulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.22); }
    100% { transform: scale(1.18); }
}

@keyframes avatarGlow {
    0%, 100% { box-shadow: 0 0 0 6px rgba(79, 168, 255, 0.18), 0 0 25px rgba(79, 168, 255, 0.3), 0 0 45px rgba(111, 66, 193, 0.2); }
    50% { box-shadow: 0 0 0 8px rgba(79, 168, 255, 0.28), 0 0 35px rgba(79, 168, 255, 0.45), 0 0 60px rgba(111, 66, 193, 0.35); }
}

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

.team-card-overlay {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(79, 168, 255, 0.25), transparent var(--spot-size, 220px)),
        radial-gradient(circle at 20% 20%, rgba(79, 168, 255, 0.18), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(111, 66, 193, 0.18), transparent 50%),
        rgba(10, 16, 28, 0.35);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.45s ease;
}

.team-card-overlay.is-visible {
    opacity: 1;
    pointer-events: all;
    animation: overlayPulse 1.1s ease;
}

@keyframes overlayPulse {
    0% { opacity: 0; }
    55% { opacity: 1; }
    100% { opacity: 1; }
}

.team-card:hover::before {
    transform: scaleX(1);
}

.team-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007BFF 0%, #6f42c1 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    font-weight: 700;
    margin: 0 auto 20px;
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.3);
    transition: var(--transition);
    object-fit: cover;
}

.team-card:hover .team-avatar {
    transform: scale(1.1) rotate(5deg);
}

.team-name {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 8px;
}

.team-role {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.team-bio {
    font-size: 15px;
    color: var(--light-text);
    margin-bottom: 8px;
    line-height: 1.6;
}

.team-alias {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    font-style: italic;
    margin-top: 10px;
}

/* Historia del equipo */
.team-story-page {
    min-height: 100vh;
    padding: 90px 20px 50px;
}

.team-story-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.06);
    padding: 42px;
}

.team-story-header {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.team-story-hero {
    position: relative;
    padding: 30px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(111, 66, 193, 0.12));
    border: 1px solid rgba(0, 123, 255, 0.12);
    margin-bottom: 26px;
    overflow: hidden;
}

.team-story-hero::after {
    content: "";
    position: absolute;
    inset: -40% 20% auto auto;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(0, 123, 255, 0.2), transparent 70%);
    filter: blur(2px);
}

.story-visuals {
    display: grid;
    gap: 18px;
    margin: 20px 0 10px;
}

.story-countries {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.country-card {
    position: relative;
    border-radius: 18px;
    padding: 18px;
    min-height: 140px;
    color: #0f172a;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.country-card h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
}

.country-card p {
    margin: 0;
    font-size: 13px;
    color: #475569;
}

.country-card .country-icon {
    position: absolute;
    right: 14px;
    bottom: 12px;
    font-size: 36px;
    opacity: 0.75;
    animation: floatIcon 4s ease-in-out infinite;
}

.country-card.mexico {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.18), rgba(255, 255, 255, 0.9));
}

.country-card.colombia {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(255, 255, 255, 0.9));
}

.country-card.venezuela {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(255, 255, 255, 0.9));
}

.story-art-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    padding: 14px;
    border-radius: 16px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.art-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    animation: chipPulse 3.6s ease-in-out infinite;
}

.art-chip:nth-child(2) { animation-delay: 0.4s; }
.art-chip:nth-child(3) { animation-delay: 0.8s; }
.art-chip:nth-child(4) { animation-delay: 1.2s; }
.art-chip:nth-child(5) { animation-delay: 1.6s; }
.art-chip:nth-child(6) { animation-delay: 2s; }

.story-floating-notes {
    position: relative;
    height: 90px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(111, 66, 193, 0.08));
    border: 1px dashed rgba(0, 123, 255, 0.25);
    overflow: hidden;
}

.floating-note {
    position: absolute;
    font-size: 22px;
    opacity: 0.75;
    animation: noteDrift 6s linear infinite;
}

.floating-note:nth-child(1) { left: 8%; top: 22px; animation-delay: 0s; }
.floating-note:nth-child(2) { left: 28%; top: 12px; animation-delay: 1s; }
.floating-note:nth-child(3) { left: 48%; top: 30px; animation-delay: 2s; }
.floating-note:nth-child(4) { left: 68%; top: 16px; animation-delay: 3s; }
.floating-note:nth-child(5) { left: 84%; top: 26px; animation-delay: 4s; }

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

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

@keyframes noteDrift {
    0% { transform: translateY(0) scale(1); opacity: 0.7; }
    50% { transform: translateY(-8px) scale(1.05); opacity: 1; }
    100% { transform: translateY(0) scale(1); opacity: 0.7; }
}


.team-story-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
    border: 3px solid rgba(0, 123, 255, 0.2);
}

.team-story-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
}

.team-story-subtitle {
    color: var(--secondary-color);
    font-weight: 600;
    margin-top: 6px;
}

.team-story-text {
    font-size: 16px;
    color: #1e293b;
    line-height: 1.8;
    margin-bottom: 18px;
}

.festival-highlight {
    position: relative;
    padding: 18px 18px 18px 58px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(255, 193, 7, 0.25);
    box-shadow: 0 10px 24px rgba(255, 193, 7, 0.15);
    animation: festivalGlow 3.5s ease-in-out infinite;
}

.festival-icon {
    position: absolute;
    left: 16px;
    top: 18px;
    width: 30px;
    height: 30px;
    object-fit: contain;
    animation: iconBounce 2.8s ease-in-out infinite;
}

@keyframes festivalGlow {
    0%, 100% { box-shadow: 0 10px 24px rgba(255, 193, 7, 0.15); }
    50% { box-shadow: 0 14px 30px rgba(255, 193, 7, 0.3); }
}

@keyframes iconBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(-3deg); }
}

.team-story-lead {
    font-size: 17px;
    color: #0f172a;
    line-height: 1.8;
    margin: 0;
}

.team-story-section-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary-color);
    margin: 26px 0 12px;
}

.team-story-quote {
    padding: 18px 20px;
    border-left: 4px solid rgba(0, 123, 255, 0.5);
    background: rgba(0, 123, 255, 0.06);
    border-radius: 14px;
    font-weight: 600;
    color: #0f172a;
    margin: 20px 0 10px;
}

.story-list {
    margin: 0 0 18px;
    padding-left: 18px;
    color: #1e293b;
}

.story-list li {
    margin: 6px 0;
    line-height: 1.7;
}

.story-timeline {
    display: grid;
    gap: 12px;
    margin: 10px 0 6px;
}

.story-timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.story-timeline-year {
    font-weight: 800;
    color: #0f172a;
}

.story-timeline-text {
    color: #475569;
    line-height: 1.6;
}

.story-highlight {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 16px;
}

.story-highlight-card {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.story-highlight-card strong {
    display: block;
    margin-bottom: 6px;
    color: #0f172a;
}

.story-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin: 14px 0 6px;
}

.story-icon-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.06);
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    animation: iconFloat 5s ease-in-out infinite;
}

.story-icon-card img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.story-icon-card:nth-child(2) { animation-delay: 0.4s; }
.story-icon-card:nth-child(3) { animation-delay: 0.8s; }
.story-icon-card:nth-child(4) { animation-delay: 1.2s; }
.story-icon-card:nth-child(5) { animation-delay: 1.6s; }
.story-icon-card:nth-child(6) { animation-delay: 2s; }

.story-location {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(255, 255, 255, 0.95));
    border: 1px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 8px 18px rgba(0, 123, 255, 0.12);
    margin-top: 12px;
}

.story-location img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

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

.team-story-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 700;
}

.team-story-back:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .team-story-card {
        padding: 28px 22px;
    }

    .team-story-avatar {
        width: 96px;
        height: 96px;
    }

    .team-story-title {
        font-size: 24px;
    }

    .story-timeline-item {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-card.is-opening {
        animation: none;
        transform: translate(-50%, -50%) scale(1);
    }

    .team-card.is-opening::after {
        display: none;
    }

    .team-card.is-opening::before {
        display: none;
    }

    .team-card-overlay {
        transition: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }
}

/* Beneficios en dos columnas */
.benefits-two-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 30px;
}

.benefits-subtitle {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .app-info-section {
        padding: 30px 15px;
        margin-top: 40px;
    }

    .info-title {
        font-size: 32px;
    }

    .info-subtitle {
        font-size: 18px;
    }

    .description-text {
        font-size: 16px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }

    .feature-card {
        padding: 25px;
    }

    .benefits-section {
        padding: 30px 20px;
    }

    .benefits-title {
        font-size: 24px;
    }

    .benefit-item {
        padding: 12px 15px;
    }

    .cta-section {
        padding: 30px 15px;
    }

    .cta-text {
        font-size: 20px;
    }

    .cta-button {
        padding: 14px 30px;
        font-size: 16px;
    }

    .purpose-section,
    .who-can-use-section,
    .vision-section {
        padding: 30px 20px;
    }

    .section-title {
        font-size: 24px;
    }

    .purpose-text,
    .vision-text {
        font-size: 16px;
    }

    .user-types-grid {
        grid-template-columns: 1fr;
    }

    .benefits-two-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .team-card {
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .info-title {
        font-size: 28px;
    }

    .info-subtitle {
        font-size: 16px;
    }

    .feature-icon {
        font-size: 40px;
    }

    .feature-title {
        font-size: 18px;
    }

    .benefit-text {
        font-size: 14px;
    }
}

/* ============================================
   REELS CONTAINER
   ============================================ */

.reels-container {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 16px;
    scroll-behavior: smooth;
    padding: 15px;
    max-width: 1400px;
    margin: auto;
    justify-content: flex-start;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scrollbar-color: transparent transparent;
}

.reels-container::-webkit-scrollbar {
    display: none;
}

.reel-item {
    flex: 0 0 auto;
    min-width: 240px;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    cursor: pointer;
}

.reel-item:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.reel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.reel-item .reel-info {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    color: #fff;
    font-size: 14px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
}

/* ============================================
   UTILITIES
   ============================================ */

.loading-spinner {
    border: 3px solid rgba(0, 123, 255, 0.1);
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    /* Asegurar espacio para brand-name y logo */
    .brand-name {
        font-size: 20px !important;
        top: 12px !important;
        left: 12px !important;
        z-index: 101;
    }

    .page-logo {
        top: 12px !important;
        right: 12px !important;
        z-index: 101;
    }

    .logo-img {
        width: 35px !important;
    }

    /* Login container con suficiente espacio superior */
    .login-container {
        width: 90% !important;
        padding: 30px 20px !important;
        margin-top: 100px !important; /* Aumentado para evitar superposición */
        position: relative;
        z-index: 1;
    }

    h1 {
        font-size: 24px !important;
    }

    .legal {
        width: 95%;
        padding: 20px;
    }
}

/* Mobile Small - Ajustes adicionales */
@media (max-width: 576px) {
    .brand-name {
        font-size: 18px !important;
        top: 10px !important;
        left: 10px !important;
    }

    .page-logo {
        top: 10px !important;
        right: 10px !important;
    }

    .logo-img {
        width: 30px !important;
    }

    .login-container {
        width: 95% !important;
        padding: 24px 16px !important;
        margin-top: 90px !important; /* Espacio suficiente para título y logo */
        margin-bottom: 20px;
    }

    h1 {
        font-size: 22px !important;
        margin-bottom: 12px !important;
    }

    .subtitle {
        font-size: 14px !important;
    }
}

/* ============================================
   GLOBAL RESPONSIVE HELPERS
   ============================================ */

img,
video,
iframe,
canvas {
    max-width: 100%;
    height: auto;
}

table {
    width: 100%;
    display: block;
    overflow-x: auto;
    border-collapse: collapse;
}

pre {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-break: break-word;
}

input,
select,
textarea,
button {
    max-width: 100%;
}

.modal-content {
    max-width: 95vw;
}

/* ============================================
   OPTIMIZACIÓN WEB - Versión compacta y elegante
   ============================================ */
/* Reducir padding excesivo en cards y contenedores */
@media (min-width: 993px) {
    /* Legal cards - Más compactas */
    .legal-card {
        padding: 24px !important; /* Reducido de 34px */
    }

    .legal-title {
        font-size: 24px !important; /* Reducido de 28px */
    }

    /* Hero sections - Más compactas */
    .hero-section {
        padding: 32px 20px !important; /* Reducido de 48px */
    }

    .hero-title {
        font-size: 32px !important; /* Reducido de 36px/40px */
    }

    .hero-subtitle {
        font-size: 18px !important; /* Reducido si es muy grande */
    }

    /* Feature sections - Más compactas */
    .feature-section {
        padding: 32px 20px !important; /* Reducido de 40px */
    }

    .feature-title {
        font-size: 28px !important; /* Reducido de 36px/42px */
    }

    /* CTA sections - Más compactas */
    .cta-section {
        padding: 32px 20px !important; /* Reducido de 40px */
    }

    .cta-title {
        font-size: 28px !important; /* Reducido de 36px/42px */
    }

    /* Info sections - Más compactas */
    .info-section {
        padding: 32px 20px !important; /* Reducido de 40px */
    }

    /* App info sections - Más compactas */
    .app-info-section {
        padding: 32px 20px !important; /* Reducido de 40px */
    }

    /* Team sections - Más compactas */
    .team-section {
        padding: 32px 20px !important; /* Reducido de 40px */
    }

    /* Stickers y elementos decorativos - Más pequeños */
    .sticker {
        font-size: 32px !important; /* Reducido de 40px */
    }

    .icon-large {
        font-size: 32px !important; /* Reducido de 36px/48px */
    }

    /* Márgenes grandes - Reducidos */
    .legal-page .legal-container {
        margin: 28px auto 60px !important; /* Reducido de 36px auto 80px */
    }

    /* Section headers - Más compactos */
    .section-header {
        margin-bottom: 20px !important; /* Reducido si es muy grande */
    }

    /* Cards con padding excesivo */
    .card-large {
        padding: 24px !important; /* Reducido de 34px/40px */
    }

    /* Profile cards - Más compactas */
    .profile-hero {
        padding: 32px 24px !important; /* Reducido si es muy grande */
    }
}

/* ============================================
   HEADER ESTÁNDAR - Consistente en todas las páginas
   ============================================ */
/* Header base estándar para todas las páginas */
.header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    color: #1e293b;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
}

.header .brand {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    white-space: nowrap;
}

.header .brand:hover {
    transform: scale(1.05);
}

.header .search-box {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 24px;
    position: relative;
}

.header .search-box input {
    width: 100%;
    max-width: 500px;
    padding: 12px 48px 12px 18px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    color: #1e293b;
}

.header .search-box input::placeholder {
    color: #94a3b8;
}

.header .search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1), 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.header .search-box::after {
    content: '🔍';
    position: absolute;
    right: calc(50% - 250px + 16px);
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 16px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.header .nav-icons,
.header .nav-buttons {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-shrink: 0;
    margin-left: auto;
}

.header .nav-icons img,
.header .nav-buttons img {
    width: 38px;
    height: 38px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    padding: 6px;
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.header .nav-icons img:hover,
.header .nav-buttons img:hover {
    transform: translateY(-2px) scale(1.05);
    background: rgba(0, 123, 255, 0.1);
    border-color: rgba(0, 123, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.header button {
    background: rgba(0, 123, 255, 0.1);
    border: none;
    color: #007BFF;
    font-size: 20px;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.header button:hover {
    background: rgba(0, 123, 255, 0.2);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.header .username {
    font-size: 16px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
}

/* ============================================
   REVISIÓN FINAL - Optimizaciones para publicación
   ============================================ */
/* Asegurar que el header tenga altura consistente en web */
@media (min-width: 993px) {
    .header {
        min-height: 70px; /* Altura consistente */
        padding: 14px 24px !important;
    }

    .main-container {
        margin-top: 130px !important; /* Espacio adecuado para header */
    }

    .profile-container {
        margin-top: 90px !important; /* Espacio adecuado para header */
    }

    /* Asegurar que los elementos no se superpongan */
    .main-container,
    .main-layout {
        position: relative;
        z-index: 1;
    }

    .sidebar-left,
    .sidebar-right {
        position: relative;
        z-index: 1;
    }
}

/* Asegurar transiciones suaves */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Mejorar rendimiento en móvil */
@media (max-width: 768px) {
    * {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }

    /* Asegurar que no haya overlaps en móvil */
    body .main-container,
    body .main-layout,
    body .profile-container {
        position: relative;
        z-index: 1;
    }

    body .header {
        z-index: 1000 !important;
    }

    body .sidebar-left,
    body .sidebar-right {
        z-index: 1 !important;
    }

    body .content,
    body .content-main {
        z-index: 2 !important;
    }
}

/* Optimización de imágenes y media */
img,
video {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Mejorar accesibilidad */
button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Asegurar que los textos sean legibles */
body {
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Prevenir scroll horizontal */
html,
body {
    overflow-x: hidden;
    width: 100%;
}

/* ============================================
   RESPONSIVE DESIGN - ESTRUCTURA MÓVIL ORGANIZADA
   ============================================ */

/* Tablet Landscape (1200px y menos) */
@media (max-width: 1200px) {
    body .main-container,
    body .main-layout {
        gap: 18px;
        padding: 20px;
    }
}

/* Tablet Portrait / Mobile Large (992px y menos) */
@media (max-width: 992px) {
    /* HEADER RESPONSIVE */
    body .header {
        flex-wrap: wrap;
        height: auto;
        padding: 12px 16px !important;
    }

    body .header .brand {
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    body .header .search-box {
        order: 3;
        flex: 1 1 100%;
        margin: 10px 0 0 !important;
    }

    body .header .nav-icons,
    body .header .nav-buttons {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    body .header .nav-icons img {
        max-width: 40px;
        height: auto;
    }

    /* LAYOUT PRINCIPAL - Cambiar a columna */
    body .main-container,
    body .main-layout {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: none !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 16px; /* Reducido de 20px para móvil */
        padding: 0 16px; /* Reducido de 20px */
    }

    /* SIDEBARS - Convertir a bloque completo */
    body .sidebar-left,
    body .sidebar-right {
        position: relative !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: auto !important;
        margin-bottom: 0 !important;
        border-radius: 16px;
    }

    /* ORDEN DE ELEMENTOS - home.html (.main-container) */
    body .main-container .content {
        order: 1 !important;
        padding: 0;
        width: 100%;
    }

    body .main-container .sidebar-left {
        order: 2 !important;
        margin-bottom: 20px;
    }

    body .main-container .sidebar-right {
        order: 3 !important;
        margin-bottom: 20px;
    }

    /* ORDEN DE ELEMENTOS - myprofile.html y userprofile.html (.main-layout) */
    body .main-layout .content-main {
        order: 1 !important;
        width: 100%;
    }

    body .main-layout .sidebar-left {
        order: 2 !important;
        margin-bottom: 20px;
    }

    /* Sidebar derecho fuera del layout */
    body .profile-container {
        padding: 12px !important;
        display: flex !important;
        flex-direction: column;
        gap: 20px;
    }

    body .profile-container .main-layout {
        order: 1;
    }

    body .profile-container .sidebar-right {
        order: 2 !important;
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 0;
    }

    /* CONTENIDO SIN PADDING EXTRA - Reducir gaps */
    body .content-section,
    body .content {
        padding: 0 !important;
        gap: 16px !important; /* Reducido para móvil */
    }

    body .content-main {
        gap: 16px !important; /* Reducido de 30px */
    }

    /* GRIDS - Convertir a una columna */
    body .events-grid,
    body .posts,
    body .reels,
    body .team-grid,
    body .features-grid,
    body .benefits-two-columns,
    body .user-types-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile (768px y menos) - Versión más compacta similar a web */
@media (max-width: 768px) {
    body {
        font-size: 14px; /* Reducido de 15px */
    }

    /* HEADER MÓVIL - Más compacto y consistente */
    body .header {
        padding: 8px 12px !important;
        height: auto !important;
        min-height: 56px !important;
        gap: 8px !important;
    }

    body .header .brand {
        font-size: 16px !important; /* Reducido */
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }

    body .header .username {
        font-size: 13px !important; /* Reducido */
    }

    body .header .nav-icons,
    body .header .nav-buttons {
        gap: 6px !important; /* Reducido */
        margin-left: auto !important;
    }

    body .header .nav-icons img,
    body .header .nav-buttons img {
        width: 30px !important; /* Reducido */
        height: 30px !important;
        padding: 4px !important;
    }

    body .header button {
        font-size: 16px !important; /* Reducido */
        padding: 6px 8px !important; /* Reducido */
    }

    body .header .search-box {
        display: none !important; /* Oculto en móvil */
    }

    /* LAYOUT MÓVIL - Más compacto */
    body .main-container,
    body .main-layout {
        gap: 10px; /* Más compacto similar a web */
        padding: 0 10px !important; /* Más compacto */
        margin-top: 70px !important; /* Espacio adecuado para header compacto */
    }

    body .profile-container {
        margin-top: 70px !important; /* Espacio adecuado para header */
    }

    /* ORDEN MÓVIL - Asegurar consistencia */
    body .main-container .content {
        order: 1 !important;
    }

    body .main-container .sidebar-left {
        order: 2 !important;
        margin-bottom: 10px; /* Más compacto */
    }

    body .main-container .sidebar-right {
        order: 3 !important;
        margin-bottom: 10px; /* Más compacto */
    }

    body .main-layout .content-main {
        order: 1 !important;
        gap: 12px !important; /* Más compacto */
    }

    body .main-layout .sidebar-left {
        order: 2 !important;
        margin-bottom: 10px; /* Más compacto */
    }

    body .content-section {
        gap: 12px !important; /* Más compacto */
    }

    body .content {
        gap: 12px !important; /* Más compacto */
    }

    body .profile-container {
        padding: 8px !important;
        gap: 10px; /* Más compacto */
        margin-top: 70px !important; /* Espacio adecuado para header compacto */
    }

    body .profile-container .sidebar-right {
        order: 2 !important;
        margin-top: 0;
    }

    /* Sección legal siempre al final */
    body .legal {
        order: 999 !important;
        margin-top: 24px; /* Reducido de 30px */
        padding: 16px; /* Reducido de 20px */
        text-align: center;
        font-size: 11px; /* Más pequeño */
    }

    /* SIDEBARS MÓVIL - Más compactos similar a web */
    body .sidebar-left,
    body .sidebar-right {
        margin-bottom: 10px !important; /* Más compacto */
        border-radius: 12px;
        padding: 12px !important; /* Más compacto */
    }

    /* EVITAR SUPERPOSICIONES */
    body .sidebar-left,
    body .sidebar-right {
        z-index: 1;
    }

    body .content,
    body .content-main {
        z-index: 2;
    }

    /* MODALES Y CONTENEDORES */
    body .modal-content {
        width: 100% !important;
        max-width: 95vw !important;
        margin: 0 auto !important;
        padding: 20px !important;
    }
    
    /* LOGIN PAGE MÓVIL - Evitar superposición con título y logo */
    .brand-name {
        font-size: 18px !important;
        top: 10px !important;
        left: 10px !important;
        z-index: 101 !important;
        position: absolute !important;
    }

    .page-logo {
        top: 10px !important;
        right: 10px !important;
        z-index: 101 !important;
        position: absolute !important;
    }

    .logo-img {
        width: 30px !important;
    }

    .login-container {
        margin-top: 90px !important; /* Espacio suficiente para título y logo */
        padding: 24px 16px !important;
        width: 95% !important;
        max-width: 95vw !important;
        position: relative !important;
        z-index: 1 !important;
    }
}

/* Mobile Small (576px y menos) */
@media (max-width: 576px) {
    /* HEADER PEQUEÑO */
    body .header {
        justify-content: flex-start !important;
        padding: 8px 10px !important;
    }

    body .header .username {
        position: static !important;
        transform: none !important;
        width: 100%;
        text-align: center;
        margin-top: 6px !important;
        order: 2;
        font-size: 14px;
    }

    body .header .search-box {
        order: 3;
        width: 100%;
    }

    body .header .search-box input {
        max-width: 100% !important;
        font-size: 14px;
    }

    /* LAYOUT PEQUEÑO */
    body .main-container,
    body .main-layout {
        padding: 0 10px !important;
        gap: 12px;
    }

    body .profile-container {
        padding: 8px !important;
        gap: 12px;
        margin-top: 65px !important; /* Espacio adecuado para header pequeño */
    }

    /* COMPONENTES MÁS COMPACTOS - Similar a web pero ajustado */
    body .post-item,
    body .event-card,
    body .event-list-item,
    body .widget,
    body .profile-card,
    body .content-section-block {
        border-radius: 12px !important;
        padding: 10px !important; /* Reducido de 12px */
        margin-bottom: 10px; /* Reducido */
    }

    /* CARDS Y CONTENEDORES - Mantener estructura web */
    body .create-post-card {
        padding: 10px !important; /* Reducido */
        flex-direction: row !important; /* Mantener estructura web */
        gap: 8px; /* Reducido */
        margin-bottom: 14px; /* Reducido */
    }

    body .create-post-card .user-photo {
        width: 36px !important; /* Reducido de 40px */
        height: 36px !important;
    }

    body .create-post-card .share-text {
        font-size: 12px !important; /* Más pequeño */
        padding: 7px 10px; /* Más compacto */
    }

    body .create-post-card .media-buttons {
        padding: 5px;
        gap: 5px;
    }

    body .create-post-card .media-buttons img {
        width: 24px !important; /* Reducido */
        height: 24px !important;
    }

    /* SIDEBARS COMPACTOS */
    body .sidebar-left,
    body .sidebar-right {
        padding: 12px !important; /* Reducido de 15px */
    }

    body .widget {
        padding: 10px !important; /* Reducido de 12px */
        margin-bottom: 10px; /* Reducido */
        font-size: 12px; /* Más pequeño */
    }

    body .widget-title {
        font-size: 13px !important; /* Reducido */
        margin-bottom: 10px; /* Reducido */
    }

    /* CONTENEDORES DE POSTS Y REELS */
    body .posts-container,
    body .reels-container {
        padding: 6px; /* Reducido de 8px */
        gap: 8px; /* Reducido de 10px */
    }

    body .post-item,
    body .reel-item {
        min-width: 250px; /* Reducido de 280px */
    }

    /* HEADER COMPACTO */
    body .header .search-box {
        display: none;
    }

    /* TIPOGRAFÍA MÓVIL - Más compacta similar a web */
    body {
        font-size: 13px; /* Reducido de 14px */
    }

    body .header {
        padding: 6px 10px !important; /* Más compacto */
        min-height: 52px !important;
    }

    body .header .brand {
        font-size: 15px !important; /* Reducido */
    }

    body .header .username {
        font-size: 12px !important; /* Más pequeño */
    }

    body .header .nav-icons img,
    body .header .nav-buttons img {
        width: 28px !important; /* Más pequeño */
        height: 28px !important;
    }

    body .header button {
        font-size: 15px !important; /* Reducido */
        padding: 5px 7px !important; /* Más compacto */
    }

    body h1 { font-size: 18px !important; }
    body h2 { font-size: 16px !important; }
    body h3 { font-size: 14px !important; }

    body .block-header h2 {
        font-size: 14px !important; /* Reducido */
    }

    body .section-subtitle {
        font-size: 10px !important; /* Más pequeño */
    }

    /* LOGIN PAGE MÓVIL PEQUEÑO - Asegurar espacio */
    .brand-name {
        font-size: 15px !important; /* Reducido */
        top: 8px !important;
        left: 8px !important;
    }

    .page-logo {
        top: 8px !important;
        right: 8px !important;
    }

    .logo-img {
        width: 26px !important; /* Reducido de 28px */
    }

    .login-container {
        margin-top: 80px !important; /* Reducido de 85px */
        padding: 18px 12px !important; /* Más compacto */
    }

    .login-container h1 {
        font-size: 18px !important; /* Reducido de 20px */
        margin-bottom: 8px !important;
    }

    .login-container .subtitle {
        font-size: 12px !important; /* Reducido */
    }

    /* PROFILE CARD MÓVIL - Más compacto */
    body .profile-card {
        margin-bottom: 12px; /* Reducido */
    }

    body .profile-photo {
        width: 70px !important; /* Reducido de 80px */
        height: 70px !important;
        bottom: -25px !important;
    }

    body .cover {
        height: 130px !important; /* Reducido de 150px */
    }

    body .profile-info {
        padding: 50px 12px 16px 12px !important; /* Más compacto */
    }

    body .profile-info h2 {
        font-size: 18px !important; /* Reducido */
    }

    body .stats {
        flex-wrap: wrap;
        gap: 8px; /* Reducido de 10px */
        padding: 14px 0; /* Reducido */
    }

    body .stats div {
        flex: 1 1 calc(50% - 4px);
        min-width: calc(50% - 4px);
        padding: 8px 10px; /* Más compacto */
    }

    body .stats div span {
        font-size: 18px !important; /* Reducido */
    }

    /* CONTENT SECTION BLOCKS */
    body .content-section-block {
        padding: 10px !important; /* Más compacto */
        margin-bottom: 10px;
    }

    body .block-header {
        padding: 10px 12px !important; /* Más compacto */
        margin-bottom: 10px;
    }

    /* SHORTCUTS Y BOTONES MÓVIL - Más compactos */
    body .shortcuts-horizontal {
        gap: 8px !important;
        padding: 10px 0 !important;
    }

    body .shortcuts-horizontal button {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }

    body .quick-link {
        padding: 8px !important;
        font-size: 12px !important;
        gap: 8px !important;
    }

    body .quick-link span:first-child {
        font-size: 16px !important;
    }

    /* MÚSICA DESTACADA MÓVIL - Compacta */
    body .featured-music-card {
        padding: 12px !important; /* Reducido de 20px */
        gap: 12px !important; /* Reducido de 18px */
        border-radius: 16px !important;
        grid-template-columns: 80px 1fr !important; /* Reducido de 110px */
    }

    body .featured-music-cover {
        width: 80px !important; /* Reducido de 110px */
        height: 80px !important;
        border-radius: 14px !important;
        font-size: 24px !important; /* Reducido de 30px */
    }

    body .featured-music-title {
        font-size: 14px !important; /* Reducido de 17px */
    }

    body .featured-music-artist {
        font-size: 12px !important; /* Reducido de 14px */
        margin-top: 4px !important;
    }

    body .featured-music-stats {
        margin-top: 8px !important;
        gap: 8px !important;
        font-size: 11px !important;
    }

    body .featured-music-actions {
        margin-top: 8px !important;
        gap: 6px !important;
    }

    body .featured-music-actions button {
        padding: 6px 10px !important; /* Reducido */
        font-size: 11px !important; /* Reducido */
    }

    body .featured-music-grid.scrollable-strip {
        gap: 12px !important; /* Reducido de 18px */
        padding: 6px !important;
    }

    body .featured-music-grid.scrollable-strip .featured-music-card {
        min-width: 240px !important; /* Reducido de 280px */
    }

    /* MUSIC ITEM MÓVIL - Compacto */
    body .music-item {
        padding: 12px !important; /* Reducido de 20px */
        gap: 12px !important; /* Reducido de 20px */
        border-radius: 16px !important;
    }

    body .music-cover {
        width: 90px !important; /* Reducido de 130px */
        height: 90px !important;
        border-radius: 14px !important;
        font-size: 36px !important; /* Reducido de 52px */
    }

    body .music-title {
        font-size: 16px !important; /* Reducido de 22px */
        margin: 6px 0 4px 0 !important;
    }

    body .music-artist {
        font-size: 13px !important; /* Reducido de 15px */
        margin-bottom: 8px !important;
    }

    body .music-play-btn {
        width: 44px !important; /* Reducido de 56px */
        height: 44px !important;
        font-size: 18px !important; /* Reducido de 22px */
    }

    body .music-container {
        gap: 12px !important; /* Reducido de 20px */
        margin-bottom: 16px !important;
    }

    body .music-section-shell {
        padding: 14px !important; /* Reducido de 24px */
        margin-bottom: 16px !important;
        border-radius: 16px !important;
    }

    body .music-subheader h3 {
        font-size: 15px !important; /* Reducido de 18px */
    }

    body .music-subheader span {
        font-size: 11px !important; /* Reducido de 13px */
    }

    /* INPUTS Y FORMULARIOS MÓVIL */
    body input,
    body textarea,
    body select {
        font-size: 13px !important;
        padding: 8px 12px !important;
    }

    body button.btn-primary,
    body .btn-primary {
        padding: 10px 16px !important;
        font-size: 13px !important;
    }

    /* EVENTOS Y CONVOCATORIAS MÓVIL - Compactos */
    body .event-card,
    body .event-item,
    body .opportunity-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

    body .event-card h3,
    body .opportunity-card h3 {
        font-size: 14px !important;
    }

    body .event-date {
        font-size: 11px !important;
    }

    body .event-name {
        font-size: 13px !important;
    }

    /* COLABORACIONES MÓVIL - Compactas */
    body .collaboration-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    /* STATS Y WIDGETS MÓVIL */
    body .stat-box {
        padding: 10px !important;
    }

    body .stat-value {
        font-size: 18px !important; /* Reducido */
    }

    body .stat-label {
        font-size: 11px !important; /* Reducido */
    }

    /* AUDIO PLAYER MÓVIL - Compacto */
    body .audio-player {
        padding: 10px !important; /* Reducido */
    }

    body .play-btn {
        width: 36px !important; /* Reducido de 44px */
        height: 36px !important;
        font-size: 14px !important; /* Reducido */
    }

    /* STRIP CONTROLS MÓVIL */
    body .strip-controls {
        margin-top: 8px !important;
        padding: 6px 0 !important;
    }

    body .strip-btn {
        width: 32px !important; /* Reducido de 40px */
        height: 32px !important;
        font-size: 16px !important; /* Reducido */
    }

    body .strip-progress {
        height: 4px !important; /* Reducido de 6px */
    }

    /* OPORTUNIDADES Y CONVOCATORIAS MÓVIL - Compactas */
    body .opportunity-card,
    body .opportunity-item {
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

    body .opportunity-card h3 {
        font-size: 14px !important;
    }

    body .opportunity-card p {
        font-size: 12px !important;
    }

    /* COLABORACIONES MÓVIL - Compactas */
    body .collaboration-card,
    body .collaboration-item {
        padding: 10px !important;
        margin-bottom: 10px !important;
    }

    /* VIEW MORE BUTTONS MÓVIL */
    body .view-more-btn {
        padding: 6px 10px !important;
        font-size: 11px !important;
    }

    /* EMPTY STATE CARDS MÓVIL */
    body .empty-state-card {
        padding: 16px !important; /* Reducido */
        font-size: 12px !important;
    }

    body .empty-state-card strong {
        font-size: 14px !important; /* Reducido */
    }

    /* TAG PILLS MÓVIL */
    body .tag-pill {
        padding: 4px 8px !important; /* Reducido */
        font-size: 10px !important; /* Reducido */
        border-radius: 10px !important;
    }

    /* STAT PILLS MÓVIL */
    body .stat-pill {
        padding: 4px 8px !important; /* Reducido */
        font-size: 10px !important; /* Reducido */
    }

    /* RECOMMENDATION CARDS MÓVIL */
    body .recommendation-card {
        padding: 10px !important; /* Reducido */
        border-radius: 12px !important;
    }

    /* INFO GRID MÓVIL */
    body .info-grid.scrollable-strip {
        gap: 10px !important; /* Reducido */
        padding: 6px !important;
    }

    /* EVENT LIST ITEMS MÓVIL */
    body .event-list-item {
        padding: 10px !important;
        margin-bottom: 8px !important;
    }

    body .event-list-item h4 {
        font-size: 13px !important;
    }

    body .event-list-item p {
        font-size: 11px !important;
    }

    /* ESTILOS COMPACTOS GLOBALES PARA TODAS LAS PÁGINAS */
    
    /* Cards y contenedores generales */
    body .card,
    body .info-card,
    body .section-card {
        padding: 10px !important;
        margin-bottom: 10px !important;
        border-radius: 12px !important;
    }

    /* Títulos de sección */
    body .section-title,
    body .info-title {
        font-size: 16px !important; /* Reducido */
        margin-bottom: 12px !important;
    }

    body .info-subtitle {
        font-size: 13px !important; /* Reducido */
    }

    /* Feature cards */
    body .feature-card {
        padding: 14px !important; /* Reducido */
    }

    body .feature-icon {
        font-size: 32px !important; /* Reducido */
    }

    body .feature-title {
        font-size: 14px !important; /* Reducido */
    }

    body .feature-text {
        font-size: 12px !important; /* Reducido */
    }

    /* Team cards */
    body .team-card {
        padding: 16px !important; /* Reducido */
    }

    body .team-name {
        font-size: 15px !important; /* Reducido */
    }

    body .team-role {
        font-size: 12px !important; /* Reducido */
    }

    /* CTA sections */
    body .cta-section {
        padding: 20px 12px !important; /* Reducido */
    }

    body .cta-text {
        font-size: 16px !important; /* Reducido */
    }

    body .cta-button {
        padding: 10px 20px !important; /* Reducido */
        font-size: 13px !important; /* Reducido */
    }

    /* Purpose items */
    body .purpose-item {
        padding: 10px !important; /* Reducido */
        font-size: 12px !important; /* Reducido */
    }

    body .purpose-icon {
        font-size: 16px !important; /* Reducido */
    }

    /* Benefit items */
    body .benefit-item {
        padding: 8px 10px !important; /* Reducido */
    }

    body .benefit-text {
        font-size: 12px !important; /* Reducido */
    }

    /* User type items */
    body .user-type-item {
        padding: 10px !important; /* Reducido */
        font-size: 12px !important; /* Reducido */
    }

    /* Vision items */
    body .vision-item {
        padding: 10px !important; /* Reducido */
        font-size: 12px !important; /* Reducido */
    }

    /* Tester section */
    body .tester-section {
        padding: 20px 12px !important; /* Reducido */
    }

    body .tester-title {
        font-size: 16px !important; /* Reducido */
    }

    body .tester-text {
        font-size: 12px !important; /* Reducido */
    }

    body .tester-button {
        padding: 10px 18px !important; /* Reducido */
        font-size: 13px !important; /* Reducido */
    }

    /* Gallery */
    body .tester-gallery {
        gap: 10px !important; /* Reducido */
        margin-top: 16px !important;
    }

    body .tester-gallery img {
        border-radius: 10px !important;
    }

    /* Links */
    body .links {
        gap: 10px !important; /* Reducido */
        margin-top: 12px !important;
    }

    body .links a {
        font-size: 12px !important; /* Reducido */
    }

    /* Dividers */
    body .divider {
        margin: 12px 0 !important; /* Reducido */
        font-size: 12px !important; /* Reducido */
    }

    /* Form inputs compactos */
    body form input,
    body form textarea,
    body form select {
        font-size: 13px !important;
        padding: 8px 12px !important;
        margin-bottom: 10px !important;
    }

    body form label {
        font-size: 12px !important;
        margin-bottom: 6px !important;
    }

    /* Buttons compactos */
    body button:not(.header button):not(.strip-btn) {
        padding: 8px 14px !important;
        font-size: 13px !important;
    }

    /* Tables móvil */
    body table {
        font-size: 12px !important;
    }

    body table th,
    body table td {
        padding: 8px !important;
    }
}

/* ============================================
   ESTILOS UNIFICADOS PARA POSTS
   ============================================ */

/* Post Item - Contenedor principal */
.post-item {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    margin-bottom: 16px;
}

.post-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
    opacity: 0.6;
}

.post-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 123, 255, 0.2);
}

/* Post Header */
.post-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    border-radius: 12px;
}

.user-info:hover {
    background: rgba(0, 123, 255, 0.05);
}

.user-photo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(0, 123, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.15);
    transition: all 0.3s ease;
}

.user-info:hover .user-photo {
    border-color: rgba(0, 123, 255, 0.6);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.25);
    transform: scale(1.05);
}

.user-details {
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 700;
    color: #1e293b;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
}

.user-username {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.time-ago {
    font-size: 12px;
    color: #94a3b8;
    margin-top: 2px;
    font-weight: 500;
}

.follow-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.follow-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
    background: linear-gradient(135deg, #0056b3, #007BFF);
}

.follow-btn.following {
    background: linear-gradient(135deg, #64748b, #475569);
    box-shadow: 0 2px 8px rgba(100, 116, 139, 0.3);
}

.follow-btn.following:hover {
    background: linear-gradient(135deg, #475569, #64748b);
    box-shadow: 0 4px 12px rgba(100, 116, 139, 0.4);
}

/* Post Content */
.post-content {
    padding: 20px;
    background: transparent;
}

.post-text {
    font-size: 15px;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 12px;
    word-wrap: break-word;
    font-weight: 400;
}

.post-media {
    width: 100%;
    border-radius: 16px;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    display: block;
}

.post-media:hover {
    transform: scale(1.02);
}

.post-video {
    width: 100%;
    max-height: 500px;
    height: auto;
    border-radius: 16px;
    margin: 12px 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: block;
}

/* Post Actions */
.post-actions {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    gap: 12px;
    background: rgba(248, 250, 252, 0.5);
}

.post-footer {
    padding: 14px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(248, 250, 252, 0.5);
}

.action-btn {
    background: rgba(0, 123, 255, 0.05);
    border: none;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    position: relative;
    color: #64748b;
    font-weight: 600;
    border: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 1px 3px rgba(0, 123, 255, 0.1);
}

.action-btn:hover {
    background: rgba(0, 123, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
    color: #007BFF;
    border-color: rgba(0, 123, 255, 0.3);
}

.action-btn:active {
    transform: translateY(0);
}

.action-btn.liked {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.2);
}

.action-btn.liked:hover {
    background: rgba(239, 68, 68, 0.15);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

/* Comments Section */
.comments-section {
    display: none;
    padding: 16px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    max-height: 400px;
    overflow-y: auto;
    background: rgba(248, 250, 252, 0.5);
}


.comments-list {
    margin-bottom: 16px;
    max-height: 300px;
    overflow-y: auto;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 12px;
}

.comment-item:last-child {
    margin-bottom: 0;
}

.comment-item:hover {
    background: rgba(255, 255, 255, 0.95);
    transform: translateX(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.comment-user-photo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid rgba(0, 123, 255, 0.2);
    box-shadow: 0 2px 6px rgba(0, 123, 255, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
}

.comment-user-photo:hover {
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.25);
    transform: scale(1.05);
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-user-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
    cursor: pointer;
    transition: color 0.2s;
}

.comment-user-name:hover {
    color: #007BFF;
}

.comment-text {
    font-size: 14px;
    color: #475569;
    margin: 6px 0;
    word-wrap: break-word;
    line-height: 1.5;
}

.comment-time {
    font-size: 12px;
    color: #94a3b8;
    font-weight: 500;
    margin-top: 4px;
}

.comment-input-container {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: center;
}

.comment-input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 16px;
    font-size: 14px;
    outline: none;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
}

.comment-input:focus {
    border-color: #007BFF;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-1px);
}

.comment-send-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #007BFF, #0056b3);
    color: white;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.comment-send-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

.comment-send-btn:active {
    transform: translateY(0);
}

.comment-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Reaction Popup */
.reaction-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 25px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    padding: 8px;
    z-index: 1000;
    margin-bottom: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}


.reaction-emoji,
.reaction-option {
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 6px;
    border-radius: 50%;
    background: transparent;
    border: none;
}

.reaction-emoji:hover,
.reaction-option:hover {
    transform: scale(1.3);
    background: rgba(0, 123, 255, 0.1);
}

/* Gift Popup */
.gift-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    padding: 8px;
    z-index: 1000;
    margin-bottom: 8px;
    min-width: 200px;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.gift-option {
    width: 100%;
    padding: 10px 14px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 14px;
    border-radius: 12px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 4px;
    font-weight: 500;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

.gift-option:hover {
    background: rgba(0, 123, 255, 0.1);
    transform: translateX(4px);
}

.gift-option:last-child {
    margin-bottom: 0;
}

/* Options Menu */
.options-menu {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    z-index: 1000;
    min-width: 160px;
    margin-top: 8px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

.option-item {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    color: #1e293b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-item:hover {
    background: rgba(0, 123, 255, 0.1);
    color: #007BFF;
}

.option-item:last-child {
    border-bottom: none;
}

/* Media Carousel */
.media-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
}

.media-carousel::-webkit-scrollbar {
    height: 8px;
}

.media-carousel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}

.media-carousel::-webkit-scrollbar-thumb {
    background: rgba(0, 123, 255, 0.3);
    border-radius: 10px;
}

.media-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 123, 255, 0.5);
}

.media-carousel img {
    width: 220px;
    height: 280px;
    object-fit: cover;
    border-radius: 16px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.media-carousel img:hover {
    transform: scale(1.08) translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* Video Player */
.video-player {
    width: 100%;
    max-height: 500px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Series Badge */
.series-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   CARD FLOTANTE - Función No Disponible
   ============================================ */
.not-available-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    max-width: 400px;
    width: 90%;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.not-available-card.active {
    opacity: 1;
    pointer-events: all;
    transform: translate(-50%, -50%) scale(1);
}

.not-available-card-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.not-available-card-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.not-available-card-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

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

.not-available-card-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 12px;
    line-height: 1.3;
}

.not-available-card-message {
    font-size: 16px;
    color: #64748b;
    margin-bottom: 24px;
    line-height: 1.5;
}

.not-available-card-button {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.not-available-card-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 123, 255, 0.4);
}

.not-available-card-button:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    .not-available-card {
        padding: 24px;
        max-width: 90%;
    }
    
    .not-available-card-icon {
        font-size: 48px;
    }
    
    .not-available-card-title {
        font-size: 20px;
    }
    
    .not-available-card-message {
        font-size: 14px;
    }
}

/* ============================================
   VERIFICACIÓN FINAL - Asegurar consistencia
   ============================================ */
/* Asegurar que todos los elementos principales tengan transiciones suaves */
.header,
.sidebar-left,
.sidebar-right,
.content,
.content-main,
.profile-container,
.main-container,
.main-layout {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Asegurar que los botones tengan estados hover consistentes */
button:not(:disabled):hover {
    transform: translateY(-1px);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Asegurar que las cards tengan sombras consistentes */
.card-surface,
.widget,
.feature-card,
.opportunity-card {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.card-surface:hover,
.widget:hover,
.feature-card:hover,
.opportunity-card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

/* Asegurar que los inputs tengan estilos consistentes */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea {
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1);
    outline: none;
}

