/* ==========================================================
   Funciones · WhatsApp Web integrado a Evidence ERP
   ========================================================== */

.whatsapp-web-page {
    --wa-primary: #041f49;
    --wa-deep-blue: #073d86;
    --wa-bright-blue: #1f9ae1;
    --wa-whatsapp-green: #06dea5;
    --wa-cta-blue: #016dfe;
    --wa-shell-gutter: 12px;
    /* La muesca superior de fondo-hero.webp va del 6.5% al 93.1% del ancho;
       todo el contenido se alinea a esa misma orilla */
    --wa-shell-inset: 7%;
    /* Cuánto se sale el mockup de su columna hacia la derecha (0 = no se sale) */
    --wa-visual-bleed: calc(100vw * 0.05);
}

/* Toda la página en Montserrat (los iconos conservan su propia fuente) */
.whatsapp-web-page,
.whatsapp-web-page *:not(.material-symbols-outlined) {
    font-family: "Montserrat", sans-serif;
}

/* ---------- Contenedor navbar + hero ---------- */

.wa-hero-shell {
    position: relative;
    /* Proporción exacta de fondo-hero.webp (2283x1191) para que no se deforme */
    aspect-ratio: 2283 / 1191;
    background: url("../../img/functions/whatsapp-web-integrado-evidence-erp/fondo-hero.webp") center / 100% 100% no-repeat;
    color: #ffffff;
}

/* El navbar (x-header-landing) es absolute; lo metemos dentro de la muesca superior */
.wa-hero-shell > header {
    padding-left: var(--wa-shell-inset);
    padding-right: var(--wa-shell-inset);
    padding-top: 2%;
}

/* ---------- Hero ---------- */

.wa-hero {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 104px var(--wa-shell-inset) 56px;
}

.wa-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    width: 100%;
    margin: 0 auto;
}

.wa-hero__copy {
    padding-right: clamp(16px, 2vw, 32px);
}

.wa-hero__title {
    margin: 0;
    font-size: clamp(3.5rem, 4.4vw, 6rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-wrap: balance;
}

.wa-hero__title-highlight,
.wa-hero__title-rest,
.wa-hero__title-erp {
    display: block;
}

/* "ERP" más grande que el resto del título */
.wa-hero__title-erp {
    font-size: 1.7em;
    line-height: 0.95;
}

.wa-hero__title-highlight {
    color: var(--wa-whatsapp-green);
}

.wa-hero__lead {
    max-width: 44rem;
    margin: 28px 0 0;
    font-size: clamp(1.125rem, 1.4vw, 1.5rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.78);
}

.wa-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
    width: 80%;
}

.wa-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: 9999px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.wa-btn .material-symbols-outlined {
    font-size: 19px;
}

.wa-btn--primary .material-symbols-outlined {
    font-size: 26px;
    transition: transform 0.25s ease;
}

.wa-btn--primary:hover .material-symbols-outlined {
    transform: translateX(4px);
}

.wa-btn:focus-visible {
    outline: 3px solid rgba(143, 208, 255, 0.6);
    outline-offset: 3px;
}

.wa-btn--primary {
    /* Ocupa todo el ancho de la columna de texto */
    width: 100%;
    padding: 22px 36px;
    font-size: 1.375rem;
    background-color: var(--wa-cta-blue);
    color: #ffffff;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25);
}

.wa-btn--primary:hover {
    background-color: #0158cc;
}

.wa-hero__visual {
    position: relative;
    margin: 0 calc(-1 * var(--wa-visual-bleed)) 0 0;
}

.wa-hero__mockup {
    display: block;
    width: 100%;
    height: auto;
    /* El mockup tiene fondo transparente: la sombra sigue la silueta de la laptop */
    filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.35));
}

/* Tarjeta flotante sobre el mockup: pegada a la derecha, 15% abajo de la esquina superior */
.wa-hero__window {
    position: absolute;
    top: 8%;
    right: 0;
    width: 32%;
    height: auto;
    filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.3));
}

/* ---------- Indicador de scroll ---------- */

.wa-scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: 9999px;
    /* Mitad sobre el fondo del hero y mitad sobre la siguiente sección */
    transform: translate(-50%, 50%);
    background-color: var(--wa-cta-blue);
    /* Aro del color de la página para que se vea como un corte en el borde del hero */
    border: 8px solid #f7f9fb;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(1, 109, 254, 0.35);
    transition: background-color 0.25s ease;
}

.wa-scroll-cue:hover {
    background-color: #0158cc;
}

.wa-scroll-cue:focus-visible {
    outline: 3px solid rgba(1, 109, 254, 0.5);
    outline-offset: 4px;
}

.wa-scroll-cue .material-symbols-outlined {
    font-size: 34px;
    animation: wa-scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes wa-scroll-bounce {
    0%, 100% { transform: translateY(-2px); }
    50% { transform: translateY(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .wa-scroll-cue .material-symbols-outlined {
        animation: none;
    }
}

.wa_section__section_1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5%;
}

.wa_section__section_1__copy {
    padding-left: 4%;
}

.wa_section__section_1__content{
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.wa_section__section_1__bullet {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-cta-blue);
    background-color:#DFEDFE ;
    border-radius: 25px;
}


.wa_section__section_1__title {
    margin: 18px 0 0;
    font-size: clamp(2.25rem, 3.6vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--wa-primary);
}

.wa_section__section_1__title span {
    display: block;
}

.wa_section__section_1__description {
    max-width: 36rem;
    margin: 20px 0 0;
    font-size: clamp(1.5rem, 1.5vw, 1.25rem);
    line-height: 1.6;
    font-weight: 600;
    color: #44474f;
}

.wa_section__section_1__description + .wa_section__section_1__description {
    margin-top: 12px;
}

.wa_section__section_2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 5%;
    background-color: #FFFFFF;
}

.wa_section__section_2__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 90%;
}

.wa_section__section_2__content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 2.5%;
}

.wa_section__section_2__copy {
    display: flex;
    flex-direction: column;
}

