/* ============================================
   POS DIGITAL TAME - Estilos comunes
   ============================================
   Variables de marca, tipografía base y componentes
   compartidos por todas las páginas públicas.
*/

/* ===== Variables CSS personalizadas ===== */
:root {
    /* Paleta de marca */
    --pdt-primary:        #0d6efd;
    --pdt-primary-dark:   #0a58ca;
    --pdt-primary-light:  #e7f1ff;
    --pdt-secondary:      #6c757d;
    --pdt-success:        #198754;
    --pdt-warning:        #ffc107;
    --pdt-danger:         #dc3545;

    /* Tonos neutros */
    --pdt-dark:           #1a1d24;
    --pdt-text:           #2d3748;
    --pdt-text-muted:     #6b7280;
    --pdt-bg-light:       #f8fafc;
    --pdt-border:         #e5e7eb;

    /* Tipografía */
    --pdt-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

    /* Sombras */
    --pdt-shadow-sm: 0 1px 2px rgba(0,0,0,.05);
    --pdt-shadow:    0 4px 6px -1px rgba(0,0,0,.1), 0 2px 4px -2px rgba(0,0,0,.1);
    --pdt-shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);

    /* Bordes redondeados */
    --pdt-radius:    .5rem;
    --pdt-radius-lg: .75rem;
}

/* ===== Reset básico y tipografía accesible ===== */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--pdt-font);
    font-size: 16px;          /* Mínimo legible */
    line-height: 1.6;
    color: var(--pdt-text);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--pdt-dark);
}

/* Asegurar tamaño mínimo de botones para accesibilidad táctil */
.btn {
    min-height: 44px;
    font-weight: 500;
    border-radius: var(--pdt-radius);
    transition: all .2s ease;
}

.btn-lg {
    min-height: 52px;
    font-size: 1.05rem;
    padding: .75rem 1.5rem;
}

.btn-primary {
    background-color: var(--pdt-primary);
    border-color: var(--pdt-primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--pdt-primary-dark);
    border-color: var(--pdt-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--pdt-shadow);
}

/* Estados focus accesibles (para teclado) */
.btn:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(13, 110, 253, .4);
    outline-offset: 2px;
}

/* ===== Navbar ===== */
.navbar {
    padding: .85rem 0;
    border-bottom: 1px solid var(--pdt-border);
}

.navbar-brand {
    font-size: 1.35rem;
    color: var(--pdt-dark) !important;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--pdt-primary) 0%, var(--pdt-primary-dark) 100%);
    color: #fff;
    border-radius: var(--pdt-radius);
    font-size: 1.2rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--pdt-text) !important;
    padding: .5rem 1rem !important;
    border-radius: var(--pdt-radius);
    transition: all .2s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--pdt-primary) !important;
    background-color: var(--pdt-primary-light);
}

/* ===== Footer ===== */
.footer-main {
    background-color: var(--pdt-dark);
    color: #cbd5e1;
    margin-top: 4rem;
}

.footer-main h5,
.footer-main h6 {
    color: #fff;
}

.footer-main a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color .2s ease;
}

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

.footer-links li,
.footer-contact li {
    padding: .25rem 0;
}

.text-light-emphasis {
    color: #9ca3af !important;
}

/* ===== Responsive: ajustes móvil ===== */
@media (max-width: 991.98px) {
    .navbar-nav {
        margin-top: 1rem;
    }
    .navbar-nav .nav-link {
        padding: .75rem 1rem !important;
    }
    .navbar .btn {
        width: 100%;
        margin-top: .75rem;
        justify-content: center;
    }
}

/* ===== Mejoras de accesibilidad ===== */
/* Subrayar enlaces dentro del texto para mejor visibilidad */
main a:not(.btn):not(.nav-link):not(.navbar-brand) {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

/* Respetar preferencia de reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}
