/* =======================================
   DESIGN TOKENS & VARIABLES
   ======================================= */
:root {
    /* Colores Oficiales Campaña "Yo reviso mi Buzón SOL" (SUNAT):
       - Azul Marino Institucional: RGB(0, 75, 132) [#004B84]
       - Azul Corporativo SUNAT:    RGB(0, 108, 183) [#006CB7]
       - Verde Lima Campaña:        RGB(210, 222, 38) [#D2DE26]
       - Pantone Magenta (Botones): RGB(236, 0, 140) [#EC008C]
    */
    --color-primary-dark: rgb(0, 75, 132);
    /* Azul Marino Institucional #004B84 */
    --color-primary-dark-rgb: 0, 75, 132;
    --color-primary: rgb(0, 108, 183);
    /* Azul Corporativo SUNAT #006CB7 */
    --color-primary-rgb: 0, 108, 183;
    --color-primary-light: #2596E6;
    --color-primary-soft: #EAF3FA;

    --color-secondary: rgb(236, 0, 140);
    /* Pantone Magenta #EC008C */
    --color-secondary-rgb: 236, 0, 140;
    --color-secondary-dark: #C20072;
    --color-secondary-light: #F033A3;
    --color-secondary-soft: #FDF2F8;

    --color-accent: rgb(210, 222, 38);
    /* Verde Lima Campaña #D2DE26 */
    --color-accent-rgb: 210, 222, 38;
    --color-accent-dark: #B0BD1C;
    --color-accent-light: #E0EB42;
    --color-accent-soft: rgba(210, 222, 38, 0.16);

    --color-tab-distinct: rgb(119, 130, 16);
    /* Tono verde oliva solicitado para tabs #778210 */
    --color-tab-distinct-rgb: 119, 130, 16;

    --color-text-main: #1E293B;
    --color-text-muted: #475569;
    --color-text-light: #F8FAFC;

    --color-bg-main: #FFFFFF;
    --color-bg-light: #F8FAFC;
    --color-white: #FFFFFF;

    /* Color aliases */
    --color-blue-light: var(--color-primary-soft);
    --color-blue: var(--color-primary);
    --color-blue-dark: var(--color-primary-dark);
    --color-red-light: var(--color-secondary-soft);
    --color-red: var(--color-secondary);
    --color-yellow-light: #FEF9D9;
    --color-yellow-border: var(--color-accent);

    /* Tipografía */
    --blue-hero: var(--color-primary);
    --blue-dark: var(--color-primary-dark);
    --white: #ffffff;
    --gray-light: #f4f4f4;
    --gray-text: #444444;
    --font-main: "Gotham", "Segoe UI", Tahoma, Arial, sans-serif;
    --font-heading: "Gotham", "Segoe UI", Tahoma, Arial, sans-serif;
    --radius-card: 16px;
    --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.2);
    --transition: 0.3s ease;
    --overlap-radius: 40px;
    --overlap-margin: -40px;
    --hero-woman-mobile-left: -70px;
    --hero-woman-mobile-bottom: -40px;

    /* Typography: GOTHAM */
    --font-family: 'Gotham', 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    /* Shadows */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 108, 183, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 108, 183, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 108, 183, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.04);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Radius */
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
}

/* =======================================
   RESET & BASE
   ======================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

body {
    font-family: var(--font-family);
    color: var(--color-text-main);
    background-color: var(--color-bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

/* =======================================
   TYPOGRAPHY
   ======================================= */
h1,
h2,
h3,
h4 {
    font-family: var(--font-family);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-primary-dark);
    letter-spacing: -0.015em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
    font-weight: 800;
}

h1 span {
    color: var(--color-primary);
    display: block;
}

h2 {
    font-size: clamp(2rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
    font-weight: 700;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

p {
    margin-bottom: 1rem;
}

.subtitle {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 820px;
    margin: 0 0 2rem 0;
    line-height: 1.6;
}

.text-left {
    text-align: left !important;
}

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

.text-white {
    color: white !important;
}

.text-white h2,
.text-white p {
    color: white;
}

.text-light {
    color: rgba(255, 255, 255, 0.9);
}

.text-blue {
    color: var(--color-blue);
}

.text-red {
    color: var(--color-red) !important;
}

.text-orange {
    color: var(--color-red) !important;
}

.text-green {
    color: var(--color-green);
}

.text-yellow {
    color: var(--color-accent) !important;
}

/* =======================================
   BUTTONS
   ======================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-full);
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 2px solid transparent;
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: #D2DE26;
    color: #004B84;
    font-weight: 800;
    box-shadow: none !important;
}

.btn-primary i {
    color: inherit;
    transition: color var(--transition-normal);
}

.btn-primary:hover {
    background-color: #B1274D !important;
    transform: scale(1.03);
    box-shadow: none !important;
    color: #FFFFFF !important;
}

.btn-primary:hover i {
    color: #FFFFFF !important;
}

/* Animated Envelope Button */
.btn-envelope-animated {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-icon-wrapper {
    position: relative;
    width: 1.25rem;
    height: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btn-icon-wrapper .icon-closed,
.btn-icon-wrapper .icon-open {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 1.15rem;
    line-height: 1;
    transition: opacity 0.28s ease, transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-icon-wrapper .icon-closed {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.btn-icon-wrapper .icon-open {
    opacity: 0;
    transform: translate(-50%, -35%) scale(0.7);
    pointer-events: none;
}

.btn-envelope-animated:hover .btn-icon-wrapper .icon-closed {
    opacity: 0;
    transform: translate(-50%, -65%) scale(0.75);
}

.btn-envelope-animated:hover .btn-icon-wrapper .icon-open {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.12);
}

.btn-secondary {
    background-color: rgba(0, 108, 183, 0.08);
    color: var(--color-primary);
    border-color: rgba(0, 108, 183, 0.15);
}

.btn-secondary:hover {
    background-color: rgba(0, 108, 183, 0.16);
    transform: translateY(-2px);
}

.btn-outline-primary {
    background-color: transparent;
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-outline-primary:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Eliminación general de brillos/sombras en todos los botones */
.btn,
.btn-primary,
.btn-secondary,
.btn-outline-primary,
.btn-asistencia,
.btn-store-google,
.btn-avisos-update,
.app-tab-btn {
    box-shadow: none !important;
}

.btn:hover,
.btn-primary:hover,
.btn-secondary:hover,
.btn-outline-primary:hover,
.btn-asistencia:hover,
.btn-store-google:hover,
.btn-avisos-update:hover,
.app-tab-btn:hover {
    box-shadow: none !important;
}

/* =======================================
   UTILITIES
   ======================================= */
.bg-light {
    background-color: var(--color-bg-light);
}

.bg-gradient {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

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

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

.bg-orange-light {
    background-color: var(--color-red-light);
}

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

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

.mt-2 {
    margin-top: 1.5rem;
}

.mb-2 {
    margin-bottom: 1.5rem;
}

.pb-0 {
    padding-bottom: 0 !important;
}

.desktop-only {
    display: block;
}

.mobile-only {
    display: none !important;
}

.section {
    padding: 5.5rem 0;
    position: relative;
}

/* =======================================
   HEADER & NAVIGATION
   ======================================= */
.site-header {
    background: var(--white, #ffffff);
    height: 60px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    position: relative;
    z-index: 100;
    width: 100%;
    display: flex;
    align-items: center;
}

.header-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.header-logo {
    height: 32px;
    width: auto;
    display: block;
    object-fit: contain;
}

.header-logo:hover {
    transform: none;
}

/* =======================================
   HERO SECTION (LAYERED ARCHITECTURE)
   ======================================= */
.hero {
    min-height: clamp(580px, 78vh, 730px);
    max-height: 750px;
    height: auto;
    position: relative;
    overflow: hidden;
    background-color: rgb(109, 207, 246);
    display: flex;
    align-items: center;
    padding: clamp(2rem, 4vh, 3.25rem) 0 clamp(80px, 10vh, 105px) 0;
}

/* Capa 1: Imagen de la mujer apoyada sobre el color de fondo (z-index: 1, pegada a la base) */
.hero-media-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-media-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    overflow: hidden;
}

.hero-media-layer .hero-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.hero-media-layer .hero-woman-img {
    height: 100%;
    width: auto;
    max-height: 100%;
    object-fit: contain;
    object-position: right bottom;
    display: block;
    border: none;
    border-radius: 0;
    box-shadow: none;
    filter: none;
    vertical-align: bottom;
}

/* Capa 2: Capa de degradé (z-index: 2, justo antes del contenido para protegerlo sobre la imagen) */
.hero-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgb(109, 207, 246) 0%,
            rgb(109, 207, 246) 16%,
            rgba(109, 207, 246, 0.85) 30%,
            rgba(109, 207, 246, 0.45) 45%,
            rgba(109, 207, 246, 0.1) 58%,
            transparent 68%);
    pointer-events: none;
    z-index: 2;
}

/* Capa 3: Contenido superpuesto por encima de la imagen y del degradé (z-index: 3) */
.hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: clamp(580px, 78vh, 730px);
    max-height: 750px;
    display: flex;
    align-items: center;
    pointer-events: auto;
}

.hero-content {
    max-width: 580px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    z-index: 3;
    padding-top: clamp(2.5rem, 5vh, 4rem);
    padding-bottom: clamp(2rem, 4vh, 3.5rem);
}

.hero-text {
    position: relative;
    width: 100%;
}

.hero-title {
    color: #FFFFFF;
    font-size: clamp(2.8rem, 5.2vw, 4.4rem);
    line-height: 1.08;
    margin-bottom: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

/* Grupo de identidad / marca del Hero */
.hero-brand-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: default;
    margin-bottom: 2rem;
}

.hero-title-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.hero-logo-campaign {
    max-width: 440px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    padding: 4px 0;
    filter: none;
}

.hero-subtitle {
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    color: #FFFFFF;
    paint-order: stroke fill;
    -webkit-text-stroke: 5.5px var(--color-primary-dark);
    text-shadow:
        0 0 3px var(--color-primary-dark),
        -2px -2px 0 var(--color-primary-dark),
        2px -2px 0 var(--color-primary-dark),
        -2px 2px 0 var(--color-primary-dark),
        2px 2px 0 var(--color-primary-dark),
        -3px 0 0 var(--color-primary-dark),
        3px 0 0 var(--color-primary-dark),
        0 -3px 0 var(--color-primary-dark),
        0 3px 0 var(--color-primary-dark);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.hero-subtitle.swapping {
    opacity: 0;
    transform: translateY(6px);
}

.hero-desc {
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    color: var(--color-primary-dark);
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 0;
    letter-spacing: 0.01em;
    text-shadow: none;
    max-width: 460px;
}

/* Botón CTA en fila independiente centrado en el ancho del Hero */
.hero-ctas {
    position: absolute;
    bottom: clamp(30px, 5vh, 55px);
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5;
    margin: 0;
    pointer-events: auto;
}

#heroBtn {
    font-size: 1.35rem;
    padding: 1.15rem 2.5rem;
    gap: 0.95rem;
    font-weight: 700;
    border: none;
    white-space: nowrap;
    background-color: #D2DE26;
    color: #004B84;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 -5px 0 #004B84);
    animation: btnSubtlePulse 2.8s ease-in-out infinite;
    transition: transform var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), filter var(--transition-normal);
}

#heroBtn .btn-icon-wrapper {
    width: 1.65rem;
    height: 1.65rem;
}

#heroBtn .btn-icon-wrapper .icon-closed,
#heroBtn .btn-icon-wrapper .icon-open {
    font-size: 1.55rem;
}

#heroBtn:hover {
    background-color: #B1274D !important;
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 -6px 0 #002D56);
    color: #FFFFFF !important;
    animation-play-state: paused;
}