.wa_section__section_2__visual {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wa_section__section_2__visual img {
    display: block;
    width: auto;
    height: 64px;
}

/* Flecha: círculo blanco con la flecha azul, del mismo tamaño que el círculo del ícono */
.wa_section__section_2__arrow {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 9999px;
    background-color: #ffffff;
    color: var(--wa-cta-blue);
    box-shadow: 0 6px 16px rgba(4, 31, 73, 0.08);
}

.wa_section__section_2__arrow .material-symbols-outlined {
    font-size: 26px;
}

.wa_section__section_2__title {
    max-width: 36rem;
    margin: 20px 0 0;
    font-size: clamp(1.8rem, 1.8vw, 1.8rem);
    line-height: 1.6;
    font-weight: 600;
    color: #44474f;
    padding: 0px 5%
}

.wa_section__section_2__description {
    max-width: 36rem;
    margin: 20px 0 0;
    font-size: clamp(1.4rem, 1.4vw, 1.4rem);
    line-height: 1.6;
    font-weight: 500;
    color: #44474f;
    padding: 0px 5%
}

.wa_section__section_2__copy_1 {
    background-color: #F8F7FE;
    padding: 3%;
    border-radius: 20px;
}

.wa_section__section_2__copy_2 {
    background-color: #F4FAFF;
    padding: 3%;
    border-radius: 20px;
}

.wa_section__section_2__copy_3 {
    background-color: #F7F8FF;
    padding: 3%;
    border-radius: 20px;
}

.wa_section__section_2__description + .wa_section__section_2__description {
    margin-top: 12px;
}

.wa_section__section_2__copy_4 {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin-top: 5%;
    background-color: #0F2240;
    width: 100%;
    border-radius: 20px;
    padding: 3%;
}
/* Bloque oscuro (copy_4): 3 elementos en fila, cada uno con icono a la izquierda
   y título + descripción a la derecha */
.wa_section__section_2__highlight {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 20px;
    min-width: 0;
    padding: 0 2%;
}

.wa_section__section_2__highlight_2 {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    gap: 20px;
    min-width: 0;
    border-right: 1px solid #ffffff;
    border-left: 1px solid #ffffff;
    padding: 0 2%;
}

.wa_section__section_2__highlight_visual {
    flex: 0 0 auto;
}

.wa_section__section_2__highlight_visual img {
    display: block;
    width: 96px;
    height: auto;
}

.wa_section__section_2__highlight_copy {
    min-width: 0;
}

.wa_section__section_2__highlight_title {
    margin: 0;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

.wa_section__section_2__highlight_description {
    margin: 6px 0 0;
    font-size: 1.28rem;
    line-height: 1.55;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
}

/* Dos columnas: texto a la izquierda, 3 imágenes a la derecha */
.wa_section__section_3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    margin-top: 5%;
    padding: 5% 5%;
    background-color: #E6F1FA;
    background-image: linear-gradient(90deg, #F4FAFB 0%, #F4FAFB 25%, #E6F1FA 65%, #E6F1FA 100%);
}

.wa_section__section_3__content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left;
}

.wa_section__section_3__media {
    display: flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    min-width: 0;
}

/* Ficha de contacto (vertical): se limita el ancho para que no rebase la altura del texto */
.wa_section__section_3__media img {
    display: block;
    width: 100%;
    max-width: 480px;
    height: auto;
}

.wa_section__section_3__bullet {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-cta-blue);
    background-color: #DFEDFE;
    border-radius: 25px;
}

.wa_section__section_3__title {
    margin: 18px 0 24px;
    font-size: clamp(3rem, 3.6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--wa-primary);
}

/* Cada item: icono a la izquierda, título + descripción a la derecha */
.wa_section__section_3__item {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 36rem;
    margin-bottom: 20px;
    border-radius: 20px;
    background-color: #ffffff;
    padding: 15px;
    box-shadow: 0 6px 16px rgba(4, 31, 73, 0.08);
    border: 1px solid rgba(4, 31, 73, 0.08);
}

.wa_section__section_3__item_visual {
    flex: 0 0 auto;
}

.wa_section__section_3__item_visual img {
    display: block;
    width: 72px;
    height: auto;
}

.wa_section__section_3__item_copy {
    min-width: 0;
}

.wa_section__section_3__item_title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--wa-primary);
}

.wa_section__section_3__item_description {
    margin: 6px 0 0;
    font-size: 1.15rem;
    line-height: 1.55;
    font-weight: 400;
    color: #44474f;
}





.wa_section__section_4 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    margin-top: 5%;
    padding: 5% 5%;
    background-color: #E6F1FA;
    background-image: linear-gradient(90deg, #F4FAFB 0%, #F4FAFB 25%, #E6F1FA 65%, #E6F1FA 100%);
}

/* Texto 40% · imagen 60% */
.wa_section__section_4__content {
    display: flex;
    flex: 4 1 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    text-align: left;
}

.wa_section__section_4__media {
    flex: 6 1 0;
    min-width: 0;
}

.wa_section__section_4__media img {
    display: block;
    width: 100%;
    height: auto;
}

.wa_section__section_4__bullet {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-cta-blue);
    background-color: #DFEDFE;
    border-radius: 25px;
}

.wa_section__section_4__title {
    margin: 18px 0 24px;
    font-size: clamp(3.5rem, 3.8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--wa-primary);
}

.wa_section__section_4__description {
    max-width: 36rem;
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.55;
    font-weight: 600;
    color: #44474f;
}

/* Lista con palomita azul */
.wa_section__section_4__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wa_section__section_4__list_item {
    position: relative;
    padding-left: 34px;
    font-size: 1.3rem;
    line-height: 1.55;
    font-weight: 600;
    color: var(--wa-cta-blue);
}

/* Solo la palomita azul, sin círculo */
.wa_section__section_4__list_item::before {
    content: "";
    position: absolute;
    top: 0.2em;
    left: 0;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016dfe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

.wa_section__section_5 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5%;
    margin-top: 5%;
    padding: 5% 5%;
    background-color: #E6F1FA;
    background-image: linear-gradient(270deg, #F4FAFB 0%, #F4FAFB 25%, #E6F1FA 65%, #E6F1FA 100%);
}

/* Espejo de la sección 4: imagen 60% a la izquierda · texto 40% a la derecha */
.wa_section__section_5__content {
    display: flex;
    flex: 4 1 0;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 0;
    text-align: right;
}

.wa_section__section_5__media {
    flex: 6 1 0;
    min-width: 0;
}

.wa_section__section_5__media img {
    display: block;
    width: 100%;
    height: auto;
}

.wa_section__section_5__bullet {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-cta-blue);
    background-color: #DFEDFE;
    border-radius: 25px;
}

.wa_section__section_5__title {
    margin: 18px 0 24px;
    font-size: clamp(3.5rem, 3.8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--wa-primary);
}

.wa_section__section_5__description {
    max-width: 36rem;
    margin: 0 0 24px;
    font-size: 1.5rem;
    line-height: 1.55;
    font-weight: 600;
    color: #44474f;
}

/* Lista con palomita azul */
.wa_section__section_5__list {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wa_section__section_5__list_item {
    position: relative;
    padding-right: 34px;
    font-size: 1.3rem;
    line-height: 1.55;
    font-weight: 600;
    color: var(--wa-cta-blue);
}

/* Palomita azul a la derecha del texto */
.wa_section__section_5__list_item::before {
    content: "";
    position: absolute;
    top: 0.2em;
    right: 0;
    width: 22px;
    height: 22px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23016dfe' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5l5 5L20 6'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}

/* Cierre: imagen de fondo cubriendo toda la sección, texto blanco a la izquierda */
.wa_section__section_6 {
    display: flex;
    align-items: center;
    aspect-ratio: 2247 / 695;
    padding: 0 5%;
    background-color: #00135F;
    background-image: url('../../img/functions/whatsapp-web-integrado-evidence-erp/fondo-footer.webp');
    background-position: right center;
    background-repeat: no-repeat;
    background-size: cover;
}

.wa_section__section_6__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 42rem;
    text-align: left;
}

