/* Custom styles for Partido Azul */

:root {
    --azul-primary: #0066cc;
    --azul-secondary: #004499;
    --azul-light: #e6f2ff;
    --azul-dark: #003366;
    --success-custom: #28a745;
    --warning-custom: #ffc107;
    --danger-custom: #dc3545;
    --info-custom: #17a2b8;
}

/* Global styles */
body {
    padding-top: 68px; /* Navbar más compacto */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Custom button styles */
.btn-primary {
    background-color: var(--azul-primary);
    border-color: var(--azul-primary);
}

.btn-primary:hover {
    background-color: var(--azul-secondary);
    border-color: var(--azul-secondary);
}

.btn-outline-primary {
    color: var(--azul-primary);
    border-color: var(--azul-primary);
}

.btn-outline-primary:hover {
    background-color: var(--azul-primary);
    border-color: var(--azul-primary);
}

/* Text colors */
.text-primary {
    color: var(--azul-primary) !important;
}

/* Background colors */
.bg-primary {
    background-color: var(--azul-primary) !important;
}

/* Navbar styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.125rem; /* antes 1.5rem */
    line-height: 1;
}

.navbar-brand .brand-logo {
    height: 28px; /* tamaño de logo más discreto */
    width: auto;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.5rem 0.75rem; /* más compacto */
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--azul-primary) !important;
}

/* Dropdown menu smaller */
.navbar .dropdown-menu {
    font-size: 0.95rem;
}

/* Search in navbar */
.navbar .navbar-search .form-control {
    max-width: 160px;
}

.navbar .btn-sm {
    padding: 0.35rem 0.6rem;
}

/* Hero section */
.hero-section {
    background: linear-gradient(135deg, var(--azul-primary) 0%, var(--azul-secondary) 100%);
    position: relative;
    overflow: hidden; /* restaurado: sin contenido flotando fuera */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="25" cy="75" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="25" r="1" fill="white" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

/* (El logo flotante fue retirado por solicitud) */

/* Hero CTAs */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem; /* separación uniforme entre botones */
}

.hero-actions .btn {
    border-radius: 999px; /* estilo pill profesional */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.hero-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.hero-actions .btn-outline-light {
    border-width: 2px;
}

.hero-actions .btn-warning {
    border: 0;
    color: #1a1a1a;
}

/* Card styles */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}

.card-img-top {
    border-radius: 12px 12px 0 0;
}

/* Feature icons */
.feature-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

/* Form styles */
.form-control:focus {
    border-color: var(--azul-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-select:focus {
    border-color: var(--azul-primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.form-check-input:checked {
    background-color: var(--azul-primary);
    border-color: var(--azul-primary);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Badge styles */
.badge {
    font-size: 0.75em;
    font-weight: 500;
}

/* Toast notifications */
.toast {
    max-width: 350px;
}

.toast-header {
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Back to top button */
#btn-back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

#btn-back-to-top:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Footer styles */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--azul-primary) !important;
}

.social-links a {
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-2px);
    color: var(--azul-primary) !important;
}

/* Page header */
.page-header {
    background: linear-gradient(135deg, var(--azul-primary) 0%, var(--azul-secondary) 100%);
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    .hero-section {
        padding: 3rem 0;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .hero-actions .btn {
        margin-bottom: 0.5rem;
        display: block;
        width: 100%;
    }
    
    .hero-actions .btn:last-child {
        margin-bottom: 0;
    }
}

@media (max-width: 576px) {
    .hero-actions .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
    }
    
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}

/* Animation utilities */
.animate-fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-slide-up {
    animation: slideUp 0.8s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ccc;
    border-top: 2px solid var(--azul-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Print styles */
@media print {
    .navbar,
    .footer,
    .btn,
    #btn-back-to-top {
        display: none !important;
    }
    
    body {
        padding-top: 0;
    }
    
    .main-content {
        min-height: auto;
    }
}