.hero-security-bottom {
    position: absolute;
    bottom: 25px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    padding: 0 20px;
    pointer-events: none;
}

.security-text-clean {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    font-size: 0.95rem;
    color: #FFFFFF !important;
    font-weight: 700;
    font-family: var(--font-main);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.security-text-clean i {
    color: var(--color-accent);
    font-size: 1.1rem;
}

/* =======================================
   STEPS SECTION (INSPIRATION CARDS DESIGN)
   ======================================= */
#como-ingresar {
    padding: 5.5rem 0 5.5rem;
    background-color: var(--color-primary);
    color: #FFFFFF;
}

#como-ingresar .section-header {
    text-align: center;
}

#como-ingresar .section-header h2 {
    color: #FFFFFF;
    text-align: center;
}

#como-ingresar .section-header .subtitle {
    color: var(--color-accent);
    font-weight: 700;
    opacity: 1;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

#como-ingresar .steps-platform-tabs {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 255, 255, 0.35);
}

#como-ingresar .step-card-title,
#como-ingresar .step-card-title * {
    color: var(--color-accent);
}

#como-ingresar .step-card:hover .step-card-title,
#como-ingresar .step-card:hover .step-card-title * {
    color: var(--color-accent);
}

#como-ingresar .step-card-title a {
    color: var(--color-accent);
    text-decoration: underline;
    text-decoration-color: rgba(210, 222, 38, 0.45);
    text-underline-offset: 3px;
}

#como-ingresar .step-card-title a:hover {
    color: var(--color-accent);
    text-decoration-color: var(--color-accent);
}

#como-ingresar .step-card-desc {
    color: rgba(255, 255, 255, 0.9);
}

#como-ingresar .steps-video-title {
    color: #FFFFFF;
}

#como-ingresar .step-inline-link {
    color: var(--color-accent);
}

#como-ingresar .step-inline-link:hover {
    color: #FFFFFF;
}

#como-ingresar .steps-divider {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.3) 15%, rgba(255, 255, 255, 0.3) 85%, rgba(255, 255, 255, 0) 100%);
}

