/* ==========================================================
   LAS ARTES LIMA — HOME · CSS CONSOLIDADO
   Divi 5 controla: estructura, tipografía, espaciados, colores,
   bordes y estados Flotar simples.
   Este archivo controla: componentes reutilizables, motion,
   pseudo-elementos, comportamiento padre→hijo y accesibilidad.
========================================================== */

:root {
    --lal-orange: #ff4e25;
    --lal-black: #171717;
    --lal-cream: #f7f3ee;
    --lal-white: #ffffff;
    --lal-gray-text: #68625e;
    --lal-gray-border: #ded8d2;
    --lal-ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================
   UTILIDADES EDITORIALES
========================================================== */

.lal-heading h1,
.lal-heading h2,
.lal-heading h3,
.lal-hero-title h1 {
    margin: 0;
}

.lal-hero-title h1 em {
    color: var(--lal-orange);
    font-weight: 400;
    display: inline-block;
    transform-origin: left center;
}

.lal-pill,
.lal-card-label {
    display: inline-flex !important;
    width: auto !important;
}

.lal-text-link a {
    color: var(--lal-black) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--lal-black);
    padding-bottom: 6px;
    display: inline-flex;
    gap: 12px;
    align-items: center;
}

.lal-text-link a span {
    transition: transform .25s var(--lal-ease);
}

@media (hover: hover) {
    .lal-text-link a:hover span {
        transform: translateX(4px);
    }
}

/* ==========================================================
   HERO
========================================================== */

.lal-hero {
    position: relative;
    overflow: hidden;
}

/* Capa adicional existente para conservar el look actual.
   El gradiente principal sigue configurado en Divi 5. */
.lal-hero::before {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .20);
    z-index: 1;
    pointer-events: none;
}

.lal-hero .et_pb_row {
    position: relative;
    z-index: 2;
}

.lal-hero .et_pb_section_video_bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 50%;
}

.hero-card {
    transition:
        transform .35s var(--lal-ease),
        box-shadow .35s var(--lal-ease);
    will-change: transform;
}

.hero-card h2 {
    margin: 0;
}

@media (hover: hover) {
    .hero-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 28px 70px rgba(0, 0, 0, .20);
    }
}

/* Los colores Normal / Flotar de estos dos botones se controlan en Divi. */
.hero-btn-primary,
.hero-btn-secondary {
    transition: transform .30s var(--lal-ease);
}

@media (hover: hover) {
    .hero-btn-primary:hover,
    .hero-btn-secondary:hover {
        transform: translateY(-2px);
    }
}

/* ==========================================================
   COMPONENTE GLOBAL · FLECHA CIRCULAR
========================================================== */

.lal-arrow-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.lal-arrow-btn .et_pb_button,
.lal-arrow-btn a {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    margin: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    border: 1px solid var(--lal-black) !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: var(--lal-black) !important;

    line-height: 1 !important;
    text-align: center !important;
    text-indent: -1px;
    padding-top: 1px !important;

    transition:
        transform .28s var(--lal-ease),
        background-color .28s ease,
        border-color .28s ease,
        color .28s ease !important;
}

@media (hover: hover) {
    .lal-arrow-btn:hover .et_pb_button,
    .lal-arrow-btn .et_pb_button:hover,
    .lal-arrow-btn:hover a {
        background: var(--lal-orange) !important;
        border-color: var(--lal-orange) !important;
        color: var(--lal-black) !important;
        transform: translateY(-2px);
    }

    .hero-card:hover .hero-card-arrow .et_pb_button,
    .hero-card:hover .hero-card-arrow a {
        background: var(--lal-orange) !important;
        border-color: var(--lal-orange) !important;
        color: var(--lal-black) !important;
        transform: translate(2px, -2px);
    }
}

.lal-arrow-btn:focus-within .et_pb_button,
.lal-arrow-btn:focus-within a {
    outline: 2px solid var(--lal-orange);
    outline-offset: 3px;
}

/* ==========================================================
   CARRUSEL DE ÁREAS · DEBAJO DEL HERO
========================================================== */

.lal-marquee-shell {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
    background: var(--lal-orange);
    position: relative;
}

.lal-marquee {
    width: 100%;
    overflow: hidden;
    background: var(--lal-orange);
}

.lal-marquee-track {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    width: max-content;
    animation: lal-marquee-infinite 34s linear infinite;
    will-change: transform;
}