.wa_section__section_6__bullet {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    background-color: var(--wa-cta-blue);
    border-radius: 25px;
}

.wa_section__section_6__title {
    margin: 18px 0 24px;
    font-size: clamp(2.15rem, 3.25vw, 4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.wa_section__section_6__title_highlight {
    color: var(--wa-cta-blue);
}

.wa_section__section_6__description {
    margin: 0 0 32px;
    font-size: 1.4rem;
    line-height: 1.55;
    font-weight: 600;
    color: #ffffff;
}

/* El botón primario del hero ocupa el 100%; aquí solo lo que mide su texto */
.wa_section__section_6__cta {
    width: auto;
}

/* ---------- Formulario (entre el banner de cierre y el footer) ---------- */

.wa-form-section {
    padding: 6% 5%;
    background-image: linear-gradient(180deg, #E6F1FA 0%, #F4FAFB 45%, #ffffff 100%);
    scroll-margin-top: 24px;
}

.wa-form-section__inner {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: 5%;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

.wa-form-section__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Mismo pill que el resto de las secciones */
.wa-form-section__bullet {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-cta-blue);
    background-color: #DFEDFE;
    border-radius: 25px;
}

.wa-form-section__title {
    margin: 18px 0 20px;
    font-size: clamp(2.5rem, 3.8vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: var(--wa-primary);
    text-wrap: balance;
}

.wa-form-section__description {
    max-width: 36rem;
    margin: 0 0 32px;
    font-size: 1.3rem;
    line-height: 1.55;
    font-weight: 600;
    color: #44474f;
}

/* Burbuja de chat recibida: el único acento "WhatsApp" de la sección */
.wa-form-section__bubble {
    position: relative;
    max-width: 34rem;
    margin: 0 0 28px 12px;
    padding: 20px 24px 30px;
    background-color: #E3FAF3;
    border-radius: 4px 22px 22px 22px;
    box-shadow: 0 10px 24px rgba(4, 31, 73, 0.08);
}

/* Colita de la burbuja */
.wa-form-section__bubble::before {
    content: "";
    position: absolute;
    top: 0;
    left: -12px;
    border-top: 14px solid #E3FAF3;
    border-left: 12px solid transparent;
}

.wa-form-section__bubble_title {
    margin: 0 0 8px;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--wa-primary);
}

.wa-form-section__bubble_text {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    color: #44474f;
}

/* Palomitas de "leído" */
.wa-form-section__bubble_meta {
    position: absolute;
    right: 16px;
    bottom: 8px;
    color: var(--wa-bright-blue);
}

.wa-form-section__bubble_meta .material-symbols-outlined {
    font-size: 20px;
}

.wa-form-section__whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--wa-primary);
    text-decoration: none;
    background-color: #ffffff;
    border: 2px solid var(--wa-whatsapp-green);
    border-radius: 9999px;
    transition: background-color 0.25s ease;
}

.wa-form-section__whatsapp:hover {
    background-color: #E3FAF3;
}

.wa-form-section__whatsapp:focus-visible {
    outline: 3px solid rgba(1, 109, 254, 0.35);
    outline-offset: 3px;
}

.wa-form-section__whatsapp .material-symbols-outlined {
    font-size: 22px;
    color: #03b384;
}

.wa-form-card {
    padding: clamp(24px, 3vw, 48px);
    background-color: #ffffff;
    border: 1px solid #dbe7f3;
    border-radius: 28px;
    box-shadow: 0 28px 64px rgba(4, 31, 73, 0.12);
}

.wa-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wa-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.wa-form__field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.wa-form__field--full {
    grid-column: 1 / -1;
}

.wa-form__label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--wa-primary);
}

.wa-form__control {
    width: 100%;
    min-height: 56px;
    padding: 14px 18px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--wa-primary);
    background-color: #F4FAFB;
    border: 1.5px solid #d3dfeb;
    border-radius: 14px;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-form__control::placeholder {
    color: #7a8394;
}

.wa-form__control:hover {
    border-color: #9ec3f5;
}

.wa-form__control:focus {
    outline: none;
    background-color: #ffffff;
    border-color: var(--wa-cta-blue);
    box-shadow: 0 0 0 4px rgba(1, 109, 254, 0.14);
}

.wa-form__control.is-invalid {
    border-color: #b3261e;
    box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.1);
}

.wa-form__error {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #b3261e;
}

.wa-form__recaptcha {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-x: auto;
}

.wa-form__status {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: #44474f;
}

.wa-form__status:empty {
    display: none;
}

.wa-form__status[data-state="error"] {
    color: #b3261e;
}

.wa-form__status[data-state="success"] {
    padding: 14px 18px;
    color: #03664b;
    background-color: #E3FAF3;
    border-radius: 14px;
}

/* El botón primario ya ocupa el 100%; aquí se ajusta su altura al formulario */
.wa-form__submit {
    border: 0;
    cursor: pointer;
    padding: 18px 32px;
}

.wa-form__submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.wa-form__privacy {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.55;
    color: #5f6573;
}

/* ---------- Tablet / móvil ---------- */

/* En una sola columna el hero es más alto que la imagen y esta se deformaría:
   usamos un degradado equivalente con esquinas redondeadas */
