/* ===== MEDIEVAL SOFTWARE - CSS BASE GLOBAL ===== */
/* Este archivo contiene estilos compartidos por todas las paginas */

/* ===== VARIABLES CSS (CENTRALIZADO) ===== */
:root {
    /* Colores */
    --color-bg-primary: #1a1a1a;
    --color-bg-secondary: #2a2a2a;
    --color-bg-card: rgba(48, 48, 48, 0.85);
    --color-bg-navbar: rgba(33, 33, 33, 0.95);
    --color-text-primary: #FFFFFF;
    --color-text-secondary: rgba(255, 255, 255, 0.85);
    --color-text-muted: rgba(255, 255, 255, 0.7);
    --color-text-subtle: rgba(255, 255, 255, 0.6);
    --color-border: rgba(255, 255, 255, 0.1);
    --color-border-hover: rgba(255, 255, 255, 0.2);
    /* Sombras */
    --shadow-sm: 0 4px 15px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 8px 25px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 35px rgba(0, 0, 0, 0.5);
    /* Espaciados */
    --spacing-xs: 0.5rem;
    --spacing-sm: 0.75rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    /* Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 14px;
    /* Transiciones */
    --transition: 0.3s ease;
    /* Tipografia */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ===== RESET Y BASE ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    height: 100%;
}

body {
    height: 100%;
    font-family: var(--font-family);
    background: var(--color-bg-primary);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Efectos de fondo */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: radial-gradient(circle at 20% 50%, rgba(56, 56, 56, 0.3) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(66, 66, 66, 0.2) 0%, transparent 50%), linear-gradient(135deg, var(--color-bg-primary) 0%, var(--color-bg-secondary) 50%, var(--color-bg-primary) 100%);
    z-index: -2;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.02) 1px, transparent 0);
    background-size: 20px 20px;
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
}

main {
    min-height: calc(100vh - 250px);
}

main.main-content {
    min-height: auto;
    flex: 1;
}

.container {
    position: relative;
    z-index: 1;
}

/* Pre-expande sidebar antes del primer paint (sin animación) */
html[data-sb] .sidebar                      { width: var(--sidebar-width-expanded); transition: none !important; }
html[data-sb] .main-wrapper                 { margin-left: var(--sidebar-width-expanded); transition: none !important; }
html[data-sb] .sidebar-header               { justify-content: space-between; }
html[data-sb] .sidebar-brand-group          { display: flex; }
html[data-sb] .sidebar-item                 { justify-content: flex-start; }
html[data-sb] .sidebar-link                 { justify-content: flex-start; padding-left: 0.75rem; padding-right: 0.75rem; }
html[data-sb] .sidebar-text                 { opacity: 1; width: auto; margin-left: 0.5rem; transition: none !important; }
html[data-sb] .sidebar-badge                { opacity: 1; }
html[data-sb] .sidebar-icon-expand          { display: none; }
html[data-sb] .sidebar-icon-collapse        { display: block; }

/* ===== SIDEBAR ===== */
:root {
    --sidebar-width-collapsed: 60px;
    --sidebar-width-expanded: 240px;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width-collapsed);
    background: var(--color-bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    z-index: 1000;
    transition: width 0.3s ease;
    overflow: hidden;
}

.sidebar.expanded {
    width: var(--sidebar-width-expanded);
}

/* Header del sidebar */
.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 56px;
    border-bottom: 1px solid var(--color-border);
    flex-shrink: 0;
    padding: 0;
    width: 100%;
}

.sidebar-brand-group {
    display: none;
    align-items: center;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    padding-left: 1rem;
}

.sidebar-shield {
    height: 28px;
    width: auto;
    flex-shrink: 0;
}

.sidebar-brand {
    height: 20px;
    width: auto;
    margin-left: 0.35rem;
    min-width: 0;
}

.sidebar.expanded .sidebar-header {
    justify-content: space-between;
}

.sidebar.expanded .sidebar-brand-group {
    display: flex;
}

/* Botón hamburguesa */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--sidebar-width-collapsed);
    min-width: var(--sidebar-width-collapsed);
    height: 56px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Íconos SVG del toggle */