.lal-marquee-set {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    flex: none;
    gap: 24px;
    padding: 0 12px;
    min-height: 62px;
}

.lal-marquee a {
    display: inline-flex;
    align-items: center;
    flex: none;
    white-space: nowrap;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    color: var(--lal-black) !important;
    text-decoration: none !important;
    transition:
        opacity .25s ease,
        transform .25s var(--lal-ease);
}

.lal-marquee-separator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    color: var(--lal-black);
    font-size: 7px;
    line-height: 1;
    opacity: .72;
}

@media (hover: hover) {
    .lal-marquee a:hover {
        color: var(--lal-black) !important;
        opacity: .55;
        transform: translateY(-1px);
    }

    .lal-marquee:hover .lal-marquee-track {
        animation-play-state: paused;
    }
}

@keyframes lal-marquee-infinite {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(-50%, 0, 0); }
}

@media (max-width: 980px) {
    .lal-marquee-set {
        min-height: 58px;
        gap: 22px;
        padding: 0 11px;
    }

    .lal-marquee a { font-size: 16px; }
    .lal-marquee-track { animation-duration: 30s; }
}

@media (max-width: 767px) {
    .lal-marquee-set {
        min-height: 54px;
        gap: 19px;
        padding: 0 10px;
    }

    .lal-marquee a { font-size: 15px; }
    .lal-marquee-separator { font-size: 6px; }
    .lal-marquee-track { animation-duration: 26s; }
}

/* ==========================================================
   METODOLOGÍA LAL
========================================================== */

.lal-metodo-grid {
    position: relative;
    width: 100%;
}

.lal-metodo-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        rgba(255, 78, 37, .10) 0%,
        rgba(255, 255, 255, .15) 18%,
        rgba(255, 255, 255, .15) 82%,
        rgba(255, 78, 37, .10) 100%
    );
    z-index: 0;
    pointer-events: none;
}

.lal-step {
    position: relative;
    z-index: 1;
    transition:
        transform .35s var(--lal-ease),
        opacity .35s ease;
}

.lal-step-icon {
    position: relative;
    z-index: 2;
    background:
        linear-gradient(rgba(255, 78, 37, .08), rgba(255, 78, 37, .08)),
        var(--lal-black) !important;
    box-shadow: 0 0 0 6px var(--lal-black);
    transition:
        transform .35s var(--lal-ease),
        background .35s ease,
        border-color .35s ease,
        box-shadow .35s ease;
}

.lal-step-num,
.lal-step-num p {
    color: var(--lal-orange) !important;
}

.lal-step-num {
    transition: transform .35s var(--lal-ease);
}

.lal-step-title,
.lal-step-title h3 {
    transition:
        color .35s ease,
        transform .35s var(--lal-ease);
}

.lal-step-desc,
.lal-step-desc p {
    transition:
        color .35s ease,
        opacity .35s ease;
}

.lal-metodo-btn {
    transition:
        transform .35s var(--lal-ease),
        box-shadow .35s ease,
        filter .35s ease;
}

@media (hover: hover) {
    .lal-metodo-grid:hover .lal-step { opacity: .76; }

    .lal-metodo-grid:hover .lal-step:hover {
        opacity: 1;
        transform: translateY(-7px);
    }

    .lal-step:hover .lal-step-icon {
        transform: translateY(-3px) scale(1.06);
        background:
            linear-gradient(rgba(255, 78, 37, .16), rgba(255, 78, 37, .16)),
            var(--lal-black) !important;
        border-color: rgba(255, 78, 37, .65) !important;
        box-shadow:
            0 0 0 6px var(--lal-black),
            0 15px 34px rgba(255, 78, 37, .17);
    }

    .lal-step:hover .lal-step-num { transform: translateY(-2px); }

    .lal-step:hover .lal-step-title h3 {
        color: var(--lal-orange) !important;
        transform: translateY(-1px);
    }

    .lal-step:hover .lal-step-desc p {
        color: var(--lal-cream) !important;
    }

    .lal-metodo-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 14px 34px rgba(255, 78, 37, .23);
        filter: brightness(1.03);
    }
}

@media (max-width: 980px) {
    .lal-metodo-grid::before { display: none; }
    .lal-metodo-grid:hover .lal-step { opacity: 1; }
}

