:root {
    --blanco-fondo: #FAFAFA;
    --blanco-puro: #FFFFFF;
    --texto-principal: #1A1A1A;
    --texto-secundario: #666666;
    --nude-claro: #F5EFEB;
    --nude-oscuro: #EADBD5;
    --whatsapp: #25D366;
    --dorado-estrellas: #E5C158;
    --sombra-suave: 0 12px 30px rgba(0, 0, 0, 0.04);
    --header-bg: rgba(250, 250, 250, 0.95);
    --header-border: rgba(0, 0, 0, 0.05);
    --panel-gradient: linear-gradient(180deg, #fff, #fcf8f5);
    --footer-bg: #1A1A1A;
    --footer-text: #FFFFFF;
    --footer-muted: #CCCCCC;

    --fuente-titulos: "Playfair Display", serif;
    --fuente-textos: "Montserrat", sans-serif;
}

[data-theme="dark"],
.theme-dark {
    --blanco-fondo: #121212;
    --blanco-puro: #1E1E1E;
    --texto-principal: #EAEAEA;
    --texto-secundario: #CFC4BD;
    --nude-claro: #2A2421;
    --nude-oscuro: #B79D8E;
    --sombra-suave: 0 12px 30px rgba(0, 0, 0, 0.35);
    --header-bg: rgba(18, 18, 18, 0.95);
    --header-border: rgba(234, 234, 234, 0.1);
    --panel-gradient: linear-gradient(180deg, #222222, #1E1E1E);
    --footer-bg: #121212;
    --footer-text: #F5EFEB;
    --footer-muted: #CFC4BD;
}

[data-theme="dark"] .services-selection-panel,
.theme-dark .services-selection-panel {
    background: linear-gradient(180deg, #222222, #1E1E1E);
    border-color: rgba(234, 234, 234, 0.12);
}

[data-theme="dark"] .selected-services,
.theme-dark .selected-services {
    border-color: rgba(234, 234, 234, 0.2);
    background: rgba(30, 30, 30, 0.6);
}

[data-theme="dark"] .service-card,
[data-theme="dark"] .review-card,
[data-theme="dark"] details,
.theme-dark .service-card,
.theme-dark .review-card,
.theme-dark details {
    border-color: rgba(234, 234, 234, 0.1);
}

[data-theme="dark"] .nav-toggle,
.theme-dark .nav-toggle {
    border-color: rgba(234, 234, 234, 0.2);
}

[data-theme="dark"] .theme-toggle,
.theme-dark .theme-toggle {
    background: #222222;
    border-color: rgba(234, 234, 234, 0.22);
    color: #F5EFEB;
}

[data-theme="dark"] .theme-toggle:hover,
.theme-dark .theme-toggle:hover {
    border-color: var(--nude-oscuro);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--fuente-textos);
    background-color: var(--blanco-fondo);
    color: var(--texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

html.theme-dark,
body.theme-dark {
    background-color: #121212;
    color: #EAEAEA;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

img {
    max-width: 100%;
    display: block;
}

h1,
h2,
h3,
h4 {
    font-family: var(--fuente-titulos);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
a,
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.section-title {
    text-align: center;
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 50px;
}

.section-subtitle {
    text-align: center;
    font-size: 1rem;
    color: var(--texto-secundario);
    margin-top: -40px;
    margin-bottom: 50px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 28px;
    font-family: var(--fuente-textos);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    text-align: center;
}

.btn-black {
    background-color: var(--texto-principal);
    color: var(--blanco-puro);
}

.btn-black:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--texto-principal);
    color: var(--texto-principal);
}

.btn-outline:hover {
    background-color: var(--texto-principal);
    color: var(--blanco-puro);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid var(--header-border);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    position: relative;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    line-height: 1;
}

.logo-mark {
    width: clamp(106px, 12vw, 152px);
    max-height: 62px;
    height: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logo-footer {
    margin-bottom: 20px;
}

.logo-footer .logo-mark {
    width: min(170px, 100%);
    max-height: 70px;
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-left: auto;
}

.nav-actions .nav-links {
    margin-right: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--nude-oscuro);
}


.theme-toggle {
    width: 42px;
    height: 42px;
    border: 1px solid var(--header-border);
    border-radius: 999px;
    background: var(--blanco-puro);
    color: var(--texto-principal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--nude-oscuro);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--nude-oscuro);
    outline-offset: 2px;
}

.theme-toggle i {
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    width: 48px;
    height: 48px;
    margin-left: auto;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 8px;
    background: var(--blanco-puro);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--texto-principal);
    border-radius: 999px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--nude-claro);
    padding: clamp(118px, 14vh, 150px) 0 clamp(48px, 8vh, 90px);
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
    filter: saturate(0.95) contrast(1.05) brightness(0.92);
}

.media-shell {
    position: relative;
    display: block;
    overflow: hidden;
}

.media-shell::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 26px;
    height: 26px;
    margin: -13px 0 0 -13px;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: rgba(255, 255, 255, 0.9);
    animation: mediaSpin 0.85s linear infinite;
    z-index: 2;
    opacity: 0;
    pointer-events: none;
}

