:root {
    --color-primary: #00556d;
    --color-primary-light: #36848b;
    --color-primary-dark: #003d4f;
    --color-secondary: #36848b;
    --color-warm: #d67d6d;
    --color-warm-light: #ffd7cc;
    --color-surface: #ffffff;
    --color-surface-alt: #f4f8f8;
    --color-surface-soft: #eef6f6;
    --color-glaciar: #b9d2d4;
    --color-text: #1a2a2e;
    --color-text-secondary: #5a6b6e;
    --color-text-muted: #8a9a9d;
    --color-border: #d4e0e1;
    --color-border-light: #e8eff0;
    --font-heading: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --container-max: 1200px;
    --section-padding: 72px;
    --card-radius: 24px;
    --shadow-subtle: 0 10px 30px rgba(0, 61, 79, 0.045);
    --shadow-soft: 0 14px 42px rgba(0, 61, 79, 0.055);
    --shadow-frame: 0 28px 74px rgba(0, 61, 79, 0.105);
    --transition-fast: 0.2s ease;
    --transition-base: 0.32s ease;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 320px;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
summary {
    font: inherit;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding-left: 32px;
    padding-right: 32px;
}

.panel-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 7px 12px;
    border: 1px solid rgba(0, 85, 109, 0.08);
    background: rgba(0, 85, 109, 0.07);
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.section-copy {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-title {
    margin: 20px 0 12px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 44px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--color-text-secondary);
    font-size: 16px;
    line-height: 1.75;
}

.section-subtitle--left {
    margin-left: 0;
}

.section-rich-copy {
    display: grid;
    gap: 16px;
    margin-top: 26px;
    color: var(--color-text-secondary);
}

.section-rich-copy p {
    font-size: 14px;
    line-height: 1.85;
}

/* Sin .btn base aquí: los botones (todos del proyecto) los define styles.css,
   cargado después. Evita conflictos de color/line-height/tamaño con el resto del sitio. */

.btn:focus-visible,
.nav-link:focus-visible,
.language-switch:focus-visible,
.header__mobile-toggle:focus-visible,
.builder-accordion__item summary:focus-visible,
.tool-tab:focus-visible,
.tool-arrow:focus-visible {
    outline: 2px solid rgba(54, 132, 139, 0.42);
    outline-offset: 3px;
}























/* Los botones (header, hero, CTAs) usan el sistema del proyecto: styles.css carga
   después y los controla. No se añaden overrides aquí para que sean idénticos. */

/* Header propio eliminado — se usa el partial header.php del proyecto. */

.agenda-hero {
    position: relative;
    overflow: hidden;
    padding: 80px 0 72px;
    background: transparent;
}

.agenda-hero::before {
    display: none;
}

.agenda-hero .agenda-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 390px) minmax(0, 560px);
    gap: 40px;
    align-items: start;
    justify-content: center;
    margin-bottom: 15px;
}

.agenda-hero__content {
    max-width: 390px;
    margin-top: 88px;
    margin-left: auto;
}

.agenda-hero__title {
    margin: 24px 0 14px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 66px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0;
}

.agenda-hero__subtitle {
    max-width: 340px;
    color: var(--text-soft);
    font-size: 1.22rem;
    font-weight: 400;
    line-height: 1.6;
}

.agenda-hero__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.agenda-hero__visual {
    min-width: 0;
    max-width: 560px;
    justify-self: stretch;
}

.hero-product {
    position: relative;
    isolation: isolate;
    max-width: 560px;
}

.hero-product::before {
    content: "";
    position: absolute;
    inset: 28px 28px 20px 18px;
    z-index: -1;
    border: 1px solid rgba(0, 85, 109, 0.08);
    border-radius: 999px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0)),
        repeating-radial-gradient(circle at center, rgba(54, 132, 139, 0.11) 0 1px, transparent 1px 78px);
    opacity: 0.72;
}







.clinical-sheet {
    position: absolute;
    top: 58px;
    left: 88px;
    right: 116px;
    z-index: 2;
    min-height: 410px;
    padding: 26px;
    border: 1px solid rgba(212, 224, 225, 0.86);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-frame);
    backdrop-filter: blur(18px);
}

