/* data-intelligence: estilos migrados preservando el diseño original. */

/* ==========================================================
   ANTHORIA — DATA & BUSINESS INTELLIGENCE

   Estilos exclusivos de Data & Business Intelligence.

   Contiene:
   - Fondo general.
   - Hero.
   - Fondo decorativo.
   - Cuadrícula principal.
   - Tarjetas interactivas.
   - Indicador porcentual.
   - Gráfica de línea.
   - Barras comparativas.
   - Gráfica predictiva.
   - Tema Ivory / Dark.
   - Modal de información.
   - Responsive.
   - Accesibilidad y Reduced Motion.
   ========================================================== */


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

body.data-intelligence-page-body {
    min-height: 100vh;

    overflow-x: hidden;

    background:
        radial-gradient(circle at 50% 20%,
            rgba(183, 138, 61, 0.12),
            transparent 34%),
        linear-gradient(135deg,
            #090806 0%,
            #12100d 48%,
            #080706 100%);

    color: #f4ecdf;
}


/* ==========================================================
   MAIN
   ========================================================== */

body.data-intelligence-page-body main {
    width: 100%;

    padding:
        20px 48px 90px;
}


/* ==========================================================
   SECCIÓN PRINCIPAL
   ========================================================== */

body.data-intelligence-page-body main>.data-intelligence-page {
    position: relative;

    width: 100%;
    max-width: none;

    margin:
        -28px 0 0;

    padding:
        30px 0 0;
}


/* ==========================================================
   FONDO DECORATIVO
   ========================================================== */

body.data-intelligence-page-body .data-intelligence-background {
    position: absolute;

    inset: 0;
    z-index: 0;

    overflow: hidden;

    pointer-events: none;
}


body.data-intelligence-page-body .data-intelligence-background::before {
    content: "";

    position: absolute;

    top: 40px;
    left: 50%;

    width: 760px;
    height: 760px;

    border:
        1px solid rgba(209, 168, 95, 0.08);

    border-radius: 50%;

    box-shadow:
        0 0 120px rgba(183, 138, 61, 0.08),
        inset 0 0 120px rgba(183, 138, 61, 0.03);

    transform:
        translateX(-50%);
}


body.data-intelligence-page-body .data-intelligence-background::after {
    content: "";

    position: absolute;

    top: 370px;
    left: 5%;
    right: 5%;

    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(209, 168, 95, 0.16),
            transparent);
}


/* ==========================================================
   HERO
   ========================================================== */

body.data-intelligence-page-body .data-intelligence-hero {
    position: relative;

    z-index: 1;

    width:
        min(100%, 1100px);

    margin:
        0 auto 48px;

    text-align: center;
}


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

body.data-intelligence-page-body .data-intelligence-title {
    max-width: none;

    margin: 0;

    color: #f5eee2;

    font-size:
        clamp(3.2rem, 5vw, 5.6rem);

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.025em;

    white-space: nowrap;
}


body.data-intelligence-page-body .data-intelligence-title span {
    display: inline;

    margin-left: 14px;

    color: #d1a85f;

    font-style: normal;

    text-shadow:
        0 0 25px rgba(209, 168, 95, 0.16);
}


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

body.data-intelligence-page-body .data-intelligence-divider {
    display: flex;

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

    gap: 14px;

    width:
        min(100%, 430px);

    margin:
        30px auto 25px;
}


body.data-intelligence-page-body .data-intelligence-divider span {
    width: 100%;
    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(209, 168, 95, 0.70));
}


body.data-intelligence-page-body .data-intelligence-divider span:last-child {
    background:
        linear-gradient(to right,
            rgba(209, 168, 95, 0.70),
            transparent);
}


body.data-intelligence-page-body .data-intelligence-divider strong {
    flex-shrink: 0;

    color: #d1a85f;

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

    text-shadow:
        0 0 12px rgba(209, 168, 95, 0.70);
}


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

body.data-intelligence-page-body .data-intelligence-description {
    max-width: 720px;

    margin:
        0 auto;

    color:
        rgba(244, 236, 223, 0.72);

    font-size: 1rem;

    line-height: 1.8;

    letter-spacing: 0.01em;
}


