/* ============================================
   Club Canino Bulls Bolivia - Estilo Principal
   ============================================ */

:root {
    --primary: #000000;
    --secondary: #0d0d0d;
    --accent: #e94560;
    --gold: #d4a017;
    --light: #f8f8f8;
    --dark: #000000;
    --gray: #999999;
    --success: #28a745;
    --danger: #dc3545;
    --info: #17a2b8;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-hover: 0 5px 25px rgba(0,0,0,0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
    background: var(--light);
    color: #777777;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}
a:hover { color: var(--primary); }

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

/* ===== HEADER / NAVBAR ===== */
.header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
}
.navbar-brand:hover { color: var(--gold); }
.navbar-brand img { height: 32px; border-radius: 4px; }

.navbar-menu {
    display: flex;
    list-style: none;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.navbar-menu li a {
    color: rgba(255,255,255,0.85);
    padding: 6px 10px;
    border-radius: var(--radius);
    font-weight: 500;
    font-size: 0.82rem;
    transition: var(--transition);
    white-space: nowrap;
}
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar-menu li a {
        padding: 6px 8px;
        font-size: 0.75rem;
    }
}
.navbar-menu li a:hover,
.navbar-menu li a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ===== HERO SECTION ===== */
.hero {
    background: url('../img/portada/portada1.jpeg') no-repeat center center / cover;
    background-color: #000000;
    background-attachment: fixed;
    color: #fff;
    padding: 0 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%);
}
@media (max-width: 768px) {
    .hero {
        min-height: 90vh;
        background-attachment: scroll;
    }
}
.hero h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 15px;
    position: relative;
    letter-spacing: 1px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.8), 0 2px 10px rgba(0,0,0,0.5);
}
.hero p {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    opacity: 0.95;
    max-width: 640px;
    margin: 0 auto 30px;
    position: relative;
    text-shadow: 0 2px 20px rgba(0,0,0,0.7);
    line-height: 1.7;
}
.hero .hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    position: relative;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover {
    background: #d63851;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}
.btn-secondary {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.3);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
}
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #218838; color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #c82333; color: #fff; }
.btn-info { background: var(--info); color: #fff; }
.btn-info:hover { background: #138496; color: #fff; }
.btn-gold { background: var(--gold); color: var(--primary); }
.btn-gold:hover { background: #d4951f; color: var(--primary); }
.btn-sm { padding: 6px 16px; font-size: 0.85rem; }
.btn-block { display: block; width: 100%; }

/* ===== CARDS ===== */
.card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}
.card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
}
.card-img {
    width: 100%;
    height: 220px;
    object-fit: contain;
    background: #f5f5f5;
}
.kennel-card-logo {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: #fff;
    padding: 20px;
    transition: transform 0.3s ease;
}
.kennel-card-logo:hover {
    transform: scale(1.05);
}
.kennel-card-placeholder {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #fff;
}
.card-body {
    padding: 20px;
}
.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 8px;
}
.card-text {
    color: var(--gray);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}
.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}
.section-subtitle {
    text-align: center;
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 1.05rem;
}
.section-dark {
    background: var(--primary);
    color: #fff;
}
.section-dark .section-title { color: #fff; }
.section-dark .section-subtitle { color: rgba(255,255,255,0.7); }

/* ===== GRIDS ===== */
.grid {
    display: grid;
    gap: 25px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 600px) {
    .grid {
        gap: 15px;
    }
}

/* ===== FORMS ===== */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--primary);
    font-size: 0.9rem;
}
.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #e1e1e1;
    border-radius: var(--radius);
    font-size: 0.95rem;
    transition: var(--transition);
    background: #fff;
    color: #555555;
}
.form-control:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233,69,96,0.15);
}
textarea.form-control {
    resize: vertical;
    min-height: 100px;
}
select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px 12px;
}

