/* ============================================================
   Piscinas.com.py — Estilos Principales
   ============================================================ */

:root {
    --primary: #0056b3;
    --primary-dark: #003d80;
    --primary-light: #00a8e8;
    --accent: #ffc107;
    --success: #28a745;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Nunito', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
    background: #f8f9fa;
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
}

/* Navbar */
.bg-primary-custom {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%) !important;
}
.navbar-brand .brand-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: 0.5px;
}
.navbar-brand .brand-text small {
    font-weight: 400;
    opacity: 0.8;
}

/* Cards */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12) !important;
}

/* Hero */
.hero-section {
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Stars */
.stars .bi {
    font-size: 0.85rem;
}

/* Badge plan */
.badge-plan {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Company profile */
.company-description img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* Banner ad */
.banner-ad {
    background: #f8f9fa;
    border-radius: 0.5rem;
    padding: 0.5rem;
}
.banner-ad img {
    max-width: 100%;
    height: auto;
}

/* Related companies sidebar */
.related-companies .list-group-item {
    transition: background 0.2s;
}
.related-companies .list-group-item:hover {
    background: #f0f4ff;
}

/* Pagination */
.pagination .page-link {
    color: var(--primary);
    border-radius: 0.25rem;
    margin: 0 2px;
}
.pagination .page-item.active .page-link {
    background: var(--primary);
    border-color: var(--primary);
}

/* Forms */
.form-control:focus, .form-select:focus {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 232, 0.15);
}

/* Panel sidebar */
.panel-sidebar .nav-link {
    color: #555;
    border-radius: 0.5rem;
    padding: 0.6rem 1rem;
    margin-bottom: 2px;
    transition: all 0.2s;
}
.panel-sidebar .nav-link:hover,
.panel-sidebar .nav-link.active {
    background: var(--primary);
    color: #fff;
}
.panel-sidebar .nav-link i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* Stats cards */
.stat-card {
    border-radius: 0.75rem;
    border: none;
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

/* Footer */
footer a:hover {
    color: var(--primary-light) !important;
}

/* Responsive */
@media (max-width: 767.98px) {
    .hero-section h1 { font-size: 1.8rem; }
    .navbar-brand .brand-text { font-size: 1.1rem; }
    .company-cover { height: 120px !important; }
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.4s ease-out; }

/* Gradient backgrounds */
.bg-gradient-light {
    background: linear-gradient(135deg, #e8f4fd 0%, #f0f7ff 100%);
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }

/* reCAPTCHA notice */
.recaptcha-notice {
    padding: 0.5rem 0;
}
.recaptcha-notice a {
    text-decoration: underline;
}
.recaptcha-notice a:hover {
    color: var(--primary) !important;
}
