/* 
   Turno Digital Pro Plus - Design System
   Main Stylesheet - STABILIZED VERSION
   Typography: Montserrat
*/

:root {
    /* Colors - Brand Blue System (STABLE) */
    --td-blue: #2552F2;
    --td-blue-dark: #183AC4;
    --td-blue-deep: #071B5C;
    --td-blue-navy: #081534;
    --td-blue-electric: #3D6BFF;
    --td-blue-sky: #7EA1FF;
    --td-blue-ice: #EEF3FF;
    --td-blue-mist: #F6F8FF;

    --td-gradient-primary: linear-gradient(135deg, #2552F2 0%, #183AC4 52%, #071B5C 100%);
    --td-gradient-hero: radial-gradient(circle at 18% 18%, rgba(61, 107, 255, 0.26) 0%, transparent 34%),
        radial-gradient(circle at 78% 12%, rgba(126, 161, 255, 0.22) 0%, transparent 30%),
        linear-gradient(135deg, #F8FAFF 0%, #EEF3FF 45%, #FFFFFF 100%);
    --td-gradient-dark: radial-gradient(circle at 22% 18%, rgba(61, 107, 255, 0.25) 0%, transparent 34%),
        linear-gradient(135deg, #071B5C 0%, #081534 100%);
    --td-gradient-soft: linear-gradient(135deg, rgba(37, 82, 242, 0.12) 0%, rgba(126, 161, 255, 0.08) 48%, rgba(255, 255, 255, 1) 100%);
    --td-gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 243, 255, 0.72) 100%);
    --td-gradient-cta: linear-gradient(135deg, #2552F2 0%, #183AC4 60%, #071B5C 100%);
    --td-gradient-border: linear-gradient(135deg, rgba(37, 82, 242, 0.34), rgba(126, 161, 255, 0.18));

    /* Functional mappings */
    --primary: var(--td-blue);
    --primary-dark: var(--td-blue-dark);
    --text-main: #111827;
    --text-muted: #667085;
    --bg-white: #ffffff;
    --bg-light: #F3F6FA;
    --bg-dark: #081534;
    --border: #e5e7eb;
    --white: #ffffff;

    /* Transitions */
    --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);

    /* Spacing - STABILIZED RHYTHM */
    --section-padding: 96px;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
    font-size: 16px;
}

/* Typography - REFERENCE-BASED SCALE */
h1 {
    font-size: clamp(3.2rem, 6vw, 5rem);
    line-height: 0.98;
    margin-bottom: 0.7em;
    letter-spacing: -0.05em;
    font-weight: 800;
}

h2 {
    font-size: clamp(2.25rem, 4.2vw, 3.35rem);
    line-height: 1.08;
    margin-bottom: 0.5em;
    letter-spacing: -0.04em;
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    line-height: 1.25;
    margin-bottom: 0.5em;
    font-weight: 700;
}

p {
    font-size: 0.96rem;
    line-height: 1.6;
    color: var(--text-muted);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container - STABILIZED */
.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

/* Logo - STABILIZED */
.site-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0;
}

.site-logo__image {
    display: block;
    width: auto;
    height: 42px;
    max-width: 190px;
    object-fit: contain;
}

.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;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--td-gradient-primary);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(37, 82, 242, 0.22);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 82, 242, 0.32);
}

/* Mobile Toggle Button Style */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--td-blue-navy);
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background: var(--td-gradient-soft);
    transform: translateY(-2px);
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: transparent;
    transition: var(--transition);
    padding: 20px 0;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    padding: 12px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-whatsapp {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}

/* Sections Global - STABILIZED */
section {
    padding: var(--section-padding) 0;
    position: relative;
    scroll-margin-top: 96px;
}

.section-light {
    background-color: var(--bg-white);
}

.section-gray {
    background: var(--td-gradient-soft);
}

.section-dark {
    background: var(--td-gradient-dark);
    color: var(--white);
}

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

.eyebrow {
    display: inline-block;
    padding: 5px 14px;
    background: linear-gradient(135deg, rgba(37, 82, 242, 0.08), rgba(126, 161, 255, 0.06));
    color: var(--td-blue-dark);
    border: 1px solid rgba(37, 82, 242, 0.15);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1.2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(2.25rem, 4.2vw, 3.35rem);
    margin-bottom: 18px;
    color: inherit;
}

