/* ============================================================
   DONANTES PARAGUAY - Estilos Principales
   donantes.com.py
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
    --rojo: #c0392b;
    --rojo-hover: #a93226;
    --rojo-light: #fef2f0;
    --rojo-glow: rgba(192,57,43,.15);
    --azul: #2980b9;
    --azul-light: #ebf5fb;
    --verde: #27ae60;
    --verde-light: #e8f8f0;
    --gris-bg: #f8f9fa;
    --gris-text: #6c757d;
    --gris-border: #e9ecef;
    --oscuro: #2c3e50;
    --blanco: #ffffff;
    --font-heading: 'DM Sans', 'Segoe UI', sans-serif;
    --font-body: 'DM Sans', 'Segoe UI', sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
    --shadow-md: 0 4px 12px rgba(0,0,0,.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.1);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: .25s ease;
}

/* ---- Reset & Base ---- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--oscuro);
    background: var(--gris-bg);
    -webkit-font-smoothing: antialiased;
    line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--rojo); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rojo-hover); }

/* ---- Navbar ---- */
.navbar-donantes {
    background: var(--blanco);
    box-shadow: var(--shadow-sm);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1050;
}
.navbar-donantes .navbar-brand {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--rojo);
    display: flex; align-items: center; gap: .5rem;
}
.navbar-donantes .navbar-brand span { font-size: 1.6rem; }
.navbar-donantes .nav-link {
    color: var(--oscuro);
    font-weight: 500;
    padding: .5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.navbar-donantes .nav-link:hover,
.navbar-donantes .nav-link.active { color: var(--rojo); background: var(--rojo-light); }
.navbar-donantes .btn-register-nav {
    background: var(--rojo); color: #fff !important;
    border-radius: 50px; padding: .5rem 1.25rem !important;
    font-weight: 600;
}
.navbar-donantes .btn-register-nav:hover { background: var(--rojo-hover); }

/* ---- Hero Section ---- */
.hero-section {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 40%, #c0392b 100%);
    color: #fff;
    padding: 4rem 0 3.5rem;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: '';
    position: absolute; top: -50%; right: -10%;
    width: 500px; height: 500px;
    background: rgba(255,255,255,.04);
    border-radius: 50%;
}
.hero-section::after {
    content: '';
    position: absolute; bottom: -30%; left: -5%;
    width: 350px; height: 350px;
    background: rgba(255,255,255,.03);
    border-radius: 50%;
}
.hero-section h1 {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.hero-section p.lead { font-size: 1.15rem; opacity: .92; margin-bottom: 1.5rem; }
.hero-section .btn-hero {
    padding: .85rem 2rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all var(--transition);
}
.hero-section .btn-hero-primary {
    background: #fff; color: var(--rojo);
}
.hero-section .btn-hero-primary:hover { background: #f8f8f8; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.hero-section .btn-hero-outline {
    background: transparent; color: #fff; border-color: rgba(255,255,255,.5);
}
.hero-section .btn-hero-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
@media (max-width: 768px) {
    .hero-section { padding: 2.5rem 0 2rem; }
    .hero-section h1 { font-size: 1.75rem; }
    .hero-section .btn-hero { width: 100%; margin-bottom: .75rem; }
}

/* ---- Cards ---- */
.card-donantes {
    background: var(--blanco);
    border: 1px solid var(--gris-border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    height: 100%;
}
.card-donantes:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-donantes .card-icon {
    width: 56px; height: 56px;
    background: var(--rojo-light);
    color: var(--rojo);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.card-donantes h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.card-donantes p { color: var(--gris-text); font-size: .95rem; margin-bottom: 0; }

/* ---- Stats Section ---- */
.stats-section { padding: 3rem 0; }
.stat-card {
    background: var(--blanco);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gris-border);
}
.stat-card .stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--rojo);
    line-height: 1;
}
.stat-card .stat-label {
    font-size: .85rem;
    color: var(--gris-text);
    margin-top: .35rem;
    font-weight: 500;
}

/* ---- Blood Type Grid ---- */
.blood-type-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px; height: 60px;
    border-radius: 50%;
    font-weight: 800;
    font-size: 1.1rem;
    border: 3px solid var(--rojo);
    color: var(--rojo);
    background: var(--blanco);
    transition: all var(--transition);
}
.blood-type-badge:hover,
.blood-type-badge.active {
    background: var(--rojo);
    color: #fff;
}
.blood-grid-item { text-align: center; }
.blood-grid-item small { display: block; margin-top: .35rem; color: var(--gris-text); font-size: .8rem; }

/* ---- Section Titles ---- */
.section-title {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.75rem;
    color: var(--oscuro);
    margin-bottom: .5rem;
}
.section-subtitle {
    color: var(--gris-text);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

/* ---- Forms ---- */
.form-donantes .form-label {
    font-weight: 600;
    font-size: .9rem;
    color: var(--oscuro);
    margin-bottom: .35rem;
}
.form-donantes .form-control,
.form-donantes .form-select {
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--gris-border);
    padding: .7rem 1rem;
    font-size: .95rem;
    transition: all var(--transition);
}
.form-donantes .form-control:focus,
.form-donantes .form-select:focus {
    border-color: var(--rojo);
    box-shadow: 0 0 0 3px var(--rojo-glow);
}
.form-donantes .form-text { font-size: .82rem; color: var(--gris-text); }

