:root {
    --primary: #2E2473;
    --secondary: #F27405;
    --primary-light: #4A3FA0;
    --secondary-light: #FF8C33;
    --dark: #1a1a2e;
    --light: #f8f9fa;
    --gray: #6c757d;
    --white: #ffffff;
    --bg-body: #f8f9fa;
    --bg-card: #ffffff;
    --text-body: #333;
    --text-muted: #6c757d;
    --border-light: #e0e0e0;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --primary: #6C5CE7;
    --primary-light: #8B7CF7;
    --secondary: #FF8C33;
    --secondary-light: #FFA555;
    --dark: #000000;
    --light: #0a0a0a;
    --gray: #888899;
    --white: #111111;
    --bg-body: #000000;
    --bg-card: #0d0d0d;
    --text-body: #d4d4dc;
    --text-muted: #666680;
    --border-light: #1a1a1a;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.7);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--text-body);
    background-color: var(--bg-body);
    overflow-x: hidden;
    padding-top: 76px;
}

::selection {
    background: var(--secondary);
    color: var(--white);
}

.navbar {
    background: var(--bg-card) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    padding: 0.5rem 0;
    transition: var(--transition);
}

.theme-toggle {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--primary);
    color: var(--white);
}

[data-theme="dark"] .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%236C5CE7' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-brand img {
    height: 50px;
    transition: var(--transition);
}

.navbar .nav-link {
    color: var(--primary) !important;
    font-weight: 600;
    padding: 0.8rem 1rem !important;
    position: relative;
    transition: var(--transition);
    font-size: 0.9rem;
}

.navbar .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 70%;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: translateX(-50%) scaleX(1);
}

.navbar .nav-link:hover {
    color: var(--secondary) !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%232E2473' stroke-linecap='round' stroke-miterlimit='10' stroke-width='3' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--secondary) 100%);
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 4rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    animation: heroGlow 15s ease-in-out infinite;
}

@keyframes heroGlow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(5%, 5%); }
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2rem;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: var(--white);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 0 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero h1 {
    color: var(--white);
    font-weight: 800;
    font-size: 2.5rem;
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

.section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    color: var(--primary);
    font-weight: 800;
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.dropdown-menu {
    background: var(--bg-card) !important;
    border-color: var(--border-light) !important;
}

.dropdown-item {
    color: var(--text-body) !important;
}

.dropdown-item:hover {
    background: var(--bg-body) !important;
    color: var(--primary) !important;
}

[data-theme="dark"] .dropdown-menu {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] .table {
    color: var(--text-body);
    --bs-table-bg: transparent;
    --bs-table-hover-bg: rgba(255,255,255,0.03);
}

[data-theme="dark"] .table thead {
    background: var(--bg-body) !important;
}

[data-theme="dark"] .table thead th {
    color: var(--text-body);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-card);
    color: var(--text-body);
    border-color: var(--border-light);
}

[data-theme="dark"] .btn-close {
    filter: invert(0.8);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: var(--bg-body);
    color: var(--text-body);
    border-color: var(--border-light);
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    background: var(--bg-body);
    color: var(--text-body);
}

[data-theme="dark"] .alert {
    background: var(--bg-card);
    color: var(--text-body);
    border-color: var(--border-light);
}

.card-custom {
    background: var(--bg-card);
    border: none;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

[data-theme="dark"] .card-custom {
    border: 1px solid var(--border-light);
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-custom .card-body {
    padding: 1.8rem;
}

.card-custom .card-img-top {
    height: 200px;
    object-fit: cover;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(46, 36, 115, 0.3);
    color: var(--white);
}

.btn-secondary-custom {
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-secondary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(242, 116, 5, 0.3);
    color: var(--white);
}

.btn-outline-custom {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    padding: 0.7rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    display: inline-block;
}

.btn-outline-custom:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
}

.history-section {
    background: var(--bg-card);
}

.history-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-body);
}

.history-content p {
    margin-bottom: 1.2rem;
}

.scouting-section {
    background: linear-gradient(135deg, var(--bg-body) 0%, var(--bg-card) 100%);
}

.scouting-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.scouting-item {
    background: var(--bg-card);
    padding: 1.8rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    border-top: 4px solid var(--secondary);
}