.section-header {
    text-align: left;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    color: var(--color-primary-dark);
    margin-bottom: 0.75rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

/* Selector de Modalidad (Por celular / Por computadora) */
.steps-platform-selector-wrapper {
    display: flex;
    justify-content: center;
    margin: -1rem auto 2.75rem;
    width: 100%;
}

.steps-platform-tabs {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px;
    background: #EDF5FA;
    border: 1.5px solid rgba(0, 108, 183, 0.2);
    border-radius: 50px;
    width: 100%;
    max-width: 440px;
    box-shadow: none !important;
}

.steps-platform-tab {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.75rem 1.4rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.98rem;
    font-family: inherit;
    border: none;
    background: transparent;
    color: var(--color-primary-dark);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: none !important;
    text-decoration: none;
    white-space: nowrap;
}

.steps-platform-tab i {
    font-size: 1.1rem;
    transition: transform 0.25s ease;
}

.steps-platform-tab:hover {
    background: transparent;
    transform: none !important;
    box-shadow: none !important;
}

.steps-platform-tab:hover i {
    transform: none;
}

.steps-platform-tab.active {
    background: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    font-weight: 800;
    box-shadow: none !important;
}

.steps-platform-tab.active:hover {
    background: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

/* Contenido por plataforma */
.steps-platform-content {
    display: none;
    width: 100%;
}

.steps-platform-content.active {
    display: block;
    animation: stepsFadeIn 0.35s ease-out;
}

@keyframes stepsFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* Enlaces inline en títulos de los pasos */
.step-inline-link {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--transition-fast);
}

.step-inline-link:hover {
    color: var(--color-secondary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
    max-width: 100%;
    margin: 0 auto;
    align-items: stretch;
}

.step-card {
    background: transparent;
    display: flex;
    flex-direction: column;
    text-align: left;
    cursor: pointer;
    transform: translateY(0);
    scale: 1;
    transform-origin: center center;
    transition: transform var(--transition-normal), scale 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, scale;
}

.step-card:hover,
.step-card.active {
    transform: translateY(-6px);
    scale: 1.02;
    transition: transform var(--transition-normal), scale 3s cubic-bezier(0.2, 0.8, 0.25, 1);
}

/* Card Visual Container */
.step-card-visual {
    position: relative;
    width: 100%;
    height: 240px;
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.35rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step-card:hover .step-card-visual,
.step-card.active .step-card-visual {
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.visual-peach,
.visual-mint,
.visual-lavender {
    background-color: #FFFFFF;
    border: none;
    box-shadow: 0 6px 20px rgba(0, 45, 86, 0.12);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover .visual-peach,
.step-card.active .visual-peach,
.step-card:hover .visual-mint,
.step-card.active .visual-mint,
.step-card:hover .visual-lavender,
.step-card.active .visual-lavender {
    background-color: #FFFFFF;
    border: none;
    box-shadow: 0 14px 32px rgba(0, 45, 86, 0.2);
}

.step-illustration {
    width: 92%;
    height: 92%;
    display: block;
    transition: transform var(--transition-normal);
}

.step-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transform: scale(1);
    transform-origin: center center;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

/* Animación continua y fluida de zoom progresivo envolvente */
.step-card:hover .step-card-img,
.step-card.active .step-card-img {
    animation: stepImgContinuousZoom 5s cubic-bezier(0.25, 1, 0.5, 1) infinite alternate;
}

@keyframes stepImgContinuousZoom {
    0% {
        transform: scale(1.06);
    }

    100% {
        transform: scale(1.24);
    }
}

.step-card:hover .step-illustration,
.step-card.active .step-illustration {
    transform: scale(1.03);
}

/* Animación de la mano interactiva (Tarjeta 1 Computadora) */
.step1-cursor-hand {
    transform-origin: 8px 1px;
    opacity: 0;
    pointer-events: none;
    transform: translate(185px, 142px);
    transition: opacity 0.25s ease;
}

/* Al hacer hover o estar activa en la tarjeta: movimiento fluido en arco continuo ininterrumpido */
.step-card:hover .step1-cursor-hand,
.step-card.active .step1-cursor-hand {
    opacity: 1;
    animation: continuousCurveHandClick 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.step-card:hover .step1-link-btn,
.step-card.active .step1-link-btn {
    animation: clickLinkBtnOne 3.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

/* Pulsación sutil y suave del botón 1 idéntica en comportamiento a la del botón 2 */
@keyframes clickLinkBtnOne {

    0%,
    38% {
        transform: translateY(0);
        fill: #006CB7;
    }

    44% {
        /* Presión física del botón al recibir el clic */
        transform: translateY(1.2px);
        fill: #005596;
    }

    50%,
    100% {
        /* Pausa visible antes de reiniciar el loop */
        transform: translateY(0);
        fill: #006CB7;
    }
}

@keyframes continuousCurveHandClick {
    0% {
        opacity: 0;
        transform: translate(175px, 142px) scale(0.95);
    }

    8% {
        opacity: 1;
        transform: translate(160px, 130px) scale(0.98);
    }

    30% {
        /* Punto B: Llega directo al botón */
        opacity: 1;
        transform: translate(124px, 109px) scale(1);
    }

    38% {
        /* Clic en el botón */
        opacity: 1;
        transform: translate(123px, 111px) scale(0.85);
    }

    45% {
        /* Libera el botón */
        opacity: 1;
        transform: translate(124px, 109px) scale(1);
    }

    52% {
        /* Desaparece tras el clic */
        opacity: 0;
        transform: translate(124px, 109px) scale(0.9);
    }

    /* Pausa descansada antes de iniciar nuevamente */
    100% {
        opacity: 0;
        transform: translate(175px, 142px) scale(0.95);
    }
}

/* =========================================================
   Animación de Llenado Secuencial (Tarjeta 2 Computadora)
   - En reposo: campos limpios con placeholders.
   - En hover: llena rápidamente RUC -> Usuario -> Clave SOL y la mano da clic en el botón.
   - Ciclo ágil y dinámico de 2.8s
   ========================================================= */

/* Estado en reposo: campos vacíos */
.field-value-1,
.field-value-2,
.field-value-3 {
    opacity: 0;
}

.input-cursor-1,
.input-cursor-2,
.input-cursor-3 {
    opacity: 0;
}

.step2-cursor-hand {
    transform-origin: 8px 1px;
    opacity: 0;
    pointer-events: none;
    transform: translate(175px, 145px) scale(0.9);
}

/* Solo se anima en HOVER o estado ACTIVO */
.step-card:hover .placeholder-1,
.step-card.active .placeholder-1 {
    animation: fadeOutPlaceholder 3.8s infinite;
}

.step-card:hover .field-value-1,
.step-card.active .field-value-1 {
    transform-origin: 70px 72px;
    animation: typeFieldOne 3.8s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}

.step-card:hover .input-cursor-1,
.step-card.active .input-cursor-1 {
    animation: blinkCaretOne 3.8s infinite;
}

.step-card:hover .input-box-1,
.step-card.active .input-box-1 {
    animation: focusBoxOne 3.8s infinite;
}

.step-card:hover .placeholder-2,
.step-card.active .placeholder-2 {
    animation: fadeOutPlaceholderTwo 3.8s infinite;
}

.step-card:hover .field-value-2,
.step-card.active .field-value-2 {
    transform-origin: 70px 94px;
    animation: typeFieldTwo 3.8s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}

.step-card:hover .input-cursor-2,
.step-card.active .input-cursor-2 {
    animation: blinkCaretTwo 3.8s infinite;
}

.step-card:hover .input-box-2,
.step-card.active .input-box-2 {
    animation: focusBoxTwo 3.8s infinite;
}

.step-card:hover .placeholder-3,
.step-card.active .placeholder-3 {
    animation: fadeOutPlaceholderThree 3.8s infinite;
}

.step-card:hover .field-value-3,
.step-card.active .field-value-3 {
    transform-origin: 70px 118px;
    animation: typeFieldThree 3.8s cubic-bezier(0.2, 0.8, 0.3, 1) infinite;
}

.step-card:hover .input-cursor-3,
.step-card.active .input-cursor-3 {
    animation: blinkCaretThree 3.8s infinite;
}

.step-card:hover .input-box-3,
.step-card.active .input-box-3 {
    animation: focusBoxThree 3.8s infinite;
}

.step-card:hover .login-submit-btn,
.step-card.active .login-submit-btn {
    animation: clickSubmitBtn 3.8s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.step-card:hover .step2-cursor-hand,
.step-card.active .step2-cursor-hand {
    animation: step2HandClick 3.8s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

/* --- KEYFRAMES CAMPO 1 (0% a 26%) --- */
@keyframes focusBoxOne {

    0%,
    26% {
        stroke: #006CB7;
        stroke-width: 1.6;
        fill: #FFFFFF;
    }

    28%,
    92% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #F8FAFC;
    }

    96%,
    100% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #FFFFFF;
    }
}

@keyframes fadeOutPlaceholder {

    0%,
    1% {
        opacity: 0.85;
    }

    3%,
    92% {
        opacity: 0;
    }

    96%,
    100% {
        opacity: 0.85;
    }
}

@keyframes typeFieldOne {

    0%,
    1% {
        transform: scaleX(0);
        opacity: 0;
    }

    1.5% {
        opacity: 1;
        transform: scaleX(0.04);
    }

    19%,
    92% {
        transform: scaleX(1);
        opacity: 1;
    }

    96%,
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes blinkCaretOne {
    0% {
        opacity: 1;
        transform: translateX(0);
    }

    1.5% {
        opacity: 1;
        transform: translateX(3px);
    }

    19% {
        opacity: 1;
        transform: translateX(76px);
    }

    22% {
        opacity: 0;
        transform: translateX(76px);
    }

    25% {
        opacity: 1;
        transform: translateX(76px);
    }

    26%,
    100% {
        opacity: 0;
        transform: translateX(76px);
    }
}

/* --- KEYFRAMES CAMPO 2 (26% a 52%) --- */
@keyframes focusBoxTwo {

    0%,
    26% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #FFFFFF;
    }

    27%,
    52% {
        stroke: #006CB7;
        stroke-width: 1.6;
        fill: #FFFFFF;
    }

    54%,
    92% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #F8FAFC;
    }

    96%,
    100% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #FFFFFF;
    }
}

@keyframes fadeOutPlaceholderTwo {

    0%,
    26% {
        opacity: 0.85;
    }

    28%,
    92% {
        opacity: 0;
    }

    96%,
    100% {
        opacity: 0.85;
    }
}

@keyframes typeFieldTwo {

    0%,
    26% {
        transform: scaleX(0);
        opacity: 0;
    }

    26.8% {
        opacity: 1;
        transform: scaleX(0.05);
    }

    45%,
    92% {
        transform: scaleX(1);
        opacity: 1;
    }

    96%,
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes blinkCaretTwo {

    0%,
    25% {
        opacity: 0;
        transform: translateX(0);
    }

    26% {
        opacity: 1;
        transform: translateX(0);
    }

    26.8% {
        opacity: 1;
        transform: translateX(3px);
    }

    45% {
        opacity: 1;
        transform: translateX(54px);
    }

    48% {
        opacity: 0;
        transform: translateX(54px);
    }

    51% {
        opacity: 1;
        transform: translateX(54px);
    }

    52%,
    100% {
        opacity: 0;
        transform: translateX(54px);
    }
}

/* --- KEYFRAMES CAMPO 3 (52% a 74%) --- */
@keyframes focusBoxThree {

    0%,
    52% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #FFFFFF;
    }

    53%,
    74% {
        stroke: #006CB7;
        stroke-width: 1.6;
        fill: #FFFFFF;
    }

    76%,
    92% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #F8FAFC;
    }

    96%,
    100% {
        stroke: #CBD5E1;
        stroke-width: 1.2;
        fill: #FFFFFF;
    }
}

@keyframes fadeOutPlaceholderThree {

    0%,
    52% {
        opacity: 0.85;
    }

    54%,
    92% {
        opacity: 0;
    }

    96%,
    100% {
        opacity: 0.85;
    }
}

@keyframes typeFieldThree {

    0%,
    52% {
        transform: scaleX(0);
        opacity: 0;
    }

    52.8% {
        opacity: 1;
        transform: scaleX(0.08);
    }

    69%,
    92% {
        transform: scaleX(1);
        opacity: 1;
    }

    96%,
    100% {
        transform: scaleX(0);
        opacity: 0;
    }
}

@keyframes blinkCaretThree {

    0%,
    51% {
        opacity: 0;
        transform: translateX(0);
    }

    52% {
        opacity: 1;
        transform: translateX(0);
    }

    52.8% {
        opacity: 1;
        transform: translateX(3px);
    }

    69% {
        opacity: 1;
        transform: translateX(36px);
    }

    71% {
        opacity: 0;
        transform: translateX(36px);
    }

    73% {
        opacity: 1;
        transform: translateX(36px);
    }

    74%,
    100% {
        opacity: 0;
        transform: translateX(36px);
    }
}

/* --- BOTÓN PULSADO EN AZUL INSTITUCIONAL (74% a 88%) --- */
/* Desplazamiento muy sutil de pulsación natural (translateY de 1.2px) en vez de scale abrupto */
@keyframes clickSubmitBtn {

    0%,
    75% {
        transform: translateY(0);
        fill: #006CB7;
    }

    80% {
        /* Pulsación sutil y táctil, sin recorrido exagerado */
        transform: translateY(1.2px);
        fill: #005596;
    }

    86% {
        transform: translateY(0);
        fill: #006CB7;
    }

    92%,
    100% {
        transform: translateY(0);
        fill: #006CB7;
    }
}

/* --- CURSOR DE MANO CLICKEANDO EL BOTÓN (68% a 92%) --- */
@keyframes step2HandClick {

    0%,
    64% {
        opacity: 0;
        transform: translate(175px, 155px) scale(0.85);
    }

    68% {
        opacity: 1;
        transform: translate(155px, 142px) scale(0.95);
    }

    76% {
        /* Llega al centro del botón */
        opacity: 1;
        transform: translate(128px, 131px) scale(1);
    }

    80% {
        /* Pulsación de clic */
        transform: translate(127px, 133px) scale(0.86);
    }

    85% {
        /* Liberación */
        transform: translate(128px, 131px) scale(1);
    }

    92% {
        opacity: 1;
        transform: translate(128px, 131px) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(128px, 131px) scale(0.9);
    }
}

/* =========================================================
   Animación Tarjeta 3 (Computadora): 
   El cursor da clic en la carta/sobre, la solapa se abre hacia arriba,
   el sobre cae y desaparece hacia abajo, mientras el documento
   y el calendario salen desde adentro posicionándose al frente
   ========================================================= */

.step3-envelope-group {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.step3-envelope-flap {
    transform-origin: 130px 30px;
}

.step3-cursor-hand {
    transform-origin: 8px 1px;
    opacity: 0;
    pointer-events: none;
    transform: translate(175px, 155px) scale(0.9);
}

/* En reposo: el documento y el calendario están 100% GUARDADOS dentro del sobre (invisibles y recogidos) */
.step3-contents-container {
    pointer-events: none;
}

.step3-calendar-elem {
    opacity: 0;
    transform: translate(30px, 55px) scale(0.68);
    transform-origin: 92px 86px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.step3-document-elem {
    opacity: 0;
    transform: translate(-12px, 58px) scale(0.68);
    transform-origin: 165px 89px;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

/* Badge de Check Verde en el documento: inicia invisible */
.step3-doc-check-badge {
    opacity: 0;
    transform: scale(0);
    transform-origin: 195px 114px;
}

/* En reposo: la solapa está cerrada cubriendo el sobre */
.step3-envelope-flap {
    opacity: 1;
    transform: scaleY(1);
    transform-origin: 130px 30px;
}

.step3-envelope-back,
.step3-envelope-front {
    opacity: 1;
    transform: translate(0, 0);
}

/* Solo en HOVER o estado ACTIVO de la tarjeta: secuencia orquestada */
.step-card:hover .step3-cursor-hand,
.step-card.active .step3-cursor-hand {
    animation: step3HandClickEnvelope 4.6s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

/* Solapa: se abre girando hacia arriba unida al sobre, y luego baja y se desvanece suavemente */
.step-card:hover .step3-envelope-flap,
.step-card.active .step3-envelope-flap {
    animation: step3FlapOpenAndFade 4.6s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

/* El cuerpo del sobre baja suavemente y se desvanece */
.step-card:hover .step3-envelope-back,
.step-card.active .step3-envelope-back,
.step-card:hover .step3-envelope-front,
.step-card.active .step3-envelope-front {
    animation: step3EnvelopeDropAndFade 4.6s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

.step-card:hover .step3-calendar-elem,
.step-card.active .step3-calendar-elem {
    animation: step3CalendarEmerge 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.step-card:hover .step3-document-elem,
.step-card.active .step3-document-elem {
    animation: step3DocumentEmerge 4.6s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.step-card:hover .step3-doc-check-badge,
.step-card.active .step3-doc-check-badge {
    animation: step3DocCheckPop 4.6s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

/* 1. Cursor entra en curva fluida hacia el centro de la solapa, hace clic y se retira */
@keyframes step3HandClickEnvelope {
    0% {
        opacity: 0;
        transform: translate(175px, 142px) scale(0.95);
    }

    5% {
        opacity: 1;
        transform: translate(160px, 126px) scale(0.98);
    }

    11% {
        /* Punto B: Llega directo a la solapa central */
        opacity: 1;
        transform: translate(130px, 105px) scale(1);
    }

    14% {
        /* Clic en la carta */
        opacity: 1;
        transform: translate(128px, 107px) scale(0.85);
    }

    18% {
        /* Libera el clic */
        opacity: 1;
        transform: translate(130px, 105px) scale(1);
    }

    21% {
        /* Desaparece inmediatamente */
        opacity: 0;
        transform: translate(130px, 105px) scale(0.9);
    }

    100% {
        opacity: 0;
        transform: translate(175px, 142px) scale(0.95);
    }
}

/* 2. Solapa se abre y luego baja sincronizada con el cuerpo del sobre */
@keyframes step3FlapOpenAndFade {

    0%,
    14% {
        /* Solapa cerrada */
        transform: translateY(0) scaleY(1);
        transform-origin: 130px 30px;
        opacity: 1;
    }

    21% {
        /* Solapa totalmente abierta (girada) - comienza a caer */
        transform: translateY(0) scaleY(-1);
        transform-origin: 130px 30px;
        opacity: 1;
    }

    26% {
        /* Baja junto con el sobre */
        transform: translateY(12px) scaleY(-1);
        transform-origin: 130px 30px;
        opacity: 0.5;
    }

    32%,
    93% {
        /* Caída completa y desaparecida */
        transform: translateY(80px) scaleY(-1);
        transform-origin: 130px 30px;
        opacity: 0;
    }

    97%,
    100% {
        transform: translateY(0) scaleY(1);
        transform-origin: 130px 30px;
        opacity: 1;
    }
}

/* 3. El frente y fondo del sobre bajan sincronizados con la solapa */
@keyframes step3EnvelopeDropAndFade {

    0%,
    21% {
        opacity: 1;
        transform: translateY(0);
    }

    26% {
        opacity: 0.5;
        transform: translateY(12px);
    }

    32%,
    93% {
        opacity: 0;
        transform: translateY(80px);
        pointer-events: none;
    }

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

/* 4. Calendario emerge directamente desde dentro del sobre hacia su posición final */
@keyframes step3CalendarEmerge {

    0%,
    20% {
        opacity: 0;
        transform: translate(25px, 50px) scale(0.68);
    }

    38%,
    92% {
        /* Se queda visible un buen rato */
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    97%,
    100% {
        opacity: 0;
        transform: translate(25px, 50px) scale(0.68);
    }
}

/* 5. Documento emerge directamente desde dentro del sobre hacia su posición final */
@keyframes step3DocumentEmerge {

    0%,
    20% {
        opacity: 0;
        transform: translate(-10px, 52px) scale(0.68);
    }

    38%,
    92% {
        /* Se queda visible un buen rato */
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }

    97%,
    100% {
        opacity: 0;
        transform: translate(-10px, 52px) scale(0.68);
    }
}

/* 6. Check verde emerge con rebote suave en el lado derecho del documento tras desplegarse */
@keyframes step3DocCheckPop {

    0%,
    40% {
        opacity: 0;
        transform: scale(0);
    }

    48% {
        opacity: 1;
        transform: scale(1.15);
    }

    54%,
    91% {
        /* Se queda quieto y visible mostrando la confirmación exitosa */
        opacity: 1;
        transform: scale(1);
    }

    96%,
    100% {
        opacity: 0;
        transform: scale(0);
    }
}

/* =========================================================
   Animaciones interactividad "Por Celular"
   ========================================================= */

/* --- Paso 1 Celular: Zoom suave y progresivo al centro --- */
.cel1-phone-zoom {
    transform-origin: 130px 90px;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.35, 1);
}

/* --- Paso 2 Celular: El ZOOM va DIRECTAMENTE hacia el ícono del mensaje (arriba a la derecha) --- */
.cel2-phone-zoom {
    transform-origin: 150px 32px;
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.35, 1);
}

.cel1-touch-hand {
    transform-origin: 5px 2px;
    opacity: 0;
    pointer-events: none;
    transform: translate(114px, 95px) scale(0.9);
}

/* El celular de Paso 1 hace ZOOM suave y equilibrado */
.step-card:hover .cel1-phone-zoom,
.step-card.active .cel1-phone-zoom {
    transform: scale(1.18);
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.35, 1);
}

/* El celular de Paso 2 hace ZOOM DIRECTO hacia el ícono de mensajería */
.step-card:hover .cel2-phone-zoom,
.step-card.active .cel2-phone-zoom {
    transform: scale(1.28);
    transition: transform 0.85s cubic-bezier(0.25, 1, 0.35, 1);
}

.step-card:hover .cel1-touch-hand,
.step-card.active .cel1-touch-hand {
    animation: cel1FingerSlideSmooth 4.0s ease-in-out infinite;
}

.step-card:hover .cel1-app-personas-bg,
.step-card.active .cel1-app-personas-bg {
    animation: cel1PressAppPersonas 4.0s ease-in-out infinite;
}

.step-card:hover .cel1-app-emprender-bg,
.step-card.active .cel1-app-emprender-bg {
    animation: cel1PressAppEmprender 4.0s ease-in-out infinite;
}

/* Movimiento continuo y ultrasuave de solo dos puntos con dedo-touch.png: Punto A (App Personas) a Punto B (App Emprender) */
@keyframes cel1FingerSlideSmooth {
    0% {
        opacity: 0;
        transform: translate(114px, 102px) scale(0.9);
    }

    10% {
        /* Punto A: App Personas */
        opacity: 1;
        transform: translate(114px, 86px) scale(0.85);
    }

    24% {
        /* Presión táctil en Punto A */
        opacity: 1;
        transform: translate(114px, 86px) scale(0.78);
    }

    44% {
        /* Transición directa, fluida hacia Punto B: App Emprender */
        opacity: 1;
        transform: translate(146px, 86px) scale(0.85);
    }

    58% {
        /* Presión táctil en Punto B */
        opacity: 1;
        transform: translate(146px, 86px) scale(0.78);
    }

    70% {
        opacity: 0.8;
        transform: translate(146px, 98px) scale(0.85);
    }

    78% {
        opacity: 0;
        transform: translate(146px, 108px) scale(0.9);
    }

    /* Pausa descansada antes de reiniciar el loop */
    100% {
        opacity: 0;
        transform: translate(146px, 108px) scale(0.9);
    }
}

@keyframes cel1PressAppPersonas {

    0%,
    6% {
        transform: scale(1);
        transform-origin: 13px 13px;
    }

    16%,
    28% {
        transform: scale(0.9);
        transform-origin: 13px 13px;
    }

    38%,
    100% {
        transform: scale(1);
        transform-origin: 13px 13px;
    }
}

@keyframes cel1PressAppEmprender {

    0%,
    42% {
        transform: scale(1);
        transform-origin: 13px 13px;
    }

    52%,
    64% {
        transform: scale(0.9);
        transform-origin: 13px 13px;
    }

    72%,
    100% {
        transform: scale(1);
        transform-origin: 13px 13px;
    }
}

/* --- Paso 2 Celular: Dedo tocando el ícono de mensaje tras completarse el zoom directo --- */
.cel2-touch-hand {
    transform-origin: 5px 2px;
    opacity: 0;
    pointer-events: none;
    transform: translate(150px, 46px) scale(0.9);
}

.step-card:hover .cel2-touch-hand,
.step-card.active .cel2-touch-hand {
    /* El dedo aparece tras enfocar el celular hacia el sobre, con pausa al final */
    animation: cel2FingerTouchAfterZoom 3.8s ease-in-out infinite;
    animation-delay: 0.3s;
}

.cel2-msg-icon {
    display: block !important;
    opacity: 1 !important;
}

.step-card:hover .cel2-msg-dot,
.step-card.active .cel2-msg-dot {
    animation: cel2MsgDotFade 3.8s ease-in-out infinite;
    animation-delay: 0.3s;
}

/* El dedo aparece recién cuando el zoom está enfocado en el sobre */
@keyframes cel2FingerTouchAfterZoom {

    0%,
    14% {
        opacity: 0;
        transform: translate(152px, 48px) scale(0.95);
    }

    24% {
        opacity: 1;
        transform: translate(150px, 35px) scale(0.88);
    }

    36%,
    56% {
        /* Toque directo y nítido sobre el ícono */
        opacity: 1;
        transform: translate(150px, 30px) scale(0.82);
    }

    68% {
        opacity: 1;
        transform: translate(150px, 40px) scale(0.88);
    }

    78% {
        opacity: 0;
        transform: translate(152px, 48px) scale(0.95);
    }

    /* Pausa descansada antes de reiniciar el loop */
    100% {
        opacity: 0;
        transform: translate(152px, 48px) scale(0.95);
    }
}

/* Desaparición nítida de ÚNICAMENTE el punto rojo de notificación al momento exacto del toque de la mano */
@keyframes cel2MsgDotFade {

    0%,
    36% {
        opacity: 1;
    }

    40%,
    88% {
        /* Se queda desvanecida la bolita roja mostrando el mensaje abierto */
        opacity: 0;
    }

    96%,
    100% {
        opacity: 1;
    }
}

/* --- Paso 3 Celular: Dedo humano real abriendo la carta --- */
.cel3-touch-hand {
    transform-origin: 5px 2px;
    opacity: 0;
    pointer-events: none;
    transform: translate(140px, 115px) scale(0.9);
}

.step-card:hover .cel3-touch-hand,
.step-card.active .cel3-touch-hand {
    animation: cel3FingerTouchEnvelope 4.6s ease-in-out infinite;
}

@keyframes cel3FingerTouchEnvelope {
    0% {
        opacity: 0;
        transform: translate(140px, 125px) scale(0.95);
    }

    10% {
        opacity: 1;
        transform: translate(140px, 114px) scale(0.88);
    }

    16%,
    24% {
        /* Touch suave en la carta */
        opacity: 1;
        transform: translate(140px, 106px) scale(0.82);
    }

    32% {
        opacity: 0;
        transform: translate(140px, 118px) scale(0.88);
    }

    /* El dedo se retira y deja el documento y calendario abiertos con el check */
    100% {
        opacity: 0;
        transform: translate(140px, 125px) scale(0.95);
    }
}

/* Action Corner Badge */
.step-action-badge {
    position: absolute;
    bottom: 12px;
    left: 14px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 800;
    font-family: var(--font-family);
    line-height: 1;
    background-color: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    box-shadow: none !important;
    border: 3px solid #FFFFFF;
    transition: transform var(--transition-fast);
    z-index: 3;
}

.badge-peach,
.badge-mint,
.badge-lavender {
    background-color: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
}

/* Siempre permanecen de color verde lima, incluso al estar en hover o activos */
.step-card:hover .step-action-badge,
.step-card.active .step-action-badge {
    background-color: var(--color-accent) !important;
    color: var(--color-primary-dark) !important;
    font-weight: 800;
    transform: scale(1.08);
    box-shadow: none !important;
}

/* Card Content (Strictly Left Aligned) */
.step-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.step-card-title {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--color-primary-dark);
    margin-bottom: 0.6rem;
    line-height: 1.25;
    letter-spacing: -0.015em;
    transition: color var(--transition-fast);
}

.step-card:hover .step-card-title,
.step-card.active .step-card-title {
    color: var(--color-primary);
}

.step-card-desc {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* Step Tags */
.step-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.step-tag {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tag-peach {
    background-color: #FDE8D3;
    color: #A34800;
}

.tag-mint {
    background-color: #D6EFE0;
    color: #1F6B41;
}

.tag-lavender {
    background-color: #E6DCF5;
    color: #554483;
}

/* Divider between Steps and Video Tutorial (Azul SUNAT) */
.steps-divider {
    width: 100%;
    height: 1.5px;
    background: linear-gradient(90deg, rgba(0, 75, 132, 0) 0%, rgba(0, 75, 132, 0.35) 15%, rgba(0, 75, 132, 0.35) 85%, rgba(0, 75, 132, 0) 100%);
    margin: 4.5rem 0;
    border: none;
}

/* =======================================
   STEPS VIDEO TUTORIAL (SECTION DEDICADA: FONDO VERDE)
   ======================================= */
#tutorial-video {
    background-color: #9BB800;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
    border: none;
}

.steps-video-row {
    margin-top: 0;
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1.25fr;
    grid-template-areas:
        "title player"
        "cta   player";
    grid-template-rows: auto auto;
    gap: 0 3.5rem;
    align-content: center;
    align-items: center;
}

.steps-video-text {
    grid-area: title;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    align-self: end;
}

.steps-video-cta {
    grid-area: cta;
    display: flex;
    align-items: flex-start;
    margin-top: 1.15rem;
    align-self: start;
}

.steps-video-title {
    font-size: clamp(1.85rem, 2.7vw, 2.45rem);
    font-weight: 800;
    color: #FFFFFF !important;
    line-height: 1.2;
    margin-bottom: 0;
    letter-spacing: -0.02em;
    text-shadow: none !important;
}

.steps-video-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    line-height: 1.55;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 30, 60, 0.2);
}

#tutorial-video .btn-primary {
    background-color: var(--color-primary-dark) !important;
    color: #FFFFFF !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 800;
    transition: transform var(--transition-normal);
}

#tutorial-video .btn-primary:hover {
    background-color: var(--color-primary-dark) !important;
    color: #FFFFFF !important;
    border: none !important;
    outline: none !important;
    transform: scale(1.05);
    box-shadow: none !important;
}

#tutorial-video .btn-primary i {
    color: #FFFFFF !important;
}

#tutorial-video .btn-primary:hover i {
    color: #FFFFFF !important;
}

.steps-video-player {
    grid-area: player;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    background: #0F172A;
    box-shadow: 0 16px 36px rgba(0, 45, 86, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
    border: none;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.steps-video-player:hover {
    box-shadow: 0 22px 46px rgba(0, 45, 86, 0.22), 0 6px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.steps-video-responsive {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
}

.steps-video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

/* Botón y carátula del reproductor de video */
.video-cover-btn {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    padding: 0;
    margin: 0;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
}

.video-cover-btn:hover .video-cover-img,
.video-cover-btn:focus-visible .video-cover-img {
    transform: scale(1.03);
    filter: brightness(0.96);
}

/* Insignia central del reproductor (Más transparente, oscuro sutil, sin silueta blanca ni sombra animada) */
.video-play-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(66px, 8.5vw, 84px);
    height: clamp(66px, 8.5vw, 84px);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.3s ease;
    z-index: 2;
}

.video-play-badge i {
    color: #FFFFFF;
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    margin-left: 4px;
    /* Compensación óptica para centrado perfecto del triángulo play */
    transition: transform 0.25s ease;
}

.video-cover-btn:hover .video-play-badge,
.video-cover-btn:focus-visible .video-play-badge {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(15, 23, 42, 0.65);
}

.video-cover-btn:hover .video-play-badge i,
.video-cover-btn:focus-visible .video-play-badge i {
    transform: scale(1.06);
}

/* Clases de texto compartidas para títulos con iconos */
.steps-apps-title {
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--color-primary-dark);
    line-height: 1.2;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.steps-apps-desc {
    font-size: 1.05rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =======================================
   SECTION: DERECHOS (Revisa, Conoce, Actúa)
   - Fondo de ancho completo: revisa-conoce-actua.jpg
   - Capa degradé para no interrumpir el contenido
   ======================================= */
#derechos {
    position: relative;
    background: var(--color-primary) url('../assets/img/revisa-conoce-actua.jpg') no-repeat right center;
    background-size: 92%;
    color: #FFFFFF;
    padding: 10rem 0;
    min-height: 640px;
    display: flex;
    align-items: center;
    overflow: hidden;
    margin-top: -1px;
}

/* Capa de degradé protectora del texto sobre la imagen de fondo */
.derechos-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgb(0, 108, 183) 0%,
            rgb(0, 108, 183) 18%,
            rgba(0, 108, 183, 0.85) 32%,
            rgba(0, 108, 183, 0.45) 46%,
            rgba(0, 108, 183, 0.1) 56%,
            transparent 64%);
    pointer-events: none;
    z-index: 2;
}

.derechos-container {
    position: relative;
    z-index: 3;
}

.derechos-content {
    max-width: 620px;
    text-align: left;
}

#derechos h2 {
    color: #FFFFFF;
    font-size: clamp(1.85rem, 3vw, 2.4rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 8px rgba(0, 30, 60, 0.4);
}

/* Badge circular uniforme para títulos de sección (Exclamación y Actualización) */
.title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.title-icon-badge {
    width: 58px;
    height: 58px;
    min-width: 58px;
    min-height: 58px;
    background-color: #D2DE26;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: none !important;
    filter: none !important;
}

.title-icon-badge i {
    color: var(--color-primary) !important;
    font-size: 1.95rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-text-stroke: 1.5px var(--color-primary);
    paint-order: stroke fill;
    filter: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}

#derechos .subtitle {
    color: #FFFFFF !important;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 1.25rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.why-check-list {
    list-style: none;
    margin: 1.5rem 0 1.75rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.why-check-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 1.12rem;
    font-weight: 500;
    line-height: 1.45;
    color: #FFFFFF;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.why-check-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--color-accent);
    box-shadow: 0 0 6px rgba(210, 222, 38, 0.6);
}

.why-check-important {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    max-width: 580px;
}

.why-check-tag {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

.why-check-desc {
    font-size: 0.98rem;
    line-height: 1.5;
    color: #F8FAFC;
    margin: 0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* =======================================
   SECTION: ACTUALIZACIÓN DE DATOS (Avisos)
   - Capa de imagen de la mujer con smartphone a la derecha (siempreactualizados.png)
   - Capa degradé para proteger el texto
   ======================================= */
#actualiza-datos {
    position: relative;
    background-color: var(--color-primary);
    padding: clamp(6.5rem, 9vh, 8.5rem) 0;
    min-height: 640px;
    display: flex;
    align-items: center;
    color: #FFFFFF;
    overflow: hidden;
}

/* Capa de imagen: libre de restricciones de columna, con margen superior sutil en desktop */
.avisos-media-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.avisos-media-layer .avisos-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.avisos-bg-img {
    height: calc(100% - 14px);
    min-height: 580px;
    width: auto;
    max-height: calc(100% - 14px);
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    display: block;
    vertical-align: bottom;
    filter: none;
    /* En 1920px queda en 0px (perfecta); en pantallas más angostas se compensa hacia la derecha para que no invada el texto a la izquierda */
    transform: translateX(clamp(0px, calc((1920px - 100vw) * 0.35), 210px));
    transform-origin: right bottom;
}

/* Capa de degradé protectora del texto sobre la imagen */
.avisos-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgb(0, 108, 183) 0%,
            rgb(0, 108, 183) 20%,
            rgba(0, 108, 183, 0.88) 35%,
            rgba(0, 108, 183, 0.48) 50%,
            rgba(0, 108, 183, 0.1) 62%,
            transparent 70%);
    pointer-events: none;
    z-index: 2;
}

.avisos-container {
    position: relative;
    z-index: 3;
}

.avisos-content-block {
    max-width: 620px;
    text-align: left;
}

#actualiza-datos .steps-apps-title {
    color: #FFFFFF;
}

#actualiza-datos .steps-apps-title.title-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

#actualiza-datos .steps-apps-desc {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    line-height: 1.6;
}

.avisos-header {
    max-width: 100%;
    margin-bottom: 0;
    text-align: left;
}

.avisos-btn-wrap {
    margin-top: 1.15rem;
    margin-bottom: 0;
}

.btn-avisos-update {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.95rem 2.25rem;
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    border-radius: var(--radius-full);
    background-color: var(--color-accent);
    color: var(--color-primary-dark);
    border: none;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-normal);
}

.btn-avisos-update:hover {
    background-color: #FFFFFF;
    color: var(--color-primary-dark);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.btn-avisos-update i {
    font-size: 1.1rem;
    color: var(--color-primary-dark);
    transition: transform var(--transition-fast);
}

.btn-avisos-update:hover i {
    transform: scale(1.08);
}

/* ========================================================
   ANIMACIÓN ACTUALIZACIÓN DE DATOS (AVISOS)
   1. Laptop y Celular permanecen visibles con sus pantallas claras.
   2. Aparece el sobre de notificación en la pantalla de cada dispositivo.
   3. Los sobres vibran en su lugar simulando la llegada del mensaje/alerta.
   4. Se mantienen estables y el ciclo se reinicia armónicamente.
   ======================================================== */

.avisos-devices-group {
    /* Los dispositivos permanecen siempre presentes y estables */
    opacity: 1;
}

.avisos-screen-envelope {
    opacity: 1;
}

/* Triángulo de advertencia verde sobre el celular con micro-alerta periódica */
.avisos-warning-badge {
    transform-origin: 232px 30px;
    animation: avisosWarningBadgePulse 4.2s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

/* Animación activa continua con origen de transformación exacto en el centro geométrico de cada sobre */
.avisos-envelope-laptop {
    transform-origin: 102px 79px;
    animation: avisosLaptopEnvelopeVibe 4.2s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

.avisos-envelope-phone {
    transform-origin: 201px 102px;
    animation: avisosPhoneEnvelopeVibe 4.2s cubic-bezier(0.25, 1, 0.4, 1) infinite;
}

/* Sobre en la pantalla de la Laptop: permanece SIEMPRE visible y vibra periódicamente */
@keyframes avisosLaptopEnvelopeVibe {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* Ráfaga 1 de vibración de alerta sincronizada */
    3% {
        transform: translate(-2px, 1px) rotate(-1.5deg) scale(1.02);
    }

    6% {
        transform: translate(2.5px, -1.5px) rotate(1.8deg) scale(1.02);
    }

    9% {
        transform: translate(-2px, -1px) rotate(-1.2deg) scale(1.02);
    }

    12% {
        transform: translate(2px, 1.5px) rotate(1.2deg) scale(1.01);
    }

    15% {
        transform: translate(-1.2px, 0.5px) rotate(-0.6deg) scale(1);
    }

    18% {
        transform: translate(1px, -0.5px) rotate(0.4deg) scale(1);
    }

    21% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* Pausa con presencia firme */
    48% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* Ráfaga 2 de vibración sutil */
    51% {
        transform: translate(-1.8px, 1px) rotate(-1.2deg) scale(1.018);
    }

    54% {
        transform: translate(2px, -1px) rotate(1.4deg) scale(1.018);
    }

    57% {
        transform: translate(-1.5px, -0.8px) rotate(-1deg) scale(1.01);
    }

    60% {
        transform: translate(1.2px, 0.8px) rotate(0.8deg) scale(1);
    }

    63% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Sobre en la pantalla del Celular: permanece SIEMPRE visible y vibra en sincronía periódica */
@keyframes avisosPhoneEnvelopeVibe {
    0% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* Ráfaga 1 de vibración de alerta sincronizada */
    3% {
        transform: translate(-2px, 1px) rotate(-2deg) scale(1.03);
    }

    6% {
        transform: translate(2.5px, -1.5px) rotate(2deg) scale(1.03);
    }

    9% {
        transform: translate(-2px, -1px) rotate(-1.5deg) scale(1.02);
    }

    12% {
        transform: translate(2px, 1.5px) rotate(1.5deg) scale(1.02);
    }

    15% {
        transform: translate(-1.2px, 0.5px) rotate(-0.8deg) scale(1.01);
    }

    18% {
        transform: translate(1px, -0.5px) rotate(0.5deg) scale(1);
    }

    21% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* Pausa con presencia firme */
    48% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* Ráfaga 2 de vibración sutil */
    51% {
        transform: translate(-1.8px, 1px) rotate(-1.6deg) scale(1.02);
    }

    54% {
        transform: translate(2px, -1px) rotate(1.6deg) scale(1.02);
    }

    57% {
        transform: translate(-1.5px, -0.8px) rotate(-1.2deg) scale(1.01);
    }

    60% {
        transform: translate(1.2px, 0.8px) rotate(0.8deg) scale(1);
    }

    63% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }
}

/* Triángulo verde de advertencia: permanece SIEMPRE visible y vibra/pulsa en sincronía con los sobres */
@keyframes avisosWarningBadgePulse {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }

    /* Reacción al primer aviso: alerta vibrante enérgica */
    3% {
        transform: translateY(-4px) scale(1.12) rotate(-3deg);
    }

    6% {
        transform: translateY(-1px) scale(1.08) rotate(3deg);
    }

    9% {
        transform: translateY(-3px) scale(1.1) rotate(-2deg);
    }

    12% {
        transform: translateY(0) scale(1.04) rotate(1deg);
    }

    15% {
        transform: translateY(-1px) scale(1.02) rotate(-0.5deg);
    }

    18% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    21% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    /* Pausa con presencia firme */
    48% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    /* Reacción al segundo aviso: vibración sutil */
    51% {
        transform: translateY(-3px) scale(1.08) rotate(-2deg);
    }

    54% {
        transform: translateY(-0.5px) scale(1.05) rotate(2deg);
    }

    57% {
        transform: translateY(-2px) scale(1.06) rotate(-1deg);
    }

    60% {
        transform: translateY(0) scale(1.02) rotate(0.5deg);
    }

    63% {
        transform: translateY(0) scale(1) rotate(0deg);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1) rotate(0deg);
    }
}

.remember-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 75, 132, 0.1);
    color: var(--color-primary-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.remember-content {
    display: flex;
    flex-direction: column;
    text-align: left;
    flex: 1;
}

.remember-text {
    font-size: 0.98rem;
    font-weight: 500;
    color: #FFFFFF;
    line-height: 1.5;
    margin: 0;
}

.remember-text strong,
.rutina-callout-text strong {
    font-weight: 400;
}

/* =======================================
   CTA SECTION (Full-Width Strip - Compact)
   ======================================= */
/* =======================================
   CTA SECTION (Full-Width - Altura Reducida y Compacta)
   ======================================= */
.cta-section {
    width: 100%;
    padding: 0;
    min-height: clamp(340px, 45vh, 440px);
    display: flex;
    align-items: center;
    background-color: rgb(109, 207, 246);
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
    margin-top: -1px;
    border: none;
    outline: none;
}

.cta-container {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: clamp(340px, 45vh, 440px);
    display: flex;
    align-items: center;
}

/* Capa de Imagen del CTA: empieza desde la parte superior, contenida dentro de la sección sin salir del marco */
.cta-media-layer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    pointer-events: none;
    padding-right: 0;
}

.cta-media-layer .cta-image-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    overflow: hidden;
}