.section-subtitle {
    font-size: clamp(1rem, 1.35vw, 1.16rem);
    line-height: 1.65;
    color: var(--text-muted);
}

.section-dark .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

/* Reveal Animation Class */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Hero Section - STABILIZED */
.hero {
    padding: 140px 0 80px;
    background: var(--td-gradient-hero);
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-content {
    max-width: 580px;
}

.hero-content h1 {
    margin-bottom: 24px;
    color: var(--td-blue-navy);
}

.hero-content .subtitle {
    font-size: clamp(1.05rem, 1.45vw, 1.22rem);
    line-height: 1.65;
    margin-bottom: 36px;
    max-width: 760px;
}

.hero-btns {
    display: flex;
    gap: 14px;
    margin-bottom: 28px;
}

.microtrust {
    font-size: 13px;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    height: 500px;
}

.mockup-main {
    width: 100%;
    height: 100%;
    background: var(--td-gradient-primary);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(37, 82, 242, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.08);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    animation: float 5s ease-in-out infinite;
    border: 1px solid rgba(37, 82, 242, 0.08);
}

.card-1 {
    top: 12%;
    right: -3%;
}

.card-2 {
    bottom: 22%;
    left: -5%;
}

.card-3 {
    top: 42%;
    left: -12%;
}

.card-4 {
    bottom: 8%;
    right: 4%;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Grids & Cards - STABILIZED PROPORTIONS */
.problem-grid,
.solution-grid,
.sectors-grid,
.capabilities-grid,
.trust-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 26px;
    /* User target 22-28px */
}

.problem-card,
.capability-card,
.pillar-card,
.sector-card,
.trust-card {
    background: var(--td-gradient-card);
    padding: 26px;
    /* User target 24-28px */
    border-radius: 24px;
    /* User target 22-28px */
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.05);
    transition: var(--transition);
    border: 1px solid rgba(37, 82, 242, 0.08);
}

.problem-card:hover,
.capability-card:hover {
    border-color: rgba(37, 82, 242, 0.2);
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(37, 82, 242, 0.12);
}

/* Pillar Card (Solution) */
.pillar-card {
    display: flex;
    gap: 22px;
}

.pillar-icon {
    width: 56px;
    height: 56px;
    background: var(--td-gradient-primary);
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.15rem;
    box-shadow: 0 8px 15px rgba(37, 82, 242, 0.15);
}

/* Timeline (Journey) */
.timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
    margin-top: 48px;
}

.step {
    position: relative;
    padding-left: 56px;
}

.step-num {
    position: absolute;
    left: 0;
    top: 0;
    width: 38px;
    height: 38px;
    background: var(--td-gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 8px 20px rgba(37, 82, 242, 0.18);
}

/* Visual Mockups - STABILIZED */
.visual-box {
    background: var(--white);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 0 20px 50px rgba(16, 24, 40, 0.06);
    margin-top: 40px;
    border: 1px solid rgba(37, 82, 242, 0.1);
}

.mockup-dashboard {
    background: var(--td-blue-mist);
    height: 320px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(37, 82, 242, 0.12);
}

/* FAQ Accordion */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(37, 82, 242, 0.08);
}

.faq-trigger {
    width: 100%;
    padding: 22px 28px;
    text-align: left;
    background: none;
    border: none;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--td-blue-navy);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    transition: all 0.4s ease-in-out;
}

.faq-item.active .faq-content {
    max-height: 400px;
    padding-bottom: 24px;
}

.faq-item.active .faq-trigger span {
    transform: rotate(45deg);
}

/* Contact Card - STABILIZED */
.contact-card {
    background: var(--white);
    max-width: 600px;
    margin: 0 auto;
    padding: 52px;
    border-radius: 28px;
    box-shadow: 0 25px 70px rgba(16, 24, 40, 0.12);
}

/* Footer - INDEPENDENT & STABILIZED */
.footer {
    padding: 58px 0 28px;
    background: var(--td-gradient-dark);
    color: var(--white);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.45fr 0.85fr 0.85fr 0.85fr 0.75fr;
    gap: 42px;
    margin-bottom: 44px;
    align-items: start;
}

