/* --- SERVICE PAGES (servicios/*.html) --- */
/* One page per service, in Spanish. Same tokens as the home, so both themes work. */

.svc {
    padding: 0 var(--container-padding);
}

/* Hero: text on the left, the pillar's abstract image on the right */
.svc-hero {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(40px, 6vw, 96px);
    align-items: center;
    padding: clamp(140px, 16vw, 200px) 0 clamp(64px, 8vw, 112px);
}

.svc-hero--hub {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: clamp(40px, 5vw, 64px);
}

.svc-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-subtle);
    margin-bottom: 28px;
}

.svc-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.svc-breadcrumb a:hover {
    color: var(--text-main);
}

.svc-pillar {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-subtle);
    margin: 0 0 12px;
}

.svc-hero h1 {
    font-size: clamp(2.4rem, 4.6vw, 4.25rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-main);
    max-width: 18ch;
    margin: 0;
    text-wrap: balance;
}

.svc-lead {
    font-size: clamp(1.1rem, 1.4vw, 1.25rem);
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 58ch;
    margin: 24px 0 36px;
}

.svc-hero--hub .svc-lead {
    margin-bottom: 0;
}

.svc-hero-media {
    aspect-ratio: 1;
    border-radius: 20px;
    overflow: hidden;
    background: var(--gray-900);
}

.svc-hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Sections */
.svc-section {
    padding: clamp(48px, 6vw, 80px) 0;
}

.svc-section h2,
.svc-group h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0 0 clamp(24px, 3vw, 40px);
}

/* What it includes: two columns of items */
.svc-includes {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(32px, 5vw, 80px);
}

.svc-includes li {
    padding: 28px 0;
    border-top: 1px solid var(--border-color);
}

.svc-includes h3 {
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-main);
    margin: 0;
}

.svc-includes p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 10px 0 0;
    max-width: 52ch;
}

/* Who it's for / what you get, side by side */
.svc-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(40px, 6vw, 96px);
}

.svc-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.svc-list li {
    position: relative;
    padding: 16px 0 16px 28px;
    border-top: 1px solid var(--border-color);
    font-size: 1.1rem;
    line-height: 1.5;
    color: var(--text-main);
}

.svc-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: calc(16px + 0.75em);
    width: 12px;
    height: 1.5px;
    background: var(--text-subtle);
}

/* FAQs: native disclosure, so the answers are in the page for search engines */
.svc-faqs {
    max-width: 880px;
}

.svc-faq {
    border-top: 1px solid var(--border-color);
}

.svc-faq:last-child {
    border-bottom: 1px solid var(--border-color);
}

.svc-faq summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-main);
    cursor: pointer;
    list-style: none;
}

.svc-faq summary::-webkit-details-marker {
    display: none;
}

/* Plus that turns into a cross when open */
.svc-faq summary::after {
    content: "";
    flex: none;
    width: 14px;
    height: 14px;
    background:
        linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
        linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
    transition: transform 0.3s ease;
}

.svc-faq[open] summary::after {
    transform: rotate(45deg);
}

.svc-faq p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 68ch;
    margin: 0 0 24px;
}

/* Related services */
.svc-related {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.svc-related a {
    display: flex;
    flex-direction: column;
    gap: 8px;
    height: 100%;
    padding: 24px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    transition: border-color 0.2s ease;
}

.svc-related a:hover {
    border-color: var(--text-muted);
}

.svc-related-pillar {
    font-size: 0.9rem;
    color: var(--text-subtle);
}

.svc-related-name {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-main);
}

/* Hub: services grouped by pillar */
.svc-group {
    padding: clamp(32px, 4vw, 56px) 0;
}

.svc-hub-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.svc-hub-list a {
    display: block;
    height: 100%;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--card-bg);
    transition: border-color 0.2s ease;
}

.svc-hub-list a:hover {
    border-color: var(--text-muted);
}

.svc-hub-list h3 {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-main);
    margin: 0;
}

.svc-hub-list p {
    font-size: 1rem;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 10px 0 0;
}

/* Closing call to action */
.svc-cta {
    margin: clamp(48px, 6vw, 80px) 0 clamp(80px, 10vw, 140px);
    padding: clamp(40px, 6vw, 72px);
    border-radius: 24px;
    background: var(--surface-raised);
    text-align: center;
}

.svc-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-main);
    margin: 0;
}

.svc-cta p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin: 12px 0 28px;
}

@media (max-width: 899px) {
    .svc-hero,
    .svc-split {
        grid-template-columns: 1fr;
    }

    .svc-hero-media {
        aspect-ratio: 16 / 9;
    }

    .svc-includes,
    .svc-hub-list {
        grid-template-columns: 1fr;
    }

    .svc-related {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .svc-faq summary::after {
        transition: none;
    }
}