.media-shell.is-loading::before {
    opacity: 1;
}

.media-shell.is-loading [data-media] {
    opacity: 0.35;
}

.media-shell [data-media] {
    transition: opacity 0.3s ease;
}

.media-shell-video {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.media-shell-banner {
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .media-shell-banner,
.theme-dark .media-shell-banner {
    background: rgba(255, 255, 255, 0.02);
}

@keyframes mediaSpin {
    to {
        transform: rotate(360deg);
    }
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Overlay desactivado por solicitud: se mantiene el bloque para reactivarlo rapido */
    background: transparent;
}

[data-theme="dark"] .hero-overlay,
.theme-dark .hero-overlay {
    background: transparent;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 20px;
}

.hero .btn {
    width: auto;
    min-width: min(320px, 92vw);
    max-width: 100%;
}

.hero h1 {
    font-size: clamp(2.7rem, 7vw, 4.2rem);
    margin-bottom: 20px;
    line-height: 1.15;
}

.hero h1 i {
    font-style: italic;
    color: var(--texto-secundario);
}

.hero p {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    color: var(--texto-secundario);
    margin-bottom: 40px;
}

.services-section,
.team-section,
.how-to {
    padding: 100px 0;
}

.services-section,
.reviews-section {
    background-color: var(--blanco-puro);
}

.team-section,
.faq-section {
    background-color: var(--nude-claro);
}

.how-to {
    background-color: var(--blanco-fondo);
    text-align: center;
}

.reviews-section,
.faq-section {
    padding: 80px 0;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 10px;
}

.tab-btn {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: color-mix(in srgb, var(--blanco-puro) 94%, var(--nude-claro));
    padding: 8px 8px 10px;
    min-height: 156px;
    font-family: var(--fuente-textos);
    font-size: 0.88rem;
    letter-spacing: 0.02em;
    color: var(--texto-principal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 8px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.tab-btn-media {
    width: 100%;
    height: 92px;
    object-fit: cover;
    object-position: center;
    border-radius: 8px;
}

.tab-btn span {
    display: block;
    text-align: left;
    font-weight: 600;
    line-height: 1.25;
    padding: 0 4px;
}

.tab-btn.active,
.tab-btn:hover {
    border-color: var(--texto-principal);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.07);
    transform: translateY(-1px);
}

.services-selection-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.4fr) auto;
    align-items: center;
    gap: 14px 18px; margin-top: 10px;
    margin-bottom: 15px;
    padding: 18px 20px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 12px;
    background: var(--panel-gradient);
    box-shadow: var(--sombra-suave);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.services-selection-title {
    font-size: 0.92rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texto-principal);
    margin-bottom: 4px;
}

.services-selection-text {
    font-size: 0.95rem;
    color: var(--texto-secundario);
}

.selected-services {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px dashed rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.72);
}

.selected-services-empty {
    color: var(--texto-secundario);
    font-size: 0.92rem;
}

.selected-service-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 7px 10px 7px 14px;
    border-radius: 999px;
    background: var(--nude-claro);
    border: 1px solid var(--nude-oscuro);
    font-size: 0.84rem;
}