/* ===== ALERTS ===== */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-weight: 500;
}
.alert-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.alert-danger { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.alert-info { background: #d1ecf1; color: #0c5460; border: 1px solid #bee5eb; }

/* ===== TABLE ===== */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}
table thead {
    background: var(--primary);
    color: #fff;
}
table th, table td {
    padding: 12px 15px;
    text-align: left;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    table th, table td {
        padding: 8px 10px;
        font-size: 0.82rem;
    }
}
@media (max-width: 480px) {
    table th, table td {
        padding: 6px 8px;
        font-size: 0.78rem;
    }
}
table th { font-weight: 600; }
table tbody tr {
    border-bottom: 1px solid #eee;
    transition: var(--transition);
}
table tbody tr:hover { background: #f8f9fa; }
table tbody tr:nth-child(even) { background: #fafafa; }

/* ===== BADGE ===== */
.badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-success { background: #d4edda; color: #155724; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-primary { background: #cce5ff; color: #004085; }

/* ===== LOGIN PAGE ===== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #1a1a2e 0%, #16213e 40%, #0f3460 80%, #1a1a2e 100%);
    position: relative;
}
.login-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top right, rgba(233,69,96,0.08) 0%, transparent 60%),
                radial-gradient(ellipse at bottom left, rgba(212,160,23,0.06) 0%, transparent 50%);
}
.login-card {
    background: #fff;
    border-radius: 16px;
    padding: 45px 40px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
    position: relative;
    animation: loginFadeIn 0.5s ease;
}
@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--gold), var(--accent));
    border-radius: 16px 16px 0 0;
}
.login-card h2 {
    text-align: center;
    color: #1a1a2e;
    margin-bottom: 8px;
    font-size: 1.5rem;
}
.login-card p {
    text-align: center;
    color: var(--gray);
    margin-bottom: 25px;
    font-size: 0.9rem;
}
.login-logo {
    text-align: center;
    margin-bottom: 25px;
}
.login-logo h1 {
    font-size: 1.6rem;
    color: #1a1a2e;
    font-weight: 800;
}

/* ===== WHATSAPP BUTTON OVERLAY ===== */
.dog-card-img-wrapper {
    position: relative;
    overflow: hidden;
}
.dog-card-img-wrapper .card-img {
    display: block;
}
.btn-whatsapp-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(37, 211, 102, 0.92);
    color: #fff;
    text-align: center;
    padding: 10px 12px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transform: translateY(100%);
    transition: transform 0.3s ease, background 0.2s;
}
.dog-card-img-wrapper:hover .btn-whatsapp-overlay {
    transform: translateY(0);
}
.btn-whatsapp-overlay:hover {
    background: #1da851;
    color: #fff;
}
.btn-whatsapp-overlay::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='%23fff' d='M380.9 97.1C339 55.1 283.2 32 223.9 32c-122.4 0-222 99.6-222 222 0 39.1 10.2 77.3 29.6 111L0 480l117.7-30.9c32.4 17.7 68.9 27 106.1 27h.1c122.3 0 224.1-99.6 224.1-222 0-59.3-25.2-115-67.1-157zm-157 341.6c-33.2 0-65.7-8.9-94-25.7l-6.7-4-69.8 18.3L72 359.2l-4.4-7c-18.5-29.4-28.2-63.3-28.2-98.2 0-101.7 82.8-184.5 184.6-184.5 49.3 0 95.6 19.2 130.4 54.1 34.8 34.9 56.2 81.2 56.1 130.5 0 101.8-84.9 184.6-186.6 184.6zm101.2-138.2c-5.5-2.8-32.8-16.2-37.9-18-5.1-1.9-8.8-2.8-12.5 2.8-3.7 5.6-14.3 18-17.6 21.8-3.2 3.7-6.5 4.2-12 1.4-32.6-16.3-54-29.1-75.5-66-5.7-9.8 5.7-9.1 16.3-30.3 1.8-3.7.9-6.9-.5-9.7-1.4-2.8-12.5-30.1-17.1-41.2-4.5-10.8-9.1-9.3-12.5-9.5-3.2-.2-6.9-.2-10.6-.2-3.7 0-9.7 1.4-14.8 6.9-5.1 5.6-19.4 19-19.4 46.3 0 27.3 19.9 53.7 22.6 57.4 2.8 3.7 39.1 59.7 94.8 83.8 35.2 15.2 49 16.5 66.6 13.9 10.7-1.6 32.8-13.4 37.4-26.4 4.6-13 4.6-24.1 3.2-26.4-1.3-2.5-5-3.9-10.5-6.6z'/%3E%3C/svg%3E") no-repeat center / contain;
}
/* Also show button always on mobile (no hover) */
@media (max-width: 768px) {
    .btn-whatsapp-overlay {
        transform: translateY(0);
    }
}
/* Button variant for card-body fallback */
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25d366;
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}
.btn-whatsapp:hover {
    background: #1da851;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* ===== KENNEL PUBLIC PAGE ===== */
.kennel-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 40px 20px;
    text-align: center;
    position: relative;
}
.kennel-header .kennel-logo {
    width: auto;
    height: auto;
    max-width: 200px;
    max-height: 140px;
    object-fit: contain;
    border-radius: 8px;
    background: rgba(255,255,255,0.15);
    padding: 10px 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}
@media (max-width: 480px) {
    .kennel-header .kennel-logo {
        max-width: 140px;
        max-height: 100px;
        padding: 8px 10px;
    }
}
.kennel-nav {
    background: var(--secondary);
    padding: 12px 0;
}
.kennel-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 5px;
    flex-wrap: wrap;
}
.kennel-nav ul li a {
    color: rgba(255,255,255,0.85);
    padding: 8px 20px;
    border-radius: var(--radius);
    font-weight: 500;
}
.kennel-nav ul li a:hover,
.kennel-nav ul li a.active {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

/* ===== BREED TABS ===== */
.breed-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.breed-tab {
    padding: 10px 28px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 50px;
    background: transparent;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.breed-tab:hover {
    border-color: var(--accent);
    color: #fff;
}
.breed-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== GALLERY TABS ===== */
.gallery-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.gallery-tab {
    padding: 8px 24px;
    border: 2px solid #e1e1e1;
    border-radius: 50px;
    background: #fff;
    color: var(--gray);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}
.gallery-tab:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.gallery-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* ===== DOG GALLERY GRID ===== */
.dog-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}
.dog-gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #fff;
    box-shadow: var(--shadow);
    transition: var(--transition);
}
.dog-gallery-item:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}
.dog-gallery-link {
    display: block;
    cursor: pointer;
}
.dog-gallery-link img {
    width: 100%;
    height: 240px;
    object-fit: contain;
    background: #f5f5f5;
    display: block;
    transition: transform 0.3s ease;
}
.dog-gallery-item:hover .dog-gallery-link img {
    transform: scale(1.06);
}
.dog-gallery-link .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.85));
    color: #fff;
    padding: 30px 15px 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}