.cta-section .cta-bg-img {
    height: 122%;
    width: auto;
    max-height: none;
    object-fit: contain;
    object-position: right top;
    display: block;
    border: none;
    box-shadow: none;
    transform-origin: right top;
}

/* Capa en degradé del CTA: de color de fondo sólido (izquierda) a transparente (derecha) */
.cta-fade-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgb(109, 207, 246) 0%,
            rgb(109, 207, 246) 24%,
            rgba(109, 207, 246, 0.85) 40%,
            rgba(109, 207, 246, 0.45) 54%,
            rgba(109, 207, 246, 0.1) 68%,
            transparent 78%);
    pointer-events: none;
    z-index: 2;
}

.cta-banner-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    max-width: 580px;
    position: relative;
    z-index: 2;
    padding-top: clamp(2rem, 4vh, 3rem);
    padding-bottom: clamp(2rem, 4vh, 3rem);
}

.cta-text {
    width: 100%;
    margin-bottom: 1.35rem;
}

.cta-logo-campaign {
    display: block;
    width: clamp(260px, 32vw, 380px);
    height: auto;
    object-fit: contain;
    margin-bottom: 1.25rem;
    filter: drop-shadow(0 8px 24px rgba(0, 45, 86, 0.16));
}

.cta-section h2 {
    color: var(--color-primary-dark);
    font-size: clamp(2rem, 3.2vw, 2.75rem);
    margin-bottom: 0.85rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
    font-weight: 800;
}