.selected-service-remove {
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(170, 30, 30, 0.12);
    color: #9a3d3d;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.selected-service-remove:hover {
    background: rgba(170, 30, 30, 0.18);
    color: #7e1f1f;
}

.services-cta {
    white-space: nowrap;
    min-width: 220px;
}

.services-cta:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}


@media (min-width: 769px) {
    .services-selection-panel {
        grid-template-columns: 1fr;
        align-items: center;
        gap: 12px 16px;
        margin-bottom: 24px;
        padding: 0;
        border: none;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    .services-selection-copy {
        max-width: 560px;
    }

    .selected-services {
        display: none;
    }

    .services-cta-group {
        display: none;
    }

    .services-selection-title {
        margin-bottom: 2px;
        font-size: 0.84rem;
    }

    .services-selection-text {
        font-size: 0.88rem;
    }
}


.mobile-services-accordion,
.services-mobile-stepbar {
    display: none;
}

.mobile-accordion-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    background: var(--blanco-puro);
    overflow: hidden;
    margin-bottom: 12px;
}

.mobile-accordion-trigger {
    width: 100%;
    min-height: 58px;
    padding: 10px 12px 12px;
    border: none;
    background: transparent;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
        "banner banner"
        "title icon";
    align-items: center;
    gap: 8px 12px;
    text-align: left;
    color: var(--texto-principal);
    cursor: pointer;
}

.mobile-category-banner {
    grid-area: banner;
    width: 100%;
    height: 316px;
    object-fit: cover;
    border-radius: 8px;
}

.mobile-category-name {
    grid-area: title;
    font-family: var(--fuente-titulos);
    font-size: 1.03rem;
    line-height: 1.2;
}

.mobile-accordion-trigger i {
    grid-area: icon;
    justify-self: end;
}

.mobile-accordion-trigger i {
    transition: transform 0.25s ease;
    font-size: 0.9rem;
}

.mobile-accordion-item.is-open .mobile-accordion-trigger i {
    transform: rotate(180deg);
}

.mobile-accordion-panel {
    display: none;
    padding: 6px 12px 10px;
}

.mobile-accordion-item.is-open .mobile-accordion-panel {
    display: block;
}

.mobile-service-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-service-row:last-child {
    border-bottom: none;
}

.mobile-service-row:nth-child(odd) {
    background: color-mix(in srgb, var(--blanco-puro) 96%, var(--nude-claro));
}

.mobile-service-row:nth-child(even) {
    background: color-mix(in srgb, var(--blanco-puro) 89%, var(--nude-claro));
}

[data-theme="dark"] .mobile-service-row:nth-child(odd),
.theme-dark .mobile-service-row:nth-child(odd) {
    background: rgba(255, 255, 255, 0.02);
}

[data-theme="dark"] .mobile-service-row:nth-child(even),
.theme-dark .mobile-service-row:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.mobile-service-row p {
    font-size: 0.96rem;
    margin: 0;
}

.mobile-service-toggle {
    min-width: 112px;
    min-height: 34px;
    border: 1px solid var(--texto-principal);
    border-radius: 6px;
    background: transparent;
    color: var(--texto-principal);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.mobile-service-toggle.is-selected {
    background: var(--texto-principal);
    color: var(--blanco-puro);
}

.services-mobile-stepbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1300;
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 16px;
    background: linear-gradient(90deg, rgba(20, 20, 20, 0.96), rgba(10, 10, 10, 0.96));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.services-mobile-count {
    margin: 0;
    color: #f2f2f2;
    font-size: 0.95rem;
}

.services-mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

#mobileResetBtn {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.72rem;
    color: #f2f2f2;
    border-color: rgba(242, 242, 242, 0.45);
}

#mobileResetBtn:disabled {
    opacity: 0.45;
}

#mobileNextStepBtn {
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.8rem;
    gap: 8px;
}

#mobileNextStepBtn:disabled {
    opacity: 0.45;
}


.tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 20px;
}

.service-card {
    background: var(--blanco-fondo);
    padding: 25px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    min-height: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    border-color: var(--nude-oscuro);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.service-card.selected {
    border-color: var(--texto-principal);
    box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.08), 0 12px 24px rgba(0, 0, 0, 0.04);
}