.footer-brand .site-logo__image {
    height: 34px;
    max-width: 160px;
    margin-bottom: 20px;
    display: block;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 13px;
    line-height: 1.55;
    max-width: 300px;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 18px;
    color: white;
}

.footer-links li {
    margin-bottom: 9px;
}

.footer-links a,
.footer-links button {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    line-height: 1.45;
    transition: var(--transition);
}

.footer-links a:hover,
.footer-links button:hover {
    color: white;
    padding-left: 4px;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* =========================================================
   Turno Digital Cinematic Intro
   ========================================================= */

:root {
    --td-intro-blue: #2552F2;
    --td-intro-blue-dark: #183AC4;
    --td-intro-blue-deep: #071B5C;
    --td-intro-ink: #07111F;
    --td-intro-muted: #5F6B7A;
    --td-intro-line: rgba(7, 17, 31, 0.12);
    --td-intro-soft: #F6F8FF;
}

/* Header Visibility during Intro */
body.td-intro-active .header {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-16px);
}

body:not(.td-intro-active) .header {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.header {
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease, background-color 0.4s ease, padding 0.4s ease;
}

.td-intro-screen {
    min-height: 100vh;
    width: 100%;
    background: white;
    background: radial-gradient(circle at 50% 50%, rgba(37, 82, 242, 0.05) 0%, white 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 4vw, 3rem);
    scroll-margin-top: 0;
}

.td-intro-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    background-image: radial-gradient(var(--td-intro-line) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

.td-intro-content {
    width: min(1320px, 94vw);
    text-align: center;
    position: relative;
    z-index: 2;
}

.td-intro-kicker {
    text-transform: uppercase;
    letter-spacing: 0.42em;
    color: var(--td-intro-blue);
    font-weight: 600;
    font-size: clamp(0.9rem, 1.35vw, 1.18rem);
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(15px);
    animation: td-intro-fade-up 0.8s ease forwards 0.2s;
}

.td-intro-title {
    font-weight: 600;
    font-size: clamp(4rem, 10.2vw, 9.4rem);
    line-height: 0.92;
    letter-spacing: -0.075em;
    color: var(--td-intro-ink);
    margin: 0;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.td-intro-title.is-resetting {
    opacity: 0;
    transform: translateY(8px);
}

.td-intro-title-line {
    display: block;
}

.td-intro-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    filter: blur(4px);
    animation: td-intro-char-reveal 0.8s cubic-bezier(.16, 1, .3, 1) forwards;
}

.td-intro-copy {
    width: min(920px, 92vw);
    margin: 2.2rem auto 0;
    color: var(--td-intro-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.42rem);
    line-height: 1.5;
    font-weight: 500;
    opacity: 0;
    transform: translateY(18px);
    animation: td-intro-fade-up 0.85s ease forwards;
    animation-delay: 2.2s;
    text-wrap: pretty;
}

.td-intro-seo-line {
    width: min(920px, 92vw);
    margin: 1.25rem auto 0;
    color: rgba(7, 17, 31, 0.55);
    font-size: clamp(0.82rem, 1vw, 0.98rem);
    line-height: 1.55;
    font-weight: 600;
    opacity: 0;
    transform: translateY(14px);
    animation: td-intro-fade-up 0.75s ease forwards;
    animation-delay: 2.8s;
    text-wrap: pretty;
}

.td-intro-actions {
    margin-top: 1.75rem;
    opacity: 0;
    transform: translateY(20px);
    animation: td-intro-fade-up 0.8s ease forwards 3.2s;
}

.td-intro-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1.18rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2552F2 0%, #183AC4 55%, #071B5C 100%);
    color: white;
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(37, 82, 242, 0.22);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.td-intro-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(37, 82, 242, 0.32);
}

.td-intro-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 1.75rem;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    color: rgba(7, 17, 31, 0.58);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    opacity: 0;
    animation: td-intro-fade-in 0.8s ease forwards;
    animation-delay: 3.8s;
    pointer-events: none;
    z-index: 3;
}

.td-intro-scroll-hint span:first-child {
    display: inline-flex;
    line-height: 1;
}

.td-intro-scroll-hint span:last-child {
    width: 1px;
    height: 42px;
    background: rgba(37, 82, 242, 0.18);
    position: relative;
    overflow: hidden;
}