/* Mockup de fondo grande: rotador de las 3 imágenes (title*.png) con crossfade. */
.clinical-sheet--shot {
    position: relative;
    inset: auto;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    min-height: 0;
    border: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.tplTabs {
    display: flex;
    gap: 6px;
    align-self: stretch;
}
.tplTab {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 14px 14px 0 0;
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.62);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    opacity: 0.72;
    transition: opacity var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}
.tplTab.is-active {
    opacity: 1;
    background: #fff;
    color: var(--color-primary);
    border: 1px solid var(--color-border);
    border-bottom: 0;
    margin-bottom: -1px;
    position: relative;
    z-index: 1;
}
.tplTab--add {
    padding: 12px 20px;
    background: transparent;
    border: 2px dotted var(--color-primary);
    color: var(--color-primary);
    font-size: 22px;
    line-height: 1;
    text-align: center;
}
.shotFrame {
    width: 100%;
    padding: 3px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 18px 40px rgba(0, 61, 79, 0.12);
}
.shotImgs {
    display: grid;
    width: 100%;
    border-radius: 13px;
    overflow: hidden;
}
.shotImgs img {
    grid-area: 1 / 1;
    align-self: start;
    width: 100%;
    height: auto;
    opacity: 0;
    transition: opacity 0.5s ease;
}
.shotImgs img.is-active {
    opacity: 1;
}
@keyframes anamRotate {
    0% { opacity: 0; }
    3% { opacity: 1; }
    30% { opacity: 1; }
    33% { opacity: 0; }
    100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .shotImgs img { animation: none; }
    .shotImgs img:nth-child(1) { opacity: 1; }
}











.clinical-sheet__fields span,
.hero-float span,
.template-field span,
.template-visual-card span,
.template-meta span,
.builder-properties h3,
.template-elements__head {
    color: var(--color-text-muted);
    font-size: 11px;
    font-weight: 700;
}











.hero-float {
    position: absolute;
    z-index: 4;
    width: 166px;
    padding: 13px;
    border: 1px solid rgba(212, 224, 225, 0.78);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.90);
    box-shadow: 0 16px 40px rgba(0, 61, 79, 0.22);
    backdrop-filter: blur(5px);
}

.hero-float strong,
.template-visual-card strong,
.template-meta strong {
    display: block;
    color: var(--color-primary);
    font-size: 13px;
}

.hero-float small {
    display: block;
    margin-top: 5px;
    color: var(--color-text-muted);
    font-size: 10px;
    font-weight: 700;
}

.hero-float--image {
    top: 188px;
    right: -64px;
    width: 228px;
    transform: rotate(5deg);
}

.hero-float--teeth {
    right: -64px;
    bottom: 44px;
    width: 272px;
    transform: rotate(-2deg);
}

.hero-float--signature {
    bottom: 30px;
    left: -48px;
    width: 208px;
    transform: rotate(-4deg);
}

.hero-float--signature .gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.gallery-thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    background: rgba(26, 42, 46, 0.08);
    color: rgba(26, 42, 46, 0.5);
}
.gallery-thumb svg {
    width: 50%;
    height: 50%;
    opacity: 0.7;
}
.gallery-thumb--add {
    background: none;
    border: 1.5px dashed rgba(26, 42, 46, 0.3);
}




@keyframes tplSlide {
    0%, 28% { transform: translateY(0); }
    33%, 61% { transform: translateY(-26px); }
    66%, 94% { transform: translateY(-52px); }
    100% { transform: translateY(-78px); }
}




.rx-doc {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    color: var(--color-primary);
}
.rx-note {
    flex: none;
    width: 30px;
    height: auto;
}
.rx-scribbles {
    flex: 1;
    min-width: 0;
    height: auto;
    opacity: 0.85;
}
.teethShot {
    display: block;
    width: 100%;
    height: auto;
    margin-top: 10px;
    border-radius: 12px;
}















.hero-copy-grid.hero-story-block {
    position: relative;
    margin-top: 124px;
}

.hero-story-block {
    display: grid;
    justify-items: center;
    text-align: center;
}

