/* Explain: Styles for UI components like cards, buttons, and forms. */
.site-header {
    background: linear-gradient(180deg, rgba(250, 249, 246, 0.9), rgba(250, 249, 246, 0.58));
    backdrop-filter: blur(18px);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--sage-dark);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.section-kicker::before {
    display: inline-block;
    width: 2.4rem;
    height: 1px;
    background: var(--accent-color);
    content: "";
}

.glass-panel {
    border: 1px solid var(--glass-border);
    background: linear-gradient(145deg, rgba(250, 249, 246, 0.8), rgba(255, 255, 255, 0.5));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.arch-frame {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(88, 129, 87, 0.38);
    background: var(--surface-color);
    box-shadow: var(--shadow-soft);
}

.arch-frame::after {
    position: absolute;
    inset: 1.1rem;
    border: 1px solid rgba(250, 249, 246, 0.62);
    border-radius: inherit;
    content: "";
    pointer-events: none;
}

.arch-frame-large {
    height: min(70vh, 660px);
    min-height: 460px;
    border-radius: 0;
}

.arch-frame-medium {
    width: min(100%, 480px);
    aspect-ratio: 1 / 1;
    border-radius: 0;
}

.quiet-detail,
.service-card,
.step-card,
.contact-note {
    border: 1px solid var(--glass-border);
    border-radius: 1.6rem;
    background: rgba(250, 249, 246, 0.62);
}

.quiet-detail {
    padding: 1.4rem;
}

.quiet-detail span {
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.9rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 600;
}

.quiet-detail p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.service-card {
    display: flex;
    min-height: 320px;
    flex-direction: column;
    border-radius: 2rem;
    padding: 1.85rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.service-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.service-icon {
    display: inline-flex;
    width: 3.6rem;
    height: 3.6rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: radial-gradient(circle at 34% 28%, #ffffff, var(--secondary-color) 78%);
    color: var(--primary-color);
    font-size: 1.2rem;
    box-shadow: 0 14px 30px rgba(88, 129, 87, 0.16);
}

.step-circle {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 18rem;
    aspect-ratio: 1 / 1;
    margin-inline: auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.6rem;
    text-align: center;
    background: radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.72), transparent 72%);
    transition: transform 300ms ease;
}

.step-circle:hover {
    transform: translateY(-4px);
}

.step-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    transform: rotate(-90deg);
    pointer-events: none;
}

.step-ring-arc {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-dasharray: 518 73;
    opacity: 0.7;
}

.step-ring-dot {
    fill: var(--accent-color);
}

