:root {
    --color-primary-dark: #3c0000;
    --color-highlight: #9b9a9a;
    --color-white: #ffffff;
}


.hero-section {
    position: relative;
    width: 100%;
    min-height: 350px;
    display: flex;
    background-color: var(--color-primary-dark);
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    align-items: center;
    padding: 4rem 1.5rem;
    overflow: hidden;
}

#heroexcavation {
    background-image: url('/uploads/imgservices/excavations/03.webp');
}

#heronewconstruction{
    background-image: url('/uploads/services/NewConstructionSanJose.jpeg');
}

#herokitchen{
    background-image: url('/uploads/services/KitchenRenovationSanJose.jpeg');
}

#herobathroom{
    background-image: url('/uploads/services/BathroomRenovationSanJose.jpeg');
}

#heroframing{
    background-image: url('/uploads/services/FramingSanJose.jpeg');
}

#heropavingconcrete{
    background-image: url('/uploads/services/PavingConcreteSanJose.jpeg');
}

#retainingwalls{
    background-image: url('/uploads/services/RetainingWallSanJose.jpeg');
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-primary-dark) 40%, rgba(31, 7, 7, 0.2) 100%);
    z-index: 1;
}

/* Contenedor principal */
.hero-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* Asegura que el contenido quede por encima de la capa superpuesta */
}

.hero-content {
    max-width: 600px;
}

/* Título */
.hero-title {
    color: var(--color-white);
    /* Usa clamp para que el tamaño se adapte fluidamente, mínimo 2rem, ideal escalable, máximo 3.5rem */
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0 0 1rem 0;
    font-family: Arial, sans-serif;
    /* Cambia a la fuente de tu proyecto */
    line-height: 1.2;
}

/* Migas de pan (Breadcrumb) */
.hero-breadcrumb {
    color: var(--color-white);
    font-size: 1.6rem;
    /* No menor a 1rem según tus instrucciones */
    font-family: Arial, sans-serif;
    font-weight: 500;
    margin: 0;
}

.hero-breadcrumb .text-highlight {
    color: var(--color-highlight);
}

/* Ajustes Responsivos para dispositivos móviles */
@media (max-width: 768px) {
    .hero-section {
        min-height: 200px;
        padding: 3rem 1.5rem;
        /* Ajustamos el gradiente en móviles para oscurecer más el fondo si el edificio ocupa más espacio */
        background-position: center;
    }

    .hero-section::before {
        background: linear-gradient(90deg, rgba(31, 7, 7, 0.9) 20%, rgba(31, 7, 7, 0.6) 100%);
    }
}



/* Estilos de la sección principal */
.services-overview-section {
    padding: 4rem 1.5rem;
    background-color: #ffffff;
}

.services-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}


.services-image-wrapper {
    flex: 1;
    width: 100%;
}

.services-main-image {
    width: 100%;
    height: 100%;
    min-height: 400px;
    object-fit: cover;
    border-radius: 8px;
    /* Bordes ligeramente redondeados como en la imagen */
    display: block;
}

/* --- Columna Derecha (Sidebar) --- */
.services-sidebar {
    width: 100%;
    max-width: 360px;
    background-color: #ffffff;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.sidebar-title {
    font-size: 3rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 0.5rem 0;
    font-family: Arial, sans-serif;
}

/* Línea naranja decorativa */
.title-divider {
    width: 45px;
    height: 2px;
    background-color: var(--color-highlight, #570000);
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

/* Estilos de los botones / enlaces */
.service-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f5f6fc;
    padding: 1.1rem 1.25rem;
    border-radius: 4px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 1.4rem;
    font-weight: 550;
    font-family: Arial, sans-serif;
    transition: all 0.3s ease;
}

.service-link:hover {
    background-color: #470000;
    color: white;
}

.service-link svg {
    color: #1a1a1a;
    transition: transform 0.3s ease;
}

.service-link:hover svg {
    transform: translateX(4px);
    /* Pequeña animación de la flecha */
}

/* --- Responsive para Móviles y Tablets --- */
@media (max-width: 900px) {
    .services-container {
        flex-direction: column;
        /* Apila la imagen arriba y la tarjeta abajo */
    }

    .services-main-image {
        min-height: 250px;
    }

    .services-sidebar {
        max-width: 100%;
        /* La tarjeta ocupa todo el ancho en móviles */
        padding: 1.5rem;
    }
}


/* Estructura Principal */
.details-and-quote-section {
    padding: 4rem 1.5rem;
    background-color: #ffffff;
}

.details-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

/* --- Columna Izquierda --- */
.details-main-content {
    flex: 1;
    width: 100%;
}

.main-heading {
    font-size: clamp(1.8rem, 3vw, 2rem);
    font-weight: 700;
    color: #410000;
    margin: 0 0 1rem 0;
    font-family: Arial, sans-serif;
    line-height: 1.3;
}

.main-description {
    font-size: 1.6rem;
    color: #363636;
    line-height: 1.7;
    margin-bottom: 3rem;
    font-family: Arial, sans-serif;
}

/* Envoltorio de Procesos e Imágenes */
.process-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2rem;
    align-items: flex-start;
}

/* Imágenes Superpuestas */
.process-images {
    position: relative;
    width: 100%;
    padding-bottom: 2rem;
}

