/* ai-automation: estilos migrados preservando el diseño original. */

/* ==========================================================
   ANTHORIA — AI & AUTOMATION

   Estilos exclusivos de la página AI & Automation.

   Contiene:
   - Fondo tecnológico.
   - Introducción.
   - Anthory Workspace.
   - Chat de Anthory.
   - Ocho capacidades.
   - Conexiones visuales.
   - Ficha interactiva de servicios.
   - Botón directo a Contact.
   - Tema Ivory / Dark.
   - Scroll interno.
   - Responsive.
   - Reduced Motion.

   Este archivo sustituirá las múltiples correcciones
   acumuladas anteriormente dentro de styles.css.
   ========================================================== */


/* ==========================================================
   PÁGINA
   ========================================================== */

body.ai-automation-page-body {
    min-height: 100vh;

    margin: 0;
    padding: 0;

    overflow-x: hidden;
}


body.ai-automation-page-body main {
    width: 100%;
    max-width: none;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


body.ai-automation-page-body main>.ai-automation-page {
    position: relative;

    width: 100%;
    max-width: none;

    min-height:
        calc(100vh - 88px);

    margin: 0;

    padding:
        70px 4vw 42px;

    overflow: hidden;

    border: none;
    border-radius: 0;

    background:
        radial-gradient(circle at 72% 42%,
            rgba(191, 146, 62, 0.12),
            transparent 30%),
        radial-gradient(circle at 30% 35%,
            rgba(106, 82, 40, 0.08),
            transparent 28%),
        linear-gradient(135deg,
            #070706 0%,
            #0d0c0a 48%,
            #050505 100%);

    color: #f3eee5;
}


/* ==========================================================
   FONDO DE PUNTOS
   ========================================================== */

body.ai-automation-page-body .ai-automation-background {
    position: absolute;

    inset: 0;

    pointer-events: none;

    opacity: 0.65;

    background-image:
        radial-gradient(circle,
            rgba(214, 173, 89, 0.32) 1px,
            transparent 1.5px);

    background-size:
        58px 58px;

    -webkit-mask-image:
        linear-gradient(to bottom,
            transparent,
            black 16%,
            black 84%,
            transparent);

    mask-image:
        linear-gradient(to bottom,
            transparent,
            black 16%,
            black 84%,
            transparent);
}


/* ==========================================================
   RESPLANDORES DE FONDO
   ========================================================== */

body.ai-automation-page-body .ai-automation-page::before,
body.ai-automation-page-body .ai-automation-page::after {
    content: "";

    position: absolute;

    border-radius: 50%;

    pointer-events: none;

    filter: blur(12px);
}


body.ai-automation-page-body .ai-automation-page::before {
    top: 80px;
    right: 5%;

    width: 420px;
    height: 420px;

    background:
        rgba(181, 131, 48, 0.08);
}


body.ai-automation-page-body .ai-automation-page::after {
    left: 30%;
    bottom: 5%;

    width: 300px;
    height: 300px;

    background:
        rgba(239, 197, 111, 0.05);
}


/* ==========================================================
   INTRODUCCIÓN
   ========================================================== */

body.ai-automation-page-body .ai-automation-intro {
    position: relative;

    z-index: 2;

    width: min(520px, 100%);
}


/* ==========================================================
   ETIQUETA
   ========================================================== */

body.ai-automation-page-body .ai-automation-label {
    display: inline-block;

    margin-bottom: 18px;

    color: #cda75f;

    font-size: 0.76rem;
    font-weight: 600;

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


/* ==========================================================
   TÍTULO
   ========================================================== */

body.ai-automation-page-body .ai-automation-title {
    max-width: 520px;

    margin: 0;

    color: #f6f2ea;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(3rem, 5vw, 5.8rem);

    font-weight: 400;

    line-height: 0.98;

    letter-spacing: -0.04em;
}


body.ai-automation-page-body .ai-automation-title span,
body.ai-automation-page-body .ai-automation-title .gold {
    display: block;

    margin-top: 8px;

    color: #cda75f;
}


/* ==========================================================
   DESCRIPCIÓN
   ========================================================== */

body.ai-automation-page-body .ai-automation-description {
    max-width: 500px;

    margin: 26px 0 0;

    color:
        rgba(243, 238, 229, 0.70);

    font-size: 1rem;

    line-height: 1.8;
}


/* ==========================================================
   DIVISOR
   ========================================================== */

body.ai-automation-page-body .ai-automation-divider {
    display: flex;

    align-items: center;

    gap: 12px;

    width: 240px;

    margin-top: 28px;

    color: #cda75f;
}


body.ai-automation-page-body .ai-automation-divider span {
    width: 100%;
    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(205, 167, 95, 0.8));
}


body.ai-automation-page-body .ai-automation-divider span:last-child {
    background:
        linear-gradient(to left,
            transparent,
            rgba(205, 167, 95, 0.8));
}


body.ai-automation-page-body .ai-automation-divider strong {
    font-size: 0.75rem;
    font-weight: 400;
}


/* ==========================================================
   WORKSPACE DE ANTHORY
   ========================================================== */

body.ai-automation-page-body .anthory-workspace {
    position: relative;

    z-index: 2;

    width: 100%;

    min-height: 720px;

    margin: 0;

    overflow: visible;

    outline: none;
}


/* ==========================================================
   CHAT PRINCIPAL
   ========================================================== */

body.ai-automation-page-body .anthory-chat {
    position: relative;

    z-index: 4;

    display: flex;
    flex-direction: column;

    width: min(560px, 42vw);

    height: 660px;
    min-height: 0;
    max-height: 660px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            rgba(28, 25, 20, 0.96),
            rgba(10, 10, 9, 0.98));

    border:
        1px solid rgba(209, 169, 91, 0.46);

    border-radius: 28px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        0 35px 90px rgba(0, 0, 0, 0.55),
        0 0 0 1px rgba(255, 255, 255, 0.025) inset,
        0 0 45px rgba(184, 134, 52, 0.09);
}


/* ==========================================================
   LÍNEA SUPERIOR DEL CHAT
   ========================================================== */

body.ai-automation-page-body .anthory-chat::before {
    content: "";

    position: absolute;

    top: 0;
    left: 5%;

    z-index: 8;

    width: 90%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent 0%,
            rgba(209, 168, 95, 0.28) 14%,
            rgba(244, 203, 121, 0.95) 50%,
            rgba(209, 168, 95, 0.28) 86%,
            transparent 100%);

    box-shadow:
        0 0 6px rgba(244, 203, 121, 0.50),
        0 0 16px rgba(209, 168, 95, 0.22);

    pointer-events: none;
}


