/* ===== OralDent: blanco + naranja del logo ===== */
:root {
    --orange: #FF6936;
    --orange-deep: #E8501F;
    --orange-tint: #FFF3ED;
    --orange-soft: #FFE3D6;
    --white: #FFFFFF;
    --ink: #26211F;
    --ink-soft: #6A625E;
    --line: #F0E4DC;
    --whatsapp: #25D366;
    --whatsapp-dark: #1DA851;
    --radius-xl: 32px;
    --radius-lg: 22px;
    --radius-md: 16px;
    --shadow-card: 0 18px 48px rgba(38, 33, 31, 0.07);
    --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 600;
    background: var(--white);
    color: var(--ink);
    line-height: 1.55;
    overflow-x: hidden;
}

h1, h2, h3 { font-weight: 900; line-height: 1.1; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* ===== BOTONES ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-family: inherit;
    font-weight: 800;
    font-size: 0.98rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s;
    user-select: none;
}
.btn:active { transform: scale(0.96); }
.btn--sm { padding: 9px 18px; font-size: 0.9rem; }
.btn--lg { padding: 18px 34px; font-size: 1.1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-deep); transform: translateY(-2px); }

.btn--outline { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--orange); color: var(--orange-deep); transform: translateY(-2px); }

.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--ghost:hover { color: var(--orange-deep); background: rgba(255, 105, 54, 0.08); }

.btn--light { background: var(--white); color: var(--orange-deep); }
.btn--light:hover { transform: translateY(-3px); }

/* ===== HEADER ===== */
.header { position: sticky; top: 12px; z-index: 1000; padding: 0 12px; margin-bottom: 12px; }

.header__container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border-radius: 999px;
    padding: 10px 14px 10px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    box-shadow: 0 8px 28px rgba(38, 33, 31, 0.06);
}

.header__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.header__logo-img { height: 34px; width: auto; border-radius: 9px; }