.cta-section p,
.cta-subtitle {
    font-size: clamp(1.15rem, 1.8vw, 1.45rem);
    color: #FFFFFF;
    /* paint-order asegura que el borde exterior se dibuje detrás del texto blanco sin invadirlo */
    paint-order: stroke fill;
    -webkit-text-stroke: 4.5px var(--color-primary-dark);
    text-shadow:
        0 0 3px var(--color-primary-dark),
        -2px -2px 0 var(--color-primary-dark),
        2px -2px 0 var(--color-primary-dark),
        -2px 2px 0 var(--color-primary-dark),
        2px 2px 0 var(--color-primary-dark),
        -3px 0 0 var(--color-primary-dark),
        3px 0 0 var(--color-primary-dark),
        0 -3px 0 var(--color-primary-dark),
        0 3px 0 var(--color-primary-dark);
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
    letter-spacing: -0.01em;
}

.cta-action {
    display: flex;
    justify-content: flex-start;
}

.cta-section .btn {
    white-space: nowrap;
    position: relative;
    z-index: 2;
    box-shadow: none !important;
    background-color: #D2DE26;
    color: #004B84;
    /* Relieve de profundidad azul perfectamente atrás y arriba */
    filter: drop-shadow(0 -5px 0 #004B84);
    /* Animación sutil de incremento de tamaño en loop */
    animation: btnSubtlePulse 2.8s ease-in-out infinite;
    transition: transform var(--transition-normal), background-color var(--transition-normal), color var(--transition-normal), filter var(--transition-normal);
}

.cta-section .btn:hover {
    background-color: #B1274D !important;
    transform: translateY(-2px) scale(1.03);
    filter: drop-shadow(0 -6px 0 #002D56);
    color: #FFFFFF !important;
    animation-play-state: paused;
}

/* Animación sutil de respiración/pulso para los botones principales (Hero y CTA) */
@keyframes btnSubtlePulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.04);
    }

    100% {
        transform: scale(1);
    }
}