.sidebar-toggle-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(0.8);
    transition: var(--transition);
}

.sidebar-toggle:hover .sidebar-toggle-icon,
.mobile-menu-btn:hover .sidebar-toggle-icon {
    filter: brightness(0) invert(1);
}

/* Navegación */
.sidebar-nav {
    flex: 1;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.sidebar-nav::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari/Opera */
}

.sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-item {
    margin: 0.25rem 0;
    display: flex;
    justify-content: center;
}

.sidebar.expanded .sidebar-item {
    justify-content: flex-start;
}

.sidebar-divider {
    height: 1px;
    background: var(--color-border);
    margin: 0.75rem 0.5rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    text-decoration: none;
    color: var(--color-text-secondary);
    transition: var(--transition);
    position: relative;
}

.sidebar.expanded .sidebar-link {
    justify-content: flex-start;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-primary);
}

.sidebar-link.active {
    background: rgba(255, 255, 255, 0.15);
}

.sidebar-icon {
    font-size: 1.3rem;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-align: center;
}

.sidebar-svg-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.sidebar-link:hover .sidebar-svg-icon {
    opacity: 1;
}

.sidebar-text {
    white-space: nowrap;
    opacity: 0;
    width: 0;
    overflow: hidden;
    transition: opacity 0.2s ease, width 0.2s ease;
    font-weight: 500;
    font-size: 0.95rem;
}

.sidebar.expanded .sidebar-text {
    opacity: 1;
    width: auto;
    margin-left: 0.5rem;
}

/* Badge de notificaciones */
.sidebar-badge {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    transform: translateY(-50%);
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.sidebar.expanded .sidebar-badge {
    opacity: 1;
}

/* Cuando está colapsado, mostrar badge pequeño en el icono */
.sidebar:not(.expanded) .sidebar-link-notifications .sidebar-badge {
    position: absolute;
    top: 4px;
    right: 8px;
    transform: none;
    opacity: 1;
    font-size: 0.55rem;
    padding: 0.1rem 0.25rem;
    min-width: 12px;
}

/* Botones de scroll del sidebar */
.sidebar-scroll-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 28px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--color-text-muted);
    flex-shrink: 0;
    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar-scroll-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-primary);
}

.sidebar-scroll-btn.visible {
    display: flex;
}

.sidebar-scroll-up {
    border-bottom: 1px solid var(--color-border);
}

.sidebar-scroll-down {
    border-top: 1px solid var(--color-border);
}

/* Footer del sidebar */
.sidebar-footer {
    border-top: 1px solid var(--color-border);
    padding: 0.25rem 0;
    padding-bottom: calc(0.25rem + env(safe-area-inset-bottom, 0px));
    margin-bottom: env(safe-area-inset-bottom, 0px);
    flex-shrink: 0;
}

@supports not (padding: env(safe-area-inset-bottom)) {
    .sidebar-footer {
        padding-bottom: 1rem;
    }
}

.sidebar-link-logout {
    color: #ef4444 !important;
}

.sidebar-link-logout:hover {
    background: rgba(239, 68, 68, 0.15) !important;
}

