.header-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.paint-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--secondary);
    background-image: linear-gradient(to right, #000000, #979797);
    z-index: 1;
}

/* Paint texture effect */
.paint-background:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle,
            rgba(255, 255, 255, 0.1) 1px,
            transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.1), transparent);
    background-size: 20px 20px, 100% 100%;
    z-index: 2;
}

/* Paint stroke effect */
.paint-stroke {
    position: absolute;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.2) 50%,
            transparent 100%);
    background-size: 200% 100%;
    z-index: 3;
}

.header-content {
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    height: 100%;
    padding-left: 10%;
    color: white;
}

.home-icon {
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.home-icon i {
    color: white;
    font-size: 20px;
}

.header-title {
    font-size: 32px;
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.navigation {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary);
    color: white;
    padding: 10px 0;
    z-index: 10;
}

.nav-item {
    padding: 0 15px;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.nav-item.active {
    font-weight: bold;
}

.nav-separator {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

/* For the home icon */
.home-icon::before {
    content: "⌂";
    font-size: 24px;
}

.service-section {
    line-height: 1.6;
    color: var(--dark);
    max-width: 1200px;
    margin: 10vh auto;
    padding: 20px;
}

.section-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.intro-text {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.quote-container {
    position: relative;
    background-color: var(--light);
    padding: 30px 30px 20px 40px;
    margin-bottom: 40px;
    border-left: 6px solid var(--accent);
}

.quote-text {
    font-style: italic;
    color: #666;
    font-size: 18px;
    position: relative;
}

.quote-author {
    margin-top: 15px;
    color: #888;
    font-size: 16px;
}

.content-paragraph {
    margin-bottom: 40px;
    color: var(--gray);
    font-size: 16px;
    line-height: 1.7;
}

.subsection-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--dark);
    margin: 30px 0 20px 0;
    text-transform: uppercase;
}

.subsection-content {
    color: var(--gray);
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.7;
}

.highlight {
    color: var(--secondary);
    font-weight: bold;
}

.faq-container {
    line-height: 1.6;
    color: var(--dark);
    max-width: 1200px;
    margin: -5vh auto 0 auto;
    padding: 20px;
}

/* Service Images */
.service-image-container {
    float: right;
    width: 45%;
    margin: 0 0 20px 30px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.service-image {
    width: 100%;
    display: block;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.service-image:hover {
    transform: scale(1.02);
}

/* Clear float after subsection content */
.subsection-content {
    overflow: hidden;
}

@media (max-width: 768px) {
    .service-image-container {
        float: none;
        width: 100%;
        margin: 20px 0;
        border-radius: 8px;
    }
    
    .service-image {
        border-radius: 8px;
    }
}

.faq-popular {
    color: var(--gray);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.faq-title {
    font-size: 28px;
    font-weight: bold;
    color: var(--dark);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.faq-divider {
    border: none;
    height: 2px;
    background-color: #eee;
    margin-bottom: 10px;
    position: relative;
}

.faq-divider::after {
    content: "••";
    color: var(--accent);
    position: absolute;
    left: 0;
    top: -10px;
    letter-spacing: 2px;
}

.faq-item {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    background-color: white;
    transition: background-color 0.3s ease;
}

.faq-item.open {
    background-color: var(--accent);
}

.faq-question {
    padding: 15px 20px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
    padding: 0 20px 15px;
}

.faq-indicator {
    width: 20px;
    height: 20px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-indicator::after {
    content: "+";
}

.faq-item.open .faq-indicator::after {
    content: "-";
}

.faq-answer ul {
    padding-left: 20px;
    margin: 10px 0;
}

.faq-answer li {
    margin-bottom: 10px;
}

.contactanos-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.contactanos-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../../img/constructor-contactanos-background.jpg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.2);
    z-index: 1;
}

.contactanos-content {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 20px;
}

.contactanos-image {
    flex: 0 0 300px;
    position: relative;
    margin-right: 20px;
    /* Espacio entre la imagen y el texto */
    margin-top: 60px;
}

.contactanos-image img {
    height: 250px;
    object-fit: contain;
}

.contactanos-text {
    flex: 1;
    padding: 0 30px;
    max-width: 800px;
    /* Ajusta según sea necesario */
    color: white;
}

.contactanos-title {
    font-size: 32px;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 15px;
}

.contactanos-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 4px;
    background-color: var(--accent);
}

.contactanos-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 600px;
}

.contactanos-cta-button {
    background-color: var(--accent);
    color: white;
    font-weight: bold;
    padding: 12px 25px;
    border: none;
    font-size: 16px;
    cursor: pointer;
    text-transform: uppercase;
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s;
}

.contactanos-cta-button:hover {
    background-color: #383838;
}

/* Estilos Responsive */
@media screen and (max-width: 1200px) {

    .service-section,
    .faq-container {
        padding: 20px 5%;
    }
}

@media screen and (max-width: 992px) {
    .header-content {
        padding-left: 5%;
    }

    .nav-container {
        padding-left: 5%;
    }

    .section-title,
    .faq-title {
        font-size: 24px;
    }

    .contactanos-image {
        flex: 0 0 250px;
        margin-top: 110px;
    }

    .contactanos-image img {
        height: 200px;
    }
}

@media screen and (max-width: 768px) {
    .header-container {
        height: 200px;
    }

    .header-title {
        font-size: 26px;
    }

    .nav-container {
        overflow-x: auto;
        white-space: nowrap;
        padding: 0 5%;
    }

    .nav-item {
        padding: 0 10px;
        font-size: 12px;
    }

    .quote-container {
        padding: 20px 20px 15px 25px;
    }

    .quote-text {
        font-size: 16px;
    }

    .contactanos-container {
        height: auto;
        padding: 40px 0;
    }

    .contactanos-content {
        flex-direction: column;
    }

    .contactanos-image {
        display: none;
    }

    .contactanos-text {
        text-align: center;
        padding: 0 20px;
    }

    .contactanos-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .contactanos-description {
        margin: 0 auto 20px;
    }
}

@media screen and (max-width: 576px) {
    .header-container {
        height: 180px;
    }

    .header-title {
        font-size: 22px;
    }

    .home-icon {
        width: 30px;
        height: 30px;
    }

    .home-icon::before {
        font-size: 18px;
    }

    .section-title,
    .faq-title {
        font-size: 20px;
    }

    .contactanos-title {
        font-size: 24px;
    }

    .contactanos-image img {
        height: 150px;
    }

    .faq-question {
        padding: 12px 15px;
        font-size: 14px;
    }

    .faq-answer.show {
        padding: 0 15px 12px;
    }
}

@media screen and (max-width: 480px) {
    .header-content {
        justify-content: center;
    }

    .quote-text {
        font-size: 14px;
    }

    .quote-author {
        font-size: 14px;
    }

    .contactanos-cta-button {
        width: 100%;
        padding: 10px 15px;
    }

    .subsection-title {
        font-size: 18px;
    }
}