/* Root variables */
:root {
    --white: #f5f5f5;
    --black: #0a0808;
    --red: #940404;
    --highlight-red: #c30706;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--white);
    color: var(--black);
    transition: all 0.3s ease;
}

body.dark-mode {
    background-color: var(--black);
    color: var(--white);
}

/* Navigation */
.navbar {
    background: linear-gradient(90deg, var(--red), var(--black)) !important;
    transition: background-color 0.3s ease;
}

body.dark-mode .navbar {
    background: linear-gradient(90deg, #700303, #1a1a1a) !important;
}

.navbar-brand img {
    max-height: 60px;
}

.nav-link {
    color: var(--white) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--highlight-red) !important;
}

body.dark-mode .nav-link {
    color: var(--white) !important;
}

body.dark-mode .nav-link:hover, body.dark-mode .nav-link.active {
    color: var(--highlight-red) !important;
}

.navbar.scrolled {
    background: linear-gradient(90deg, var(--red), var(--black)) !important;
}

body.dark-mode .navbar.scrolled {
    background: linear-gradient(90deg, #700303, #1a1a1a) !important;
}

.mode-toggle {
    border: 1px solid var(--white);
    background-color: var(--black);
}

body.dark-mode .mode-toggle {
    border-color: var(--white);
    background-color: var(--black);
}

/* Carousel */
.carousel-item img {
    filter: brightness(1);
}

body.dark-mode .carousel-item img {
    filter: brightness(0.8);
}

.carousel-control-prev-icon, .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
}

body.dark-mode .carousel-control-prev-icon, body.dark-mode .carousel-control-next-icon {
    background-color: rgba(255, 255, 255, 0.5);
}

.carousel-indicators button {
    background-color: var(--black);
}

body.dark-mode .carousel-indicators button {
    background-color: var(--white);
}

.carousel-indicators .active {
    background-color: var(--highlight-red);
}

/* Main Page Heading */
.text-dark {
    color: var(--black) !important;
}

body.dark-mode .text-dark {
    color: var(--white) !important;
}

.border-danger {
    border-color: var(--red) !important;
}

body.dark-mode .border-danger {
    border-color: var(--highlight-red) !important;
}

.lead {
    color: var(--black);
}

body.dark-mode .lead {
    color: var(--white);
}

/* Three Column Section */
.card {
    border: none;
    border-radius: 10px;
    background-color: var(--white);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

body.dark-mode .card {
    background-color: #2c2c2c;
    box-shadow: 0 4px 8px rgba(255, 255, 255, 0.1);
    border: 1px solid var(--white);
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--red);
}

body.dark-mode .card-title {
    color: var(--highlight-red);
}

.card-text {
    color: var(--black);
}

body.dark-mode .card-text {
    color: var(--white);
}

.btn-custom {
    background-color: var(--red);
    color: var(--white);
}

.btn-custom:hover {
    background-color: var(--highlight-red);
}

/* Parallax Section */
.parallax-container {
    position: relative;
    z-index: 1;
    margin-bottom: 50px;
}

.parallax {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.parallax-title {
    color: var(--black);
}

body.dark-mode .parallax-title {
    color: var(--white);
}

.parallax-subtitle {
    color: var(--black);
}

body.dark-mode .parallax-subtitle {
    color: var(--white);
}

/* Two Column Section */
.section-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--red);
    font-size: 2.5rem;
}

body.dark-mode .section-title {
    color: var(--highlight-red);
}

.section-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--black);
}

body.dark-mode .section-text {
    color: var(--white);
}

/* Accordion */
.accordion-item {
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    background-color: var(--white);
    border: 1px solid #e0e0e0;
}

body.dark-mode .accordion-item {
    background-color: #2c2c2c;
    border-color: #444444;
}

.accordion-button {
    border-radius: 8px !important;
    padding: 1.5rem;
    font-size: 1.1rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    background: linear-gradient(90deg, var(--white), #e0e0e0);
    color: var(--black);
    transition: background 0.3s ease, color 0.3s ease;
}

body.dark-mode .accordion-button {
    background: linear-gradient(90deg, #2c2c2c, #1a1a1a);
    color: var(--white);
}

.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--red), #700303);
    color: var(--white);
}

body.dark-mode .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, var(--highlight-red), #2c2c2c);
    color: var(--white);
}

.accordion-button:hover {
    background: linear-gradient(90deg, var(--white), var(--red));
    color: var(--white);
}

body.dark-mode .accordion-button:hover {
    background: linear-gradient(90deg, #2c2c2c, var(--highlight-red));
    color: var(--white);
}

.accordion-button:focus {
    box-shadow: 0 0 0 2px var(--highlight-red);
    border: none;
}

.accordion-body {
    background-color: var(--white);
    border-radius: 0 0 8px 8px;
    padding: 1.5rem;
}

body.dark-mode .accordion-body {
    background-color: #2c2c2c;
}

.list-unstyled li {
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: var(--black);
}

body.dark-mode .list-unstyled li {
    color: var(--white);
}

.list-unstyled li i {
    color: var(--red);
}

body.dark-mode .list-unstyled li i {
    color: var(--highlight-red);
}

.text-red {
    color: var(--red);
}

body.dark-mode .text-red {
    color: var(--highlight-red);
}

.historia-title {
    color: var(--red);
}

body.dark-mode .historia-title {
    color: var(--highlight-red);
}

/* Footer */
.footer {
    background: linear-gradient(90deg, var(--red), var(--black)) !important;
    color: var(--white);
}

body.dark-mode .footer {
    background: linear-gradient(90deg, #700303, #1a1a1a) !important;
}

.footer-logo {
    max-height: 80px;
}

.footer-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.social a {
    color: var(--white);
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social a:hover {
    color: var(--highlight-red);
}

.footer-link {
    color: var(--white);
    text-decoration: none;
}

.footer-link:hover {
    color: var(--highlight-red);
}

.footer-contact a {
    color: var(--white);
}

.footer-contact a:hover {
    color: var(--highlight-red);
}

/* Socket */
.socket {
    background: linear-gradient(90deg, var(--white), var(--red)) !important;
    color: var(--white);
}

body.dark-mode .socket {
    background: linear-gradient(90deg, var(--black), var(--highlight-red)) !important;
}

/* Contact Section */
.contact .form-control {
    border-radius: 0.25rem;
    border: 1px solid #ced4da;
}

body.dark-mode .contact .form-control {
    background-color: #2c2c2c;
    color: var(--white);
    border-color: #444444;
}

.contact .btn-primary {
    background-color: var(--red);
    border-color: var(--red);
}

.contact .btn-primary:hover {
    background-color: var(--highlight-red);
    border-color: var(--highlight-red);
}

.contact ul li i {
    color: var(--red);
}

body.dark-mode .contact ul li i {
    color: var(--highlight-red);
}

.contact .social a {
    color: var(--black);
    font-size: 1.5rem;
    transition: color 0.3s;
}

body.dark-mode .contact .social a {
    color: var(--white);
}

.contact .social a:hover {
    color: var(--highlight-red);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .section-title {
        font-size: 2rem;
    }
    .accordion-button {
        font-size: 1rem;
        padding: 1rem;
    }
    .section-text, .list-unstyled li {
        font-size: 0.95rem;
    }
    .card {
        width: 100% !important;
    }
}