.scouting-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.scouting-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.scouting-item h5 {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.scouting-item p {
    color: var(--gray);
    font-size: 0.95rem;
}

.event-card {
    position: relative;
    overflow: hidden;
}

.event-card .event-date {
    display: inline-block;
    background: linear-gradient(135deg, var(--secondary), var(--secondary-light));
    color: var(--white);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.event-card .event-tag {
    display: inline-block;
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: 0.5rem;
}

.evento-slide-item {
    min-width: 33.333%;
    flex: 0 0 33.333%;
    max-width: 33.333%;
}

@media (max-width: 991.98px) {
    .evento-slide-item {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }
}

.ramo-card {
    text-align: center;
    padding: 2rem 1.5rem;
    cursor: pointer;
}

.ramo-card .ramo-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 1rem;
    transition: var(--transition);
}

.ramo-card:hover .ramo-logo {
    transform: scale(1.1);
}

.ramo-card h4 {
    color: var(--primary);
    font-weight: 700;
}

.ramo-card .ramo-age {
    color: var(--gray);
    font-size: 0.9rem;
}

.footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 0 2rem;
}

[data-theme="dark"] .footer h5 {
    color: var(--primary);
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--secondary);
}

.footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    margin-right: 0.5rem;
    transition: var(--transition);
    font-size: 1.1rem;
}

.footer .social-links a:hover {
    background: var(--secondary);
    color: var(--white);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

.bp-image {
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    max-width: 100%;
    height: auto;
}

.ramo-banner {
    position: relative;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ramo-banner .banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.ramo-banner .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    padding: 3rem 1rem;
}

.ramo-banner .banner-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.ramo-banner .banner-content p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.ramo-section {
    padding: 4rem 0;
}

.ramo-section .ramo-info {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .ramo-section .ramo-info {
    border: 1px solid var(--border-light);
}

.ramo-section .ramo-logo-lg {
    max-width: 200px;
    height: auto;
    margin-bottom: 1.5rem;
}

.ramo-section .progress-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-body);
    border-radius: var(--radius-sm);
    margin-bottom: 0.8rem;
    transition: var(--transition);
}

.ramo-section .progress-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
    transform: translateX(5px);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.gallery-grid .gallery-item {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 1;
}

.gallery-grid .gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-grid .gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-grid .gallery-item .gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
}

.gallery-grid .gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-grid .gallery-item .gallery-overlay i {
    color: var(--white);
    font-size: 2rem;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: var(--white);
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
    background: none;
    border: none;
}

.lightbox .close:hover {
    color: var(--secondary);
}

.album-card {
    cursor: pointer;
}

.album-card .album-cover {
    height: 220px;
    object-fit: cover;
}

.album-card .album-count {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.filter-bar {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

[data-theme="dark"] .filter-bar {
    border: 1px solid var(--border-light);
}

.filter-bar .form-control,
.filter-bar .form-select {
    border-radius: 50px;
    border: 2px solid var(--border-light);
    padding: 0.6rem 1.2rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-body);
}

[data-theme="dark"] .filter-bar .form-control,
[data-theme="dark"] .filter-bar .form-select {
    background: var(--bg-body);
    color: var(--text-body);
}

.filter-bar .form-control:focus,
.filter-bar .form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 36, 115, 0.15);
}

.contact-info {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    height: 100%;
}

[data-theme="dark"] .contact-info {
    border: 1px solid var(--border-light);
}

.contact-info .info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-info .info-item i {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-form {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

[data-theme="dark"] .contact-form {
    border: 1px solid var(--border-light);
}

.contact-form .form-control {
    border-radius: var(--radius-sm);
    border: 2px solid var(--border-light);
    padding: 0.8rem 1.2rem;
    transition: var(--transition);
    background: var(--bg-card);
    color: var(--text-body);
}

[data-theme="dark"] .contact-form .form-control {
    background: var(--bg-body);
    color: var(--text-body);
}

.contact-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(46, 36, 115, 0.15);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 991px) {
    body { padding-top: 66px; }
    .navbar-brand img { height: 40px; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .section-title h2 { font-size: 1.8rem; }
    .page-hero h1 { font-size: 2rem; }
    .section { padding: 3rem 0; }
    .navbar .nav-link::after { display: none; }
    .navbar .nav-link { padding: 0.5rem 0 !important; }
}

@media (max-width: 576px) {
    body { padding-top: 60px; }
    .hero-content h1 { font-size: 1.8rem; }
    .hero-section { min-height: 50vh; padding: 3rem 0; }
    .section-title h2 { font-size: 1.5rem; }
    .page-hero h1 { font-size: 1.6rem; }
    .ramo-banner .banner-content h1 { font-size: 2rem; }
    .footer { padding: 3rem 0 1.5rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