@media (max-width: 1279px) {
    .whatsapp-web-page {
        --wa-shell-inset: 0px;
    }

    .wa-hero-shell {
        aspect-ratio: auto;
        /* De orilla a orilla: sin margen ni esquinas que dejen ver el fondo blanco */
        margin: 0;
        border-radius: 0;
        background:
            radial-gradient(120% 70% at 80% 30%, #0a5bbd 0%, rgba(10, 91, 189, 0) 60%),
            linear-gradient(160deg, #03245a 0%, #021640 100%);
    }

    .wa-hero {
        padding: 112px 40px 56px;
    }

    .wa-hero__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .wa-hero__copy {
        padding-right: 0;
    }

    .wa-hero__visual {
        margin: 0;
    }

    .wa-hero__title {
        font-size: clamp(2.5rem, 7vw, 4.5rem);
    }

    .wa-hero__actions {
        width: 100%;
        max-width: 34rem;
    }

    /* Franja oscura: los 3 elementos se apilan y los divisores pasan a horizontales */
    .wa_section__section_2__copy_4 {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 28px;
    }

    .wa_section__section_2__highlight,
    .wa_section__section_2__highlight_2 {
        padding: 24px 0;
    }

    .wa_section__section_2__highlight_2 {
        border-right: 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.35);
        border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    }

    .wa_section__section_2__highlight_visual img {
        width: 72px;
    }

    .wa_section__section_2__highlight_title {
        font-size: 1.5rem;
    }

    .wa_section__section_2__highlight_description {
        font-size: 1.1rem;
    }

    .wa_section__section_3 {
        flex-direction: column;
        gap: 40px;
    }

    .wa_section__section_3__content,
    .wa_section__section_3__media {
        width: 100%;
    }

    .wa_section__section_3__media img {
        max-width: 420px;
    }

    .wa_section__section_3__item {
        max-width: none;
    }

    .wa_section__section_3__title,
    .wa_section__section_4__title,
    .wa_section__section_5__title {
        font-size: clamp(2.25rem, 6vw, 3.5rem);
    }

    .wa_section__section_4__description,
    .wa_section__section_5__description {
        font-size: 1.25rem;
    }

    /* En una sola columna el texto se lee mejor alineado a la izquierda */
    .wa_section__section_5__content,
    .wa_section__section_5__list {
        align-items: flex-start;
        text-align: left;
    }

    .wa_section__section_5__list_item {
        padding-right: 0;
        padding-left: 34px;
    }

    .wa_section__section_5__list_item::before {
        right: auto;
        left: 0;
    }

    /* La foto queda detrás del texto: velo azul para mantener el contraste */
    .wa_section__section_6 {
        background-image:
            linear-gradient(90deg, rgba(0, 19, 95, 0.92) 0%, rgba(0, 19, 95, 0.7) 60%, rgba(0, 19, 95, 0.45) 100%),
            url('../../img/functions/whatsapp-web-integrado-evidence-erp/fondo-footer.webp');
    }

    .wa_section__section_4 {
        flex-direction: column;
        gap: 40px;
    }

    .wa_section__section_4__content,
    .wa_section__section_4__media {
        flex: none;
        width: 100%;
    }

    /* En pantallas angostas el texto no cabe en la proporción de la imagen:
       la sección crece con su contenido y la foto se recorta desde la izquierda */
    .wa_section__section_6 {
        aspect-ratio: auto;
        padding: 80px 5%;
    }

    /* En móvil el texto va arriba, igual que en la sección 4 */
    .wa_section__section_5 {
        flex-direction: column-reverse;
        gap: 40px;
    }

    .wa_section__section_5__content,
    .wa_section__section_5__media {
        flex: none;
        width: 100%;
    }

    .wa-form-section {
        padding: 80px 5%;
    }

    .wa-form-section__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }
}

@media (max-width: 1023px) {
    /* Sección 1: imagen arriba, texto abajo */
    .wa_section__section_1__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .wa_section__section_1__copy {
        padding: 0 5%;
    }

    .wa_section__section_1__title {
        font-size: clamp(2.25rem, 6vw, 3.25rem);
    }

    .wa_section__section_1__description {
        max-width: none;
        font-size: 1.25rem;
    }

    /* Sección 2: tarjetas una debajo de otra */
    .wa_section__section_2__content {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .wa_section__section_2__copy_1,
    .wa_section__section_2__copy_2,
    .wa_section__section_2__copy_3 {
        padding: 24px;
    }

    /* Captura de cada tarjeta: sin crecer de más en tablet */
    .wa_section__section_2__copy_1 > img,
    .wa_section__section_2__copy_2 > img,
    .wa_section__section_2__copy_3 > img {
        display: block;
        max-width: 440px;
        margin: 0 auto;
    }

    .wa_section__section_2__title,
    .wa_section__section_2__description {
        max-width: none;
        padding: 0;
    }

    .wa_section__section_2__title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    .wa_section__section_2__description {
        margin-top: 12px;
        font-size: 1.15rem;
    }

    .wa_section__section_2__copy_4 {
        margin-top: 32px;
    }
}

@media (max-width: 767px) {
    .whatsapp-web-page {
        --wa-shell-gutter: 8px;
    }

    .wa-hero {
        padding: 96px 20px 48px;
    }

    .wa-hero__lead {
        font-size: 1.05rem;
    }

    .wa-btn {
        width: 100%;
    }

    .wa-btn--primary {
        padding: 18px 24px;
        font-size: 1.125rem;
    }

    .wa-scroll-cue {
        width: 60px;
        height: 60px;
        border-width: 6px;
    }

    .wa-scroll-cue .material-symbols-outlined {
        font-size: 28px;
    }

    /* Pills: menos tracking para que no ocupen tres renglones */
    .wa_section__section_1__bullet,
    .wa_section__section_3__bullet,
    .wa_section__section_4__bullet,
    .wa_section__section_5__bullet,
    .wa_section__section_6__bullet,
    .wa-form-section__bullet {
        padding: 8px 16px;
        font-size: 0.75rem;
        letter-spacing: 0.08em;
    }

    .wa_section__section_1__description,
    .wa_section__section_4__description,
    .wa_section__section_5__description,
    .wa-form-section__description {
        font-size: 1.1rem;
    }

    .wa_section__section_2__wrap {
        width: 100%;
        padding: 0 16px;
    }

    .wa_section__section_2__copy_4 {
        padding: 8px 20px;
    }

    .wa_section__section_2__highlight,
    .wa_section__section_2__highlight_2 {
        gap: 16px;
    }

    .wa_section__section_2__highlight_visual img {
        width: 56px;
    }

    .wa_section__section_2__highlight_title {
        font-size: 1.25rem;
    }

    .wa_section__section_2__highlight_description {
        font-size: 1rem;
    }

    .wa_section__section_3,
    .wa_section__section_4,
    .wa_section__section_5 {
        margin-top: 40px;
        padding: 56px 16px;
    }

    .wa_section__section_3__item {
        align-items: flex-start;
        gap: 14px;
    }

    .wa_section__section_3__item_visual img {
        width: 56px;
    }

    .wa_section__section_3__item_title {
        font-size: 1.2rem;
    }

    .wa_section__section_3__item_description {
        font-size: 1rem;
    }

    .wa_section__section_4__list_item,
    .wa_section__section_5__list_item {
        font-size: 1.1rem;
    }

    /* Móvil: imagen vertical anclada abajo (persona y chat) y el texto arriba,
       sobre la parte azul lisa. El padding inferior reserva el alto de la zona
       con persona/chat (≈58% de una imagen de 941x1672) para que el texto no la tape;
       si el texto crece, el color de fondo continúa el azul de la imagen. */
    .wa_section__section_6 {
        align-items: flex-start;
        padding: 56px 16px calc(100vw * 1.1);
        background-color: #0b2863;
        background-image: url('../../img/functions/whatsapp-web-integrado-evidence-erp/fondo-footer-mobile.webp');
        background-position: center bottom;
        background-size: 100% auto;
    }

    .wa_section__section_6__title {
        font-size: 2rem;
    }

    .wa_section__section_6__description {
        font-size: 1.15rem;
    }

    .wa-form-section {
        padding: 56px 16px;
    }

    .wa-form__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .wa-form-section__whatsapp {
        width: 100%;
        justify-content: center;
    }
}

/* ---------- Definición (¿Qué es?) ---------- */

.wa-definition {
    padding: 6% 5% 3%;
    background-color: #ffffff;
}

.wa-definition__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 62rem;
    margin: 0 auto;
    text-align: center;
}