.dog-gallery-item:hover .overlay {
    transform: translateY(0);
}
.dog-gallery-link .overlay h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 3px;
}
.dog-gallery-link .overlay small {
    font-size: 0.8rem;
    opacity: 0.85;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background: #f0f0f0;
    transition: var(--transition);
}
.gallery-item:hover img {
    transform: scale(1.08);
}
.gallery-item .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: #fff;
    padding: 20px;
    transform: translateY(100%);
    transition: var(--transition);
}
.gallery-item:hover .overlay {
    transform: translateY(0);
}

/* ===== PEDIGREE ===== */
.pedigree-list {
    display: grid;
    gap: 20px;
}
.pedigree-item {
    background: #fff;
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border-left: 4px solid var(--gold);
}
.pedigree-item h4 { color: var(--primary); margin-bottom: 5px; }
.pedigree-item .meta {
    font-size: 0.85rem;
    color: var(--gray);
}

/* ===== DOG CARD ===== */
.dog-card .card-img {
    height: 250px;
}
.dog-card .dog-badge {
    position: absolute;
    top: 10px;
    right: 10px;
}
.dog-available {
    border: 3px solid var(--success);
}
.dog-gender {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.dog-gender.male { background: #cce5ff; color: #004085; }
.dog-gender.female { background: #f8d7da; color: #721c24; }

/* ===== DASHBOARD ===== */
.dashboard {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}
@media (max-width: 1024px) {
    .dashboard {
        grid-template-columns: 220px 1fr;
    }
}
@media (max-width: 992px) {
    .dashboard {
        grid-template-columns: 1fr;
    }
}
.dashboard-sidebar {
    background: var(--primary);
    color: #fff;
    padding: 20px 0;
    transition: transform 0.3s ease;
}
@media (max-width: 992px) {
    .dashboard-sidebar {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        height: 100vh;
        z-index: 1500;
        overflow-y: auto;
        transform: translateX(-100%);
        padding-top: 10px;
    }
    .dashboard-sidebar.active {
        transform: translateX(0);
    }
}
.dashboard-sidebar .sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 15px;
}
.dashboard-sidebar .sidebar-header h3 {
    font-size: 1.1rem;
}
.dashboard-sidebar .sidebar-header small {
    opacity: 0.7;
}
.sidebar-menu {
    list-style: none;
}
.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.7);
    padding: 12px 20px;
    transition: var(--transition);
    font-size: 0.9rem;
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.sidebar-menu li a .icon {
    width: 20px;
    text-align: center;
}
.sidebar-link-disabled {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.3);
    padding: 12px 20px;
    font-size: 0.9rem;
    cursor: not-allowed;
    pointer-events: none;
}
.subscription-block-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 40px 20px;
}
.subscription-block-overlay .block-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}
.subscription-block-overlay h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--danger);
}
.subscription-block-overlay p {
    max-width: 500px;
    margin-bottom: 20px;
    color: #666;
}
.dashboard-main {
    padding: 25px 30px;
    background: #f5f3f0;
}
@media (max-width: 768px) {
    .dashboard-main {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .dashboard-main {
        padding: 10px;
    }
}
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.dashboard-header h2 {
    color: var(--primary);
    font-size: 1.5rem;
}
@media (max-width: 480px) {
    .dashboard-header h2 {
        font-size: 1.2rem;
    }
}

/* ===== STATS ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 25px;
}
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.stat-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}
@media (max-width: 480px) {
    .stat-card {
        padding: 15px 10px;
    }
    .stat-card .stat-number {
        font-size: 1.5rem;
    }
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
}
.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.9rem;
    margin-top: 5px;
}

/* ===== MODAL ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    inset: 0;
    background: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}
.modal.active {
    display: flex;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--gray);
    background: none;
    border: none;
}
.modal-close:hover { color: var(--danger); }

/* ===== FOOTER ===== */
.footer {
    background: #fff;
    color: var(--gray);
    padding: 50px 0 25px;
    text-align: center;
    border-top: 3px solid var(--accent);
}
.footer h4 { color: var(--primary); margin-bottom: 10px; font-weight: 700; letter-spacing: 0.5px; }
.footer a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.footer a:hover { color: rgba(0,0,0,0.5); }
.footer p { color: var(--gray); margin-bottom: 6px; }
.footer-contact { margin-bottom: 15px; }
.footer-social {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.btn-social {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff !important;
    text-decoration: none;
    transition: opacity 0.2s;
}
.btn-social:hover { opacity: 0.85; color: #fff !important; }
.btn-social.facebook { background: #1877f2; }
.btn-social.instagram { background: #e4405f; }
.btn-social.youtube { background: #ff0000; }
.btn-social.tiktok { background: #111; }
.footer-bottom {
    border-top: 1px solid rgba(0,0,0,0.08);
    padding-top: 20px;
    margin-top: 20px;
    font-size: 0.85rem;
}
.footer-bottom p { color: var(--primary); }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--gray);
}
.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}
.empty-state p { font-size: 1.1rem; }

/* ===== FILE INPUT ===== */
.file-input-wrapper {
    position: relative;
    min-height: 50px;
}
.file-input-wrapper input[type="file"] {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    top: 0;
    left: 0;
}
.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    border: 2px dashed #ccc;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    color: var(--gray);
    font-weight: 500;
    min-height: 50px;
}
.file-input-label:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(233, 69, 96, 0.05);
}
.file-input-wrapper:has(input[type="file"]:hover) .file-input-label {
    border-color: var(--accent);
    color: var(--accent);
}
.img-preview {
    max-width: 150px;
    max-height: 150px;
    margin-top: 10px;
    border-radius: var(--radius);
}

/* ===== ASSOCIATIONS ===== */
.association-logo {
    width: auto;
    max-width: 160px;
    max-height: 100px;
    object-fit: contain;
    margin-bottom: 15px;
    filter: grayscale(0%);
    transition: filter 0.3s ease;
}
.association-logo:hover {
    filter: grayscale(0%);
}

/* ===== TOOLBAR ===== */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.toolbar .actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
@media (max-width: 480px) {
    .toolbar h3 {
        width: 100%;
    }
}

/* Sidebar toggle button */
.sidebar-toggle-btn {
    display: none;
}
@media (max-width: 992px) {
    .sidebar-toggle-btn {
        display: inline-block !important;
    }
}

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

/* Intermediate: 4-col -> 2-col, show sidebar toggle */
@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; }
    #sidebarToggle, #sidebarToggleUser { display: inline-block !important; }
}