.service-card h4 {
    font-family: var(--fuente-textos);
    font-size: 1rem;
    font-weight: 500;
}

.service-card button {
    width: 100%;
    min-height: 46px;
    padding: 10px;
    font-size: 0.8rem;
    background: var(--blanco-puro);
    border: 1px solid var(--texto-principal);
    cursor: pointer;
    text-transform: uppercase;
    border-radius: 4px;
    transition: 0.3s;
}

.service-card button:hover {
    background: var(--texto-principal);
    color: var(--blanco-puro);
}

.service-card.selected .service-select-btn {
    background: var(--texto-principal);
    color: var(--blanco-puro);
}

.other-service {
    text-align: center;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid var(--nude-claro);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 30px;
}

.team-card {
    background: var(--blanco-puro);
    padding: 30px 24px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
    min-height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.team-img {
    width: min(160px, 100%);
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    margin: 0 auto 18px;
    border: 4px solid var(--nude-claro);
}

.team-card h3 {
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.team-card p {
    font-size: 0.88rem;
    color: var(--texto-secundario);
    margin-bottom: 0;
}

.team-card .specialty {
    display: block;
    margin-bottom: 18px;
    font-family: var(--fuente-textos);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--texto-principal);
    font-weight: 600;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
        "num title"
        "num text";
    align-items: start;
    gap: 6px 14px;
    padding: 14px 12px;
    text-align: left;
}

.step-num {
    grid-area: num;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--fuente-titulos);
    font-size: 1.25rem;
    color: var(--texto-principal);
    background: var(--nude-claro);
    border: 1px solid var(--nude-oscuro);
}

.step h3 {
    grid-area: title;
    font-size: 1.12rem;
    margin: 6px 0 0;
}

.step p {
    grid-area: text;
    margin: 0;
    color: var(--texto-secundario);
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 30px;
}

.review-card {
    background: var(--blanco-fondo);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.03);
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.stars {
    color: var(--dorado-estrellas);
    font-size: 0.9rem;
}

.review-text {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--texto-secundario);
    margin-bottom: 20px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.9rem;
}

.google-icon {
    width: 20px;
    height: 20px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: var(--blanco-puro);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: background-color 0.3s ease, color 0.3s ease;
}

summary {
    padding: 20px;
    font-weight: 500;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

summary::-webkit-details-marker {
    display: none;
}

summary:after {
    content: "+";
    font-size: 1.5rem;
    color: var(--texto-secundario);
    transition: 0.3s;
}

details[open] summary:after {
    content: "-";
    color: var(--texto-principal);
    transform: rotate(180deg);
}

.faq-content {
    padding: 0 20px 20px;
    color: var(--texto-secundario);
    font-size: 0.95rem;
}

footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 80px 0 30px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    font-family: var(--fuente-titulos);
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--nude-claro);
}

.footer-col p {
    font-size: 0.9rem;
    color: var(--footer-muted);
    margin-bottom: 10px;
}

.footer-col i {
    width: 20px;
    text-align: center;
    margin-right: 10px;
    color: var(--nude-oscuro);
}

.map-container {
    width: 100%;
    height: 180px;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 15px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(100%) invert(90%) contrast(80%);
    border: none;
}

.wsp-flotante {
    position: fixed;
    right: max(20px, env(safe-area-inset-right));
    bottom: max(20px, env(safe-area-inset-bottom));
    background-color: var(--whatsapp);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: 0.3s;
}

.wsp-flotante:hover {
    transform: scale(1.1);
    color: white;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--blanco-puro);
    padding: 34px 30px 28px;
    border-radius: 16px;
    width: min(620px, 100%);
    text-align: center;
    position: relative;
    transform: translateY(20px);
    max-height: 90vh;
    overflow-y: auto;
    transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.modal-overlay.active .modal-box {
    transform: translateY(0);
}


.modal-title {
    font-size: clamp(1.7rem, 2.7vw, 2rem);
    margin-bottom: 10px;
    line-height: 1.1;
}

.modal-subtitle {
    color: var(--texto-secundario);
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 12px;
}

#modalServicioNombre {
    display: inline-block;
    margin-top: 2px;
    font-weight: 600;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--texto-secundario);
}