.td-intro-scroll-hint span:last-child::after {
    content: "";
    position: absolute;
    top: -42px;
    left: 0;
    width: 1px;
    height: 42px;
    background: #2552F2;
    animation: tdIntroScrollLine 1.6s ease-in-out infinite;
}

.td-intro-keywords {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.td-intro-keyword {
    position: absolute;
    color: rgba(37, 82, 242, 0.075);
    font-size: clamp(0.72rem, 1.05vw, 1rem);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    animation: tdIntroFloat 8s ease-in-out infinite;
}

.td-intro-keyword--one {
    top: 17%;
    left: 9%;
}

.td-intro-keyword--two {
    top: 27%;
    right: 11%;
    animation-delay: .4s;
}

.td-intro-keyword--three {
    bottom: 16%;
    left: 15%;
    animation-delay: .8s;
}

.td-intro-keyword--four {
    bottom: 18%;
    right: 12%;
    animation-delay: 1.2s;
}

.td-intro-keyword--five {
    top: 15%;
    right: 26%;
    animation-delay: 1.6s;
}

.td-intro-keyword--six {
    top: 44%;
    left: 4%;
    animation-delay: 2s;
}

.td-intro-keyword--seven {
    top: 42%;
    right: 6%;
    animation-delay: 2.4s;
}

.td-intro-keyword--eight {
    bottom: 8%;
    right: 27%;
    animation-delay: 2.8s;
}

/* Animations */
@keyframes td-intro-fade-up {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes td-intro-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes td-intro-char-reveal {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes tdIntroScrollLine {
    to {
        top: 42px;
    }
}

@keyframes tdIntroFloat {

    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }

    50% {
        transform: translate3d(0, -8px, 0);
    }
}

@media (prefers-reduced-motion: reduce) {

    .td-intro-char,
    .td-intro-kicker,
    .td-intro-actions,
    .td-intro-scroll-hint,
    .td-intro-keyword,
    .td-intro-copy,
    .td-intro-seo-line {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
    }
}

/* =========================================================
   Safe Hero #inicio internal scale refinement
   ========================================================= */
#inicio .hero-grid {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -110px;
}

/* =========================================================
   Safe #problema section height and internal scale refinement
   ========================================================= */

#problema {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#problema>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
}

/* =========================================================
   Safe #solucion section height, scale and 4-card row refinement
   ========================================================= */

#solucion {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#solucion>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
}

#solucion .section-header {
    margin-bottom: 44px;
}

#solucion .section-title {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    line-height: 1.08;
}

#solucion .section-subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.6;
}

#solucion .solution-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

#solucion .pillar-card {
    padding: 22px;
    border-radius: 22px;
    gap: 16px;
    min-height: 168px;
}

#solucion .pillar-icon {
    width: 46px;
    height: 46px;
    font-size: 0.95rem;
    border-radius: 11px;
}

#solucion .pillar-content h3 {
    font-size: 1.02rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

#solucion .pillar-content p {
    font-size: 0.88rem;
    line-height: 1.55;
}

/* =========================================================
   Safe #como-funciona section height and internal scale refinement
   ========================================================= */

#como-funciona {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#como-funciona>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -70px;
}

#como-funciona .section-header {
    margin-bottom: 42px;
}

#como-funciona .section-title {
    font-size: clamp(2rem, 3.4vw, 2.85rem);
    line-height: 1.08;
}

#como-funciona .section-subtitle {
    font-size: clamp(0.95rem, 1.15vw, 1.05rem);
    line-height: 1.6;
}

#como-funciona .timeline {
    gap: 26px 34px;
    margin-top: 38px;
}

#como-funciona .step {
    padding-left: 50px;
}

#como-funciona .step-num {
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
}

#como-funciona .step h3 {
    font-size: 1.03rem;
    line-height: 1.22;
    margin-bottom: 8px;
}

#como-funciona .step p {
    font-size: 0.9rem;
    line-height: 1.55;
}

#como-funciona .journey-container>div[style] {
    margin-top: 38px !important;
}

#como-funciona .btn {
    min-height: 44px;
    padding: 0 1.15rem;
    font-size: 0.84rem;
}

/* =========================================================
   Safe #modulos section height, scale and 4x2 cards refinement
   ========================================================= */