/* Tablet: collapse grids, show mobile nav */
@media (max-width: 768px) {
    .navbar-toggle { display: block; }
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary);
        padding: 10px;
        box-shadow: var(--shadow);
    }
    .navbar-menu.active { display: flex; }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr !important;
    }

    .kennel-nav ul {
        flex-direction: column;
        align-items: center;
    }

    /* Fixed image heights adjust on mobile */
    .card-img { height: 160px; }
    .kennel-card-logo { height: 120px; }
    .dog-gallery-link img { height: 180px; }
    .gallery-item img { height: 200px; }
    .dog-card .card-img { height: 180px; }

    /* Modal padding tighter */
    .modal-content { padding: 20px; }
    .modal { max-width: 95vw; margin: 5% auto; }

    .login-card { padding: 30px 20px; }

    /* Dashboard header button wrap */
    .dashboard-header { flex-wrap: wrap; gap: 8px; }
    .dashboard-header h2 { width: 100%; }

    /* Icon row mobile */
    .grid-icon-row { grid-template-columns: 1fr; }


}

/* Fix table-responsive for all tables */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 20px;
}
table { min-width: 0; }
.table-responsive table { min-width: 0; }
.table-responsive.wide table { min-width: 800px; }

/* Small phones */
@media (max-width: 480px) {
    .section-title { font-size: 1.5rem; }
    .card-body { padding: 15px; }
    .login-card { padding: 20px; }
    .modal-content { padding: 15px; }
    .stats-grid { grid-template-columns: 1fr; }
    .hero h1 { font-size: 1.8rem; }
    .kennel-header h1 { font-size: 1.5rem; }
    .container { padding: 0 12px; }
}

/* Sidebar backdrop overlay */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1499;
}

/* Admin card - reusable card for admin forms/sections */
.admin-card {
    background: #fff;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 25px;
}
@media (max-width: 768px) {
    .admin-card {
        padding: 15px;
    }
}
@media (max-width: 480px) {
    .admin-card {
        padding: 12px;
    }
}

/* Grid with icon column */
.grid-icon-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 8px;
    margin-bottom: 6px;
}

/* ===== SHARE ===== */
.share-btn-copy {
    position: relative;
}
.share-btn-copy.copied::after {
    content: '✓ Copiado';
    position: absolute;
    top: -28px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}
.lightbox.active {
    display: flex;
}
.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 5px 40px rgba(0,0,0,0.5);
}
.lightbox .lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.8;
}
.lightbox .lightbox-close:hover {
    opacity: 1;
}