/* ==========================================================
   RESPLANDOR INTERIOR
   ========================================================== */

body.ai-automation-page-body .anthory-chat::after {
    content: "";

    position: absolute;

    top: -120px;
    right: -90px;

    width: 280px;
    height: 280px;

    border-radius: 50%;

    background:
        rgba(184, 134, 52, 0.08);

    filter: blur(35px);

    pointer-events: none;
}


/* ==========================================================
   CABECERA DEL CHAT
   ========================================================== */

body.ai-automation-page-body .anthory-chat-header {
    position: relative;

    z-index: 2;

    flex: 0 0 auto;

    display: flex;

    align-items: center;
    justify-content: space-between;

    min-height: 92px;

    padding: 20px 24px;

    background:
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.025),
            transparent);

    border-bottom:
        1px solid rgba(255, 255, 255, 0.06);
}


/* ==========================================================
   IDENTIDAD DE ANTHORY
   ========================================================== */

body.ai-automation-page-body .anthory-chat-identity {
    display: flex;

    align-items: center;

    gap: 14px;
}


body.ai-automation-page-body .anthory-chat-symbol {
    display: grid;

    place-items: center;

    flex-shrink: 0;

    width: 48px;
    height: 48px;

    background:
        linear-gradient(145deg,
            rgba(229, 191, 116, 0.22),
            rgba(112, 76, 21, 0.15));

    border:
        1px solid rgba(218, 177, 98, 0.55);

    border-radius: 16px;

    color: #e1b86c;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.55rem;

    box-shadow:
        0 0 22px rgba(205, 167, 95, 0.12),
        inset 0 0 16px rgba(255, 255, 255, 0.035);
}


body.ai-automation-page-body .anthory-chat-header h2 {
    margin: 0;

    color: #f6f1e8;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1.35rem;
    font-weight: 400;

    letter-spacing: 0.01em;
}


body.ai-automation-page-body .anthory-chat-header p {
    margin: 4px 0 0;

    color:
        rgba(240, 234, 224, 0.52);

    font-size: 0.76rem;

    letter-spacing: 0.04em;
}