/* Estilos personalizados para el texto del Logo */
.header__logo-text-wrapper { 
    display: flex; 
    flex-direction: column; 
    line-height: 1; 
    align-items: center; /* Centra ambos textos */
}
.header__logo-text { 
    font-size: 1.85rem; /* Letra más grande para igualar el ancho del texto inferior */
    font-weight: 900; 
    letter-spacing: -0.5px;
    line-height: 0.9; /* Junta un poco el texto de arriba con el de abajo */
}
.logo-o { color: var(--orange); /* #ff6936 */ }
.logo-ral { color: #727377; }
.logo-dent { color: #bebfc1; }
.header__logo-subtitle {
    font-size: 0.56rem; /* Letra más pequeña para que encaje exacto */
    font-weight: 800;
    color: var(--orange);
    margin-top: 3px;
    letter-spacing: 0.2px;
    text-transform: uppercase; /* En mayúsculas da el efecto de caja perfecta */
}

.header__nav { display: flex; align-items: center; gap: 26px; }

.header__link {
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.header__link:hover { color: var(--orange-deep); }

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

.header__menu {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.header__menu span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; }

/* ===== HERO ===== */
.hero { padding: 10px 0 24px; }

.stage-card {
    background: var(--orange-tint);
    border-radius: var(--radius-xl);
    padding: 28px;
    display: grid;
    grid-template-columns: 0.82fr 1.38fr;
    gap: 32px;
    align-items: center;
}

.stage-deck { display: flex; flex-direction: column; }
.stage-deck .stage-controls { order: -1; }

.stage-title {
    font-size: clamp(2.4rem, 4.6vw, 3.8rem);
    letter-spacing: -1.5px;
    margin-bottom: 14px;
}

.stage-subtitle {
    color: var(--ink-soft);
    font-size: 0.96rem;
    max-width: 40ch;
    margin-bottom: 20px;
}

.stage-controls { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

.patient-chart {
    background: var(--white);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 16px;
}
.chart-item { display: flex; flex-direction: column; }
.chart-label { font-size: 0.7rem; font-weight: 700; color: var(--ink-soft); }
.chart-val { font-weight: 900; font-size: 1rem; }
.chart-val--accent { color: var(--orange-deep); }
.chart-divider { width: 1px; height: 28px; background: var(--line); }

/* Escenario 3D */
.stage-visual { position: relative; min-width: 0; }

.stage-canvas {
    position: relative;
    width: 100%;
    height: 560px;
    background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #FFE6DA 100%);
    border-radius: var(--radius-lg);
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.stage-wordmark {
    position: absolute;
    top: 6%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(3.6rem, 8vw, 7rem);
    font-weight: 900;
    letter-spacing: -2px;
    color: rgba(255, 105, 54, 0.1);
    pointer-events: none;
    white-space: nowrap;
    z-index: 1;
}
.stage-wordmark span { color: rgba(255, 105, 54, 0.22); }

.tool-indicator {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
    background: var(--white);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ink);
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stage-canvas__gl {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    cursor: grab;
}
.stage-canvas__gl:active { cursor: grabbing; }

.status-line {
    position: absolute;
    bottom: 38px;
    left: 20px;
    z-index: 5;
    background: var(--ink);
    color: var(--white);
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 800;
    font-size: 0.86rem;
    box-shadow: 0 10px 25px rgba(38, 33, 31, 0.22);
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.96);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
    max-width: calc(100% - 290px);
}
.status-line.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.stage-hint {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 3;
    text-align: center;
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--ink-soft);
    pointer-events: none;
}

/* ===== BARRA SELECTORA DE HERRAMIENTAS ===== */
.dock-slot:empty { display: none; }

.tool-dock {
    position: absolute;
    right: 16px;
    bottom: 34px;
    z-index: 4;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    padding: 8px 12px;
    border-radius: 22px;
    border: 1px solid var(--line);
    box-shadow: 0 12px 30px rgba(38, 33, 31, 0.09);
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-dock__title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--ink-soft);
    padding-left: 4px;
    white-space: nowrap;
}

.tool-dock__list {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-dock__btn {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-family: inherit;
    padding: 2px;
    transition: transform 0.2s var(--ease);
}
.tool-dock__btn:hover { transform: translateY(-2px); }

.tool-dock__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--tool-color, var(--orange));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid transparent;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.tool-dock__btn.is-active .tool-dock__icon {
    border-color: var(--ink);
    transform: scale(1.08);
    box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink);
}

.tool-dock__name {
    font-size: 0.66rem;
    font-weight: 800;
    color: var(--ink);
    white-space: nowrap;
}

/* ===== SECCIONES ===== */
.section { padding: 72px 0 24px; }
.section--tight { padding-top: 48px; }

.section__header { max-width: 580px; margin-bottom: 32px; }
.section__title { font-size: clamp(2rem, 3.6vw, 2.8rem); letter-spacing: -1px; margin-bottom: 8px; }
.section__subtitle { color: var(--ink-soft); font-size: 1.02rem; }

/* Consultorio y Equipo */
.consultorio__grid { display: grid; grid-template-columns: 1.2fr 0.95fr; gap: 24px; align-items: stretch; }

.viewer-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.viewer__top { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.viewer__tabs { display: flex; gap: 6px; flex-wrap: wrap; }

.v-tab {
    padding: 7px 16px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.v-tab:hover { border-color: var(--orange); }
.v-tab.active { background: var(--orange); border-color: var(--orange); color: var(--white); }

.viewer__canvas { width: 100%; height: 420px; cursor: grab; touch-action: none; flex: 1; }

.viewer__bottom {
    padding: 14px 18px;
    font-size: 0.88rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}
.viewer__bottom strong { color: var(--ink); }

.team { min-width: 0; }
.team__cards { display: grid; grid-template-columns: 1fr; gap: 12px; }

.team-card {
    background: var(--orange-tint);
    border-radius: var(--radius-md);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    border: 1px solid rgba(255, 105, 54, 0.12);
    transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.team-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(38, 33, 31, 0.06);
}

/* Personajes */
.team-card__avatar {
    position: relative;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: inset 0 -4px 8px rgba(0, 0, 0, 0.15), 0 6px 14px rgba(0, 0, 0, 0.1);
}

.char-face--pinchy { background: linear-gradient(145deg, #FF626D, #E03542); }
.char-face--drill { background: linear-gradient(145deg, #42D6AE, #21A37F); }
.char-face--bristles { background: linear-gradient(145deg, #A478FF, #7C4DFF); }
.char-face--flossy { background: linear-gradient(145deg, #FFD24C, #F0A818); }

.char-horns { position: absolute; top: 5px; display: flex; gap: 14px; }
.char-horns span {
    width: 8px; height: 11px;
    border: 3px solid rgba(255, 255, 255, 0.9);
    border-bottom: none; border-radius: 8px 8px 0 0;
}

.char-bur {
    position: absolute; top: 4px; width: 10px; height: 12px;
    background: linear-gradient(180deg, #F8FAFC, #94A3B8);
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.char-bristles { position: absolute; top: 5px; display: flex; gap: 3px; }
.char-bristles span { width: 5px; height: 9px; background: #38F2C2; border-radius: 3px 3px 1px 1px; }

.char-floss-arch {
    position: absolute; top: 5px; width: 28px; height: 10px;
    border-left: 3px solid #FFF; border-right: 3px solid #FFF;
    border-top: 2px dashed rgba(255, 255, 255, 0.95); border-radius: 3px;
}

.googly-eyes { display: flex; gap: 6px; margin-top: 8px; z-index: 2; }
.googly-eyes span {
    width: 18px; height: 18px; background: var(--white);
    border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
}
.googly-eyes span::after {
    content: ''; width: 8px; height: 8px; background: var(--ink);
    border-radius: 50%; transform: translate(1px, 1px);
}
.googly-eyes--focus span { height: 14px; border-top: 3px solid var(--ink); }

.char-mouth { margin-top: 5px; z-index: 2; }
.char-mouth--grin { width: 20px; height: 8px; background: var(--white); border-radius: 2px 2px 10px 10px; border: 1.5px solid var(--ink); }
.char-mouth--o { width: 10px; height: 10px; background: var(--ink); border-radius: 50%; border: 2px solid var(--white); }
.char-mouth--smile { width: 18px; height: 7px; border-bottom: 3px solid var(--white); border-radius: 0 0 12px 12px; }
.char-mouth--happy { width: 16px; height: 8px; background: var(--ink); border-radius: 0 0 12px 12px; }

.team-card__info h3 { font-size: 1.15rem; margin-bottom: 1px; }
.team-card__role { display: block; font-size: 0.78rem; font-weight: 800; color: var(--orange-deep); margin-bottom: 3px; }
.team-card__info p { font-size: 0.85rem; color: var(--ink-soft); line-height: 1.4; }

/* Servicios */
.servicios__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 32px 28px; }

.servicio { border-top: 2px solid var(--ink); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.servicio h3 { font-size: 1.25rem; }
.servicio p { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.servicio__link {
    align-self: flex-start;
    margin-top: 6px;
    font-weight: 900;
    color: var(--orange-deep);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}
.servicio__link:hover { color: var(--orange); }

/* Puntos de los carruseles (móvil) */
.carousel-dots { display: none; justify-content: center; gap: 8px; margin-top: 14px; }
.carousel-dot {
    width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
    background: var(--orange-soft); cursor: pointer;
    transition: background 0.2s, transform 0.2s var(--ease), width 0.2s var(--ease);
}
.carousel-dot.is-active { background: var(--orange); width: 22px; border-radius: 999px; }

/* CTA */
.cta-panel {
    background: var(--orange);
    color: var(--white);
    border-radius: var(--radius-xl);
    padding: 72px 28px;
    text-align: center;
}
.cta-panel__title { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -1.5px; margin-bottom: 12px; }
.cta-panel__desc { font-size: 1.1rem; color: rgba(255, 255, 255, 0.92); margin: 0 auto 28px; max-width: 40ch; }

/* ===== FOOTER ===== */
.footer { padding: 24px 0 32px; }

.footer__panel {
    background: var(--orange-tint);
    border-radius: var(--radius-xl);
    padding: 40px 28px 24px;
    text-align: center;
}

.footer__giant-brand {
    font-size: clamp(3.2rem, 11vw, 8rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -2px;
    margin-bottom: 22px;
    display: flex;
    justify-content: center;
    gap: 2px;
    user-select: none;
    color: var(--ink);
}
.footer__giant-brand span { display: inline-block; transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); cursor: pointer; }
.footer__giant-brand span:hover { transform: scaleY(0.72) scaleX(1.18) translateY(8px); }
.footer__giant-brand .is-orange { color: var(--orange); }

.footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--orange-soft);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink-soft);
}

/* ===== WHATSAPP FLOTANTE ===== */
.whatsapp-float {
    position: fixed;
    bottom: 22px;
    right: 22px;
    width: 58px;
    height: 58px;
    background: var(--whatsapp);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: transform 0.2s var(--ease), background 0.2s;
    text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); background: var(--whatsapp-dark); }

.whatsapp-float__tooltip {
    position: absolute;
    right: 70px;
    background: var(--ink);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}
.whatsapp-float:hover .whatsapp-float__tooltip { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition-duration: 0.01ms !important; }
}

/* =========================================
   UBICACIÓN (MAPA)
========================================= */
.section--light {
    background-color: var(--bg-alt, #f7f9fc);
}

.map-container {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-top: 2rem;
    border: 2px solid var(--border-color, #eaeaea);
}

.map-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 10;
    pointer-events: none;
}

.map-card {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    pointer-events: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: 250px;
}

.map-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-color, #333);
    margin: 0;
}

.map-card p {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    margin: 0 0 0.5rem 0;
}

@media (max-width: 768px) {
    .map-container { height: 400px; }
    .map-overlay {
        bottom: auto;
        top: 10px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
    }
    .map-card { max-width: 100%; text-align: center; align-items: center; padding: 1rem; }
}

/* =========================================
   REDES SOCIALES
========================================= */
.social-networks {
    margin-top: 3rem;
    text-align: center;
    color: var(--text-color, #ffffff);
    animation: fadeIn 1s ease;
}

.social-networks p {
    font-weight: 600;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.social-networks__icons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-networks__icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #ffffff;
    transition: all 0.3s ease;
    fill: currentColor;
}

.social-networks__icons a:hover {
    background-color: #ffffff;
    color: #333333;
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}