@media (hover: none) {
    .lal-metodo-grid:hover .lal-step { opacity: 1; }
    .lal-step:hover { transform: none; }
    .lal-step:hover .lal-step-icon {
        transform: none;
        box-shadow: 0 0 0 6px var(--lal-black);
    }
    .lal-step:hover .lal-step-title h3 {
        color: var(--lal-white) !important;
        transform: none;
    }
}
/* ==========================================================
   METODOLOGÍA · TABLET · ETAPA 05 A FILA COMPLETA
========================================================== */

@media (min-width: 768px) and (max-width: 980px) {

    .lal-metodo-grid > :nth-child(5) {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
    }

}

/* ==========================================================
   RUTAS CREATIVAS
========================================================== */

.lal-route-card {
    transition:
        transform .30s var(--lal-ease),
        border-color .30s ease;
}

@media (hover: hover) {
    .lal-route-card:hover {
        transform: translateY(-4px);
    }
}

/* ==========================================================
   COMUNIDAD CREATIVA
========================================================== */

.lal-project-card {
    position: relative;
    overflow: hidden;
    transition:
        transform .35s var(--lal-ease),
        box-shadow .35s ease;
    will-change: transform;
}

@media (hover: hover) and (min-width: 981px) {
    .lal-project-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 22px 50px -34px rgba(23, 23, 23, .45);
    }
}

/* ==========================================================
   ORIENTACIÓN ACADÉMICA · FORMULARIO
========================================================== */

.lal-orienta-form {
    font-family: Poppins, Arial, sans-serif;
    color: var(--lal-black);
}

.lal-orienta-form .field { margin-bottom: 18px; }

.lal-orienta-form label {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.lal-orienta-form input,
.lal-orienta-form select {
    width: 100%;
    border: 0;
    border-bottom: 1px solid var(--lal-black);
    background: transparent;
    padding: 7px 0 9px;
    font: 500 12px/1.4 Poppins, Arial, sans-serif;
    color: var(--lal-black);
    outline: none;
    border-radius: 0;
}

.lal-orienta-form select { appearance: auto; }

.lal-orienta-form input:focus,
.lal-orienta-form select:focus {
    border-bottom-color: var(--lal-orange);
}

.lal-orienta-form .consent {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    margin: 18px 0 20px;
    font-size: 9px;
    line-height: 1.5;
}

.lal-orienta-form .consent input {
    width: auto;
    margin-top: 2px;
}

.lal-orienta-form button {
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--lal-black);
    color: var(--lal-white);
    padding: 13px 18px;
    font: 700 10px/1.2 Poppins, Arial, sans-serif;
    letter-spacing: .8px;
    cursor: pointer;
    transition:
        background-color .25s ease,
        transform .25s var(--lal-ease);
}

@media (hover: hover) {
    .lal-orienta-form button:hover {
        background: var(--lal-orange);
        color: var(--lal-black);
        transform: translateY(-1px);
    }
}

@media (max-width: 767px) {
    /* Evita zoom automático de Safari/iOS al enfocar campos. */
    .lal-orienta-form input,
    .lal-orienta-form select {
        font-size: 16px;
    }
}

/* ==========================================================
   ACCESIBILIDAD · REDUCIR MOVIMIENTO
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-card,
    .hero-btn-primary,
    .hero-btn-secondary,
    .lal-arrow-btn .et_pb_button,
    .lal-arrow-btn a,
    .lal-text-link a span,
    .lal-step,
    .lal-step-icon,
    .lal-step-num,
    .lal-step-title,
    .lal-step-title h3,
    .lal-step-desc,
    .lal-step-desc p,
    .lal-metodo-btn,
    .lal-route-card,
    .lal-project-card,
    .lal-orienta-form button {
        transition: none !important;
    }

    .hero-card:hover,
    .hero-btn-primary:hover,
    .hero-btn-secondary:hover,
    .lal-arrow-btn:hover .et_pb_button,
    .lal-arrow-btn:hover a,
    .lal-step:hover,
    .lal-step:hover .lal-step-icon,
    .lal-step:hover .lal-step-num,
    .lal-step:hover .lal-step-title h3,
    .lal-metodo-btn:hover,
    .lal-route-card:hover,
    .lal-project-card:hover,
    .lal-orienta-form button:hover {
        transform: none !important;
    }

    .lal-marquee {
        overflow-x: auto;
    }

    .lal-marquee-track {
        animation: none;
    }
}