.sidebar-link-login {
    margin: 0.25rem;
    width: calc(var(--sidebar-width-collapsed) - 0.5rem) !important;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(66, 66, 66, 0.6) 0%, rgba(48, 48, 48, 0.6) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.sidebar.expanded .sidebar-link-login {
    width: calc(100% - 0.5rem) !important;
}

.sidebar-link-login:hover {
    background: linear-gradient(135deg, rgba(74, 74, 74, 0.8) 0%, rgba(66, 66, 66, 0.8) 100%);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Overlay para móvil */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
}

/* Main wrapper */
.main-wrapper {
    margin-left: var(--sidebar-width-collapsed);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left 0.3s ease;
}

.main-wrapper.sidebar-expanded {
    margin-left: var(--sidebar-width-expanded);
}

.main-content {
    flex: 1;
    padding-top: 1rem;
}

/* Skip to content */
.skip-to-content {
    position: absolute;
    left: -9999px;
    z-index: 9999;
}

.skip-to-content:focus {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--color-text-primary);
    color: var(--color-bg-primary);
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    z-index: 9999;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
        width: var(--sidebar-width-expanded);
    }

    .sidebar.expanded {
        transform: translateX(0);
    }

    /* En móvil el sidebar siempre muestra el brand */
    .sidebar .sidebar-header {
        justify-content: space-between;
    }

    .sidebar .sidebar-brand-group {
        display: flex;
    }

    .sidebar .sidebar-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0 0.75rem;
    }

    .sidebar .sidebar-text {
        opacity: 1;
        width: auto;
        margin-left: 0.5rem;
    }

    .sidebar .sidebar-badge {
        opacity: 1;
        position: absolute;
        top: 50%;
        right: 0.75rem;
        transform: translateY(-50%);
    }

    .sidebar .sidebar-link-login {
        width: calc(100% - 0.5rem) !important;
        margin: 0.25rem;
    }

    .sidebar .sidebar-footer {
        padding-bottom: 2.5rem;
        margin-bottom: 2rem;
    }

    .main-wrapper {
        margin-left: 0;
    }

    .main-wrapper.sidebar-expanded {
        margin-left: 0;
    }

    /* Botón flotante para abrir sidebar en móvil */
    .mobile-menu-btn {
        display: flex;
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 998;
        width: 44px;
        height: 44px;
        background: var(--color-bg-navbar);
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .mobile-menu-btn .sidebar-toggle-icon {
        filter: brightness(0) invert(0.8);
    }

    .sidebar.expanded+.sidebar-overlay+.mobile-menu-btn {
        display: none;
    }

    body.sidebar-open .mobile-menu-btn {
        display: none;
    }
}

@media (min-width: 769px) {
    .mobile-menu-btn {
        display: none !important;
    }
}

/* ===== HERO SECTION ===== */
.hero-section {
    min-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-3xl) var(--spacing-md);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(66, 66, 66, 0.15) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.hero-content {
    max-width: 900px;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}


.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    color: var(--color-text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== BOTONES UNIFICADOS ===== */
.btn-primary-custom,
.btn-secondary-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    min-width: 180px;
    cursor: pointer;
}

.btn-primary-custom::before,
.btn-secondary-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.btn-primary-custom:hover::before,
.btn-secondary-custom:hover::before {
    left: 100%;
}