body.data-intelligence-page-body .data-intelligence-description span {
    display: block;

    margin-top: 5px;

    color:
        rgba(209, 168, 95, 0.86);
}


/* ==========================================================
   CUADRÍCULA PRINCIPAL
   ========================================================== */

body.data-intelligence-page-body .data-intelligence-grid {
    position: relative;

    z-index: 1;

    display: grid;

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

    gap: 22px;

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

    margin:
        0 auto;
}


/* ==========================================================
   TARJETAS
   ========================================================== */

body.data-intelligence-page-body .data-intelligence-card {
    position: relative;

    display: flex;
    flex-direction: column;

    min-width: 0;
    min-height: 610px;

    padding: 28px;

    overflow: hidden;

    background:
        linear-gradient(145deg,
            rgba(29, 25, 20, 0.92),
            rgba(12, 11, 9, 0.96));

    border:
        1px solid rgba(209, 168, 95, 0.24);

    border-radius: 22px;

    cursor: pointer;

    box-shadow:
        0 22px 50px rgba(0, 0, 0, 0.32),
        inset 0 1px 0 rgba(255, 236, 198, 0.06);

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


/* Línea superior dorada. */
body.data-intelligence-page-body .data-intelligence-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 12%;

    width: 76%;
    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            rgba(225, 184, 105, 0.80),
            transparent);

    box-shadow:
        0 0 16px rgba(209, 168, 95, 0.34);
}


/* Resplandor decorativo. */
body.data-intelligence-page-body .data-intelligence-card::after {
    content: "";

    position: absolute;

    top: -150px;
    right: -150px;

    width: 300px;
    height: 300px;

    background:
        radial-gradient(circle,
            rgba(209, 168, 95, 0.08),
            transparent 68%);

    pointer-events: none;
}


body.data-intelligence-page-body .data-intelligence-card:hover {
    border-color:
        rgba(209, 168, 95, 0.48);

    transform:
        translateY(-7px);

    box-shadow:
        0 30px 65px rgba(0, 0, 0, 0.42),
        0 0 28px rgba(183, 138, 61, 0.08),
        inset 0 1px 0 rgba(255, 236, 198, 0.10);
}


body.data-intelligence-page-body .data-intelligence-card:focus-visible {
    outline:
        2px solid #d1a85f;

    outline-offset: 5px;
}


/* ==========================================================
   CABECERA DE TARJETAS
   ========================================================== */

body.data-intelligence-page-body .data-card-header {
    position: relative;

    z-index: 1;

    display: flex;

    align-items: flex-start;

    gap: 16px;

    margin: 0;
    padding: 0;

    background: transparent;
}


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

body.data-intelligence-page-body .data-card-icon {
    display: inline-flex;

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

    flex:
        0 0 48px;

    width: 48px;
    height: 48px;

    background:
        linear-gradient(145deg,
            rgba(209, 168, 95, 0.16),
            rgba(209, 168, 95, 0.03));

    border:
        1px solid rgba(209, 168, 95, 0.32);

    border-radius: 14px;

    color: #d1a85f;

    box-shadow:
        inset 0 1px 0 rgba(255, 236, 198, 0.10);
}


body.data-intelligence-page-body .data-card-icon svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==========================================================
   TÍTULOS DE TARJETAS
   ========================================================== */

body.data-intelligence-page-body .data-card-header h2 {
    margin:
        0 0 7px;

    color: #f7efe2;

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

    line-height: 1.05;
}


body.data-intelligence-page-body .data-card-header p {
    margin: 0;

    color:
        rgba(244, 236, 223, 0.55);

    font-size: 0.76rem;

    line-height: 1.5;
}


/* ==========================================================
   PORCENTAJE DESTACADO
   ========================================================== */

body.data-intelligence-page-body .data-percentage-feature {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        112px 1fr;

    align-items: center;

    gap: 20px;

    margin-top: 30px;

    padding:
        22px 0;

    border-top:
        1px solid rgba(209, 168, 95, 0.12);

    border-bottom:
        1px solid rgba(209, 168, 95, 0.12);
}


