/* =============================================================================
   Tarjetas Paraguay - Public CSS
   Sobre Bootstrap 5.3 - solo overrides y componentes custom
   ============================================================================= */

:root {
    --tc-primary: #1565C0;
    --tc-primary-dark: #0D47A1;
    --tc-primary-light: #E3F2FD;
    --tc-success: #2E7D32;
    --tc-warning: #ED6C02;
    --tc-danger: #C62828;
    --tc-text: #1a202c;
    --tc-text-muted: #64748b;
    --tc-border: #e2e8f0;
    --tc-bg-soft: #f8fafc;
    --tc-radius: 0.6rem;
    --tc-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --tc-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

* { box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Roboto", sans-serif;
    color: var(--tc-text);
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--tc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.btn-primary {
    --bs-btn-bg: var(--tc-primary);
    --bs-btn-border-color: var(--tc-primary);
    --bs-btn-hover-bg: var(--tc-primary-dark);
    --bs-btn-hover-border-color: var(--tc-primary-dark);
    --bs-btn-active-bg: var(--tc-primary-dark);
}
.btn-outline-primary {
    --bs-btn-color: var(--tc-primary);
    --bs-btn-border-color: var(--tc-primary);
    --bs-btn-hover-bg: var(--tc-primary);
    --bs-btn-hover-border-color: var(--tc-primary);
}

/* =============================================================================
   STICKY DISCLAIMER (header bar)
   ============================================================================= */
.tc-disclaimer-sticky {
    background: #FFF8E1;
    border-bottom: 1px solid #FFECB3;
    color: #5D4037;
    font-size: 0.78rem;
    text-align: center;
    padding: 0.45rem 1rem;
    line-height: 1.3;
}
.tc-disclaimer-sticky a {
    color: #5D4037;
    text-decoration: underline;
    font-weight: 600;
}

/* =============================================================================
   HEADER
   ============================================================================= */
.tc-header {
    background: #fff;
    border-bottom: 1px solid var(--tc-border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--tc-shadow-sm);
}
.tc-header .navbar-brand {
    color: var(--tc-primary);
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.tc-logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--tc-primary) 0%, var(--tc-primary-dark) 100%);
    border-radius: 10px;
    color: #fff;
    font-size: 1.2rem;
}

/* =============================================================================
   MAIN
   ============================================================================= */
.tc-main {
    min-height: 60vh;
}

/* =============================================================================
   HERO
   ============================================================================= */
.tc-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #e8f1fc 100%);
    padding: 4rem 0;
    border-bottom: 1px solid var(--tc-border);
}
.tc-hero__pill {
    display: inline-block;
    background: var(--tc-primary-light);
    color: var(--tc-primary-dark);
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}
.tc-hero__title {
    font-size: clamp(1.75rem, 4vw, 2.6rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    color: var(--tc-text);
}
.tc-hero__title strong { color: var(--tc-primary); }
.tc-hero__lead {
    font-size: 1.05rem;
    color: var(--tc-text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.tc-hero__visual {
    position: relative;
    height: 300px;
}
.tc-hero__card {
    position: absolute;
    width: 280px;
    height: 175px;
    border-radius: 14px;
    box-shadow: 0 20px 40px rgba(21, 101, 192, 0.18);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.tc-hero__card--front {
    background: linear-gradient(135deg, #1565C0 0%, #0D47A1 100%);
    color: white;
    top: 30px;
    right: 0;
    transform: rotate(-6deg);
    z-index: 2;
}
.tc-hero__card--front strong { font-size: 1.05rem; letter-spacing: 2px; }
.tc-hero__card--back {
    background: linear-gradient(135deg, #ED6C02 0%, #BF360C 100%);
    top: 80px;
    right: 60px;
    transform: rotate(6deg);
    z-index: 1;
    opacity: 0.9;
}

/* =============================================================================
   FEATURES
   ============================================================================= */
.tc-feature {
    background: #fff;
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 1.5rem;
    text-align: center;
    height: 100%;
    transition: all 0.2s ease;
}
.tc-feature:hover {
    border-color: var(--tc-primary);
    box-shadow: var(--tc-shadow);
    transform: translateY(-2px);
}
.tc-feature__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    background: var(--tc-primary-light);
    color: var(--tc-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}
.tc-feature__title {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--tc-text);
}
.tc-feature p {
    color: var(--tc-text-muted);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

/* =============================================================================
   DISCLAIMER COMPONENT
   ============================================================================= */
.tc-disclaimer { font-size: 0.92rem; line-height: 1.5; }

.tc-disclaimer--box {
    background: #FFFBF0;
    border: 1px solid #F8E0A1;
    border-left: 4px solid #E8A33B;
    border-radius: var(--tc-radius);
    padding: 1rem 1.25rem;
    color: #5D4037;
}
.tc-disclaimer--box .tc-disclaimer__title {
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #BF6E00;
}

.tc-disclaimer--inline {
    color: var(--tc-text-muted);
    font-size: 0.85rem;
    background: var(--tc-bg-soft);
    padding: 0.5rem 0.8rem;
    border-radius: var(--tc-radius);
    margin: 0.5rem 0;
}

.tc-disclaimer--footer {
    color: var(--tc-text-muted);
    font-size: 0.82rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* =============================================================================
   FOOTER
   ============================================================================= */
.tc-footer {
    background: var(--tc-bg-soft);
    border-top: 1px solid var(--tc-border);
    padding: 3rem 0 2rem;
    margin-top: 4rem;
}
.tc-footer__title {
    font-weight: 700;
    color: var(--tc-primary);
    margin-bottom: 1rem;
}
.tc-footer__subtitle {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    color: var(--tc-text);
    margin-bottom: 0.75rem;
}
.tc-footer ul li {
    margin-bottom: 0.4rem;
}

/* =============================================================================
   LEGAL PAGE
   ============================================================================= */
.tc-legal-content {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--tc-text);
}
.tc-legal-content h2 { font-size: 1.4rem; margin-top: 2rem; }
.tc-legal-content p { margin-bottom: 1rem; }
.tc-legal-content .lead { font-size: 1.1rem; color: var(--tc-text); }

.tc-sidebar-card {
    background: var(--tc-bg-soft);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius);
    padding: 1.25rem;
    position: sticky;
    top: 80px;
}
.tc-sidebar-card h5 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.tc-sidebar-card ul li { margin-bottom: 0.4rem; }

/* =============================================================================
   ALERTS
   ============================================================================= */
.alert { border-radius: var(--tc-radius); }

/* =============================================================================
   RESPONSIVE
   ============================================================================= */
@media (max-width: 768px) {
    .tc-hero { padding: 2.5rem 0; }
    .tc-hero__title { font-size: 1.7rem; }
    .tc-disclaimer-sticky { font-size: 0.72rem; padding: 0.4rem 0.5rem; }
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