.story-orbit {
    position: relative;
    width: min(100%, 620px);
    height: 330px;
    margin-bottom: 26px;
    isolation: isolate;
}

.story-orbit::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 2px;
    z-index: -1;
    width: 460px;
    height: 170px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 132, 139, 0.18) 0%, rgba(54, 132, 139, 0) 68%);
    filter: blur(12px);
    transform: translateX(-50%);
}

.story-orbit__ring {
    position: absolute;
    left: 50%;
    top: 8px;
    border: 2px dashed rgba(54, 132, 139, 0.34);
    border-bottom-color: transparent;
    border-radius: 999px 999px 0 0;
    transform: translateX(-50%);
    pointer-events: none;
}

.story-orbit__ring--outer {
    width: 430px;
    height: 222px;
    opacity: 0.55;
}

.story-orbit__ring--inner {
    top: 66px;
    width: 316px;
    height: 156px;
    opacity: 0.72;
}

.story-orbit__bubble {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(212, 224, 225, 0.78);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-primary-light);
    box-shadow: var(--shadow-subtle);
    backdrop-filter: blur(14px);
}

.story-orbit__bubble--top {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
}

.story-orbit__bubble--left {
    top: 84px;
    left: 126px;
}

.story-orbit__bubble--right {
    top: 84px;
    right: 126px;
}





.story-card {
    position: absolute;
    z-index: 2;
    display: grid;
    place-items: center;
    border: 1px solid rgba(212, 224, 225, 0.76);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.82)),
        radial-gradient(circle at 50% 0%, rgba(185, 210, 212, 0.18), rgba(185, 210, 212, 0));
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(18px);
}

.story-card--center {
    top: 94px;
    left: 50%;
    width: 196px;
    height: 208px;
    padding: 26px 24px;
    color: var(--color-primary);
    transform: translateX(-50%);
}

.story-card--document {
    top: 142px;
    left: 64px;
    width: 162px;
    height: 132px;
    color: var(--color-primary-light);
}

.story-card--signature {
    top: 142px;
    right: 64px;
    width: 162px;
    height: 132px;
    color: var(--color-primary-light);
}

.story-card--signature svg {
    width: 54px;
    height: auto;
}

.story-card__logo {
    color: var(--color-primary);
}
.story-card__logo-img {
    display: block;
    width: 56px;
    height: auto;
    margin-top: -6px;
}

.story-card__line {
    width: 118px;
    height: 9px;
    border-radius: 999px;
    background: rgba(185, 210, 212, 0.44);
}

.story-card__line--wide {
    width: 138px;
}

.story-card__line--short {
    width: 96px;
}

.story-card__tools {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    width: 100%;
}

.story-card__tools i {
    display: grid;
    place-items: center;
    height: 42px;
    border-radius: 10px;
    background: rgba(54, 132, 139, 0.1);
    color: var(--color-primary-light);
    font-family: var(--font-heading);
    font-size: 22px;
    font-style: normal;
    font-weight: 800;
}

.story-card__check {
    position: absolute;
    right: 20px;
    bottom: 22px;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--color-secondary);
    color: #fff;
    box-shadow: 0 8px 18px rgba(54, 132, 139, 0.22);
}

.story-copy {
    max-width: 1040px;
    margin: 0 auto;
}

.story-title {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: 0;
}

.story-title span {
    color: inherit;
}

.story-text {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 56px;
    max-width: 1040px;
    margin: 28px auto 0;
    align-items: center;
    text-align: left;
}

.story-text__lines {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.story-text p {
    margin: 0;
    padding: 2px 0 2px 22px;
    border-left: 3px solid var(--color-primary);
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.78;
    text-align: left;
}

.story-cta-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    text-align: center;
}

.story-cta-panel span {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.18;
}

.story-cta {
    align-self: center;
}

.spotlight,
.editorial-block {
    padding: var(--section-padding) 0;
}

.spotlight {
    background: transparent;
}

.builder-feature-section {
    position: relative;
    overflow: hidden;
    margin-top: 56px;
    background: transparent;
}