.step-num {
    color: var(--accent-color);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.step-title {
    margin-top: 0.45rem;
    max-width: 13rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.3;
}

.step-desc {
    margin-top: 1.4rem;
    margin-inline: auto;
    max-width: 19rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.75;
    text-align: center;
}

.contact-note {
    padding: 1.15rem 1.25rem;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.4rem;
    background: rgba(250, 249, 246, 0.72);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 300ms ease;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-item[open] summary {
    color: var(--sage-dark);
}

.faq-answer {
    padding: 0 1.4rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.8;
}

.form-label {
    display: block;
    margin-bottom: 0.55rem;
    color: var(--text-color);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.form-status.success {
    color: var(--sage-dark);
}

.form-status.error {
    color: #9B4A3D;
}

.mobile-cta-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 45;
    border-top: 1px solid var(--glass-border);
    background: rgba(250, 249, 246, 0.88);
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    backdrop-filter: blur(18px);
}

@media (max-width: 767px) {
    .section-kicker::before {
        width: 1.6rem;
    }

    .arch-frame-large {
        height: 440px;
        min-height: 0;
        max-width: 420px;
        margin-right: auto;
        margin-left: auto;
    }

    .arch-frame-medium {
        margin-right: auto;
        margin-left: auto;
    }
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-align: left;
}

.brand-knot {
    position: relative;
    display: block;
    flex-shrink: 0;
    width: 2.7rem;
    height: 2.7rem;
    overflow: hidden;
    border-radius: 0.7rem;
}

.brand-knot img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000%;
    max-width: none;
    height: auto;
    transform: translate(-49.5%, -40%);
}

.brand-word {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-name {
    color: var(--primary-color);
    font-family: var(--font-body);
    font-size: 1.3rem;
    font-weight: 300;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.brand-sub {
    margin-top: 0.32rem;
    margin-left: 0.12rem;
    color: var(--logo-subtitle-color);
    font-size: 0.5rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.point-badge {
    display: inline-flex;
    width: 1.35rem;
    height: 1.35rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--accent-color);
    font-size: 0.6rem;
}

.review-card {
    display: flex;
    flex-direction: column;
    border-radius: 2rem;
    padding: 1.85rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.review-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.review-avatar {
    display: inline-flex;
    width: 3rem;
    height: 3rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--sage-dark);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
}

.tarifa-card {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    border-radius: 2rem;
    padding: 1.85rem;
    transition: transform 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}

.tarifa-card:hover {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: 0 26px 80px rgba(31, 46, 35, 0.11);
    transform: translateY(-6px);
}

.tarifa-card.is-featured {
    border-color: var(--accent-color);
    background: linear-gradient(150deg, rgba(233, 237, 223, 0.94), rgba(255, 255, 255, 0.62));
    box-shadow: var(--shadow-soft);
}

.tarifa-badge {
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    border-radius: 999px;
    background: var(--primary-color);
    padding: 0.35rem 0.85rem;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.tarifa-price {
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 2.3rem;
    font-weight: 600;
    line-height: 1.1;
}

button.service-card {
    width: 100%;
    appearance: none;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.service-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    padding-top: 1.4rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    transition: color 300ms ease;
}

.service-card:hover .service-card-cta {
    color: var(--sage-dark);
}

.service-card-cta i {
    font-size: 0.7rem;
    transition: transform 300ms ease;
}

.service-card:hover .service-card-cta i {
    transform: translateX(4px);
}

#serviceDetails {
    display: none;
}

.service-dialog {
    width: min(100% - 2rem, 38rem);
    max-width: 38rem;
    max-height: min(88vh, 44rem);
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-color);
}

.service-dialog::backdrop {
    background: rgba(31, 46, 35, 0.55);
    backdrop-filter: blur(5px);
}

.service-dialog-panel {
    position: relative;
    max-height: min(88vh, 44rem);
    overflow-y: auto;
    border-radius: 2rem;
    padding: 2rem;
}

.service-dialog-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: inline-flex;
    width: 2.6rem;
    height: 2.6rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: var(--surface-color);
    color: var(--text-color);
    transition: background 300ms ease;
}

.service-dialog-close:hover {
    background: var(--secondary-color);
}

@media (max-width: 640px) {
    .service-dialog-panel {
        padding: 1.5rem;
    }
}

.service-item {
    overflow: hidden;
    border: 1px solid var(--glass-border);
    border-radius: 1.2rem;
    background: rgba(250, 249, 246, 0.72);
    transition: border-color 300ms ease, box-shadow 300ms ease;
}

.service-item[open] {
    border-color: rgba(88, 129, 87, 0.55);
    box-shadow: var(--shadow-soft);
}

.service-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 1.2rem;
    cursor: pointer;
    list-style: none;
}

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

.service-item summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: -2px;
}

.service-chevron {
    flex-shrink: 0;
    font-size: 0.75rem;
    color: var(--accent-color);
    transition: transform 300ms ease;
}

.service-item[open] .service-chevron {
    transform: rotate(180deg);
}

.service-item[open] summary {
    color: var(--sage-dark);
}

.service-panel {
    padding: 0 1.2rem 1.2rem;
}

.service-icon-sm {
    display: inline-flex;
    width: 2.2rem;
    height: 2.2rem;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--secondary-color);
    color: var(--primary-color);
    font-size: 0.85rem;
}

.legal-prose {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.9;
}

.legal-prose > *:first-child {
    margin-top: 0;
}

.legal-prose h2 {
    margin-top: 2.3rem;
    color: var(--text-color);
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.legal-prose p {
    margin-top: 0.8rem;
}

.legal-prose ul {
    display: grid;
    gap: 0.5rem;
    margin-top: 0.8rem;
    padding-left: 1.15rem;
    list-style: disc;
}

.legal-prose a {
    color: var(--primary-color);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-prose strong {
    color: var(--text-color);
    font-weight: 600;
}