#modulos {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#modulos>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -55px;
}

#modulos .section-header {
    margin-bottom: 42px;
}

#modulos .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
}

#modulos .section-subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.55;
}

#modulos .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

#modulos .capability-card {
    padding: 22px;
    border-radius: 22px;
    min-height: 145px;
}

#modulos .capability-card h3 {
    font-size: 1rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

#modulos .capability-card p {
    font-size: 0.86rem;
    line-height: 1.55;
}

/* =========================================================
   Safe #soluciones section height and internal scale refinement
   ========================================================= */

#soluciones {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#soluciones>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -45px;
}

#soluciones .section-header {
    margin-bottom: 42px;
}

#soluciones .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
}

#soluciones .section-subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.55;
}

#soluciones .sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 26px;
    align-items: stretch;
}

#soluciones .sector-card {
    padding: 22px;
    border-radius: 22px;
    min-height: 150px;
}

#soluciones .sector-visual {
    font-size: 0.86rem;
    line-height: 1.25;
    margin-bottom: 6px;
}

#soluciones .sector-content h3 {
    font-size: 1.03rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

#soluciones .sector-content p {
    font-size: 0.88rem;
    line-height: 1.55;
}

/* =========================================================
   Safe #kioscos section height and internal scale refinement
   ========================================================= */

#kioscos {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 112px;
}

#kioscos>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -20px;
}

#kioscos .hero-grid {
    align-items: center;
    gap: 48px;
}

#kioscos .hero-content {
    max-width: 560px;
}

#kioscos .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
    margin-bottom: 22px;
}

#kioscos .subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.58;
    margin-bottom: 28px;
}

#kioscos ul {
    font-size: 0.9rem;
    line-height: 1.55;
}

#kioscos li {
    margin-bottom: 6px;
}

#kioscos .visual-box {
    padding: 34px;
    margin-top: 0;
    border-radius: 24px;
}

#kioscos .visual-box>div {
    height: 340px !important;
    border-radius: 18px !important;
}

/* =========================================================
   Safe #analitica section height, scale and 4-card row refinement
   ========================================================= */

#analitica {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

#analitica>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -55px;
}

#analitica .section-header {
    margin-bottom: 42px;
}

#analitica .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
}

#analitica .section-subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.55;
}

#analitica .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
    margin-bottom: 42px !important;
}

#analitica .problem-card {
    padding: 22px;
    border-radius: 22px;
    min-height: 128px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#analitica .problem-card span {
    font-size: 2rem !important;
    line-height: 1;
    margin-bottom: 10px !important;
}

#analitica .problem-card p {
    font-size: 0.88rem;
    line-height: 1.45;
}

#analitica .visual-box {
    margin-top: 28px;
    padding: 34px;
    border-radius: 24px;
}

#analitica .mockup-dashboard {
    height: 260px;
}

/* =========================================================
   Safe #diferenciadores section height and internal scale refinement
   ========================================================= */

#diferenciadores {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 124px;
}

#diferenciadores>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -20px;
}

#diferenciadores .section-header {
    margin-bottom: 42px;
}

#diferenciadores .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
}

#diferenciadores .problem-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

#diferenciadores .problem-card {
    padding: 24px 26px;
    border-radius: 22px;
    min-height: 210px;
}

#diferenciadores .problem-card h3 {
    font-size: 1.05rem;
    line-height: 1.22;
    margin-bottom: 16px !important;
}

#diferenciadores .problem-card ul {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
}

#diferenciadores .problem-card li {
    margin-bottom: 4px;
}

/* =========================================================
   Safe #confianza section height and internal scale refinement
   ========================================================= */

#confianza {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 112px;
}

#confianza>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -20px;
}

#confianza .section-header {
    margin-bottom: 42px;
}

#confianza .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
}

#confianza .section-subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.55;
}

#confianza .capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 26px;
    align-items: stretch;
}

#confianza .capability-card {
    padding: 22px;
    border-radius: 22px;
    min-height: 135px;
}

#confianza .capability-card h3 {
    font-size: 1.03rem;
    line-height: 1.22;
    margin-bottom: 10px;
}

#confianza .capability-card p {
    font-size: 0.88rem;
    line-height: 1.55;
}

/* =========================================================
   Safe #faq section height and internal scale refinement
   ========================================================= */