.builder-feature-section::before,
.builder-feature-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    background-image: radial-gradient(rgba(54, 132, 139, 0.14) 1.4px, transparent 1.4px);
    background-size: 18px 18px;
    opacity: 0.22;
    pointer-events: none;
}

.builder-feature-section::before {
    right: 4%;
    top: 34px;
}

.builder-feature-section::after {
    left: 36%;
    bottom: 26px;
}

.builder-feature {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(330px, 0.72fr) minmax(620px, 1.28fr);
    gap: 62px;
    align-items: center;
}

.builder-feature__copy {
    max-width: 470px;
}

.builder-feature__title {
    margin: 24px 0 16px;
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: 0;
}

.builder-feature__title span {
    display: block;
    color: inherit;
}

.builder-feature__subtitle {
    color: var(--color-text-secondary);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.55;
}

.builder-feature__text {
    margin-top: 34px;
    color: var(--color-text-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.9;
}

.builder-feature__list {
    display: grid;
    gap: 17px;
    margin-top: 34px;
    list-style: none;
}

.builder-feature__list li {
    position: relative;
    min-height: 28px;
    display: flex;
    align-items: center;
    padding-left: 38px;
    color: var(--color-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.4;
}

.builder-feature__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 24px;
    height: 24px;
    border: 1.5px solid rgba(0, 85, 109, 0.32);
    border-radius: 50%;
    background: rgba(0, 85, 109, 0.04);
    transform: translateY(-50%);
}

.builder-feature__list li::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 50%;
    width: 7px;
    height: 12px;
    border-right: 2px solid var(--color-primary);
    border-bottom: 2px solid var(--color-primary);
    transform: translateY(-62%) rotate(45deg);
}

.builder-feature__cta {
    margin-top: 38px;
    min-width: 220px;
}

.builder-feature__visual {
    min-width: 0;
}

.builder-media {
    position: relative;
    width: 100%;
}
.builder-video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    border: 1px solid rgba(212, 224, 225, 0.84);
    box-shadow: var(--shadow-frame);
}
.builder-final {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    border-radius: 24px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 2.6s ease;
}
.builder-final.is-visible {
    opacity: 1;
}













































































































































































































.editorial-block {
    background: transparent;
}

.tools-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
    gap: 64px;
    align-items: center;
}

.tools-copy {
    max-width: 470px;
    justify-self: end;
    order: 2;
}

.tools-copy__cta {
    margin-top: 28px;
}

.tools-copy--beauty {
    display: none;
}

.tools-layout.is-beauty-pass .tools-copy--default {
    display: none;
}