.modal-disclaimer {
    margin: 0 auto 18px;
    max-width: 440px;
    font-size: 0.84rem;
    line-height: 1.5;
    color: var(--texto-secundario);
    padding: 10px 12px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--blanco-fondo) 88%, transparent);
}

.modal-prof-list {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: left;
}

.modal-prof-group {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    padding: 14px;
    background: color-mix(in srgb, var(--blanco-puro) 92%, var(--nude-claro));
}

.modal-prof-group + .modal-prof-group {
    margin-top: 4px;
}

.modal-prof-category {
    margin: 0 0 12px;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: var(--texto-secundario);
}

.modal-prof-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-prof-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 68px;
    padding: 12px 14px;
    border: 1px solid var(--nude-claro);
    border-radius: 10px;
    background: var(--blanco-puro);
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.modal-prof-card.option {
    cursor: pointer;
}

.modal-prof-card.option:hover {
    border-color: var(--texto-principal);
    background-color: var(--blanco-fondo);
}

.modal-prof-card.option.selected {
    border-color: var(--texto-principal);
    box-shadow: 0 0 0 1px rgba(26, 26, 26, 0.08);
}

.modal-prof-card.fixed {
    cursor: default;
}


.modal-prof-info.no-avatar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.modal-prof-info.no-avatar h4 {
    margin: 0;
}

.modal-prof-info.no-avatar p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--texto-secundario);
}

.modal-prof-card.option.option-flex {
    align-items: flex-start;
}

.modal-prof-empty {
    margin: 0;
    font-size: 0.85rem;
    color: var(--texto-secundario);
}

.modal-prof-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.modal-prof-info img {
    width: 42px;
    aspect-ratio: 1 / 1;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
}

.modal-prof-info h4 {
    margin: 0;
    font-size: 1.02rem;
    text-align: left;
    line-height: 1.3;
    font-weight: 500;
}

.modal-prof-check,
.modal-prof-tag {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--texto-secundario);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 999px;
    padding: 4px 9px;
    background: color-mix(in srgb, var(--blanco-fondo) 90%, transparent);
    flex-shrink: 0;
}

.modal-prof-card.option.selected .modal-prof-check {
    color: var(--blanco-puro);
    background: var(--texto-principal);
    border-color: var(--texto-principal);
    font-weight: 600;
}

.modal-prof-empty {
    margin: 0;
    color: var(--texto-secundario);
    font-size: 0.88rem;
}

.modal-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
}

.modal-cancel-btn,
.modal-send-btn {
    width: 100%;
}

.modal-send-btn:disabled,
.modal-cancel-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

