/* --- Estilos para página de servicio (2 columnas) --- */
.service-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Columna de texto más ancha que la lateral */
    gap: 50px;
    align-items: flex-start;
}

.service-sidebar .sidebar-box {
    background-color: var(--color-background);
    padding: 30px;
    border-radius: var(--border-radius);
    position: sticky; /* Hace que la barra lateral se "pegue" al hacer scroll */
    top: 20px;
}

.service-sidebar .sidebar-box h3 {
    margin-top: 0;
    color: var(--color-primary);
}

.service-sidebar .sidebar-box ul {
    list-style-type: none;
    padding: 0;
    margin: 20px 0;
}

.service-sidebar .sidebar-box li {
    padding-left: 25px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2348BB78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left center;
    margin-bottom: 15px;
}

/* --- Estilos para la sección de FAQ --- */
.faq-item {
    border-bottom: 1px solid var(--color-border);
    padding: 20px 0;
}
.faq-item summary {
    font-weight: bold;
    font-family: var(--font-headings);
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-item summary::after {
    content: '+';
    font-size: 1.8rem;
    font-weight: 400;
}
.faq-item[open] summary::after {
    content: '-';
}
.faq-content {
    padding-top: 15px;
}

/* --- Responsive --- */
@media(max-width: 900px) {
    .service-grid { 
        grid-template-columns: 1fr; /* 1 columna en móvil y tablet */
    }
    .page-header h1 {
        /* Reducimos el tamaño del H1 para que no se desborde */
        font-size: 2rem; /* <-- ¡Puedes ajustar este valor a tu gusto! */
        line-height: 1.2;
    }

    .page-header .subtitle {
        font-size: 1rem;
    }
}

/* Estilos para las imágenes dentro del contenido del servicio */
.prose .content-image {
    margin: 40px 0; /* Espacio vertical para separar del texto */
}

.prose .content-image img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}
.service-sidebar {
    /* Estas 3 líneas son la magia */
    position: -webkit-sticky; /* Para compatibilidad con Safari */
    position: sticky;
    top: 2rem; /* Distancia desde la parte superior de la pantalla */
}


