/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    color: #333;
    background-color: #f4f4f4;
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

.section {
    padding: 60px 0;
}

h1, h2, h3 {
    color: #333;
}

h2 {
   text-align: center;
   margin-bottom: 40px;
}

/* Header */
header {
    position: sticky;
    top: 0;
    z-index: 1001;
}

.top-bar {
    background-color: #d90000;
    color: white;
    padding: 10px 0;
    text-align: right;
}

.top-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.main-nav {
    background-color: #000; /* Changed to black */
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.main-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-nav .logo img {
    height: 90px; /* Adjusted for a more balanced header */
    filter: brightness(0) invert(1);
}

.footer-col .logo img {
    height: 50px;
    background: white;
    padding: 5px;
    border-radius: 5px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

.nav-links li {
    margin-left: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #fff; /* Changed to white */
    font-weight: bold;
    padding: 5px 10px;
}

.nav-links a.active, .nav-links a:hover {
    color: #d90000;
    border-bottom: 2px solid #d90000;
}

/* Mobile Menu & Toggle */
.mobile-menu-toggle {
    display: none; /* Hidden by default */
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #fff; /* Changed to white */
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 320px;
    max-width: 90%;
    height: 100%;
    background-color: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.2);
    z-index: 2000;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.mobile-menu.open {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: flex-end;
    padding: 15px;
    position: relative;
    height: 40px; /* Match close button height */
}

.mobile-menu-close {
    background-color: #d90000;
    color: white;
    border: none;
    font-size: 24px;
    font-weight: bold;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    cursor: pointer;
    position: absolute;
    top: 15px;
    right: 15px;
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
}

.mobile-nav-links li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.mobile-nav-links li a {
    text-decoration: none;
    color: #333;
    padding: 15px 20px;
    display: block;
    flex-grow: 1;
}

.mobile-nav-links li a.active {
    color: #d90000;
    font-weight: bold;
}

.mobile-nav-links .dropdown-arrow {
    padding: 15px 20px;
    color: #d90000;
    cursor: pointer;
}

.mobile-nav-links .submenu {
    display: none;
    list-style: none;
    padding-left: 20px;
    background-color: #f8f8f8;
}

.mobile-nav-links .has-submenu.open > .submenu {
    display: block;
}

.mobile-nav-links .has-submenu.open > .dropdown-arrow i {
    transform: rotate(180deg);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-menu-overlay.visible {
    opacity: 1;
    visibility: visible;
}

/* Hero Section */
.hero {
    background: url('banner-hero-desatascos-el-rey.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 100px 0;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}


.hero h1 {
    font-size: 48px;
    margin: 0;
    color: white;
}

.hero p {
    font-size: 18px;
}

/* Intro Section */
.intro-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.intro-text {
    flex: 1;
}

.intro-text h2 {
    text-align: left;
    color: #d90000;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    max-width: 100%;
    border-radius: 8px;
}

/* Callback Section */
.callback-section {
    background-color: #1a1a1a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.callback-form {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.callback-form input {
    padding: 15px;
    border: none;
    border-radius: 5px;
    width: 300px;
}

.callback-form button {
    background-color: #d90000;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
}

/* Services Section */
.services-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    text-align: left;
}

.services-list li {
    background: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.services-list i {
    color: #d90000;
    margin-right: 10px;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 10px;
}

.faq-question {
    background-color: #333;
    color: white;
    cursor: pointer;
    padding: 18px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 18px;
    transition: background-color 0.3s;
    border-radius: 5px;
}

.faq-question:hover, .faq-question.active {
    background-color: #555;
}

.faq-answer {
    padding: 0 18px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border: 1px solid #ddd;
    border-top: none;
}
.container h3{
    color:#ffffff;

}

/* Locations Section */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.locations-grid ul {
    list-style: none;
    padding: 0;
}

.locations-grid li {
    margin-bottom: 10px;
}

/* Footer */
.main-footer {
    background-color: #1a1a1a;
    color: #ccc;
    padding: 40px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.footer-col {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    height: 50px;
    background:none;
    padding: 5px;
    border-radius: 5px;
}

.footer-col h3 {
    color: white;
    border-bottom: 1px solid #555;
    padding-bottom: 10px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col a {
    color: #ccc;
    text-decoration: none;
}

.footer-col a:hover {
    color: white;
}

.social-links a {
    margin-right: 15px;
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-bottom li {
    margin-left: 20px;
}

/* Floating Buttons */
.floating-buttons {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.float-btn {
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.phone-btn {
    background-color: #d90000;
}

.whatsapp-btn {
    background-color: #25D366;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .container {
        width: 90%;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: block;
    }

    .main-nav .container {
        height: auto;
    }

    .intro-content {
        flex-direction: column;
    }

    .locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 15px;
    }

    .footer-bottom ul {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .callback-form {
        flex-direction: column;
        width: 80%;
        margin: 20px auto 0;
    }

    .callback-form input,
    .callback-form button {
        width: 100%;
        box-sizing: border-box; /* Add this */
    }
}

@media (max-width: 576px) {
    .top-bar {
        text-align: center;
    }

    .main-nav .logo img {
        height: 50px;
    }

    .services-list {
        grid-template-columns: 1fr;
    }

    .locations-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom ul {
        flex-direction: column;
        gap: 10px;
    }
    .footer-bottom li {
        margin-left: 0;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