@media (max-width: 1024px) {
    .services-section,
    .team-section,
    .how-to,
    .reviews-section,
    .faq-section,
    footer {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .container {
        width: min(1100px, calc(100% - 24px));
    }

    .tabs,
    .tab-content,
    .services-selection-panel {
        display: none !important;
    }

    .mobile-services-accordion {
        display: block;
        margin-bottom: 26px;
    }

    .services-mobile-stepbar {
        display: flex;
    }

    .services-section {
        padding-bottom: 150px;
    }

    .nav-content {
        flex-wrap: nowrap;
        align-items: center;
    }

    .nav-actions {
        width: auto;
        margin-left: auto;
        flex-wrap: nowrap;
        justify-content: flex-end;
        align-items: center;
        gap: 8px;
    }

    .logo-mark {
        width: 162px;
        max-height: 68px;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: 0;
    }

    .nav-links {
        display: flex;
        width: 100%;
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        order: 3;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 12px 0 4px;
        opacity: 0;
        transform: translateY(-6px);
        pointer-events: none;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.22s ease, transform 0.22s ease, max-height 0.28s ease;
    }

    .theme-toggle {
        order: 1;
    }

    .nav-toggle {
        order: 2;
    }

    .nav-links a {
        width: 100%;
        min-height: 46px;
        padding: 10px 12px;
        border-radius: 8px;
        background: var(--blanco-puro);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.22s ease, transform 0.22s ease;
    }

    .nav-open .nav-links {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
        max-height: 320px;
    }

    .nav-open .nav-links a {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-open .nav-links a:nth-child(1) {
        transition-delay: 0.02s;
    }

    .nav-open .nav-links a:nth-child(2) {
        transition-delay: 0.08s;
    }

    .nav-open .nav-links a:nth-child(3) {
        transition-delay: 0.14s;
    }

    .nav-open .nav-links a:nth-child(4) {
        transition-delay: 0.2s;
    }

    .hero {
        min-height: 100svh;
        padding: 118px 0 52px;
    }

    .hero-video-bg {
        object-position: center 30%;
    }


    .tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 10px;
    }

    .services-selection-panel {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .services-cta-group {
        width: 100%;
        flex-direction: column;
    }

    .services-cta,
    .services-reset-btn {
        width: 100%;
        min-width: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .wsp-flotante {
        width: 54px;
        height: 54px;
        font-size: 1.6rem;
    }

    .modal-box {
        padding: 26px 20px 22px;
    }

    .modal-title {
        font-size: 1.55rem;
    }

    .modal-subtitle {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .modal-actions {
        grid-template-columns: 1fr;
        margin-top: 18px;
    }
}

@media (max-width: 560px) {
    .mobile-category-banner {
        height: 317px;
    }

    .mobile-category-name {
        font-size: 0.97rem;
    }

    .hero {
        min-height: 100svh;
        padding: 108px 0 44px;
    }

    .hero-video-bg {
        object-position: 58% 34%;
    }

    .hero h1 {
        font-size: clamp(2rem, 8vw, 2.6rem);
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 0.96rem;
        margin-bottom: 26px;
    }

    .mobile-service-row {
        padding: 10px 6px;
    }

    .mobile-service-row p {
        font-size: 0.9rem;
    }

    .mobile-service-toggle {
        min-width: 104px;
        font-size: 0.68rem;
    }

    .services-mobile-stepbar {
        padding: 10px 12px;
    }

    .services-mobile-count {
        font-size: 0.86rem;
    }

    .services-mobile-actions {
        gap: 6px;
    }

    #mobileResetBtn,
    #mobileNextStepBtn {
        min-height: 40px;
        padding: 8px 12px;
        font-size: 0.68rem;
    }

    .logo-mark {
        width: 200px;
        max-height: 85px;
    }

    .theme-toggle {
        width: 40px;
        height: 40px;
    }

    .nav-links {
        gap: 8px 16px;
        padding-bottom: 6px;
    }

    .section-title {
        margin-bottom: 36px;
    }

    .section-subtitle {
        margin-top: -24px;
        margin-bottom: 36px;
    }

    .service-card,
    .team-card,
    .review-card {
        padding: 22px 18px;
    }

    .faq-content,
    summary {
        font-size: 0.92rem;
    }
}

@media (max-width: 420px) {
    .hero {
        min-height: 100svh;
        padding: 104px 0 36px;
    }

    .hero-video-bg {
        object-position: 62% 36%;
    }

    .container {
        width: min(1100px, calc(100% - 20px));
    }

    .logo-mark {
        width: 186px;
        max-height: 78px;
    }

    .hero-content {
        padding: 0;
        max-width: min(440px, 100%);
    }

    .hero .btn {
        width: auto;
        min-width: min(270px, 90vw);
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.78rem;
    }

    .btn {
        width: 100%;
    }

    .tab-btn {
        font-size: 0.78rem;
        padding: 12px 16px;
    }

    .modal-prof-group {
        padding: 10px;
    }

    .modal-prof-card {
        padding: 10px;
        min-height: 62px;
    }

    .modal-prof-info {
        gap: 10px;
    }

    .modal-prof-info h4 {
        font-size: 0.9rem;
    }

    .modal-prof-check,
    .modal-prof-tag {
        font-size: 0.65rem;
        padding: 3px 7px;
    }
}


@media (max-height: 740px) and (max-width: 900px) {
    .hero {
        min-height: 100svh;
        padding: 96px 0 28px;
    }

    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 0.92rem;
        margin-bottom: 18px;
    }
}


@media (max-width: 1200px) {
    .tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tab-btn {
        min-height: 146px;
    }

    .tab-btn-media {
        height: 86px;
    }
}