.tools-layout.is-beauty-pass .tools-copy--beauty {
    display: block;
    animation: panelReveal 0.48s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.beauty-pass-copy {
    max-width: 500px;
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    line-height: 1.72;
}

.beauty-pass-copy p + p {
    margin-top: 20px;
}

.tools-showcase {
    position: relative;
    order: 1;
}

.tool-tabs {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: var(--radius-pill);
    background: #fff;
}

.tool-tabs__indicator {
    position: absolute;
    top: 6px;
    left: 0;
    width: 0;
    height: calc(100% - 12px);
    background: var(--brand);
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(0, 85, 109, 0.25);
    transition: transform 420ms cubic-bezier(0.23, 1, 0.32, 1), width 420ms cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.tool-tab {
    position: relative;
    z-index: 1;
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    text-align: center;
    line-height: 1.2;
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    transition: color 240ms cubic-bezier(0.23, 1, 0.32, 1);
}

.tool-tab:hover {
    color: var(--color-primary);
}

.tool-tab.active {
    color: #fff;
}

.tool-viewport {
    position: relative;
    overflow: hidden;
    min-height: 420px;
    margin-top: 18px;
    border: 1px solid rgba(212, 224, 225, 0.72);
    border-radius: 24px;
    background:
        linear-gradient(90deg, rgba(0, 85, 109, 0.06) 1px, transparent 1px),
        linear-gradient(180deg, rgba(0, 85, 109, 0.06) 1px, transparent 1px),
        #fff;
    background-size: 28px 28px;
}

.tool-panel {
    display: none;
    grid-template-columns: minmax(0, 1fr) 230px;
    gap: 22px;
    align-items: center;
    min-height: 420px;
    padding: 36px;
}

.tool-panel.active {
    display: grid;
    animation: panelReveal 0.36s ease both;
}

.tool-panel__copy {
    padding: 20px;
    border-left: 1px solid rgba(212, 224, 225, 0.78);
}

.tool-panel__copy h3 {
    color: var(--color-primary);
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.12;
}

.tool-panel__copy p {
    margin-top: 12px;
    color: var(--color-text-secondary);
    font-size: 13px;
    line-height: 1.75;
}



.tool-shot {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

.tool-shot-frame--beauty {
    position: relative;
    overflow: hidden;
    width: 100%;
    aspect-ratio: 902 / 625;
    border: 1px solid rgba(0, 85, 109, 0.12);
    border-radius: 18px;
    background: #f8fbfb;
    box-shadow: 0 10px 28px rgba(0, 61, 79, 0.08);
}

.tool-shot-frame--beauty img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tool-panel--beauty {
    grid-template-columns: minmax(0, 1fr);
    padding: 24px;
}

.tool-panel__copy--beauty-mobile {
    display: none;
}





































.tool-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.tool-arrow {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(212, 224, 225, 0.8);
    border-radius: 50%;
    background: #fff;
    color: var(--color-primary);
    cursor: pointer;
    box-shadow: var(--shadow-subtle);
}

.tool-dots {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-dots button {
    width: 9px;
    height: 9px;
    border: 0;
    border-radius: 999px;
    background: rgba(185, 210, 212, 0.86);
}

.tool-dots button.active {
    width: 26px;
    background: var(--color-primary);
}

































.animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.visible-now {
    transition: none;
}

.agenda-hero .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
}

@keyframes panelReveal {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 1180px) {
    .agenda-hero__inner {
        grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
        gap: 46px;
    }

    .builder-feature {
        grid-template-columns: minmax(300px, 0.72fr) minmax(560px, 1.28fr);
        gap: 38px;
    }

    

    

    
}

@media (max-width: 1020px) {
    

    

    .agenda-hero__inner,
    .builder-feature,
    .builder-experience,
    .tools-layout {
        grid-template-columns: 1fr;
    }

    .agenda-hero__content,
    .builder-feature__copy,
    .tools-copy {
        max-width: 640px;
    }

    .tools-copy,
    .tools-showcase {
        justify-self: stretch;
        order: initial;
    }

    .builder-feature__visual {
        width: 100%;
    }

    

    .agenda-hero__visual {
        order: 2;
    }

    .hero-copy-grid {
        grid-template-columns: 1fr;
    }

    .story-title {
        font-size: 36px;
    }

    .story-text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }

    .story-cta-panel {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
    }

    .story-text p {
        font-size: 16px;
    }

    

    

    
}

@media (max-width: 760px) {
    :root {
        --section-padding: 56px;
    }

    .container {
        width: min(100% - 36px, var(--container-max));
    }

    

    

    

    .agenda-hero {
        padding-top: 40px;
    }

    .agenda-hero__title {
        font-size: 44px;
    }

    .section-title,
    .cta-final__title {
        font-size: 30px;
    }

    .builder-feature__title {
        font-size: 40px;
    }

    .builder-feature__subtitle {
        font-size: 18px;
    }

    

    

    

    

    

    

    

    .hero-product {
        min-height: 600px;
    }

    

    .clinical-sheet {
        left: 38px;
        right: 18px;
        padding: 20px;
    }

    

    

    

    .hero-float--image {
        top: 10px;
        right: 0;
    }

    .hero-float--teeth {
        right: 10px;
        bottom: 116px;
    }


    .hero-float--signature {
        left: 52%;
        bottom: 12px;
    }

    .builder-accordion,
    .tool-tabs,
    .footer__grid {
        grid-template-columns: 1fr;
    }

    .hero-copy-grid {
        margin-top: 54px;
    }

    .story-orbit {
        width: min(100%, 430px);
        height: 300px;
    }

    .story-orbit__ring--outer {
        width: 340px;
        height: 188px;
    }

    .story-orbit__ring--inner {
        top: 64px;
        width: 256px;
        height: 132px;
    }

    .story-orbit__bubble {
        width: 42px;
        height: 42px;
    }

    .story-orbit__bubble--left {
        left: 42px;
    }

    .story-orbit__bubble--right {
        right: 42px;
    }

    

    

    .story-card--center {
        top: 96px;
        width: 174px;
        height: 190px;
        padding: 22px 20px;
    }

    .story-card--document,
    .story-card--signature {
        top: 150px;
        width: 118px;
        height: 106px;
        border-radius: 18px;
    }

    .story-card--document {
        left: 0;
    }

    .story-card--signature {
        right: 0;
    }

    .story-card--document svg {
        width: 54px;
    }

    .story-card--signature svg {
        width: 88px;
    }

    .story-card__tools i {
        height: 36px;
    }

    .story-title {
        font-size: 32px;
    }

    .story-text {
        grid-template-columns: 1fr;
        max-width: 620px;
        text-align: left;
    }

    .story-cta-panel {
        grid-column: auto;
        flex-direction: column;
        align-items: flex-start;
    }

    .story-text p {
        text-align: left;
    }

    

    

    

    

    .tool-panel,
    .tool-panel.active {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 22px;
    }

    .tool-panel__copy {
        border-left: 0;
        border-top: 1px solid rgba(212, 224, 225, 0.78);
        padding: 18px 0 0;
    }

    

    

    
}

@media (max-width: 480px) {
    .agenda-hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .agenda-hero__title {
        font-size: 38px;
    }

    .builder-feature__title {
        font-size: 34px;
    }

    .builder-feature__text {
        font-size: 14px;
        line-height: 1.82;
    }

    .builder-feature__list li {
        font-size: 14px;
    }

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    .hero-product {
        min-height: 660px;
    }

    .story-orbit {
        height: 280px;
    }

    .story-orbit__ring--outer {
        width: 286px;
    }

    .story-orbit__ring--inner {
        width: 218px;
    }

    .story-orbit__bubble--left {
        left: 20px;
    }

    .story-orbit__bubble--right {
        right: 20px;
    }

    .story-card--center {
        width: 158px;
        height: 174px;
    }

    .story-card--document,
    .story-card--signature {
        width: 102px;
        height: 96px;
    }

    .story-card__line {
        width: 96px;
    }

    .story-card__line--wide {
        width: 110px;
    }

    .story-card__line--short {
        width: 74px;
    }

    .story-title {
        font-size: 29px;
    }

    .story-text {
        gap: 14px;
    }

    .story-text p {
        font-size: 15px;
    }

    .hero-float {
        width: 138px;
    }

    .hero-float--teeth,
    .hero-float--signature {
        width: 164px;
    }

    .tools-showcase {
        padding: 12px;
    }

    

    

    
}


/* Collage del hero duplicado en el bloque story: solo existe en
   móvil/tablet (≤1020), donde sustituye al hero visual y al orbit. */
.story-product {
    display: none;
}

@media (max-width: 1020px) {
    .agenda-hero__visual {
        display: none;
    }

    .story-orbit {
        display: none;
    }

    .story-product {
        display: block;
        width: 100%;
        min-width: 0;
        margin-bottom: 26px;
        /* hidden: la caja escalada sigue midiendo 560px de layout */
        overflow: hidden;
    }

    .story-product .hero-product {
        margin-inline: auto;
    }
}

/* Hero centrado en tablet/móvil (el visual ya no acompaña al texto) */
@media (max-width: 1020px) {
    .agenda-hero__content {
        text-align: center;
    }

    .agenda-hero__subtitle {
        margin-inline: auto;
    }

    .agenda-hero__actions {
        justify-content: center;
    }
}

/* ≤1020 el visual está oculto: el hero deja el grid (columnas, gap y
   sus asimetrías) y pasa a bloque centrado. */
@media (max-width: 1020px) {
    .agenda-hero .agenda-hero__inner {
        display: block;
        max-width: 640px;
    }
}

/* Badge del hero en una sola línea a cualquier ancho: el texto no se
   parte y las rayitas ceden (se encogen) cuando falta sitio */
.agenda-hero__content .eyebrow,
.tools-copy .eyebrow {
    white-space: nowrap;
    width: min(100%, 320px);
    justify-content: center;
}

.agenda-hero__content .eyebrow::before,
.agenda-hero__content .eyebrow::after,
.tools-copy .eyebrow::before,
.tools-copy .eyebrow::after {
    flex: 1 1 0;
    width: auto;
    min-width: 12px;
    max-width: 90px;
}

/* Título del hero algo más grande en teléfono */
@media (max-width: 760px) {
    .agenda-hero__title {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .agenda-hero__title {
        font-size: 43px;
    }
}

/* Teléfono: el collage gana ancho (escapa parte del padding del
   container) y sube hacia el hero */
@media (max-width: 720px) {
    .story-product {
        /* el ancho/centrado a viewport lo fija historia.js midiendo */
        margin-top: -52px;
    }
}

/* La --shot va en flujo (relative): los left/right de las medias móviles
   (pensados para la sheet absolute) la desplazaban fuera del canvas */
.clinical-sheet--shot {
    left: auto;
    right: auto;
}

@media (max-width: 1020px) {
    .story-product .hero-float--image {
        right: 8px;
    }
}

/* Distribución de las flotantes en el collage del story: recetas
   arriba-dcha, odontograma media altura dcha, galería abajo-izda */
@media (max-width: 1020px) {
    .story-product .hero-float--teeth {
        right: 8px;
        bottom: 210px;
    }

    .story-product .hero-float--signature {
        left: 18px;
        bottom: 26px;
    }
}

/* Panel CTA del story en columna centrada también ≤1020 (la media de
   1020 lo ponía en fila y el texto quedaba descolgado a la izquierda) */
@media (max-width: 1020px) {
    .story-cta-panel {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

/* ≤720 el agrandado del collage es visual (scale): el wrap no recorta */
@media (max-width: 720px) {
    .story-product {
        overflow: visible;
    }
}

/* Teléfono: el título del story respira más ancho que su track */
@media (max-width: 720px) {
    .story-title {
        margin-inline: -18px;
    }
}

/* Teléfono: la lista de ticks pierde el indent (padding UA de la ul) y
   se alinea con el párrafo */
@media (max-width: 720px) {
    .builder-feature__list {
        padding-left: 0;
    }
}

/* Teléfono: copy del constructor centrado — la lista de ticks NO
   (se queda a la izquierda) */
@media (max-width: 720px) {
    .builder-feature__copy {
        text-align: center;
    }

    .builder-feature__subtitle,
    .builder-feature__text {
        margin-inline: auto;
    }

    .builder-feature__list {
        text-align: left;
    }

    .builder-feature__cta {
        display: block;
        width: fit-content;
        margin-inline: auto;
    }
}

/* Teléfono: sección Herramientas visuales — copy centrado y sin
   desbordes (los tabs nowrap inflaban el min-content del track) */
@media (max-width: 720px) {
    #historiales > .container {
        width: 100%;
        padding-inline: 10px;
    }

    .tools-copy,
    .tools-showcase {
        min-width: 0;
    }

    .tools-copy {
        width: 100%;
        max-width: none;
        text-align: center;
    }

    .tools-copy .section-title,
    .tools-copy .section-subtitle,
    .tools-copy .section-rich-copy,
    .tools-copy .beauty-pass-copy {
        width: 100%;
        max-width: 410px;
        margin-inline: auto;
    }

    .tools-layout.is-beauty-pass .tools-copy--default {
        display: block;
    }

    .tools-layout.is-beauty-pass .tools-copy--beauty {
        display: none;
    }

    /* Sin menú de tabs en teléfono: mandan los puntitos + flechas. */
    .tool-tabs {
        display: none;
    }

    .tools-showcase {
        display: flex;
        flex-direction: column;
    }

    .tool-controls {
        order: initial;
        width: 100%;
        margin: 16px 0;
    }

    .tools-showcase .carouselTimer {
        display: block;
        order: 3;
        max-width: 220px;
        width: 100%;
        height: 3px;
        margin: 10px auto 0;
        border-radius: 999px;
        background: rgba(0, 85, 109, 0.14);
        overflow: hidden;
    }

    .tools-showcase .carouselTimerBar {
        display: block;
        height: 100%;
        border-radius: inherit;
        background: var(--color-primary);
        transform: scaleX(0);
        transform-origin: left;
    }

    .tools-showcase .carouselTimerBar.is-running {
        transition-property: transform;
        transition-timing-function: linear;
        transform: scaleX(1);
    }

    .tool-panel__copy {
        text-align: center;
    }

    /* Mockup a lo ancho del teléfono (10px de aire por lado); siempre
       dibujo arriba y texto debajo */
    .tool-viewport {
        order: 1;
        margin-inline: calc(50% - 50vw + 10px);
        display: flex;
        flex-direction: column;
    }

    .tool-panel.active {
        flex: 1;
    }

    .tool-panel.active {
        display: flex;
        flex-direction: column;
        animation: none;
    }

    .tool-panel.active > .tool-shot,
    .tool-panel.active > .tool-shot-frame--beauty,
    .tool-panel.active > .tool-panel__copy {
        animation: panelReveal 0.36s ease both;
    }

    .tool-panel.active > .tool-controls {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .tool-panel {
        --tool-mobile-media-height: clamp(230px, 72vw, 310px);
    }

    .tool-panel > .tool-shot,
    .tool-panel > .tool-shot-frame--beauty {
        flex: 0 0 var(--tool-mobile-media-height);
        width: 100%;
        height: var(--tool-mobile-media-height);
    }

    .tool-panel > .tool-shot {
        order: -1;
        object-fit: contain;
        object-position: center;
    }

    .tool-panel > .tool-shot-frame--beauty {
        display: grid;
        place-items: center;
        aspect-ratio: auto;
    }

    .tool-shot-frame--beauty img {
        object-fit: contain;
        object-position: center;
    }

    /* El texto SIEMPRE pegado al fondo del panel (los mockups bajos,
       como la galería, dejaban al copy flotando en medio) */
    .tool-panel__copy {
        margin-top: auto;
    }

    .tool-panel__copy--beauty-mobile {
        display: block;
        width: 100%;
        margin-top: 20px;
        padding-top: 20px;
    }

    .tool-panel__copy--beauty-mobile h3 {
        max-width: 340px;
        margin-inline: auto;
    }

    .tool-panel__copy--beauty-mobile .beauty-pass-copy {
        max-width: 380px;
        margin: 16px auto 0;
    }

    .tool-tab.active {
        background: var(--color-primary);
        color: #fff;
    }
}

/* Teléfono: CTA final pegada a la sección de arriba (~10px) y card
   casi fullscreen (8px de aire por lado) */
@media (max-width: 720px) {
    .body--historia .cta-final__inner {
        margin-inline: calc(50% - 50vw + 8px);
    }
}

/* Teléfono: separación uniforme (~30px) entre TODAS las secciones:
   15px de padding arriba y abajo en cada una. El hero conserva su
   colchón superior bajo el header fijo. */
@media (max-width: 720px) {
    .body--historia main > section {
        padding-top: 15px;
        padding-bottom: 15px;
    }

    .body--historia main > section.agenda-hero {
        padding-top: 80px;
    }

    .body--historia .agenda-hero__content {
        margin-top: 40px;
        margin-inline: auto;
    }

    /* Al subir el copy, el collage inferior no debe subir con él ni asomar
       dentro del primer viewport. Se conserva como bloque posterior. */
    .body--historia .hero-copy-grid.hero-story-block {
        margin-top: 190px;
    }

    .body--historia main > section.cta-final {
        padding-bottom: 44px;
    }
}

/* Carrusel quickNav (bloque compartido): título centrado y tamaño medio */
.quickNavBlock {
    text-align: center;
}

.quickNavBlock h2 {
    max-width: 760px;
    margin: 0 auto;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    line-height: 1.1;
    color: var(--color-primary, #00556d);
}

/* Carrusel quickNav: igualar el aire arriba y abajo (abajo = 124 por el CTA) */
.body--historia .quicknav-section {
    padding-top: 124px;
}