.img-back {
    width: 85%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.img-front {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 75%;
    height: auto;
    border-radius: 8px;
    border: 6px solid #ffffff;
    /* Borde blanco para resaltar la superposición */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Lista de Procesos */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.process-title {
    font-size: 2rem;
    font-weight: 700;
    color: #410000;
    margin: 0 0 0.5rem 0;
    font-family: Arial, sans-serif;
}

.step-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background-color: #f5f7fc;
    /* Fondo azul muy claro */
    padding: 1.25rem;
    border-radius: 6px;
}

.step-icon {
    background-color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 10px rgba(56, 0, 0, 0.05);
}

.step-info h4 {
    font-size: 1.7rem;
    font-weight: 600;
    color: #410000;
    margin: 0 0 0.25rem 0;
    font-family: Arial, sans-serif;
}

.step-info p {
    font-size: 1.5rem;
    color: #2b2b2b;
    margin: 0;
    line-height: 1.5;
    font-family: Arial, sans-serif;
}

/* --- Columna Derecha (Formulario) --- */
.quote-sidebar {
    width: 100%;
    max-width: 360px;
    /* Mismo ancho que el sidebar de la sección anterior */
}

.quote-form-container {
    background-color: #1a1a24;
    background-image: linear-gradient(rgba(26, 26, 36, 0.85), rgba(26, 26, 36, 0.85)), url('/uploads/imgservices/excavations/02.webp');
    background-size: cover;
    background-position: center;
    padding: 2.5rem;
    border-radius: 8px;
}

.quote-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.5rem 0;
    font-family: Arial, sans-serif;
}

.quote-divider {
    width: 45px;
    height: 2px;
    background-color: #410000;
    /* Línea naranja */
    margin-bottom: 2rem;
}

.quote-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



/* --- Ajustes Responsivos --- */
@media (max-width: 1024px) {
    .details-container {
        flex-direction: column;
        /* Apila todo en tablets y móviles */
    }

    .quote-sidebar {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .process-wrapper {
        grid-template-columns: 1fr;
        /* Apila las imágenes sobre los procesos */
    }

    .process-images {
        max-width: 400px;
        margin: 0 auto 2rem auto;
    }
}


/* Sección Principal */
.faq-section {
    padding: 5rem 1.5rem;
    /* Fondo base azul muy pálido. Aquí deberías agregar tu imagen de fondo con las ondas azules */
    background-color: #f7fbff;
    background-image: url('/uploads/imgservices/excavations/bgtxture.png');
    background-size: cover;
    background-position: center;
}

.faq-header {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-main-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #4f0006;
    font-family: Arial, sans-serif;
    margin: 0;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 4rem;
    align-items: center;
    /* Centra verticalmente el contenido de ambas columnas */
}

/* --- Columna Izquierda: Acordeón --- */
.faq-accordion {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* Espaciado entre preguntas */
    width: 100%;
}

.faq-item {
    background-color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 1.2rem 1.5rem;
    font-size: 1.6rem;
    /* Restricción: Mayor a 1rem */
    font-weight: 600;
    color: rgb(97, 0, 0);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Arial, sans-serif;
    transition: color 0.3s ease;
}

/* Ícono de cruz/menos usando CSS (sin dependencias) */
.faq-icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    background-color: #1a1a1a;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.faq-icon::before {
    width: 100%;
    height: 2px;
    /* Línea horizontal (Menos) */
}

.faq-icon::after {
    width: 2px;
    height: 100%;
}

/* Contenedor de la respuesta con animación CSS Grid */
.faq-answer-wrapper {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s ease;
}

.faq-answer {
    overflow: hidden;
    padding: 0 1.5rem;
}

.faq-answer p {
    font-size: 1.4rem;
    color: #363636;
    line-height: 1.8;
    margin: 0;
    padding-bottom: 1.2rem;
    font-family: Arial, sans-serif;
}

/* --- Estados Activos del Acordeón --- */
.faq-item.active .faq-question {
    color: #4f0006;
}

.faq-item.active .faq-icon::before {
    background-color: #1a1a1a;
}

.faq-item.active .faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    opacity: 0;
}

.faq-item.active .faq-answer-wrapper {
    grid-template-rows: 1fr;
    /* Abre el contenedor */
}


/* --- Columna Derecha: Imágenes y Badge --- */
.faq-visuals {
    flex: 1;
    position: relative;
    display: flex;
    gap: 1.5rem;
    width: 100%;
    height: 500px;
    /* Altura controlada para que coincida visualmente */
}

.faq-img-left,
.faq-img-right {
    width: calc(50% - 0.75rem);
    height: 100%;
    object-fit: cover;
}

.faq-img-left {
    border-radius: 12px;
}

.faq-img-right {
    border-radius: 12px 80px 12px 12px;
    /* Esquina superior derecha más pronunciada */
}

.faq-badge {
    position: absolute;
    bottom: 15%;
    /* Posicionado sobre la parte inferior central */
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffffff;
    padding: 1.5rem 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}

/* Efecto de texto contorneado (outline) para FAQ */
.faq-badge span {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    font-family: Arial, sans-serif;
    color: transparent;
    -webkit-text-stroke: 1.5px #1a1a1a;
    /* Borde negro, texto transparente */
    letter-spacing: 2px;
}

/* --- Ajustes Responsivos --- */
@media (max-width: 968px) {
    .faq-container {
        flex-direction: column;
        gap: 3rem;
    }

    .faq-visuals {
        height: 400px;
        max-width: 600px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .faq-visuals {
        height: 300px;
    }

    .faq-badge {
        padding: 1rem 2rem;
    }
}