/* ==========================================================
   ESTADO ONLINE
   ========================================================== */

body.ai-automation-page-body .anthory-chat-status {
    display: inline-flex;

    align-items: center;

    gap: 7px;

    padding: 8px 11px;

    background:
        rgba(205, 167, 95, 0.06);

    border:
        1px solid rgba(193, 157, 91, 0.18);

    border-radius: 999px;

    color:
        rgba(239, 225, 197, 0.72);

    font-size: 0.70rem;

    letter-spacing: 0.08em;

    text-transform: uppercase;
}


body.ai-automation-page-body .anthory-chat-status::before {
    content: "";

    width: 7px;
    height: 7px;

    background: #cda75f;

    border-radius: 50%;

    box-shadow:
        0 0 10px rgba(205, 167, 95, 0.75);
}


/* ==========================================================
   MENSAJES
   ========================================================== */

body.ai-automation-page-body .anthory-chat-messages {
    position: relative;

    z-index: 2;

    display: block;

    flex: 1 1 auto;

    min-height: 0;

    padding:
        28px 24px 24px;

    overflow-x: hidden;
    overflow-y: auto;

    overscroll-behavior: contain;

    scroll-behavior: smooth;

    scrollbar-width: thin;

    scrollbar-color:
        rgba(205, 167, 95, 0.42) transparent;

    -webkit-overflow-scrolling: touch;

    touch-action: pan-y;
}


/* ==========================================================
   SCROLLBAR
   ========================================================== */

body.ai-automation-page-body .anthory-chat-messages::-webkit-scrollbar {
    width: 6px;
}


body.ai-automation-page-body .anthory-chat-messages::-webkit-scrollbar-track {
    background: transparent;
}


body.ai-automation-page-body .anthory-chat-messages::-webkit-scrollbar-thumb {
    background:
        linear-gradient(to bottom,
            rgba(209, 168, 95, 0.28),
            rgba(209, 168, 95, 0.68),
            rgba(209, 168, 95, 0.28));

    border-radius: 999px;
}


/* ==========================================================
   MENSAJE DE ANTHORY
   ========================================================== */

body.ai-automation-page-body .anthory-message {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    max-width: 88%;
}


body.ai-automation-page-body .anthory-message-avatar {
    display: grid;

    place-items: center;

    flex-shrink: 0;

    width: 34px;
    height: 34px;

    background:
        linear-gradient(145deg,
            rgba(205, 167, 95, 0.18),
            rgba(205, 167, 95, 0.05));

    border:
        1px solid rgba(205, 167, 95, 0.36);

    border-radius: 12px;

    color: #d5ae64;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 1rem;
}


body.ai-automation-page-body .anthory-message-content {
    position: relative;

    padding:
        14px 16px 12px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.055),
            rgba(255, 255, 255, 0.018));

    border:
        1px solid rgba(255, 255, 255, 0.055);

    border-radius:
        6px 18px 18px 18px;

    box-shadow:
        0 18px 30px rgba(0, 0, 0, 0.14),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


body.ai-automation-page-body .anthory-message-content p {
    margin: 0;

    color:
        rgba(246, 241, 232, 0.78);

    font-size: 0.92rem;

    line-height: 1.65;
}


body.ai-automation-page-body .anthory-message-time {
    display: block;

    margin-top: 8px;

    color:
        rgba(242, 234, 221, 0.30);

    font-size: 0.63rem;

    letter-spacing: 0.05em;
}


/* ==========================================================
   CAPACIDAD SELECCIONADA
   ========================================================== */

body.ai-automation-page-body .anthory-selected-row {
    display: flex;

    justify-content: flex-end;
}


body.ai-automation-page-body .anthory-selected-capability {
    max-width: 74%;

    padding: 13px 17px;

    background:
        linear-gradient(145deg,
            rgba(205, 167, 95, 0.20),
            rgba(205, 167, 95, 0.09));

    border:
        1px solid rgba(223, 182, 104, 0.32);

    border-radius:
        18px 6px 18px 18px;

    color: #e8c27b;

    font-size: 0.88rem;
    font-weight: 500;

    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.16),
        0 0 22px rgba(205, 167, 95, 0.06);
}


/* ==========================================================
   BOTÓN DIRECTO A CONTACT
   ========================================================== */

