/* ============================================
   CUIDAR.ar - Sistema de Cuidados
   Estilos Globales
   Autor: Nicolás Bronzina (2025)
   ============================================ */

/* ============================================
   RESET Y VARIABLES
   ============================================ */

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

:root {
    --color-primary: #0072BB;
    --color-secondary: #66BB6A;
    --color-accent: #FF9800;
    --color-warm: #FFF8E1;
    --color-purple: #9C27B0;
    --color-dark: #2C3E50;
    --color-gray: #666666;
    --color-light-gray: #F5F5F5;
    
    /* NUEVOS: Colores para fricción */
    --color-friction-warning: #FFF3CD;
    --color-friction-warning-dark: #856404;
    --color-friction-warning-border: #FFC107;
    --color-friction-emphasis: #F57C00;
}

/* ============================================
   TIPOGRAFÍA BASE
   ============================================ */

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #FFFFFF;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #005A92;
}

/* ============================================
   ACCESIBILIDAD
   ============================================ */

.skip-to-main {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-primary);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 9999;
}

.skip-to-main:focus {
    top: 0;
}

.accessibility-bar {
    background-color: #2C3E50;
    color: white;
    padding: 8px 0;
    font-size: 14px;
}

.accessibility-bar button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 4px 12px;
    margin: 0 4px;
    border-radius: 4px;
    transition: all 0.3s;
}

.accessibility-bar button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.accessibility-bar button:focus {
    outline: 2px solid white;
    outline-offset: 2px;
}

.accessibility-bar span {
    margin-right: 12px;
}

.accessibility-bar i {
    margin-right: 4px;
}

/* Tamaños de texto */
.text-size-normal {
    font-size: 16px;
}

.text-size-large {
    font-size: 18px;
}

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

/* ============================================
   LAYOUT Y CONTENEDOR
   ============================================ */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col-md-3 {
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
}

.col-md-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

.col-md-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

/* ============================================
   HEADER GCBA
   ============================================ */

.header-gcba {
    background: linear-gradient(135deg, var(--color-primary), #005A92);
    padding: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
}

.logo:hover {
    color: white;
    opacity: 0.9;
}

.logo .icon {
    font-size: 32px;
}

/* ============================================
   NAVEGACIÓN PRINCIPAL
   ============================================ */

.main-nav {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.main-nav .container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 8px;
}

.main-nav a {
    color: #333;
    text-decoration: none;
    padding: 16px 20px;
    display: inline-block;
    font-weight: 500;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--color-primary);
    border-bottom-color: var(--color-primary);
    background-color: #F5F5F5;
}

/* ============================================
   BOTONES
   ============================================ */

.btn {
    display: inline-block;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    cursor: pointer;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background-color: #005A92;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 114, 187, 0.3);
    color: white;
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background-color: var(--color-primary);
    color: white;
}

.btn-success {
    background-color: var(--color-secondary);
    color: white;
}

.btn-success:hover {
    background-color: #43A047;
    color: white;
}

.btn-warning {
    background-color: var(--color-accent);
    color: white;
}

.btn-warning:hover {
    background-color: #F57C00;
    color: white;
}