.wa-definition__bullet,
.wa-faq__bullet {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wa-cta-blue);
    background-color: #DFEDFE;
    border-radius: 25px;
}

.wa-definition__title,
.wa-faq__title {
    margin: 18px 0 24px;
    font-size: clamp(2rem, 3vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--wa-primary);
}

.wa-definition__text {
    margin: 0;
    font-size: 1.3rem;
    line-height: 1.65;
    font-weight: 500;
    color: #44474f;
}

/* ---------- Preguntas frecuentes ---------- */

.wa-faq {
    padding: 3% 5% 6%;
    background-color: #ffffff;
}

.wa-faq__inner {
    max-width: 62rem;
    margin: 0 auto;
}

.wa-faq__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.wa-faq__list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wa-faq__item {
    border: 1px solid #DFEDFE;
    border-radius: 18px;
    background-color: #F4FAFB;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.wa-faq__item[open] {
    border-color: var(--wa-bright-blue);
    background-color: #ffffff;
    box-shadow: 0 16px 38px rgba(4, 31, 73, 0.08);
}

.wa-faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    list-style: none;
}

.wa-faq__question::-webkit-details-marker {
    display: none;
}

.wa-faq__question:focus-visible {
    outline: 3px solid rgba(31, 154, 225, 0.35);
    outline-offset: 2px;
    border-radius: 18px;
}

.wa-faq__question h3 {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.4;
    font-weight: 700;
    color: var(--wa-primary);
}

.wa-faq__icon {
    flex-shrink: 0;
    color: var(--wa-cta-blue);
    transition: transform 0.3s ease;
}

.wa-faq__item[open] .wa-faq__icon {
    transform: rotate(180deg);
}

/* Contenedor que se anima al abrir y cerrar (la altura la controla el script de la vista) */
.wa-faq__content {
    overflow: hidden;
    transition: height 0.38s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.28s ease;
}

.wa-faq__item[open] .wa-faq__content {
    animation: wa-faq-fade-in 0.38s ease;
}

.wa-faq__item.is-closing .wa-faq__content {
    opacity: 0;
}

/* Al cerrar, la flecha y la tarjeta regresan junto con la animación, no al terminar */
.wa-faq__item.is-closing .wa-faq__icon {
    transform: rotate(0deg);
}

.wa-faq__item.is-closing {
    border-color: #DFEDFE;
    background-color: #F4FAFB;
    box-shadow: none;
}

@keyframes wa-faq-fade-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.wa-faq__answer {
    margin: 0;
    padding: 0 24px 22px;
    font-size: 1.05rem;
    line-height: 1.65;
    font-weight: 500;
    color: #44474f;
}

