.service-page,
.custom-page {
    overflow-x: hidden;
}

.service-hero,
.custom-page .hero {
    padding: 56px 0 24px;
}

.service-page .hero,
.custom-page .hero {
    min-height: auto;
}

.service-page.hogar .hero {
    background:
        linear-gradient(110deg, rgba(6, 12, 22, 0.88) 18%, rgba(6, 12, 22, 0.52) 62%, rgba(6, 12, 22, 0.84) 100%),
        url("img/hogar.png") 72% center/cover no-repeat;
}

.service-page.negocio .hero {
    background:
        linear-gradient(110deg, rgba(6, 12, 22, 0.88) 18%, rgba(6, 12, 22, 0.52) 62%, rgba(6, 12, 22, 0.84) 100%),
        url("img/negocio.png") 74% center/cover no-repeat;
}

.service-page.premium .hero {
    background:
        linear-gradient(110deg, rgba(6, 12, 22, 0.88) 18%, rgba(6, 12, 22, 0.52) 62%, rgba(6, 12, 22, 0.84) 100%),
        url("img/premium.png") 72% center/cover no-repeat;
}

.service-page.cctv .hero {
    background:
        radial-gradient(circle at 78% 26%, rgba(77, 148, 255, 0.28), transparent 18%),
        radial-gradient(circle at 72% 64%, rgba(214, 169, 95, 0.18), transparent 18%),
        linear-gradient(110deg, rgba(6, 12, 22, 0.88) 18%, rgba(6, 12, 22, 0.56) 62%, rgba(6, 12, 22, 0.9) 100%),
        linear-gradient(145deg, #13233b 0%, #0b1527 58%, #09111d 100%);
}

.custom-page .hero {
    background:
        linear-gradient(110deg, rgba(6, 12, 22, 0.88) 18%, rgba(6, 12, 22, 0.52) 62%, rgba(6, 12, 22, 0.84) 100%),
        url("img/custom.png") center 42%/48% no-repeat,
        linear-gradient(180deg, rgba(17, 29, 48, 0.9), rgba(8, 17, 31, 0.92));
}

.service-layout {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    gap: 20px;
    align-items: stretch;
}

.service-copy,
.service-includes-card,
.feature-panel,
.service-note {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.service-copy {
    padding: 28px;
    background: rgba(8, 17, 31, 0.58);
    backdrop-filter: blur(10px);
}

.service-copy h1 {
    font-size: clamp(2.05rem, 4.7vw, 3.45rem);
    line-height: 1.03;
    margin: 14px 0 12px;
}

.service-copy p {
    max-width: 640px;
    color: #d8dfee;
    font-size: 0.99rem;
    line-height: 1.62;
}

.service-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    color: #c7d1e3;
    font-size: 0.92rem;
}

.service-breadcrumb a:hover,
.service-breadcrumb a:focus-visible {
    color: var(--text);
}

.service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.service-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #eef2fb;
    font-size: 0.86rem;
}

.service-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.service-highlight {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
}

.service-highlight strong {
    display: block;
    margin-bottom: 6px;
}

.service-highlight span {
    color: var(--muted);
    font-size: 0.9rem;
}

.service-includes-card {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(20, 36, 61, 0.94), rgba(9, 17, 31, 0.92));
}

.service-includes-card h2 {
    font-size: 1.36rem;
    margin-bottom: 14px;
}

.compact-list {
    gap: 12px;
}

.service-grid {
    width: min(100% - 32px, var(--container));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.feature-panel,
.service-note {
    padding: 24px;
    background:
        linear-gradient(180deg, rgba(18, 33, 56, 0.9), rgba(10, 18, 33, 0.96));
}

.feature-panel h2,
.service-note h2 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.feature-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: flex;
    gap: 12px;
    color: #e2e7f4;
    line-height: 1.55;
    font-size: 0.96rem;
}

.feature-list li::before {
    content: "\2713";
    color: var(--gold-strong);
    font-weight: 700;
}

.service-note p {
    color: var(--muted);
}

.service-content {
    padding-top: 8px;
}

.service-cta {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
}

.service-closing-panel {
    padding: 30px;
}

.service-closing-panel h2 {
    font-size: clamp(2.05rem, 4.5vw, 3rem);
    line-height: 1;
    margin: 14px 0 12px;
    color: var(--gold-strong);
}

.service-closing-panel p {
    max-width: 680px;
}

.service-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.service-faq {
    padding-top: 0;
}