.floating-shape {
    display: none;
}

/* =======================================
   FOOTER (Clean & Symmetrical - Matching Header Height)
   ======================================= */
.footer {
    background-color: #FFFFFF;
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
    padding: 0;
    border-top: 1px solid rgba(0, 45, 86, 0.08);
    display: flex;
    align-items: center;
    width: 100%;
}

.footer .container {
    height: 100%;
    width: 100%;
}

.footer-inner,
.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
}

.footer-logos-group {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.footer-logo-img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
}



.footer-logo-img:hover,
.footer-logo-campaign:hover {
    transform: none;
    filter: none !important;
}


/* =======================================
   ANIMATIONS
   ======================================= */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: opacity, transform;
}

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

.delay-1 {
    transition-delay: 0.12s;
}

.delay-2 {
    transition-delay: 0.24s;
}

.delay-3 {
    transition-delay: 0.36s;
}

@media (prefers-reduced-motion: reduce) {
    .animate-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* =======================================
   RESPONSIVE DESIGN (Mobile First adapted)
   ======================================= */
@media (max-width: 1024px) {
    .hero-content {
        max-width: 520px;
    }
}

@media (max-width: 900px) {
    .hero {
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1.5rem;
        padding-bottom: 0;
        max-height: none;
    }

    /* En móvil: degradé de arriba hacia abajo (de color hacia transparente, empezando antes) */
    .hero-fade-overlay {
        background: linear-gradient(to bottom,
                rgb(109, 207, 246) 0%,
                rgb(109, 207, 246) 14%,
                rgba(109, 207, 246, 0.8) 30%,
                rgba(109, 207, 246, 0.3) 48%,
                transparent 68%);
    }

    .hero-container {
        min-height: auto;
        max-height: none;
        justify-content: center;
        order: 1;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        text-align: center;
        padding-top: 1rem;
        padding-bottom: 0.5rem;
    }

    .hero-brand-group {
        align-items: center;
        text-align: center;
    }

    .hero-title-logo-wrap {
        justify-content: center;
    }

    .hero-ctas {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        order: 2;
    }

    .hero-media-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        order: 3;
        z-index: 1;
        padding: 0;
    }

    .hero-media-layer {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: flex-end;
        margin-top: 0.5rem;
    }

    .hero-media-layer .hero-image-wrapper {
        max-width: 92vw;
        height: auto;
        justify-content: center;
        align-items: flex-end;
    }

    .hero-media-layer .hero-woman-img {
        max-height: 480px;
        width: auto;
        object-position: center bottom;
    }
}