@media (max-width: 767px) {
    .wa-definition {
        padding: 64px 5% 24px;
    }

    .wa-faq {
        padding: 24px 5% 64px;
    }

    .wa-definition__text {
        font-size: 1.1rem;
    }

    .wa-faq__question {
        padding: 18px;
    }

    .wa-faq__question h3 {
        font-size: 1.05rem;
    }

    .wa-faq__answer {
        padding: 0 18px 18px;
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wa-faq__item,
    .wa-faq__icon,
    .wa-faq__content {
        transition: none;
        animation: none;
    }
}

/* ==========================================================
   Animaciones
   Solo transform y opacity (no recalculan el layout ni cambian
   tamaños), sin desplazamientos horizontales para no provocar
   scroll lateral en móvil. Todo queda fuera con "reducir movimiento".
   ========================================================== */

.wa-form-section__typing {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {

    /* ---------- Hero: entrada al cargar ---------- */

    .wa-hero__title > span,
    .wa-hero__lead,
    .wa-hero__actions {
        animation: wa-rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .wa-hero__title > span:nth-child(1) {
        animation-delay: 0.05s;
    }

    .wa-hero__title > span:nth-child(2) {
        animation-delay: 0.15s;
    }

    .wa-hero__title > span:nth-child(3) {
        animation-delay: 0.25s;
    }

    .wa-hero__lead {
        animation-delay: 0.38s;
    }

    .wa-hero__actions {
        animation-delay: 0.5s;
    }

    /* La laptop solo sube (sin desvanecerse) para que se pinte desde el primer momento */
    .wa-hero__mockup {
        animation: wa-lift 1s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
    }

    /* La ventana del chat "llega" como notificación y luego flota.
       Crece desde su esquina derecha para no salirse del borde en pantallas angostas */
    .wa-hero__window {
        transform-origin: 100% 0;
        animation:
            wa-notification 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 1s both,
            wa-float 6s ease-in-out 1.9s infinite;
    }

    .wa-hero.is-offscreen .wa-hero__window {
        animation-play-state: paused;
    }

    /* ---------- Sección 2: el flujo bandeja → conversación → contacto ---------- */

    .wa-motion .wa_section__section_2__copy_1,
    .wa-motion .wa_section__section_2__copy_2,
    .wa-motion .wa_section__section_2__copy_3 {
        --wa-reveal-delay: 0s;
        opacity: 0;
        transform: translateY(32px);
        transition:
            opacity 0.7s ease var(--wa-reveal-delay),
            transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--wa-reveal-delay);
    }

    .wa-motion .wa_section__section_2__copy_2 {
        --wa-reveal-delay: 0.15s;
    }

    .wa-motion .wa_section__section_2__copy_3 {
        --wa-reveal-delay: 0.3s;
    }

    .wa-motion .wa_section__section_2__copy_1.is-visible,
    .wa-motion .wa_section__section_2__copy_2.is-visible,
    .wa-motion .wa_section__section_2__copy_3.is-visible {
        opacity: 1;
        transform: none;
    }

    /* Las flechas empujan hacia la siguiente tarjeta un par de veces al aparecer */
    .wa-motion .is-visible .wa_section__section_2__arrow .material-symbols-outlined {
        animation: wa-nudge 0.9s ease-in-out calc(var(--wa-reveal-delay) + 0.7s) 2;
    }

    /* Franja oscura: sus tres elementos entran uno tras otro */
    .wa-motion .wa_section__section_2__copy_4 > * {
        opacity: 0;
        transform: translateY(20px);
        transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .wa-motion .wa_section__section_2__copy_4 > :nth-child(2) {
        transition-delay: 0.12s;
    }

    .wa-motion .wa_section__section_2__copy_4 > :nth-child(3) {
        transition-delay: 0.24s;
    }

    .wa-motion .wa_section__section_2__copy_4.is-visible > * {
        opacity: 1;
        transform: none;
    }

    /* ---------- Burbuja del formulario: "escribiendo…" y luego leído ---------- */

    .wa-motion .wa-form-section__bubble {
        opacity: 0;
        transform: translateY(16px) scale(0.96);
        transform-origin: 0 0;
        transition: opacity 0.45s ease, transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .wa-motion .wa-form-section__bubble.is-visible {
        opacity: 1;
        transform: none;
    }

    /* El texto ya ocupa su lugar (sin saltos de layout); solo aparece después de "escribir" (~2.3 s) */
    .wa-motion .wa-form-section__bubble_title,
    .wa-motion .wa-form-section__bubble_text {
        opacity: 0;
        transition: opacity 0.4s ease 2.3s;
    }

    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__bubble_title,
    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__bubble_text {
        opacity: 1;
    }

    /* Palomitas: grises al llegar, azules cuando se "lee" */
    .wa-motion .wa-form-section__bubble_meta {
        color: #9aa5b1;
        transition: color 0.3s ease 2.9s;
    }

    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__bubble_meta {
        color: var(--wa-bright-blue);
    }

    .wa-motion .wa-form-section__typing {
        position: absolute;
        top: 22px;
        left: 24px;
        display: flex;
        gap: 6px;
        opacity: 0;
        pointer-events: none;
    }

    .wa-motion .wa-form-section__typing > span {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background-color: var(--wa-primary);
        opacity: 0.35;
    }

    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__typing {
        animation: wa-typing-window 2.3s ease both 0.2s;
    }

    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__typing > span {
        animation: wa-typing-dot 0.9s ease-in-out 3;
    }

    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__typing > span:nth-child(2) {
        animation-delay: 0.15s;
    }

    .wa-motion .wa-form-section__bubble.is-visible .wa-form-section__typing > span:nth-child(3) {
        animation-delay: 0.3s;
    }
}

/* En una sola columna cada tarjeta se revela por su cuenta, sin esperar a las otras */
@media (prefers-reduced-motion: no-preference) and (max-width: 1023px) {
    .wa-motion .wa_section__section_2__copy_1,
    .wa-motion .wa_section__section_2__copy_2,
    .wa-motion .wa_section__section_2__copy_3 {
        --wa-reveal-delay: 0s;
    }
}

@keyframes wa-rise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes wa-lift {
    from {
        transform: translateY(40px);
    }

    to {
        transform: none;
    }
}

@keyframes wa-notification {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.6);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes wa-float {
    0%,
    100% {
        transform: translateY(0);
    }

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

@keyframes wa-nudge {
    0%,
    100% {
        transform: translateX(0);
    }

    50% {
        transform: translateX(5px);
    }
}

@keyframes wa-typing-window {
    0% {
        opacity: 0;
    }

    15%,
    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

@keyframes wa-typing-dot {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-4px);
        opacity: 0.9;
    }
}

/* ---------- Tarjetas que voltean (secciones 3, 4 y 5) ----------
   Al entrar en pantalla se ve una ilustración de la función, se sostiene ~1.5 s
   y la tarjeta gira para mostrar la captura real.
   Sin animación solo se ve la captura; la cara ilustrada existe únicamente con movimiento activo.

   Estructura:
     .wa-flip.wa-flip--{groups|replies|tracking}
       .wa-flip__front   ilustración (aria-hidden)
       .wa-flip__back    captura real (img) */

.wa-flip__front {
    display: none;
}

/* La ficha de seguimiento es vertical: mismo límite de ancho que tenía la imagen */
.wa_section__section_3__media .wa-flip {
    width: 100%;
    max-width: 480px;
}

@media (prefers-reduced-motion: no-preference) {

    /* Recorta lo que el giro 3D sobresale para que nunca haya scroll lateral */
    .wa-motion .wa_section__section_3,
    .wa-motion .wa_section__section_4,
    .wa-motion .wa_section__section_5 {
        overflow-x: clip;
    }

    .wa-motion .wa_section__section_3__media,
    .wa-motion .wa_section__section_4__media,
    .wa-motion .wa_section__section_5__media {
        perspective: 1600px;
    }

    .wa-motion .wa-flip {
        position: relative;
        transform-style: preserve-3d;
    }

    .wa-motion .wa-flip__front,
    .wa-motion .wa-flip__back {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* La captura empieza de espaldas; la tarjeta completa gira 180° y queda de frente */
    .wa-motion .wa-flip__back {
        transform: rotateY(180deg);
    }

    .wa-motion .wa-flip__front {
        position: absolute;
        inset: 1.5% 1%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6%;
        padding: 5%;
        border-radius: 28px;
        background:
            radial-gradient(90% 90% at 20% 20%, rgba(6, 222, 165, 0.22) 0%, rgba(6, 222, 165, 0) 60%),
            linear-gradient(135deg, #073d86 0%, #041f49 100%);
        box-shadow: 0 24px 48px rgba(4, 31, 73, 0.18);
    }

    .wa-motion .is-visible .wa-flip {
        animation: wa-card-flip 0.9s cubic-bezier(0.45, 0.05, 0.25, 1) 1.5s both;
    }

    /* ---------- Piezas compartidas: lista de filas ---------- */

    .wa-motion .wa-flip__list {
        display: flex;
        flex-direction: column;
        gap: clamp(8px, 1.2vw, 16px);
        width: 42%;
    }

    .wa-motion .wa-flip__row {
        position: relative;
        display: flex;
        align-items: center;
        gap: 10px;
        padding: clamp(6px, 0.9vw, 12px);
        border: 2px solid transparent;
        border-radius: 14px;
        background-color: rgba(255, 255, 255, 0.1);
        opacity: 0;
        transform: translateY(12px);
    }

    .wa-motion .wa-flip__row_icon {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(26px, 3vw, 40px);
        aspect-ratio: 1;
        border-radius: 50%;
        font-size: clamp(16px, 1.8vw, 24px);
        color: #041f49;
        background-color: var(--wa-whatsapp-green);
    }

    .wa-motion .wa-flip__row_lines {
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 6px;
    }

    .wa-motion .wa-flip__row_lines i {
        display: block;
        height: clamp(5px, 0.6vw, 8px);
        border-radius: 9999px;
        background-color: rgba(255, 255, 255, 0.55);
    }

    .wa-motion .wa-flip__row_lines i:last-child {
        width: 60%;
        background-color: rgba(255, 255, 255, 0.28);
    }

    .wa-motion .is-visible .wa-flip__row {
        animation: wa-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .wa-motion .is-visible .wa-flip__row:nth-child(1) { animation-delay: 0.4s; }
    .wa-motion .is-visible .wa-flip__row:nth-child(2) { animation-delay: 0.55s; }
    .wa-motion .is-visible .wa-flip__row:nth-child(3) { animation-delay: 0.7s; }

    /* ---------- Grupos: racimo de participantes ---------- */

    .wa-motion .wa-flip__avatars {
        display: flex;
        align-items: center;
    }

    .wa-motion .wa-flip__avatars span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(40px, 6vw, 84px);
        aspect-ratio: 1;
        margin-left: calc(clamp(40px, 6vw, 84px) * -0.28);
        border: 3px solid #041f49;
        border-radius: 50%;
        font-size: clamp(22px, 3vw, 44px);
        color: #ffffff;
        background-color: var(--wa-bright-blue);
        opacity: 0;
        transform: scale(0.4);
    }

    .wa-motion .wa-flip__avatars span:first-child {
        margin-left: 0;
    }

    .wa-motion .wa-flip__avatars span:nth-child(2) {
        background-color: var(--wa-cta-blue);
    }

    /* El del centro es el grupo: más grande y en verde WhatsApp */
    .wa-motion .wa-flip__avatars span:nth-child(3) {
        position: relative;
        z-index: 1;
        width: clamp(56px, 8.5vw, 120px);
        font-size: clamp(30px, 4.4vw, 64px);
        color: #041f49;
        background-color: var(--wa-whatsapp-green);
    }

    .wa-motion .wa-flip__avatars span:nth-child(4) {
        background-color: #3d7fd9;
    }

    .wa-motion .wa-flip__avatars span:nth-child(5) {
        background-color: #0a5bbd;
    }

    .wa-motion .is-visible .wa-flip__avatars span {
        animation: wa-avatar-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
    }

    .wa-motion .is-visible .wa-flip__avatars span:nth-child(1) { animation-delay: 0.05s; }
    .wa-motion .is-visible .wa-flip__avatars span:nth-child(2) { animation-delay: 0.15s; }
    .wa-motion .is-visible .wa-flip__avatars span:nth-child(3) { animation-delay: 0.3s; }
    .wa-motion .is-visible .wa-flip__avatars span:nth-child(4) { animation-delay: 0.45s; }
    .wa-motion .is-visible .wa-flip__avatars span:nth-child(5) { animation-delay: 0.55s; }

    /* ---------- Respuestas rápidas: tecla "/" + plantillas + barra de mensaje ---------- */

    .wa-motion .wa-flip__key {
        display: flex;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: clamp(72px, 11vw, 150px);
        aspect-ratio: 1;
        border-radius: 22%;
        font-size: clamp(40px, 6.5vw, 92px);
        font-weight: 800;
        line-height: 1;
        color: #041f49;
        background-color: var(--wa-whatsapp-green);
        /* Relieve de tecla: borde inferior más oscuro */
        box-shadow: 0 8px 0 #04a97d, 0 18px 30px rgba(0, 0, 0, 0.3);
        opacity: 0;
        transform: scale(0.4);
    }

    /* La tecla "se presiona" una vez justo antes de que salgan las plantillas */
    .wa-motion .is-visible .wa-flip__key {
        animation:
            wa-avatar-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both,
            wa-key-press 0.3s ease 0.55s;
    }

    .wa-motion .wa-flip__row--selected {
        border-color: var(--wa-whatsapp-green);
        background-color: rgba(6, 222, 165, 0.14);
    }

    .wa-motion .wa-flip__input {
        display: flex;
        align-items: center;
        gap: 4px;
        margin-top: 4px;
        padding: clamp(6px, 0.9vw, 12px) clamp(10px, 1.2vw, 16px);
        border-radius: 9999px;
        background-color: #ffffff;
        opacity: 0;
        transform: translateY(12px);
    }

    .wa-motion .wa-flip__input_text {
        font-size: clamp(14px, 1.4vw, 20px);
        font-weight: 800;
        line-height: 1;
        color: var(--wa-cta-blue);
    }

    .wa-motion .wa-flip__caret {
        width: 2px;
        height: clamp(14px, 1.4vw, 20px);
        background-color: var(--wa-primary);
    }

    .wa-motion .wa-flip__input_send {
        margin-left: auto;
        font-size: clamp(18px, 1.8vw, 24px);
        color: var(--wa-whatsapp-green);
    }

    .wa-motion .is-visible .wa-flip__input {
        animation: wa-rise 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 0.2s both;
    }

    .wa-motion .is-visible .wa-flip--replies .wa-flip__row:nth-child(1) { animation-delay: 0.7s; }
    .wa-motion .is-visible .wa-flip--replies .wa-flip__row:nth-child(2) { animation-delay: 0.85s; }
    .wa-motion .is-visible .wa-flip--replies .wa-flip__row:nth-child(3) { animation-delay: 1s; }

    .wa-motion .is-visible .wa-flip__caret {
        animation: wa-caret 0.8s steps(1) 3;
    }

    /* ---------- Seguimiento comercial: contacto + Detalles, Actividades, Bitácora ---------- */

    .wa-motion .wa-flip--tracking .wa-flip__front {
        flex-direction: column;
        gap: 8%;
        inset: 2% 4%;
    }

    .wa-motion .wa-flip--tracking .wa-flip__list {
        width: 100%;
        gap: clamp(12px, 2vw, 22px);
    }

    .wa-motion .wa-flip--tracking .wa-flip__row {
        padding: clamp(10px, 1.4vw, 18px);
    }

    .wa-motion .wa-flip__contact {
        display: flex;
        align-items: center;
        justify-content: center;
        width: clamp(84px, 11vw, 140px);
        aspect-ratio: 1;
        border-radius: 50%;
        font-size: clamp(48px, 6.5vw, 84px);
        color: #ffffff;
        background-color: var(--wa-bright-blue);
        /* Anillo verde: contacto conectado */
        box-shadow: 0 0 0 6px rgba(6, 222, 165, 0.35);
        opacity: 0;
        transform: scale(0.4);
    }

    .wa-motion .is-visible .wa-flip__contact {
        animation: wa-avatar-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.05s both;
    }

    /* Actividades: se marca como atendida */
    .wa-motion .wa-flip__row_check {
        flex-shrink: 0;
        font-size: clamp(22px, 2.4vw, 32px);
        color: var(--wa-whatsapp-green);
        opacity: 0;
        transform: scale(0.4);
    }

    .wa-motion .is-visible .wa-flip__row_check {
        animation: wa-avatar-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.05s both;
    }

    .wa-motion .is-visible .wa-flip__row--done {
        transition: border-color 0.3s ease 1.05s;
        border-color: var(--wa-whatsapp-green);
    }
}

/* En móvil la ficha vertical no necesita tanto espacio vertical entre piezas */
@media (prefers-reduced-motion: no-preference) and (max-width: 767px) {
    .wa-motion .wa-flip--tracking .wa-flip__front {
        gap: 6%;
    }
}

@keyframes wa-avatar-pop {
    from {
        opacity: 0;
        transform: scale(0.4);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes wa-card-flip {
    from {
        transform: rotateY(0deg);
    }

    to {
        transform: rotateY(180deg);
    }
}

@keyframes wa-key-press {
    0%,
    100% {
        transform: translateY(0);
        box-shadow: 0 8px 0 #04a97d, 0 18px 30px rgba(0, 0, 0, 0.3);
    }

    50% {
        transform: translateY(6px);
        box-shadow: 0 2px 0 #04a97d, 0 8px 16px rgba(0, 0, 0, 0.3);
    }
}

@keyframes wa-caret {
    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ---------- Novedades: laptop de fondo con notas en sus esquinas ---------- */

.wa-updates {
    /* Arriba más espacio: la nota 2 sube por encima de la laptop con sus iconos */
    padding: 10% 5% 7%;
    /* Halo azul detrás de la laptop para despegarla del fondo */
    background:
        radial-gradient(48% 60% at 50% 50%, #DFEDFE 0%, rgba(223, 237, 254, 0) 70%),
        #f7f9fb;
    overflow-x: clip;
}

/* Las notas se posicionan respecto a la laptop, así siguen alineadas a la pantalla en cualquier ancho */
.wa-updates__device {
    position: relative;
    width: 68%;
    max-width: 1120px;
    margin: 0 auto;
}

.wa-updates__mockup {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 28px 40px rgba(4, 31, 73, 0.22));
}

.wa-updates__note {
    position: absolute;
    width: clamp(260px, 38%, 400px);
    /* Arriba deja espacio para los iconos que sobresalen */
    padding: 32px 22px 20px;
    background-color: #ffffff;
    border: 1px solid rgba(1, 109, 254, 0.12);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(4, 31, 73, 0.18);
}

/* Arriba a la izquierda: sobre el panel de información del contacto */
.wa-updates__note--1 {
    top: -7%;
    left: -16%;
}

/* Arriba a la derecha: sobre los PDF del chat */
.wa-updates__note--2 {
    top: -15%;
    right: -25%;
}

/* Abajo a la derecha: sobre la barra de mensaje, antes del teclado */
.wa-updates__note--3 {
    bottom: -5%;
    right: -25%;
}

.wa-updates__note_badges {
    position: absolute;
    top: 0;
    left: 20px;
    display: flex;
    gap: 8px;
    /* La mitad de los iconos queda fuera de la tarjeta */
    transform: translateY(-50%);
}

.wa-updates__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 9999px;
    /* Aro blanco para separarlos de la laptop y de la tarjeta */
    border: 3px solid #ffffff;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(4, 31, 73, 0.2);
}

.wa-updates__badge--whatsapp {
    background-color: #25d366;
}

.wa-updates__badge--whatsapp svg {
    width: 22px;
    height: 22px;
}

.wa-updates__badge--feature {
    background-color: var(--wa-cta-blue);
}

.wa-updates__badge--feature .material-symbols-outlined {
    font-size: 22px;
}

.wa-updates__note_text {
    margin: 0;
    font-size: clamp(0.875rem, 0.9vw, 1.05rem);
    line-height: 1.5;
    font-weight: 600;
    color: var(--wa-primary);
}

@media (max-width: 1279px) {
    .wa-updates__device {
        width: 64%;
    }

    .wa-updates__note {
        width: clamp(280px, 44%, 340px);
        padding: 30px 18px 16px;
    }

    .wa-updates__note--1 {
        top: -6%;
        left: -18%;
    }

    .wa-updates__note--2 {
        top: -10%;
        right: -22%;
    }

    .wa-updates__note--3 {
        bottom: -4%;
        right: -22%;
    }

    .wa-updates__note_text {
        font-size: 0.875rem;
    }
}

/* Menos de 1200px las notas ya no caben a los lados: van debajo de la laptop,
   subiendo un poco sobre el teclado para que sigan "encima" de la imagen */
@media (max-width: 1199px) {
    .wa-updates {
        margin-top: 40px;
        padding: 56px 24px 64px;
    }

    .wa-updates__device {
        display: flex;
        flex-direction: column;
        /* Espacio extra para los iconos que sobresalen de cada tarjeta */
        gap: 40px;
        width: 100%;
        max-width: 640px;
    }

    .wa-updates__note {
        /* relative (no static) para que los iconos sigan anclados a su tarjeta */
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        width: 100%;
        padding: 32px 20px 20px;
    }

    .wa-updates__note--1 {
        margin-top: -7%;
    }

    .wa-updates__note_text {
        font-size: 1rem;
    }
}

/* Tablet horizontal: las tres notas en fila bajo la laptop */
@media (min-width: 900px) and (max-width: 1199px) {
    .wa-updates__device {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 20px;
        max-width: 1000px;
    }

    .wa-updates__mockup {
        grid-column: 1 / -1;
        width: 80%;
        margin: 0 auto;
    }

    .wa-updates__note,
    .wa-updates__note--1 {
        margin-top: -4%;
    }

    .wa-updates__note_text {
        font-size: 0.95rem;
    }
}

@media (max-width: 479px) {
    .wa-updates {
        margin-top: 40px;
        padding: 48px 16px 56px;
    }

    .wa-updates__device {
        gap: 34px;
    }

    .wa-updates__note {
        padding: 28px 16px 16px;
        border-radius: 16px;
    }

    .wa-updates__note_badges {
        left: 16px;
    }

    .wa-updates__badge {
        width: 40px;
        height: 40px;
    }

    .wa-updates__badge--whatsapp svg {
        width: 19px;
        height: 19px;
    }

    .wa-updates__badge--feature .material-symbols-outlined {
        font-size: 19px;
    }

    .wa-updates__note_text {
        font-size: 0.95rem;
    }
}

@media (prefers-reduced-motion: no-preference) {
    /* Las notas aparecen una tras otra cuando la laptop entra en pantalla */
    .wa-motion .wa-updates__note {
        opacity: 0;
        transform: translateY(14px) scale(0.96);
        transition:
            opacity 0.5s ease var(--wa-note-delay, 0s),
            transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) var(--wa-note-delay, 0s);
    }

    .wa-motion .wa-updates__note--1 { --wa-note-delay: 0.2s; }
    .wa-motion .wa-updates__note--2 { --wa-note-delay: 0.45s; }
    .wa-motion .wa-updates__note--3 { --wa-note-delay: 0.7s; }

    .wa-motion .wa-updates__device.is-visible .wa-updates__note {
        opacity: 1;
        transform: none;
    }
}