#faq {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 112px;
}

#faq>.container {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -20px;
}

#faq .section-header {
    margin-bottom: 42px;
}

#faq .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
}

#faq .faq-container {
    max-width: 760px;
    margin-inline: auto;
}

#faq .faq-item {
    margin-bottom: 10px;
    border-radius: 12px;
}

#faq .faq-trigger {
    padding: 18px 24px;
    font-size: 0.96rem;
    line-height: 1.35;
}

#faq .faq-content {
    padding: 0 24px;
}

#faq .faq-item.active .faq-content {
    padding-bottom: 20px;
}

#faq .faq-content p {
    font-size: 0.9rem;
    line-height: 1.55;
}

/* =========================================================
   Safe #contacto success/trust section replacement
   ========================================================= */

#contacto.success-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 112px;
}

#contacto .success-inner {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -10px;
}

#contacto .success-header {
    max-width: 860px;
    margin-bottom: 40px;
}

#contacto .success-eyebrow {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
}

#contacto .section-title {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
    color: #ffffff;
}

#contacto .section-subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

/* =========================================================
   Safe #contacto client logo carousel refinement
   ========================================================= */

#contacto .success-carousel {
    width: min(980px, 100%);
    margin: 0 auto 32px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%);
}

#contacto .success-carousel__track {
    display: flex;
    width: max-content;
    animation: successLogoMarquee 46s linear infinite;
}

#contacto .success-carousel:hover .success-carousel__track {
    animation-play-state: paused;
}

#contacto .success-carousel__group {
    display: flex;
    align-items: center;
    gap: 54px;
    padding-right: 54px;
    flex-shrink: 0;
}

#contacto .success-logo-item {
    min-width: 220px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    white-space: nowrap;
    overflow: visible;
}

#contacto .success-logo-item img {
    display: block;
    max-width: 218px;
    max-height: 72px;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0.98;
    filter: none;
}

@keyframes successLogoMarquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    #contacto .success-carousel__track {
        animation: none !important;
        transform: none !important;
    }
}

#contacto .success-copy {
    max-width: 820px;
    margin: 0 auto 32px;
    text-align: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.95rem;
    line-height: 1.65;
}

#contacto .success-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto 34px;
}

#contacto .success-proof-card {
    padding: 22px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

#contacto .success-proof-card h3 {
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 10px;
}

#contacto .success-proof-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.86rem;
    line-height: 1.55;
}

#contacto .success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

#contacto .success-actions .btn {
    min-height: 44px;
    padding: 0 1.25rem;
    font-size: 0.86rem;
}

#contacto .success-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.42);
}

#contacto .success-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* =========================================================
   Turno Digital internal pages — stable sizing system
   ========================================================= */

.td-internal-page {
    background: var(--bg-white);
}

.td-internal-page .header {
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.td-page-hero,
.td-page-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 96px;
    padding-bottom: 112px;
    scroll-margin-top: 96px;
}

.td-page-hero {
    background: var(--td-gradient-hero);
}

.td-page-section--light {
    background: var(--bg-white);
}

.td-page-section--soft {
    background: var(--td-gradient-soft);
}

.td-page-section--dark {
    background: var(--td-gradient-dark);
    color: var(--white);
}

.td-page-hero__inner,
.td-page-section__inner {
    transform: scale(0.82);
    transform-origin: center center;
    margin-inline: auto;
    position: relative;
    top: -24px;
}

.td-page-hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
}