@media (max-width: 900px) {
    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }

    .step-card {
        min-height: auto;
        padding: 3rem 1.75rem 2.25rem;
    }

    .step-card-desc {
        opacity: 1;
        transform: none;
        margin-top: 0.85rem;
        pointer-events: auto;
    }

    .step-card-hover-hint {
        display: none;
    }
}

@media (max-width: 992px) {

    /* Columnas apiladas en tablet/móvil */
    .flex-row,
    .grid-2 {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    /* Secciones Derechos y Avisos en tablet */
    #derechos {
        padding-top: 5rem;
        padding-bottom: 5rem;
        overflow: hidden;
    }

    #actualiza-datos {
        padding-top: 5rem;
        padding-bottom: 5rem;
        overflow: hidden;
    }

    #derechos .container {
        padding-bottom: 0;
    }

    #derechos .derechos-content,
    #actualiza-datos .avisos-content-block {
        max-width: 100%;
        text-align: left;
    }

    #derechos h2,
    #derechos .title-with-icon {
        text-align: left;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: auto;
        max-height: none;
        padding: clamp(1.5rem, 3vh, 2rem) 0 0 0;
        background-color: rgb(109, 207, 246);
        align-items: center;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        position: relative;
    }

    .hero-container {
        min-height: auto;
        max-height: none;
        padding: 0 20px;
        width: 100%;
        z-index: 3;
        justify-content: center;
        order: 1;
    }

    .hero-content {
        max-width: 100%;
        align-items: center;
        margin: 0 auto;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        text-align: center;
    }

    .hero-brand-group {
        align-items: center;
        text-align: center;
        width: 100%;
        margin-bottom: 0.75rem;
    }

    .hero-brand-group:hover .hero-subtitle,
    .hero-brand-group:hover .hero-desc {
        transform: translateY(-2px);
    }

    .hero-title {
        font-size: clamp(2.15rem, 7.5vw, 2.85rem);
        line-height: 1.15;
        margin-bottom: 0.65rem;
    }

    .hero-title-logo-wrap {
        justify-content: center;
        margin-bottom: 0.65rem;
    }

    .hero-logo-campaign {
        max-width: 325px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-subtitle {
        font-size: 1.15rem;
        margin-bottom: 0.4rem;
        text-align: center;
    }

    .hero-desc {
        font-size: 0.975rem;
        margin-bottom: 0;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    /* En móvil: Botón CTA justo debajo del contenido y antes de la imagen */
    .hero-ctas {
        position: relative;
        bottom: auto;
        left: auto;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        z-index: 3;
        order: 2;
    }

    /* En móvil: La imagen se ubica en la parte de abajo de la composición, abajo del botón */
    .hero-media-container {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        order: 3;
        z-index: 1;
        padding: 0;
    }

    .hero-media-layer {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: flex-end;
        margin-top: 0.5rem;
    }

    .hero-media-layer .hero-image-wrapper {
        max-width: 95vw;
        height: auto;
        justify-content: center;
        align-items: flex-end;
    }

    .hero-media-layer .hero-woman-img {
        max-height: clamp(340px, 50vh, 480px);
        width: auto;
        object-position: center bottom;
    }

    /* Reducción proporcional de #heroBtn en modo móvil (anula reglas de ID desktop) */
    #heroBtn {
        padding: 0.7rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.65rem;
    }

    #heroBtn .btn-icon-wrapper {
        width: 1.15rem;
        height: 1.15rem;
    }

    #heroBtn .btn-icon-wrapper .icon-closed,
    #heroBtn .btn-icon-wrapper .icon-open {
        font-size: 1.05rem;
    }



    .hero-security-bottom {
        position: relative;
        bottom: auto;
        margin-top: auto;
        padding: 0 16px 12px;
        z-index: 2;
    }

    .security-text-clean {
        font-size: 0.825rem;
        line-height: 1.4;
        color: #FFFFFF !important;
        text-shadow: 0 1px 4px rgba(0, 30, 60, 0.7);
    }

    #como-ingresar {
        padding: 4.5rem 0;
    }

    .section-header {
        margin-bottom: 1.35rem;
        text-align: center;
    }

    .section-header h2,
    .section-header .subtitle,
    .section-header .section-desc {
        text-align: center;
    }

    .steps-platform-selector-wrapper {
        margin: -0.5rem auto 1.5rem;
    }

    .steps-platform-tabs {
        max-width: 340px;
        padding: 4px;
        gap: 4px;
    }

    .steps-platform-tab {
        padding: 0.65rem 0.85rem;
        font-size: 0.88rem;
        gap: 0.5rem;
    }

    .steps-platform-tab i {
        font-size: 0.95rem;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        gap: 0.5rem;
    }

    .step-card {
        width: 100%;
    }

    .step-card-visual {
        width: 100%;
        height: 210px;
        margin-bottom: 0.55rem;
    }

    .step-card-title {
        margin-bottom: 0.3rem;
        text-align: center;
    }

    .step-card-desc {
        text-align: center;
    }

    .step-tags {
        margin-top: 0.5rem;
        justify-content: center;
    }

    .steps-divider {
        margin: 3.5rem 0;
    }

    .steps-video-row {
        grid-template-columns: 1fr;
        grid-template-areas:
            "title"
            "player"
            "cta";
        gap: 1.35rem;
        margin-top: 0;
        margin-bottom: 0;
        text-align: center;
    }

    .steps-video-text {
        align-items: center;
        text-align: center;
        justify-content: center;
        margin: 0 auto;
        width: 100%;
    }

    .steps-video-cta {
        margin-top: 0.25rem;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .steps-video-title {
        font-size: 1.6rem;
        margin-bottom: 0;
        text-align: center;
        color: var(--color-primary-dark) !important;
        /* Azul institucional en modo móvil */
        text-shadow: none !important;
    }

    .steps-video-desc {
        font-size: 0.95rem;
        text-align: center;
    }

    .steps-video-player {
        border-radius: 14px;
        border: none;
    }

    /* Sección Derechos (Revisa, Conoce, Actúa) en Móvil:
       Fondo de ancho completo con mibuzon-conoce-derechos-movil.jpg */
    #derechos {
        background: var(--color-primary-dark) url('../assets/img/mibuzon-conoce-derechos-movil.jpg') no-repeat center bottom;
        background-size: cover;
        padding: 4rem 0 clamp(270px, calc(100vw - 65px), 440px);
        overflow: hidden;
        position: relative;
        height: auto;
        min-height: auto;
        margin-bottom: 0;
    }

    #derechos .derechos-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .derechos-content {
        max-width: 100%;
        text-align: left;
        padding-bottom: 0;
    }

    /* En móvil: degradé para #derechos para proteger el texto sobre el fondo */
    .derechos-fade-overlay {
        background: linear-gradient(180deg,
                rgba(0, 75, 132, 0.96) 0%,
                rgba(0, 75, 132, 0.88) 35%,
                rgba(0, 108, 183, 0.45) 55%,
                transparent 72%);
    }

    /* Sección Tu celular y correo electrónico (Avisos) en Móvil:
       Imagen reposando en el fondo inferior, botón centrado y textos a la izquierda */
    #actualiza-datos {
        height: auto;
        min-height: auto;
        padding-top: clamp(2.5rem, 5vh, 3.5rem);
        padding-bottom: 0;
        margin-bottom: 0;
        overflow: hidden;
        position: relative;
        background: var(--color-primary);
    }

    #actualiza-datos .avisos-container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .avisos-content-block {
        max-width: 100%;
        /* espacio inferior: suficiente para que se vea la imagen sin exceso debajo del botón */
        padding-bottom: clamp(260px, 40vh, 360px);
        text-align: left;
    }

    .avisos-media-layer {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        pointer-events: none;
    }

    .avisos-media-layer .avisos-image-wrapper {
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        height: auto;
    }

    .avisos-bg-img {
        height: clamp(520px, 78vh, 700px);
        max-height: none;
        width: auto;
        max-width: 140vw;
        object-fit: contain;
        object-position: center bottom;
        display: block;
        vertical-align: bottom;
        transform: none;
        transform-origin: center bottom;
    }

    /* En móvil: degradé de arriba hacia abajo para #actualiza-datos para proteger el texto */
    .avisos-fade-overlay {
        background: linear-gradient(to bottom,
                rgb(0, 108, 183) 0%,
                rgb(0, 108, 183) 28%,
                rgba(0, 108, 183, 0.85) 46%,
                rgba(0, 108, 183, 0.35) 64%,
                transparent 82%);
    }

    .avisos-header {
        width: 100%;
        margin-bottom: 0.25rem;
        text-align: left;
    }

    .avisos-header .steps-apps-title {
        justify-content: flex-start;
        text-align: left;
    }

    .avisos-header .steps-apps-desc {
        text-align: left;
    }

    .avisos-btn-wrap {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 1.25rem;
        margin-bottom: 0;
    }

    /* CTA Section en Móvil: Mayor altura, contenido centrado y visualización óptima */
    .cta-section {
        min-height: auto;
        padding: clamp(2.5rem, 5vh, 3.5rem) 0 0 0;
        align-items: flex-start;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        text-align: center;
        position: relative;
        margin-top: -1px;
    }

    .cta-container {
        min-height: auto;
        flex-direction: column;
        padding-left: 20px;
        padding-right: 20px;
        display: flex;
    }

    /* En móvil: degradé de arriba hacia abajo para el CTA */
    .cta-fade-overlay {
        background: linear-gradient(to bottom,
                rgb(109, 207, 246) 0%,
                rgb(109, 207, 246) 35%,
                rgba(109, 207, 246, 0.8) 55%,
                rgba(109, 207, 246, 0.35) 75%,
                transparent 100%);
    }

    /* En móvil: CTA Orden: 1) Título/Logo, 2) Botón, 3) Imagen de la mujer abajo */
    .cta-banner-content {
        align-items: center;
        text-align: center;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
        order: 1;
        display: flex;
        flex-direction: column;
    }

    .cta-text {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 1rem;
        order: 1;
    }

    .cta-logo-campaign {
        max-width: 280px;
        margin: 0 auto 0.75rem auto;
    }

    .cta-subtitle {
        text-align: center;
        font-size: 1.15rem;
        max-width: 440px;
        margin: 0 auto;
    }

    .cta-action {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 0.25rem;
        margin-bottom: 1rem;
        order: 2;
    }

    .cta-media-layer {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        bottom: 0;
        width: 100%;
        height: auto;
        justify-content: center;
        align-items: flex-end;
        margin-top: 0.5rem;
        order: 3;
    }

    .cta-media-layer .cta-image-wrapper {
        justify-content: center;
        align-items: flex-end;
    }

    .cta-section .cta-bg-img {
        height: auto;
        max-height: clamp(260px, 38vh, 360px);
        width: auto;
        object-position: center bottom;
    }

    .cta-section .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
        gap: 0.65rem;
        white-space: normal;
        max-width: 100%;
    }

    .cta-section .btn .btn-icon-wrapper {
        width: 1.15rem;
        height: 1.15rem;
    }

    .cta-section .btn .btn-icon-wrapper .icon-closed,
    .cta-section .btn .btn-icon-wrapper .icon-open {
        font-size: 1.05rem;
    }

    .footer {
        height: 60px;
        min-height: 60px;
        padding: 0;
    }

    .footer-logo-img {
        height: 26px;
    }

}

/* =======================================
   PERFORMANCE & ACCESSIBILITY OPTIMIZATIONS
   ======================================= */
/* Fast initial layout rendering with content-visibility */
#como-ingresar,
#tutorial-video,
#derechos,
#actualiza-datos {
    content-visibility: auto;
    contain-intrinsic-size: 1px 650px;
}

/* Hardware Acceleration on Animated Floating Elements */
.avisos-mockup-wrapper {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Reduced Motion for Accessible Performance */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}