.btn-primary-custom {
    background: linear-gradient(135deg, rgba(66, 66, 66, 0.95) 0%, rgba(48, 48, 48, 1) 100%);
    color: var(--color-text-primary);
    border-color: var(--color-border-hover);
    box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-primary-custom:hover {
    background: linear-gradient(135deg, rgba(74, 74, 74, 1) 0%, rgba(66, 66, 66, 1) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    color: var(--color-text-primary);
}

.btn-secondary-custom {
    background: rgba(66, 66, 66, 0.4);
    color: var(--color-text-secondary);
    border-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary-custom:hover {
    background: rgba(74, 74, 74, 0.7);
    color: var(--color-text-primary);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* ===== CARDS UNIFICADAS ===== */
.error-dev-info,
.mission-card,
.philosophy-card,
.stat-card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: var(--spacing-xl);
}

.error-dev-info:hover,
.mission-card:hover,
.philosophy-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: var(--color-border-hover);
}

/* Cards especiales */
.mission-card,
.philosophy-card {
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.15);
}

.stat-card {
    background: rgba(48, 48, 48, 0.5);
}

.stat-card:hover {
    background: rgba(48, 48, 48, 0.7);
}

.dev-header {
    background: linear-gradient(135deg, rgba(66, 66, 66, 0.9) 0%, rgba(48, 48, 48, 0.95) 100%);
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid var(--color-border);
    position: relative;
}

.dev-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.dev-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin: 0;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.dev-content {
    padding: 1.75rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dev-text {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-lg);
}

.dev-warning {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    display: flex;
    gap: var(--spacing-md);
    align-items: flex-start;
    backdrop-filter: blur(10px);
    margin-top: auto;
}

.warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.warning-content {
    flex: 1;
}

.warning-title {
    font-weight: 600;
    color: var(--color-text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 0.95rem;
}

.warning-text {
    color: var(--color-text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.warning-text strong {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* ===== SECCIONES ===== */
.features-section {
    padding: var(--spacing-3xl) 0;
    position: relative;
}

.cta-section {
    padding: 5rem var(--spacing-md);
    text-align: center;
    position: relative;
    margin: var(--spacing-2xl) 0;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(66, 66, 66, 0.2) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-description {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-navbar);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--color-border);
    padding: var(--spacing-xl) 0;
    margin-top: auto;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
}

/* ===== ANIMACIONES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== UTILIDADES ===== */
.text-center {
    text-align: center !important;
}

.text-muted {
    color: var(--color-text-subtle) !important;
}

.mb-3 {
    margin-bottom: var(--spacing-md) !important;
}

.mb-4 {
    margin-bottom: var(--spacing-lg) !important;
}

.mb-5 {
    margin-bottom: var(--spacing-xl) !important;
}

.pb-3 {
    padding-bottom: var(--spacing-md) !important;
}

.mt-2 {
    margin-top: var(--spacing-xs) !important;
}

.row {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
}

.row>* {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.g-4 {
    --bs-gutter-x: var(--spacing-lg);
    --bs-gutter-y: var(--spacing-lg);
}

/* ===== FORMULARIOS ===== */
select {
    background-color: #252525 !important;
    color: var(--color-text-primary) !important;
}

select option {
    background-color: #252525;
    color: white;
    padding: 10px;
}

select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: #2d2d2d !important;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
textarea:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: var(--color-text-subtle);
}

/* Corrección para Autofill de Chrome/Edge */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(40, 40, 40, 0.95) inset !important;
    -webkit-text-fill-color: var(--color-text-primary) !important;
    border: 1px solid var(--color-border) !important;
    caret-color: var(--color-text-primary);
    transition: background-color 5000s ease-in-out 0s;
}

/* ===== ACCESIBILIDAD ===== */
a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-section {
        min-height: 60vh;
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        width: 100%;
        max-width: 280px;
    }

    .features-section {
        padding: var(--spacing-xl) 0;
    }

    .cta-section {
        padding: var(--spacing-2xl) var(--spacing-md);
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .dev-warning {
        flex-direction: column;
        gap: var(--spacing-sm);
    }

    .error-dev-info {
        margin-bottom: var(--spacing-lg);
    }
}

@media (max-width: 576px) {
    .dev-header {
        padding: 1.25rem var(--spacing-md);
    }

    .dev-content {
        padding: 1.25rem var(--spacing-md);
    }

    .dev-title {
        font-size: 1.1rem;
    }
}

/* ===== COMPONENTES COMPARTIDOS ===== */

/* Filter inputs (usado en Services, Contact, Forge) */
.filter-label {
    display: block;
    color: var(--color-text-secondary);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-input,
.filter-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.filter-input:focus,
.filter-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.filter-select {
    cursor: pointer;
}

/* Checkboxes estilizados */
input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #3b82f6;
    cursor: pointer;
}

/* Number inputs */
input[type="number"] {
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Banner Google Play (usado en Index, Services, Contact) */
.google-play-banner {
    background: linear-gradient(135deg, #34a853 0%, #0f9d58 100%);
    padding: 2.5rem;
    margin: 3rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(52, 168, 83, 0.25);
}

.banner-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.banner-icon {
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1);
}

.banner-title {
    color: white;
    font-weight: 700;
    font-size: 1.6rem;
    margin: 0;
}

.banner-subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
}

.banner-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin: 0;
}

.banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    color: #34a853;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.banner-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #34a853;
}

.banner-cta-icon {
    width: 2rem;
    height: 2rem;
}

.banner-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    margin-bottom: 0;
}

/* Section headers (usado en multiple paginas) */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* CTA Footer (usado en Index, Services, Contact) */
.cta-footer {
    margin-top: 2.5rem;
    text-align: center;
}

.cta-footer-text {
    font-size: 0.95rem;
    color: var(--color-text-subtle);
    margin-bottom: 1.5rem;
}

/* ===== PERFORMANCE ===== */
@supports (font-display: swap) {
    @font-face {
        font-display: swap;
    }
}