/* ---- Buttons ---- */
.btn-donantes {
    background: var(--rojo);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: .75rem 2rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all var(--transition);
    cursor: pointer;
}
.btn-donantes:hover { background: var(--rojo-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-donantes:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-donantes-outline {
    background: transparent;
    color: var(--rojo);
    border: 2px solid var(--rojo);
    border-radius: 50px;
    padding: .7rem 1.75rem;
    font-weight: 700;
    transition: all var(--transition);
}
.btn-donantes-outline:hover { background: var(--rojo); color: #fff; }
.btn-google {
    background: #fff;
    color: #333;
    border: 1.5px solid #ddd;
    border-radius: var(--radius-sm);
    padding: .7rem 1.5rem;
    font-weight: 600;
    display: flex; align-items: center; justify-content: center; gap: .5rem;
    width: 100%;
    transition: all var(--transition);
}
.btn-google:hover { background: #f8f8f8; border-color: #ccc; color: #333; }
.btn-google img { width: 20px; height: 20px; }

/* ---- Alerts / Messages ---- */
.alert-donantes {
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    border: none;
    font-size: .95rem;
    display: flex; align-items: flex-start; gap: .75rem;
}
.alert-donantes.alert-info { background: var(--azul-light); color: var(--azul); }
.alert-donantes.alert-success { background: var(--verde-light); color: var(--verde); }
.alert-donantes.alert-danger { background: var(--rojo-light); color: var(--rojo); }

/* ---- Medical Disclaimer ---- */
.medical-disclaimer {
    background: linear-gradient(135deg, var(--azul-light), #f0f8ff);
    border-left: 4px solid var(--azul);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-size: .92rem;
    color: #333;
}
.medical-disclaimer strong { color: var(--azul); }

/* ---- Request Cards ---- */
.request-card {
    background: var(--blanco);
    border: 1px solid var(--gris-border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
    transition: all var(--transition);
}
.request-card:hover { box-shadow: var(--shadow-md); }
.request-card .blood-badge-sm {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--rojo);
    color: #fff;
    font-weight: 800;
    font-size: .85rem;
    flex-shrink: 0;
}

/* ---- Panel / Dashboard ---- */
.panel-sidebar {
    background: var(--blanco);
    border-radius: var(--radius);
    border: 1px solid var(--gris-border);
    overflow: hidden;
}
.panel-sidebar .nav-link {
    padding: .85rem 1.25rem;
    color: var(--oscuro);
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all var(--transition);
}
.panel-sidebar .nav-link:hover { background: var(--gris-bg); color: var(--rojo); }
.panel-sidebar .nav-link.active { border-left-color: var(--rojo); color: var(--rojo); background: var(--rojo-light); }
.panel-card {
    background: var(--blanco);
    border-radius: var(--radius);
    border: 1px solid var(--gris-border);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}

/* ---- FAQ ---- */
.faq-item {
    background: var(--blanco);
    border: 1px solid var(--gris-border);
    border-radius: var(--radius-sm);
    margin-bottom: .75rem;
    overflow: hidden;
}
.faq-item .accordion-button {
    font-weight: 600;
    color: var(--oscuro);
    background: var(--blanco);
    border: none;
    box-shadow: none !important;
}
.faq-item .accordion-button:not(.collapsed) { color: var(--rojo); background: var(--rojo-light); }

/* ---- Footer ---- */
.footer-donantes {
    background: var(--oscuro);
    color: rgba(255,255,255,.7);
    padding: 2.5rem 0 1.5rem;
    font-size: .9rem;
}
.footer-donantes h5 { color: #fff; font-weight: 700; font-size: 1rem; margin-bottom: .75rem; }
.footer-donantes a { color: rgba(255,255,255,.7); }
.footer-donantes a:hover { color: #fff; }
.footer-donantes .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 1.5rem;
    padding-top: 1rem;
    text-align: center;
    font-size: .82rem;
}
.footer-donantes .footer-bottom a { color: rgba(255,255,255,.5); }

/* ---- Response Buttons (Alert Response Page) ---- */
.response-btn {
    display: flex;
    align-items: center;
    gap: .75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid var(--gris-border);
    border-radius: var(--radius-sm);
    background: var(--blanco);
    cursor: pointer;
    transition: all var(--transition);
    margin-bottom: .75rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--oscuro);
}
.response-btn:hover { border-color: var(--rojo); background: var(--rojo-light); }
.response-btn.btn-positive { border-color: var(--verde); }
.response-btn.btn-positive:hover { background: var(--verde-light); }
.response-btn .response-icon { font-size: 1.5rem; }

/* ---- Compatibility Table ---- */
.compat-table th { background: var(--rojo-light); color: var(--rojo); font-weight: 700; text-align: center; }
.compat-table td { text-align: center; vertical-align: middle; }
.compat-check { color: var(--verde); font-weight: 700; font-size: 1.2rem; }
.compat-no { color: #ddd; }

/* ---- Utilities ---- */
.text-rojo { color: var(--rojo) !important; }
.bg-rojo-light { background: var(--rojo-light) !important; }
.border-rojo { border-color: var(--rojo) !important; }
.rounded-xl { border-radius: var(--radius) !important; }
.fw-800 { font-weight: 800 !important; }
.divider { width: 60px; height: 4px; background: var(--rojo); border-radius: 2px; margin: .75rem 0 1.5rem; }
.divider-center { margin-left: auto; margin-right: auto; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gris-bg); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* ---- Animations ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease forwards; }
.fade-in-up-d1 { animation-delay: .1s; opacity: 0; }
.fade-in-up-d2 { animation-delay: .2s; opacity: 0; }
.fade-in-up-d3 { animation-delay: .3s; opacity: 0; }

/* ---- Print ---- */
@media print {
    .navbar-donantes, .footer-donantes, .btn { display: none !important; }
}