.btn-lg {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-link {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.btn-link:hover {
    gap: 12px;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    background-color: #2C3E50;
    color: white;
    padding: 60px 0 0;
    margin-top: 80px;
}

footer h4 {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    padding: 8px 0;
    transition: all 0.3s;
}

footer a:hover {
    color: white;
    padding-left: 8px;
}

.footer-legal {
    text-align: center;
    padding: 32px 0;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin: 0;
}

/* ============================================
   DISCLAIMER DE AUTORÍA
   ============================================ */

.author-disclaimer {
    background: linear-gradient(135deg, #FFF3E0, #FFE0B2);
    border-top: 3px solid #FF9800;
    padding: 24px 20px;
    margin-top: 40px;
    text-align: center;
}

.author-disclaimer p {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    color: #5D4037;
    font-size: 14px;
    line-height: 1.8;
    text-align: center;
    display: block;
}

.author-disclaimer strong {
    color: #E65100;
    font-weight: 600;
}

.author-disclaimer i {
    margin-right: 8px;
    color: #FF9800;
}

/* ============================================
   WHATSAPP FLOTANTE
   ============================================ */

.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 40px;
    right: 40px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 40px;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.6);
    color: white;
}

/* ============================================
   COMPONENTES DE FRICCIÓN (10%)
   ============================================ */

/* Badge de fricción - Para mostrar limitaciones sutiles */
.friction-badge {
    display: inline-block;
    background-color: var(--color-friction-warning);
    color: var(--color-friction-warning-dark);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
}

/* Tiempos de espera en pasos */
.step-time {
    font-size: 13px;
    opacity: 0.85;
    font-weight: 400;
    margin-top: 8px;
    color: inherit;
}

/* Bloque de expectativas realistas */
.reality-check {
    background-color: #FFF9E6;
    border-left: 4px solid var(--color-friction-warning-border);
    padding: 24px 32px;
    margin: 32px auto;
    max-width: 900px;
    border-radius: 8px;
    text-align: left;
}

.reality-check h4 {
    color: var(--color-friction-emphasis);
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
}

.reality-check ul {
    margin: 16px 0 0 0;
    padding-left: 24px;
    color: #666;
    line-height: 1.8;
}

.reality-check ul li {
    margin-bottom: 12px;
}

.reality-check ul li:last-child {
    margin-bottom: 0;
}

.reality-check ul li strong {
    color: #333;
}

/* Testimonial realista con fricción */
.testimonial-card.realistic {
    border-left: 4px solid var(--color-friction-warning-border);
}

/* Stats de fricción */
.stat-card.friction .stat-number {
    color: var(--color-friction-emphasis);
}

.stat-sublabel {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

/* Banner de estado del sistema (opcional para páginas específicas) */
.system-status {
    background-color: #FFF9E6;
    border: 1px solid var(--color-friction-warning-border);
    border-radius: 8px;
    padding: 16px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.system-status i {
    color: var(--color-friction-emphasis);
    font-size: 24px;
}

.system-status-content h5 {
    margin: 0 0 4px 0;
    color: var(--color-friction-emphasis);
    font-size: 16px;
}

.system-status-content p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Lista de espera inline */
.wait-time {
    display: inline-block;
    background-color: #FFF3E0;
    color: var(--color-friction-emphasis);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

/* Disclaimer de priorización */
.priority-disclaimer {
    background-color: #FFF9E6;
    padding: 16px;
    border-radius: 6px;
    font-size: 14px;
    color: #666;
    margin-top: 16px;
}

.priority-disclaimer strong {
    color: var(--color-friction-emphasis);
}

/* ============================================
   UTILIDADES
   ============================================ */

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

@media (max-width: 991px) {
    .col-md-3,
    .col-md-4,
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .main-nav .container {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        padding: 12px 16px;
        border-bottom: 1px solid #E0E0E0;
    }
    
    .logo {
        font-size: 18px;
    }
    
    .logo .icon {
        font-size: 24px;
    }
    
    footer {
        padding: 40px 0 0;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 32px;
        bottom: 20px;
        right: 20px;
    }
    
    .author-disclaimer {
        padding: 20px 15px;
    }
    
    .author-disclaimer p {
        font-size: 13px;
        text-align: center;
    }
    
    /* Fricción responsive */
    .reality-check {
        padding: 20px 24px;
        margin: 24px 16px;
    }
    
    .reality-check h4 {
        font-size: 16px;
    }
    
    .reality-check ul {
        padding-left: 20px;
    }
    
    .friction-badge {
        font-size: 12px;
        padding: 3px 10px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .btn {
        display: block;
        width: 100%;
        margin-bottom: 12px;
    }
}

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

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

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

/* ============================================
   ESTADOS DE FOCUS
   ============================================ */

*:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .accessibility-bar,
    .main-nav,
    .whatsapp-float,
    footer,
    .friction-badge,
    .reality-check {
        display: none;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ============================================
   COMPONENTES ESPECÍFICOS
   ============================================ */

/* Alerts y Banners */
.alert {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-info {
    background-color: #E3F2FD;
    border-left-color: var(--color-primary);
    color: #0D47A1;
}

.alert-success {
    background-color: #E8F5E9;
    border-left-color: var(--color-secondary);
    color: #1B5E20;
}

.alert-warning {
    background-color: #FFF3E0;
    border-left-color: var(--color-accent);
    color: #E65100;
}

/* Cards */
.card {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.card-header {
    border-bottom: 2px solid #F5F5F5;
    padding-bottom: 16px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 1.5rem;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.card-body {
    color: #666;
    line-height: 1.8;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--color-primary);
    color: white;
}

.badge-success {
    background-color: var(--color-secondary);
    color: white;
}

.badge-warning {
    background-color: var(--color-accent);
    color: white;
}

/* Formularios */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E0E0E0;
    border-radius: 8px;
    font-size: 16px;
    font-family: 'Roboto', sans-serif;
    transition: all 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 114, 187, 0.1);
}

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

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
    padding-right: 40px;
}

/* Tablas */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E0E0E0;
}

th {
    background-color: #F5F5F5;
    font-weight: 600;
    color: #333;
}

tr:hover {
    background-color: #FAFAFA;
}

/* ============================================
   FIN DEL ARCHIVO
   ============================================ */