body.ai-automation-page-body .anthory-contact-action {
    display: flex;

    flex: 0 0 auto;

    align-items: center;
    justify-content: space-between;

    gap: 18px;

    width:
        calc(100% - 48px);

    min-height: 58px;

    margin:
        0 24px 22px;

    padding:
        8px 10px 8px 18px;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98),
            rgba(250, 247, 241, 0.92));

    border:
        1px solid rgba(45, 41, 36, 0.10);

    border-radius: 18px;

    color:
        rgba(45, 41, 36, 0.58);

    font-size: 0.88rem;

    text-decoration: none;

    box-shadow:
        0 10px 24px rgba(45, 41, 36, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


body.ai-automation-page-body .anthory-contact-action:hover {
    border-color:
        rgba(183, 138, 61, 0.40);

    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(45, 41, 36, 0.10),
        0 0 18px rgba(183, 138, 61, 0.08);
}


body.ai-automation-page-body .anthory-contact-action-text {
    display: block;
}


body.ai-automation-page-body .anthory-contact-action-button {
    display: grid;

    place-items: center;

    flex-shrink: 0;

    width: 42px;
    height: 42px;

    background:
        linear-gradient(145deg,
            #d1a85f,
            #b98227);

    border-radius: 13px;

    color: #ffffff;

    font-size: 1.2rem;
    line-height: 1;

    box-shadow:
        0 8px 18px rgba(183, 138, 61, 0.28);
}


/* ==========================================================
   OCHO CAPACIDADES DE AI
   ========================================================== */

body.ai-automation-page-body .ai-capability-card {
    position: absolute;

    z-index: 5;

    display: flex;

    align-items: center;

    gap: 9px;

    width: 180px;
    min-height: 66px;

    padding: 11px 13px;

    overflow: visible;

    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.96),
            rgba(255, 249, 239, 0.90));

    border:
        1px solid rgba(183, 138, 61, 0.48);

    border-radius: 16px;

    color: #2d2924;

    cursor: pointer;

    box-shadow:
        0 14px 32px rgba(45, 41, 36, 0.09),
        0 0 14px rgba(183, 138, 61, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);

    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}


/* Línea luminosa superior. */
body.ai-automation-page-body .ai-capability-card::before {
    content: "";

    position: absolute;

    top: -1px;
    left: 10%;

    z-index: 4;

    width: 80%;
    height: 1px;

    background:
        linear-gradient(90deg,
            transparent,
            rgba(222, 174, 80, 0.38),
            rgba(250, 210, 125, 1),
            rgba(222, 174, 80, 0.38),
            transparent);

    box-shadow:
        0 0 5px rgba(240, 193, 101, 0.48),
        0 0 12px rgba(209, 168, 95, 0.20);

    pointer-events: none;
}


/* ==========================================================
   ICONOS
   ========================================================== */

body.ai-automation-page-body .ai-capability-icon {
    display: grid;

    place-items: center;

    flex-shrink: 0;

    width: 32px;
    height: 32px;

    background: transparent;

    border: none;

    color: #bd7f18;
}


body.ai-automation-page-body .ai-capability-icon svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.7;

    stroke-linecap: round;
    stroke-linejoin: round;

    filter:
        drop-shadow(0 0 4px rgba(199, 145, 47, 0.18));
}


/* ==========================================================
   TEXTO DE CAPACIDADES
   ========================================================== */

body.ai-automation-page-body .capability-text {
    display: flex;

    flex-direction: column;

    gap: 4px;
}


body.ai-automation-page-body .ai-capability-card strong {
    color: #2d2924;

    font-size: 0.76rem;
    font-weight: 600;

    line-height: 1.25;
}


body.ai-automation-page-body .ai-capability-card small {
    color:
        rgba(45, 41, 36, 0.55);

    font-size: 0.60rem;

    line-height: 1.3;
}


body.ai-automation-page-body .ai-capability-card:hover {
    border-color:
        rgba(183, 138, 61, 0.70);

    transform:
        translateY(-3px) scale(1.025);

    box-shadow:
        0 16px 36px rgba(45, 41, 36, 0.13),
        0 0 20px rgba(183, 138, 61, 0.11);
}


/* ==========================================================
   POSICIONES DE LAS OCHO CAPACIDADES
   ========================================================== */