/* ==========================================================
   ANILLO PORCENTUAL
   ========================================================== */

body.data-intelligence-page-body .data-percentage-ring {
    display: flex;

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

    width: 108px;
    height: 108px;

    background:
        radial-gradient(circle at center,
            #15120f 58%,
            transparent 59%),
        conic-gradient(#d1a85f 0deg 290deg,
            rgba(209, 168, 95, 0.12) 290deg 360deg);

    border-radius: 50%;

    box-shadow:
        0 0 25px rgba(209, 168, 95, 0.12);
}


body.data-intelligence-page-body .data-percentage-ring span {
    color: #f7efe2;

    font-family:
        "Cormorant Garamond",
        serif;

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


body.data-intelligence-page-body .data-percentage-feature>p {
    margin: 0;

    color:
        rgba(244, 236, 223, 0.68);

    font-size: 0.78rem;

    line-height: 1.7;
}


/* ==========================================================
   TEXTO INFERIOR DE TARJETAS
   ========================================================== */

body.data-intelligence-page-body .data-card-description {
    position: relative;

    z-index: 1;

    margin:
        auto 0 0;

    padding-top: 22px;

    border-top:
        1px solid rgba(209, 168, 95, 0.12);

    color:
        rgba(244, 236, 223, 0.62);

    font-size: 0.8rem;

    line-height: 1.75;
}


/* ==========================================================
   SECCIONES DE GRÁFICAS
   ========================================================== */

body.data-intelligence-page-body .data-chart-section,
body.data-intelligence-page-body .data-bars-section {
    position: relative;

    z-index: 1;

    margin-top: 22px;
}


body.data-intelligence-page-body .data-chart-section h3,
body.data-intelligence-page-body .data-bars-section h3 {
    margin:
        0 0 16px;

    color: #f4ecdf;

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

    line-height: 1.15;
}


/* ==========================================================
   GRÁFICA DE LÍNEA
   ========================================================== */

body.data-intelligence-page-body .data-line-chart {
    position: relative;

    width: 100%;
    height: 170px;

    overflow: hidden;

    border-bottom:
        1px solid rgba(209, 168, 95, 0.12);
}


body.data-intelligence-page-body .data-line-chart svg {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    overflow: visible;
}


body.data-intelligence-page-body .data-line-chart polyline {
    fill: none;

    stroke: #d1a85f;

    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;

    filter:
        drop-shadow(0 0 5px rgba(209, 168, 95, 0.48));
}


body.data-intelligence-page-body .data-line-chart circle {
    fill: #15120f;

    stroke: #e1b869;

    stroke-width: 2.5;

    filter:
        drop-shadow(0 0 5px rgba(209, 168, 95, 0.55));
}


/* Líneas horizontales de referencia. */
body.data-intelligence-page-body .chart-line {
    position: absolute;

    left: 0;

    width: 100%;
    height: 1px;

    background:
        linear-gradient(to right,
            rgba(209, 168, 95, 0.02),
            rgba(209, 168, 95, 0.13),
            rgba(209, 168, 95, 0.02));
}


body.data-intelligence-page-body .chart-line-1 {
    top: 20%;
}


body.data-intelligence-page-body .chart-line-2 {
    top: 40%;
}


body.data-intelligence-page-body .chart-line-3 {
    top: 60%;
}


body.data-intelligence-page-body .chart-line-4 {
    top: 80%;
}


/* ==========================================================
   ETIQUETAS DE GRÁFICA
   ========================================================== */

body.data-intelligence-page-body .data-chart-labels {
    display: flex;

    justify-content: space-between;

    gap: 18px;

    margin-top: 12px;

    color:
        rgba(244, 236, 223, 0.65);

    font-size: 0.76rem;
}


body.data-intelligence-page-body .data-chart-labels strong {
    color: #d1a85f;

    font-weight: 600;
}


/* ==========================================================
   BARRAS DE COMPARACIÓN
   ========================================================== */

body.data-intelligence-page-body .data-bars-section {
    min-height: 180px;
}


body.data-intelligence-page-body .data-comparison-row {
    display: grid;

    grid-template-columns:
        130px 1fr 44px;

    align-items: center;

    gap: 12px;

    margin-top: 15px;
}


body.data-intelligence-page-body .data-comparison-row>span {
    color:
        rgba(244, 236, 223, 0.72);

    font-size: 0.78rem;
}


body.data-intelligence-page-body .data-comparison-row>strong {
    color: #f4ecdf;

    font-size: 0.78rem;

    text-align: right;
}


body.data-intelligence-page-body .data-comparison-bar {
    position: relative;

    height: 9px;

    overflow: hidden;

    background:
        rgba(244, 236, 223, 0.08);

    border-radius: 999px;
}


body.data-intelligence-page-body .data-comparison-bar>span {
    display: block;

    height: 100%;

    background:
        linear-gradient(to right,
            rgba(244, 236, 223, 0.28),
            rgba(244, 236, 223, 0.58));

    border-radius: inherit;
}


body.data-intelligence-page-body .data-comparison-bar-gold>span {
    background:
        linear-gradient(to right,
            #9f7430,
            #e1b869);

    box-shadow:
        0 0 12px rgba(209, 168, 95, 0.34);
}


/* ==========================================================
   GRÁFICA PREDICTIVA
   ========================================================== */

body.data-intelligence-page-body .data-prediction-chart {
    position: relative;

    width: 100%;
    height: 170px;

    overflow: hidden;

    background:
        linear-gradient(to top,
            rgba(209, 168, 95, 0.03),
            transparent);

    border-bottom:
        1px solid rgba(209, 168, 95, 0.12);
}


body.data-intelligence-page-body .data-prediction-chart svg {
    width: 100%;
    height: 100%;

    overflow: visible;
}


body.data-intelligence-page-body .data-prediction-chart polyline {
    fill: none;

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


body.data-intelligence-page-body .prediction-line-secondary {
    stroke:
        rgba(244, 236, 223, 0.32);

    stroke-width: 2;

    stroke-dasharray: 7 7;
}


body.data-intelligence-page-body .prediction-line-primary {
    stroke: #d1a85f;

    stroke-width: 3.5;

    filter:
        drop-shadow(0 0 6px rgba(209, 168, 95, 0.52));
}


/* ==========================================================
   RESULTADOS PREDICTIVOS
   ========================================================== */

body.data-intelligence-page-body .prediction-result {
    display: grid;

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

    gap: 14px;

    margin-top: 14px;
}


body.data-intelligence-page-body .prediction-result span {
    display: flex;

    flex-direction: column;

    gap: 4px;

    color:
        rgba(244, 236, 223, 0.56);

    font-size: 0.72rem;

    line-height: 1.4;
}


body.data-intelligence-page-body .prediction-result strong {
    color: #d1a85f;

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


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

body.data-intelligence-page-body:not(.dark-theme) {
    background:
        radial-gradient(circle at 50% 18%,
            rgba(183, 138, 61, 0.10),
            transparent 34%),
        linear-gradient(135deg,
            #f8f4ed 0%,
            #eee5d8 48%,
            #f7f1e8 100%);

    color: #2d2924;
}


body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-title {
    color: #2d2924;
}


body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-title span {
    color: #b78a3d;

    text-shadow:
        0 0 20px rgba(183, 138, 61, 0.12);
}


body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-description {
    color:
        rgba(45, 41, 36, 0.70);
}


body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-description span {
    color: #a8752f;
}


/* ==========================================================
   IVORY — FONDO DECORATIVO
   ========================================================== */

body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-background::before {
    border-color:
        rgba(183, 138, 61, 0.12);

    box-shadow:
        0 0 100px rgba(183, 138, 61, 0.08),
        inset 0 0 100px rgba(183, 138, 61, 0.03);
}


body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-background::after {
    background:
        linear-gradient(to right,
            transparent,
            rgba(183, 138, 61, 0.18),
            transparent);
}


/* ==========================================================
   IVORY — TARJETAS
   ========================================================== */

body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-card {
    background:
        linear-gradient(145deg,
            rgba(255, 255, 255, 0.94),
            rgba(243, 236, 225, 0.96));

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

    box-shadow:
        0 20px 46px rgba(92, 67, 34, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.92);
}


body.data-intelligence-page-body:not(.dark-theme) .data-intelligence-card:hover {
    border-color:
        rgba(183, 138, 61, 0.52);

    box-shadow:
        0 28px 58px rgba(92, 67, 34, 0.16),
        0 0 24px rgba(183, 138, 61, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
}


body.data-intelligence-page-body:not(.dark-theme) .data-card-header h2 {
    color: #2d2924;
}


body.data-intelligence-page-body:not(.dark-theme) .data-card-header p {
    color:
        rgba(45, 41, 36, 0.56);
}


body.data-intelligence-page-body:not(.dark-theme) .data-card-icon {
    background:
        linear-gradient(145deg,
            rgba(183, 138, 61, 0.14),
            rgba(255, 255, 255, 0.72));

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

    color: #b78a3d;
}


/* ==========================================================
   IVORY — PORCENTAJE
   ========================================================== */

body.data-intelligence-page-body:not(.dark-theme) .data-percentage-feature {
    border-top-color:
        rgba(183, 138, 61, 0.16);

    border-bottom-color:
        rgba(183, 138, 61, 0.16);
}


body.data-intelligence-page-body:not(.dark-theme) .data-percentage-ring {
    background:
        radial-gradient(circle at center,
            #fffdf9 58%,
            transparent 59%),
        conic-gradient(#b78a3d 0deg 290deg,
            rgba(183, 138, 61, 0.15) 290deg 360deg);
}


body.data-intelligence-page-body:not(.dark-theme) .data-percentage-ring span {
    color: #2d2924;
}


body.data-intelligence-page-body:not(.dark-theme) .data-percentage-feature>p {
    color:
        rgba(45, 41, 36, 0.68);
}


/* ==========================================================
   IVORY — GRÁFICAS
   ========================================================== */

body.data-intelligence-page-body:not(.dark-theme) .data-chart-section h3,
body.data-intelligence-page-body:not(.dark-theme) .data-bars-section h3 {
    color: #2d2924;
}


body.data-intelligence-page-body:not(.dark-theme) .data-chart-labels {
    color:
        rgba(45, 41, 36, 0.62);
}


body.data-intelligence-page-body:not(.dark-theme) .data-chart-labels strong {
    color: #a8752f;
}


body.data-intelligence-page-body:not(.dark-theme) .data-line-chart {
    border-bottom-color:
        rgba(183, 138, 61, 0.16);
}


body.data-intelligence-page-body:not(.dark-theme) .data-line-chart polyline {
    stroke: #b78a3d;
}


body.data-intelligence-page-body:not(.dark-theme) .data-line-chart circle {
    fill: #fffdf9;

    stroke: #b78a3d;
}


body.data-intelligence-page-body:not(.dark-theme) .data-comparison-row>span,
body.data-intelligence-page-body:not(.dark-theme) .data-comparison-row>strong {
    color:
        rgba(45, 41, 36, 0.78);
}


body.data-intelligence-page-body:not(.dark-theme) .data-comparison-bar {
    background:
        rgba(45, 41, 36, 0.08);
}


body.data-intelligence-page-body:not(.dark-theme) .data-comparison-bar>span {
    background:
        linear-gradient(to right,
            rgba(45, 41, 36, 0.22),
            rgba(45, 41, 36, 0.48));
}


body.data-intelligence-page-body:not(.dark-theme) .data-comparison-bar-gold>span {
    background:
        linear-gradient(to right,
            #9d7130,
            #cfa354);
}


body.data-intelligence-page-body:not(.dark-theme) .data-prediction-chart {
    background:
        linear-gradient(to top,
            rgba(183, 138, 61, 0.04),
            transparent);

    border-bottom-color:
        rgba(183, 138, 61, 0.16);
}


body.data-intelligence-page-body:not(.dark-theme) .prediction-line-secondary {
    stroke:
        rgba(45, 41, 36, 0.32);
}


body.data-intelligence-page-body:not(.dark-theme) .prediction-line-primary {
    stroke: #b78a3d;
}


body.data-intelligence-page-body:not(.dark-theme) .prediction-result span {
    color:
        rgba(45, 41, 36, 0.58);
}


body.data-intelligence-page-body:not(.dark-theme) .prediction-result strong {
    color: #a8752f;
}


body.data-intelligence-page-body:not(.dark-theme) .data-card-description {
    color:
        rgba(45, 41, 36, 0.66);

    border-top-color:
        rgba(183, 138, 61, 0.16);
}


/* ==========================================================
   MODAL ABIERTO
   ========================================================== */

body.data-intelligence-page-body.automation-modal-open {
    overflow: hidden;
}


/* ==========================================================
   MODAL
   ========================================================== */

body.data-intelligence-page-body .automation-modal {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: flex;

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

    padding: 28px;

    visibility: hidden;

    opacity: 0;

    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}


body.data-intelligence-page-body .automation-modal.show {
    visibility: visible;

    opacity: 1;

    pointer-events: auto;
}


/* ==========================================================
   OVERLAY DEL MODAL
   ========================================================== */

body.data-intelligence-page-body .automation-modal-overlay {
    position: absolute;

    inset: 0;

    background:
        rgba(5, 4, 3, 0.78);

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

    cursor: pointer;
}


/* ==========================================================
   CONTENIDO DEL MODAL
   ========================================================== */

body.data-intelligence-page-body .automation-modal-content {
    position: relative;

    z-index: 2;

    width:
        min(100%, 620px);

    max-height:
        calc(100vh - 56px);

    padding:
        46px 48px 42px;

    overflow-y: auto;

    background:
        radial-gradient(circle at 50% 0%,
            rgba(209, 168, 95, 0.12),
            transparent 42%),
        linear-gradient(145deg,
            #211c16,
            #0c0a08);

    border:
        1px solid rgba(209, 168, 95, 0.52);

    border-radius: 24px;

    color: #f4ecdf;

    text-align: center;

    box-shadow:
        0 38px 90px rgba(0, 0, 0, 0.58),
        0 0 42px rgba(183, 138, 61, 0.12),
        inset 0 1px 0 rgba(255, 235, 192, 0.12);

    transform:
        translateY(24px) scale(0.97);

    transition:
        transform 0.35s ease;
}


body.data-intelligence-page-body .automation-modal.show .automation-modal-content {
    transform:
        translateY(0) scale(1);
}


/* Línea superior del modal. */
body.data-intelligence-page-body .automation-modal-content::before {
    content: "";

    position: absolute;

    top: 0;
    left: 15%;

    width: 70%;
    height: 1px;

    background:
        linear-gradient(to right,
            transparent,
            #d1a85f,
            transparent);

    box-shadow:
        0 0 16px rgba(209, 168, 95, 0.65);
}


/* ==========================================================
   BOTÓN CERRAR
   ========================================================== */

body.data-intelligence-page-body .automation-modal-close {
    position: absolute;

    top: 16px;
    right: 18px;

    display: flex;

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

    width: 38px;
    height: 38px;

    padding: 0;

    appearance: none;

    background:
        rgba(209, 168, 95, 0.06);

    border:
        1px solid rgba(209, 168, 95, 0.28);

    border-radius: 50%;

    color: #d1a85f;

    font-family:
        "Montserrat",
        sans-serif;

    font-size: 1.6rem;
    font-weight: 300;

    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.3s ease,
        transform 0.3s ease,
        border-color 0.3s ease;
}


body.data-intelligence-page-body .automation-modal-close:hover {
    background:
        rgba(209, 168, 95, 0.14);

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

    transform:
        rotate(90deg);
}


/* ==========================================================
   CONTENIDO TEXTUAL DEL MODAL
   ========================================================== */

body.data-intelligence-page-body .automation-modal-label {
    display: block;

    margin-bottom: 13px;

    color: #d1a85f;

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

    letter-spacing: 0.22em;

    text-transform: uppercase;
}


body.data-intelligence-page-body .automation-modal-content h2 {
    max-width: 500px;

    margin:
        0 auto;

    color: #f7efe2;

    font-size:
        clamp(2.2rem, 4vw, 3.1rem);

    font-weight: 500;

    line-height: 1;
}


body.data-intelligence-page-body .automation-modal-divider {
    display: flex;

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

    gap: 12px;

    width:
        min(100%, 280px);

    margin:
        24px auto;
}


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

    background:
        linear-gradient(to right,
            transparent,
            rgba(209, 168, 95, 0.68));
}


body.data-intelligence-page-body .automation-modal-divider span:last-child {
    background:
        linear-gradient(to right,
            rgba(209, 168, 95, 0.68),
            transparent);
}


body.data-intelligence-page-body .automation-modal-divider strong {
    color: #d1a85f;

    font-size: 0.72rem;
    font-weight: 400;
}


body.data-intelligence-page-body .automation-modal-content p {
    max-width: 530px;

    margin:
        0 auto 16px;

    color:
        rgba(244, 236, 223, 0.70);

    font-size: 0.88rem;

    line-height: 1.8;
}


body.data-intelligence-page-body .automation-modal-content .automation-modal-highlight {
    margin-top: 22px;

    color: #e1b869;
}


/* ==========================================================
   BOTÓN HACIA CONTACT
   ========================================================== */

body.data-intelligence-page-body .automation-modal-contact,
body.data-intelligence-page-body .automation-modal-contact:visited {
    display: inline-flex;

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

    gap: 30px;

    min-width: 270px;
    min-height: 52px;

    margin-top: 18px;

    padding:
        0 22px;

    background:
        linear-gradient(135deg,
            rgba(209, 168, 95, 0.16),
            rgba(209, 168, 95, 0.05));

    border:
        1px solid rgba(209, 168, 95, 0.68);

    border-radius: 999px;

    color: #e1b869;

    font-family:
        "Montserrat",
        sans-serif;

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

    letter-spacing: 0.04em;

    text-decoration: none;

    box-shadow:
        0 12px 26px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 236, 198, 0.10);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}


body.data-intelligence-page-body .automation-modal-contact:hover {
    color: #f0ca7d;

    text-decoration: none;

    transform:
        translateY(-3px);

    box-shadow:
        0 17px 32px rgba(0, 0, 0, 0.30),
        0 0 18px rgba(209, 168, 95, 0.13);
}


/* ==========================================================
   MODAL — IVORY
   ========================================================== */

body.data-intelligence-page-body:not(.dark-theme) .automation-modal-overlay {
    background:
        rgba(45, 41, 36, 0.42);
}


body.data-intelligence-page-body:not(.dark-theme) .automation-modal-content {
    background:
        radial-gradient(circle at 50% 0%,
            rgba(183, 138, 61, 0.10),
            transparent 42%),
        linear-gradient(145deg,
            #ffffff,
            #f4ede2);

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

    color: #2d2924;

    box-shadow:
        0 35px 80px rgba(69, 50, 26, 0.24),
        0 0 32px rgba(183, 138, 61, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.96);
}


body.data-intelligence-page-body:not(.dark-theme) .automation-modal-content h2 {
    color: #2d2924;
}


body.data-intelligence-page-body:not(.dark-theme) .automation-modal-content p {
    color:
        rgba(45, 41, 36, 0.68);
}


body.data-intelligence-page-body:not(.dark-theme) .automation-modal-content .automation-modal-highlight {
    color: #9d7130;
}


body.data-intelligence-page-body:not(.dark-theme) .automation-modal-close {
    background:
        rgba(183, 138, 61, 0.07);

    color: #a8752f;
}


body.data-intelligence-page-body:not(.dark-theme) .automation-modal-contact,
body.data-intelligence-page-body:not(.dark-theme) .automation-modal-contact:visited {
    background:
        linear-gradient(135deg,
            rgba(183, 138, 61, 0.14),
            rgba(255, 255, 255, 0.72));

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

    color: #9d7130;
}


/* ==========================================================
   MODAL — DARK
   ========================================================== */

body.data-intelligence-page-body.dark-theme .automation-modal-overlay {
    background:
        rgba(5, 4, 3, 0.82);
}


body.data-intelligence-page-body.dark-theme .automation-modal-content {
    background:
        radial-gradient(circle at 50% 0%,
            rgba(209, 168, 95, 0.13),
            transparent 42%),
        linear-gradient(145deg,
            #211c16,
            #0b0907);

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

    color: #f4ecdf;
}


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

@media (max-width: 1100px) {

    body.data-intelligence-page-body .data-intelligence-title {
        white-space: normal;
    }


    body.data-intelligence-page-body .data-intelligence-title span {
        display: block;

        margin:
            6px 0 0;
    }


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


    body.data-intelligence-page-body .data-intelligence-card:last-child {
        grid-column:
            1 / -1;
    }

}


/* ==========================================================
   TABLET VERTICAL
   ========================================================== */

@media (max-width: 768px) {

    body.data-intelligence-page-body main {
        padding:
            20px 24px 70px;
    }


    body.data-intelligence-page-body main>.data-intelligence-page {
        margin-top: 0;
    }


    body.data-intelligence-page-body .data-intelligence-hero {
        margin-bottom: 38px;
    }


    body.data-intelligence-page-body .data-intelligence-title {
        font-size:
            clamp(2.8rem, 10vw, 4.2rem);
    }


    body.data-intelligence-page-body .data-intelligence-grid {
        grid-template-columns: 1fr;
    }


    body.data-intelligence-page-body .data-intelligence-card:last-child {
        grid-column: auto;
    }


    body.data-intelligence-page-body .data-intelligence-card {
        min-height: auto;
    }


    body.data-intelligence-page-body .data-intelligence-background::before {
        width: 580px;
        height: 580px;
    }

}


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

@media (max-width: 430px) {

    body.data-intelligence-page-body main {
        padding:
            90px 16px 52px
    }


    body.data-intelligence-page-body .data-intelligence-title {
        font-size:
            clamp(2.4rem, 12vw, 3.2rem);
    }


    body.data-intelligence-page-body .data-intelligence-description {
        font-size: 0.94rem;
    }


    body.data-intelligence-page-body .data-intelligence-card {
        padding: 22px;

        border-radius: 18px;
    }


    body.data-intelligence-page-body .data-card-header {
        gap: 12px;
    }


    body.data-intelligence-page-body .data-card-header h2 {
        font-size: 1.45rem;
    }


    body.data-intelligence-page-body .data-percentage-feature {
        grid-template-columns: 1fr;

        justify-items: center;

        text-align: center;
    }


    body.data-intelligence-page-body .data-comparison-row {
        grid-template-columns:
            92px 1fr 38px;

        gap: 8px;
    }


    body.data-intelligence-page-body .prediction-result {
        grid-template-columns: 1fr;
    }


    body.data-intelligence-page-body .automation-modal {
        padding: 16px;
    }


    body.data-intelligence-page-body .automation-modal-content {
        max-height:
            calc(100dvh - 32px);

        padding:
            48px 24px 30px;

        border-radius: 20px;
    }


    body.data-intelligence-page-body .automation-modal-contact {
        width: 100%;

        min-width: 0;
    }

}


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

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

    body.data-intelligence-page-body .data-intelligence-card,
    body.data-intelligence-page-body .automation-modal,
    body.data-intelligence-page-body .automation-modal-content,
    body.data-intelligence-page-body .automation-modal-close,
    body.data-intelligence-page-body .automation-modal-contact {
        transition: none;
    }


    body.data-intelligence-page-body .data-intelligence-card:hover,
    body.data-intelligence-page-body .automation-modal-close:hover,
    body.data-intelligence-page-body .automation-modal-contact:hover {
        transform: none;
    }

}