.service-faq-shell {
    width: min(100% - 32px, 920px);
    margin: 0 auto;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(18, 33, 56, 0.9), rgba(10, 18, 33, 0.96));
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    padding: 17px 20px;
    font-weight: 700;
    color: var(--text);
    position: relative;
}

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

.faq-item summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-strong);
    font-size: 1.3rem;
}

.faq-item[open] summary::after {
    content: "-";
}

.faq-item p {
    padding: 0 20px 18px;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.config-toolbar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.config-badge {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.config-badge strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text);
    font-size: 1.02rem;
}

.config-badge span {
    color: var(--muted);
    font-size: 0.92rem;
}

.config-warning {
    margin-top: 10px;
    color: #f1d49f;
    font-size: 0.92rem;
    line-height: 1.5;
}

.config-warning.is-ready {
    color: #bfe6c6;
}

.btn-primary[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.custom-page .configurador {
    padding-top: 68px;
}

.config-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
}

.config-category {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(214, 169, 95, 0.12);
    color: #f1d49f;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.custom-page .section-heading {
    margin-bottom: 22px;
}

.custom-page .section-heading p {
    max-width: 58ch;
}

.custom-page #config-products {
    gap: 16px;
}

.custom-page .config-product {
    position: relative;
    overflow: hidden;
    gap: 16px;
    padding: 20px;
    border-radius: 22px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.custom-page .config-product::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 44%);
    pointer-events: none;
}

.custom-page .config-product:hover {
    transform: translateY(-4px);
    border-color: rgba(214, 169, 95, 0.34);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.34);
}

.custom-page .config-info {
    align-items: flex-start;
    gap: 14px;
}

.custom-page .config-img {
    width: 76px;
    height: 76px;
    border-radius: 20px;
    object-fit: contain;
    padding: 6px;
}

.custom-page .config-name {
    font-size: 1rem;
}

.custom-page .config-price {
    font-size: 0.95rem;
}

.custom-page .config-controls {
    justify-content: flex-start;
    gap: 14px;
}

.custom-page .config-controls button {
    box-shadow: 0 14px 28px rgba(214, 169, 95, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.custom-page .config-controls button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 30px rgba(214, 169, 95, 0.26);
}

.custom-page .config-controls button[data-delta="-1"] {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

.custom-page .config-qty {
    min-width: 52px;
    padding: 9px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.05);
}

.custom-page .config-summary {
    align-items: stretch;
    padding: 26px 28px;
    background:
        linear-gradient(135deg, rgba(214, 169, 95, 0.14), rgba(19, 35, 59, 0.92)),
        rgba(11, 20, 35, 0.92);
}

.custom-page .config-summary > div:first-child {
    flex: 1 1 360px;
}

.custom-page .config-total {
    margin: 4px 0 8px;
    line-height: 1.05;
}

.custom-page #config-helper-text {
    max-width: 48ch;
}

.custom-page .config-warning {
    max-width: 54ch;
}

.custom-page #send-quote-button {
    align-self: center;
    min-width: min(100%, 290px);
}

.service-page footer p,
.custom-page footer p {
    line-height: 1.6;
}

@media (max-width: 980px) {
    .service-layout,
    .service-grid {
        grid-template-columns: 1fr;
    }

    .config-toolbar,
    .service-highlights {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .service-hero,
    .custom-page .hero {
        padding: 42px 0 18px;
    }

    .custom-page .hero {
        background:
            linear-gradient(110deg, rgba(6, 12, 22, 0.9) 14%, rgba(6, 12, 22, 0.66) 58%, rgba(6, 12, 22, 0.92) 100%),
            url("img/custom.png") center 38%/62% no-repeat,
            linear-gradient(180deg, rgba(17, 29, 48, 0.9), rgba(8, 17, 31, 0.92));
    }

    .service-copy,
    .service-includes-card,
    .feature-panel,
    .service-note,
    .service-closing-panel {
        padding: 20px;
    }

    .custom-page .config-product,
    .custom-page .config-summary {
        padding: 20px;
    }

    .service-copy h1 {
        font-size: clamp(1.9rem, 10vw, 2.7rem);
    }

    .service-cta-actions {
        flex-direction: column;
    }

    .service-cta-actions a {
        width: 100%;
    }

    .faq-item summary,
    .faq-item p {
        padding-left: 20px;
        padding-right: 20px;
    }

    .custom-page .config-info {
        align-items: center;
    }

    .custom-page .config-controls {
        justify-content: space-between;
    }

    .custom-page #send-quote-button {
        width: 100%;
    }
}