body.ai-automation-page-body .ai-capability-card:nth-of-type(1) {
    top: 40px;
    left: 0;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(2) {
    top: 205px;
    left: -18px;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(3) {
    top: 370px;
    left: -18px;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(4) {
    top: 535px;
    left: 0;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(5) {
    top: 40px;
    right: 0;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(6) {
    top: 205px;
    right: -18px;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(7) {
    top: 370px;
    right: -18px;
}


body.ai-automation-page-body .ai-capability-card:nth-of-type(8) {
    top: 535px;
    right: 0;
}


/* ==========================================================
   CONEXIONES LATERALES — ESCRITORIO
   ========================================================== */

@media (min-width: 1200px) {

    body.ai-automation-page-body main>.ai-automation-page {
        display: grid;

        grid-template-columns:
            minmax(360px, 0.72fr) minmax(760px, 1.45fr);

        align-items: center;

        gap: 40px;

        min-height:
            calc(100vh - 80px);

        background:
            linear-gradient(to bottom,
                #050605 0%,
                rgba(5, 6, 5, 0.94) 20px,
                rgba(5, 6, 5, 0.62) 70px,
                transparent 140px),
            radial-gradient(circle at 72% 42%,
                rgba(191, 146, 62, 0.12),
                transparent 30%),
            radial-gradient(circle at 30% 35%,
                rgba(106, 82, 40, 0.08),
                transparent 28%),
            linear-gradient(135deg,
                #070706 0%,
                #0d0c0a 48%,
                #050505 100%);

    }


    body.ai-automation-page-body .ai-automation-intro {
        align-self: center;

        width: 100%;
        max-width: 520px;

        margin: 0;

        padding-left: 2vw;
    }


    body.ai-automation-page-body .anthory-chat {
        position: absolute;

        top: 50%;
        left: 50%;

        transform:
            translate(-50%, -50%);
    }


    body.ai-automation-page-body .anthory-workspace::before,
    body.ai-automation-page-body .anthory-workspace::after {
        content: "";

        position: absolute;

        top: 76px;
        bottom: 76px;

        z-index: 3;

        width: 1px;

        background:
            linear-gradient(to bottom,
                transparent,
                rgba(218, 164, 61, 0.88),
                transparent);

        pointer-events: none;
    }


    body.ai-automation-page-body .anthory-workspace::before {
        left:
            calc(50% - 302px);
    }


    body.ai-automation-page-body .anthory-workspace::after {
        right:
            calc(50% - 302px);
    }


    body.ai-automation-page-body .ai-capability-card:nth-of-type(-n + 4)::after {
        content: "";

        position: absolute;

        top: 50%;
        left: 100%;

        z-index: -1;

        width: 38px;
        height: 1px;

        background:
            linear-gradient(to right,
                rgba(219, 164, 58, 0.92),
                rgba(244, 202, 116, 0.50));

        transform:
            translateY(-50%);

        pointer-events: none;
    }


    body.ai-automation-page-body .ai-capability-card:nth-of-type(n + 5)::after {
        content: "";

        position: absolute;

        top: 50%;
        right: 100%;

        z-index: -1;

        width: 38px;
        height: 1px;

        background:
            linear-gradient(to left,
                rgba(219, 164, 58, 0.92),
                rgba(244, 202, 116, 0.50));

        transform:
            translateY(-50%);

        pointer-events: none;
    }

}


/* ==========================================================
   FICHA INTERACTIVA DE SERVICIO
   ========================================================== */

body.ai-automation-page-body .anthory-welcome-message {
    max-width: 100%;
    margin-bottom: 22px;
}


body.ai-automation-page-body .anthory-message-content h3 {
    margin:
        0 0 8px;

    color: #e6bd70;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.35rem;
    font-weight: 600;
}


body.ai-automation-page-body .anthory-service-profile {
    display: flex;

    flex-direction: column;

    gap: 24px;

    padding:
        4px 2px 12px;
}


/* ==========================================================
   CABECERA DE LA FICHA
   ========================================================== */

body.ai-automation-page-body .anthory-service-header {
    padding: 22px;

    background:
        linear-gradient(145deg,
            rgba(205, 167, 95, 0.12),
            rgba(255, 255, 255, 0.02));

    border:
        1px solid rgba(205, 167, 95, 0.22);

    border-radius: 18px;
}


body.ai-automation-page-body .anthory-service-label {
    display: block;

    margin-bottom: 9px;

    color:
        rgba(213, 174, 100, 0.70);

    font-size: 0.66rem;
    font-weight: 600;

    letter-spacing: 0.18em;

    text-transform: uppercase;
}


body.ai-automation-page-body .anthory-service-header h3 {
    margin: 0;

    color: #f3eadc;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 2rem;

    line-height: 1.05;
}


body.ai-automation-page-body .anthory-service-tagline {
    margin:
        9px 0 0;

    color: #d5ae64;

    font-family:
        "Cormorant Garamond",
        serif;

    font-size: 1.05rem;

    font-style: italic;
}


body.ai-automation-page-body .anthory-service-introduction {
    margin:
        16px 0 0;

    color:
        rgba(246, 241, 232, 0.76);

    font-size: 0.90rem;

    line-height: 1.7;
}


/* ==========================================================
   SECCIONES DE LA FICHA
   ========================================================== */

body.ai-automation-page-body .anthory-profile-section {
    padding-top: 22px;

    border-top:
        1px solid rgba(205, 167, 95, 0.18);
}


body.ai-automation-page-body .anthory-profile-section h4 {
    margin:
        0 0 14px;

    color: #d5ae64;

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.17em;

    text-transform: uppercase;
}


body.ai-automation-page-body .anthory-profile-section p {
    margin: 0;

    color:
        rgba(246, 241, 232, 0.72);

    font-size: 0.88rem;

    line-height: 1.7;
}


/* ==========================================================
   LISTAS
   ========================================================== */

body.ai-automation-page-body .anthory-profile-list {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        10px 18px;

    margin: 0;
    padding: 0;

    list-style: none;
}


body.ai-automation-page-body .anthory-profile-list li {
    position: relative;

    padding-left: 17px;

    color:
        rgba(246, 241, 232, 0.72);

    font-size: 0.82rem;

    line-height: 1.5;
}


body.ai-automation-page-body .anthory-profile-list li::before {
    content: "✦";

    position: absolute;

    top: 0;
    left: 0;

    color: #cda75f;

    font-size: 0.65rem;
}


body.ai-automation-page-body .anthory-benefits-list li::before {
    content: "✓";
}


/* ==========================================================
   INTEGRACIONES
   ========================================================== */

body.ai-automation-page-body .anthory-integrations-list {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


body.ai-automation-page-body .anthory-integrations-list span {
    display: inline-flex;

    align-items: center;

    min-height: 30px;

    padding: 6px 11px;

    background:
        rgba(205, 167, 95, 0.07);

    border:
        1px solid rgba(205, 167, 95, 0.22);

    border-radius: 999px;

    color:
        rgba(246, 241, 232, 0.72);

    font-size: 0.73rem;
}


/* ==========================================================
   BUSINESS VALUE
   ========================================================== */

body.ai-automation-page-body .anthory-business-value {
    padding: 20px;

    background:
        rgba(205, 167, 95, 0.07);

    border:
        1px solid rgba(205, 167, 95, 0.22);

    border-radius: 16px;
}


/* ==========================================================
   POWERED BY ANTHORIA
   ========================================================== */

body.ai-automation-page-body .anthory-powered {
    position: relative;

    z-index: 2;

    margin:
        26px 0 0;

    color:
        rgba(205, 167, 95, 0.78);

    font-size: 0.72rem;

    letter-spacing: 0.24em;

    text-align: center;
    text-transform: uppercase;
}


/* ==========================================================
   SEO ACCESSIBLE NO VISUAL
   ========================================================== */

body.ai-automation-page-body .ai-seo-content {
    position: absolute;

    width: 1px;
    height: 1px;

    overflow: hidden;

    clip:
        rect(0 0 0 0);

    clip-path:
        inset(50%);

    white-space: nowrap;
}


/* ==========================================================
   IVORY THEME
   ========================================================== */

body.ai-automation-page-body:not(.dark-theme) {
    background: #fffdf9;

    color: #2d2924;
}


body.ai-automation-page-body:not(.dark-theme) .ai-automation-page {
    background:
        radial-gradient(circle at 72% 38%,
            rgba(209, 168, 95, 0.08),
            transparent 34%),
        linear-gradient(135deg,
            #fffefa 0%,
            #fffaf2 50%,
            #ffffff 100%);

    color: #2d2924;
}


body.ai-automation-page-body:not(.dark-theme) .ai-automation-title {
    color: #201d19;
}


body.ai-automation-page-body:not(.dark-theme) .ai-automation-title span,
body.ai-automation-page-body:not(.dark-theme) .ai-automation-title .gold {
    color: #c99c49;
}


body.ai-automation-page-body:not(.dark-theme) .ai-automation-description {
    color:
        rgba(32, 29, 25, 0.78);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-chat {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98),
            rgba(255, 251, 244, 0.96));

    border-color:
        rgba(183, 138, 61, 0.28);

    box-shadow:
        0 24px 60px rgba(45, 41, 36, 0.12),
        0 0 30px rgba(183, 138, 61, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-chat-header {
    background:
        linear-gradient(to bottom,
            rgba(255, 250, 241, 0.78),
            rgba(255, 255, 255, 0.18));

    border-bottom-color:
        rgba(45, 41, 36, 0.08);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-chat-header h2 {
    color: #201d19;
}


body.ai-automation-page-body:not(.dark-theme) .anthory-chat-header p {
    color:
        rgba(45, 41, 36, 0.58);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-chat-status {
    background:
        rgba(255, 250, 241, 0.82);

    border-color:
        rgba(183, 138, 61, 0.26);

    color:
        rgba(45, 41, 36, 0.70);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-message-content {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98),
            rgba(250, 247, 241, 0.92));

    border-color:
        rgba(45, 41, 36, 0.10);

    box-shadow:
        0 10px 24px rgba(45, 41, 36, 0.07),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-message-content p {
    color:
        rgba(32, 29, 25, 0.86);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-message-time {
    color:
        rgba(45, 41, 36, 0.42);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-selected-capability {
    background:
        linear-gradient(145deg,
            rgba(255, 250, 240, 0.98),
            rgba(248, 238, 218, 0.82));

    border-color:
        rgba(183, 138, 61, 0.50);

    color: #a87525;
}


body.ai-automation-page-body:not(.dark-theme) .anthory-message-content h3,
body.ai-automation-page-body:not(.dark-theme) .anthory-service-header h3 {
    color: #2d2924;
}


body.ai-automation-page-body:not(.dark-theme) .anthory-service-tagline,
body.ai-automation-page-body:not(.dark-theme) .anthory-profile-section h4 {
    color: #a87525;
}


body.ai-automation-page-body:not(.dark-theme) .anthory-service-introduction,
body.ai-automation-page-body:not(.dark-theme) .anthory-profile-section p,
body.ai-automation-page-body:not(.dark-theme) .anthory-profile-list li,
body.ai-automation-page-body:not(.dark-theme) .anthory-integrations-list span {
    color:
        rgba(45, 41, 36, 0.76);
}


body.ai-automation-page-body:not(.dark-theme) .anthory-service-header {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.98),
            rgba(248, 238, 218, 0.68));
}


/* ==========================================================
   DARK THEME
   ========================================================== */

body.ai-automation-page-body.dark-theme {
    background: #070706;
}


body.ai-automation-page-body.dark-theme .ai-capability-card {
    background:
        linear-gradient(145deg,
            rgba(28, 24, 18, 0.98),
            rgba(8, 8, 7, 0.98));

    border-color:
        rgba(221, 170, 70, 0.72);

    color: #f6f1e8;

    box-shadow:
        0 15px 34px rgba(0, 0, 0, 0.42),
        0 0 18px rgba(222, 173, 76, 0.14),
        inset 0 1px 0 rgba(255, 228, 173, 0.07);
}


body.ai-automation-page-body.dark-theme .ai-capability-card strong {
    color:
        rgba(246, 241, 232, 0.90);
}


body.ai-automation-page-body.dark-theme .ai-capability-card small {
    color:
        rgba(246, 241, 232, 0.48);
}


body.ai-automation-page-body.dark-theme .ai-capability-icon {
    color: #e1ac47;
}


body.ai-automation-page-body.dark-theme .anthory-contact-action {
    background:
        linear-gradient(145deg,
            rgba(30, 27, 23, 0.96),
            rgba(15, 14, 12, 0.96));

    border-color:
        rgba(209, 168, 95, 0.22);

    color:
        rgba(246, 241, 232, 0.62);

    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}


/* ==========================================================
   LAPTOP / TABLET HORIZONTAL
   ========================================================== */

@media (max-width: 1199px) {

    body.ai-automation-page-body main>.ai-automation-page {
        display: block;

        padding:
            70px 5vw 60px;
    }


    body.ai-automation-page-body .ai-automation-intro {
        width:
            min(620px, 100%);

        margin:
            0 auto;

        text-align: center;
    }


    body.ai-automation-page-body .ai-automation-description {
        margin-left: auto;
        margin-right: auto;
    }


    body.ai-automation-page-body .ai-automation-divider {
        margin-left: auto;
        margin-right: auto;
    }


    body.ai-automation-page-body .anthory-workspace {
        min-height: auto;
    }


    body.ai-automation-page-body .anthory-chat {
        position: relative;

        top: auto;
        left: auto;

        width:
            min(580px, 100%);

        height:
            min(680px, 78dvh);

        min-height: 520px;
        max-height: 680px;

        margin:
            55px auto 0;

        transform: none;
    }


    /* Las tarjetas dejan de flotar en pantallas medianas. */
    body.ai-automation-page-body .ai-capability-card {
        display: none;
    }

}


/* ==========================================================
   MÓVIL
   ========================================================== */

@media (max-width: 700px) {

    body.ai-automation-page-body main>.ai-automation-page {
        padding:
            48px 18px 52px;
    }


    body.ai-automation-page-body .ai-automation-title {
        font-size:
            clamp(2.7rem, 13vw, 4rem);
    }


    body.ai-automation-page-body .ai-automation-description {
        font-size: 0.95rem;
    }


    body.ai-automation-page-body .anthory-chat {
        width: 100%;

        height: 72dvh;

        min-height: 500px;
        max-height: 650px;

        border-radius: 22px;
    }


    body.ai-automation-page-body .anthory-chat-messages {
        padding:
            20px 16px;
    }


    body.ai-automation-page-body .anthory-chat-header {
        min-height: 78px;

        padding:
            15px 17px;
    }


    body.ai-automation-page-body .anthory-chat-symbol {
        width: 42px;
        height: 42px;

        border-radius: 13px;
    }


    body.ai-automation-page-body .anthory-chat-status {
        padding:
            6px 8px;

        font-size: 0.62rem;
    }


    body.ai-automation-page-body .anthory-contact-action {
        width:
            calc(100% - 32px);

        margin:
            0 16px 16px;
    }


    body.ai-automation-page-body .anthory-profile-list {
        grid-template-columns: 1fr;
    }


    body.ai-automation-page-body .anthory-service-header {
        padding: 18px;
    }


    body.ai-automation-page-body .anthory-service-header h3 {
        font-size: 1.65rem;
    }

}


/* ==========================================================
   MÓVILES PEQUEÑOS
   ========================================================== */

@media (max-width: 430px) {

    body.ai-automation-page-body main>.ai-automation-page {
        padding:
            40px 14px 46px;
    }


    body.ai-automation-page-body .ai-automation-title {
        font-size:
            clamp(2.35rem, 13vw, 3.3rem);
    }


    body.ai-automation-page-body .ai-automation-divider {
        width:
            min(220px, 80%);
    }


    body.ai-automation-page-body .anthory-chat {
        min-height: 490px;
    }


    body.ai-automation-page-body .anthory-chat-header h2 {
        font-size: 1.15rem;
    }


    body.ai-automation-page-body .anthory-chat-header p {
        font-size: 0.68rem;
    }


    body.ai-automation-page-body .anthory-message {
        max-width: 96%;
    }


    body.ai-automation-page-body .anthory-message-content {
        padding:
            12px 13px;
    }


    body.ai-automation-page-body .anthory-message-content p {
        font-size: 0.86rem;
    }


    body.ai-automation-page-body .anthory-selected-capability {
        max-width: 86%;
    }


    body.ai-automation-page-body .anthory-contact-action {
        min-height: 54px;

        padding:
            7px 8px 7px 14px;

        font-size: 0.82rem;
    }


    body.ai-automation-page-body .anthory-contact-action-button {
        width: 38px;
        height: 38px;
    }

}


/* ==========================================================
   REDUCED MOTION
   ========================================================== */

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

    body.ai-automation-page-body .ai-capability-card,
    body.ai-automation-page-body .anthory-contact-action {
        transition: none;
    }


    body.ai-automation-page-body .ai-capability-card:hover,
    body.ai-automation-page-body .anthory-contact-action:hover {
        transform: none;
    }


    body.ai-automation-page-body .anthory-chat-messages {
        scroll-behavior: auto;
    }

}