.td-page-hero h1,
.td-internal-page .td-page-section h2 {
    font-size: clamp(2rem, 3.3vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    margin-bottom: 18px;
    color: inherit;
}

.td-page-hero p,
.td-internal-page .td-page-section p {
    font-size: clamp(0.92rem, 1.12vw, 1.05rem);
    line-height: 1.6;
}

.td-page-hero .section-subtitle,
.td-internal-page .section-subtitle {
    font-size: clamp(0.95rem, 1.12vw, 1.05rem);
    line-height: 1.6;
}

.td-page-header {
    text-align: center;
    max-width: 840px;
    margin: 0 auto 42px;
}

.td-page-grid {
    display: grid;
    gap: 22px;
    align-items: stretch;
}

.td-page-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-page-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.td-page-grid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.td-page-card {
    background: var(--td-gradient-card);
    padding: 22px;
    border-radius: 22px;
    border: 1px solid rgba(37, 82, 242, 0.08);
    box-shadow: 0 15px 35px rgba(16, 24, 40, 0.05);
}

.td-page-card h3 {
    font-size: 1.03rem;
    line-height: 1.22;
    margin-bottom: 10px;
    color: var(--td-blue-navy);
}

.td-page-card p,
.td-page-card li {
    font-size: 0.88rem;
    line-height: 1.55;
}

.td-page-section--dark .td-page-card {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
}

.td-page-section--dark .td-page-card h3 {
    color: #ffffff;
}

.td-page-section--dark .td-page-card p,
.td-page-section--dark .td-page-card li {
    color: rgba(255,255,255,0.72);
}

.td-flow-timeline {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.td-flow-step {
    background: var(--td-gradient-card);
    border: 1px solid rgba(37, 82, 242, 0.08);
    border-radius: 20px;
    padding: 20px 18px;
    box-shadow: 0 14px 32px rgba(16, 24, 40, 0.05);
}

.td-flow-step__number {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--td-gradient-primary);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.td-flow-step h3 {
    font-size: 0.98rem;
    line-height: 1.22;
    margin-bottom: 8px;
}

.td-flow-step p {
    font-size: 0.82rem;
    line-height: 1.5;
}

.td-page-cta {
    text-align: center;
    max-width: 760px;
    margin-inline: auto;
}

.td-page-cta .hero-btns,
.td-page-cta .success-actions {
    justify-content: center;
}

/* =========================================================
   Turno Digital modal system — compact refined version
   ========================================================= */

.td-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.td-modal.is-open {
    display: flex;
}

.td-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(8, 21, 52, 0.72);
    backdrop-filter: blur(10px);
}

.td-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    max-height: none;
    overflow: visible;
    background: #ffffff;
    border-radius: 22px;
    padding: 24px 30px 26px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.26);
}

.td-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 999px;
    background: var(--td-blue-mist);
    color: var(--td-blue-navy);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.td-modal__header {
    text-align: center;
    max-width: 460px;
    margin: 0 auto 18px;
}

.td-modal__header .eyebrow {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 12px;
}

.td-modal__header h2 {
    font-size: clamp(1.55rem, 2.25vw, 2.05rem);
    line-height: 1.08;
    color: var(--td-blue-navy);
    margin-bottom: 10px;
    letter-spacing: -0.04em;
}

.td-modal__header p {
    font-size: 0.82rem;
    line-height: 1.52;
    max-width: 440px;
    margin-inline: auto;
}

.td-modal__form {
    display: grid;
    gap: 11px;
}

.td-modal__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.td-modal__form label {
    display: grid;
    gap: 5px;
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--td-blue-navy);
}

.td-modal__form input,
.td-modal__form select,
.td-modal__form textarea {
    width: 100%;
    border: 1px solid rgba(8, 21, 52, 0.14);
    border-radius: 10px;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text-main);
    background: #ffffff;
    outline: none;
}

.td-modal__form textarea {
    min-height: 72px;
    max-height: 110px;
    resize: none;
    overflow-y: auto;
}

.td-modal__form input:focus,
.td-modal__form select:focus,
.td-modal__form textarea:focus {
    border-color: var(--td-blue);
    box-shadow: 0 0 0 3px rgba(37, 82, 242, 0.1);
}

.td-modal__actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 6px;
}

.td-modal__actions .btn {
    min-height: 42px;
    padding: 0 22px;
    font-size: 0.82rem;
    border-radius: 10px;
}

.td-modal__status {
    text-align: center;
    font-size: 0.82rem;
    min-height: 18px;
}

body.td-modal-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .td-modal {
        padding: 12px;
        align-items: center;
    }

    .td-modal__dialog {
        width: min(460px, 100%);
        max-height: none;
        overflow: visible;
        padding: 24px 18px;
        border-radius: 20px;
    }

    .td-modal__grid {
        grid-template-columns: 1fr;
    }

    .td-modal__header h2 {
        font-size: 1.55rem;
    }

    .td-modal__actions {
        flex-direction: column;
    }

    .td-modal__actions .btn {
        width: 100%;
    }
}