/*
 * EME Red Landing — Responsive layout v1.1.0
 * El bloque full-bleed usa márgenes calculados en lugar de left:50%,
 * evitando que los estilos globales del tema de WordPress lo desplacen.
 */

html.eme-red-page-active,
html.eme-red-page-active body {
    max-width: 100%;
    overflow-x: clip;
}

/* Se añaden por JS únicamente a los contenedores que envuelven la landing. */
.eme-red-layout-ancestor {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    grid-column: 1 / -1 !important;
    overflow: visible !important;
}

.eme-red-lp,
.eme-red-lp * {
    box-sizing: border-box;
}

.eme-red-lp {
    --eme-teal: #25b4aa;
    --eme-teal-dark: #128b84;
    --eme-mint: #dff4f1;
    --eme-ink: #30363a;
    --eme-muted: #6e777c;
    --eme-line: rgba(48, 54, 58, 0.13);
    --eme-white: #ffffff;

    position: relative !important;
    left: auto !important;
    right: auto !important;
    clear: both;
    display: block;
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    padding: 0 !important;
    overflow: hidden;
    background: #ffffff;
    color: var(--eme-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    line-height: 1.5;
    text-align: left;
    isolation: isolate;
}

.eme-red-lp h1,
.eme-red-lp h2,
.eme-red-lp h3,
.eme-red-lp p,
.eme-red-lp ul,
.eme-red-lp li,
.eme-red-lp figure {
    max-width: none;
    font-family: inherit;
    text-transform: none;
}

.eme-red-lp img {
    display: block;
    max-width: 100%;
    height: auto;
}

.eme-red-lp a {
    text-decoration: none;
}

.eme-red-shell {
    width: calc(100% - clamp(24px, 5vw, 72px));
    max-width: 1200px;
    min-width: 0;
    margin-right: auto !important;
    margin-left: auto !important;
}

.eme-red-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 14px;
    color: var(--eme-teal-dark);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.eme-red-eyebrow::before {
    content: "+";
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 7px;
    background: var(--eme-mint);
    font-size: 19px;
    line-height: 1;
}

.eme-red-hero {
    position: relative;
    min-height: 740px;
    display: grid;
    align-items: center;
    padding: clamp(46px, 6vw, 80px) 0 92px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.99) 0%, rgba(255, 255, 255, 0.93) 43%, rgba(255, 255, 255, 0.22) 75%),
        var(--eme-hero) center / cover no-repeat,
        #f7fbfa;
}

.eme-red-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
    gap: clamp(34px, 4.6vw, 68px);
    align-items: center;
}

.eme-red-hero__copy,
.eme-red-form-card {
    min-width: 0;
}

.eme-red-logo {
    width: 145px;
    max-height: 86px;
    object-fit: contain;
    object-position: left center;
    margin: 0 0 30px;
}

.eme-red-hero h1 {
    max-width: 760px;
    margin: 0;
    color: var(--eme-ink);
    font-size: clamp(42px, 4.65vw, 68px);
    font-weight: 500;
    line-height: 0.99;
    letter-spacing: -0.055em;
    overflow-wrap: normal;
}

.eme-red-hero h1 span {
    color: var(--eme-teal-dark);
}

.eme-red-lead {
    max-width: 650px !important;
    margin: 22px 0 0;
    color: var(--eme-muted);
    font-size: clamp(17px, 1.65vw, 21px);
}

.eme-red-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.eme-red-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 13px 22px;
    background: var(--eme-teal-dark);
    color: #ffffff !important;
    font: inherit;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(18, 139, 132, 0.22);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.eme-red-button:hover,
.eme-red-button:focus-visible {
    transform: translateY(-2px);
    background: #0d7771;
    box-shadow: 0 18px 34px rgba(18, 139, 132, 0.29);
}

.eme-red-button--light {
    border: 1px solid var(--eme-line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--eme-ink) !important;
    box-shadow: none;
}

.eme-red-button--white {
    background: #ffffff;
    color: var(--eme-teal-dark) !important;
    box-shadow: none;
}

.eme-red-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 27px;
}

.eme-red-chips span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(18, 139, 132, 0.18);
    border-radius: 999px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.86);
    color: #4b5459;
    font-size: 13px;
    font-weight: 750;
    backdrop-filter: blur(8px);
}

.eme-red-chips span::before {
    content: "✓";
    color: var(--eme-teal-dark);
}

.eme-red-form-card {
    width: 100%;
    max-width: 440px;
    justify-self: end;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 28px 70px rgba(30, 51, 54, 0.18);
    backdrop-filter: blur(16px);
}

.eme-red-kicker {
    margin: 0 0 8px;
    color: var(--eme-teal-dark) !important;
    font-size: 12px !important;
    font-weight: 850;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.eme-red-form-card h2 {
    margin: 0 0 8px;
    color: var(--eme-ink);
    font-size: clamp(27px, 2.55vw, 35px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.eme-red-form-card > p {
    margin: 0 0 20px;
    color: var(--eme-muted);
}

.eme-red-alert {
    margin: 0 0 18px;
    border-radius: 14px;
    padding: 13px 15px;
    font-size: 14px;
    font-weight: 750;
}

.eme-red-alert--success {
    background: #e3f8f1;
    color: #0e6d54;
}

.eme-red-alert--error {
    background: #fff0f0;
    color: #9a3232;
}

.eme-red-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 13px;
}

.eme-red-form label {
    display: grid;
    min-width: 0;
    gap: 7px;
    margin: 0;
}

.eme-red-form label > span:first-child {
    color: #485157;
    font-size: 13px;
    font-weight: 800;
}

.eme-red-form input,
.eme-red-form select,
.eme-red-form textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    border: 1px solid rgba(47, 52, 56, 0.15);
    border-radius: 13px;
    outline: none;
    padding: 11px 13px;
    background: #ffffff;
    color: var(--eme-ink);
    font: inherit;
    box-shadow: none;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

.eme-red-form textarea {
    min-height: 86px;
    resize: vertical;
}

.eme-red-form input:focus,
.eme-red-form select:focus,
.eme-red-form textarea:focus {
    border-color: var(--eme-teal);
    box-shadow: 0 0 0 4px rgba(36, 181, 170, 0.12);
}

.eme-red-form__wide {
    grid-column: 1 / -1;
}

.eme-red-consent {
    display: flex !important;
    align-items: flex-start;
    grid-template-columns: auto 1fr !important;
    gap: 9px !important;
    color: var(--eme-muted);
    font-size: 12px;
}

.eme-red-consent input {
    width: 17px;
    height: 17px;
    min-height: 17px;
    margin-top: 2px;
    accent-color: var(--eme-teal-dark);
}

.eme-red-consent a {
    color: var(--eme-teal-dark);
    text-decoration: underline;
}

.eme-red-form small {
    color: var(--eme-muted);
    text-align: center;
}

.eme-red-honeypot {
    position: absolute !important;
    left: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.eme-red-stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: -42px;
}

.eme-red-stats article {
    min-width: 0;
    min-height: 148px;
    display: grid;
    align-content: center;
    border: 1px solid var(--eme-line);
    border-radius: 22px;
    padding: 22px;
    background: #ffffff;
    box-shadow: 0 18px 46px rgba(47, 52, 56, 0.08);
}

.eme-red-stats strong {
    color: var(--eme-teal-dark);
    font-size: clamp(30px, 3.4vw, 46px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.eme-red-stats span {
    margin-top: 8px;
    color: var(--eme-muted);
    font-size: 14px;
    font-weight: 750;
}

.eme-red-section {
    padding: clamp(72px, 7.5vw, 100px) 0;
}

.eme-red-section--soft {
    background: #f6faf9;
}

.eme-red-section__header {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 40px;
    align-items: end;
    margin-bottom: 40px;
}

.eme-red-section__header h2,
.eme-red-split-card h2,
.eme-red-location h2 {
    margin: 0;
    color: var(--eme-ink);
    font-size: clamp(36px, 4.4vw, 58px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.047em;
}

.eme-red-section__header > p,
.eme-red-split-card__content > p,
.eme-red-location__copy > p {
    margin: 0;
    color: var(--eme-muted);
    font-size: 18px;
}

.eme-red-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.eme-red-cards article {
    min-width: 0;
    border: 1px solid var(--eme-line);
    border-radius: 22px;
    padding: 27px;
    background: #ffffff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.eme-red-cards article:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(47, 52, 56, 0.09);
}

.eme-red-cards article > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px;
    background: var(--eme-mint);
    color: var(--eme-teal-dark);
    font-size: 24px;
    font-weight: 900;
}

.eme-red-cards h3 {
    margin: 18px 0 8px;
    color: var(--eme-ink);
    font-size: 21px;
    line-height: 1.15;
}

.eme-red-cards p {
    margin: 0;
    color: var(--eme-muted);
}

.eme-red-split-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 560px;
    overflow: hidden;
    border: 1px solid var(--eme-line);
    border-radius: 28px;
    background: #ffffff;
}

.eme-red-split-card__media {
    min-height: 480px;
    background: center / cover no-repeat var(--eme-mint);
}

.eme-red-split-card__content {
    min-width: 0;
    display: grid;
    align-content: center;
    padding: clamp(32px, 5vw, 68px);
}

.eme-red-split-card__content > p {
    margin-top: 18px;
}

.eme-red-split-card ul {
    display: grid;
    gap: 12px;
    margin: 26px 0;
    padding: 0;
    list-style: none;
}

.eme-red-split-card li {
    display: flex;
    gap: 11px;
    color: #485157;
    font-weight: 750;
}

.eme-red-split-card li::before {
    content: "✓";
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 50%;
    background: var(--eme-mint);
    color: var(--eme-teal-dark);
    font-size: 13px;
}

.eme-red-split-card .eme-red-button {
    justify-self: start;
}

.eme-red-location {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 42px;
    align-items: center;
}

.eme-red-location__copy {
    min-width: 0;
}

.eme-red-location__copy > p {
    margin: 20px 0 25px;
}

.eme-red-map-wrap {
    min-width: 0;
    min-height: 480px;
    overflow: hidden;
    border: 1px solid var(--eme-line);
    border-radius: 27px;
    background: var(--eme-mint);
    box-shadow: 0 24px 60px rgba(47, 52, 56, 0.12);
}

.eme-red-map-wrap iframe {
    display: block;
    width: 100%;
    height: 480px;
    border: 0;
}

.eme-red-faq {
    display: grid;
    gap: 12px;
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.eme-red-faq details {
    border: 1px solid var(--eme-line);
    border-radius: 18px;
    padding: 0 20px;
    background: #ffffff;
}

.eme-red-faq summary {
    display: flex;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    color: var(--eme-ink);
    font-size: 17px;
    font-weight: 800;
    list-style: none;
}

.eme-red-faq summary::-webkit-details-marker {
    display: none;
}

.eme-red-faq summary::after {
    content: "+";
    color: var(--eme-teal-dark);
    font-size: 28px;
    font-weight: 400;
}

.eme-red-faq details[open] summary::after {
    content: "−";
}

.eme-red-faq details p {
    margin: -2px 0 20px;
    color: var(--eme-muted);
}

.eme-red-final {
    position: relative;
    padding: 92px 0;
    background:
        linear-gradient(90deg, rgba(18, 139, 132, 0.97), rgba(36, 181, 170, 0.87)),
        var(--eme-building) center / cover no-repeat;
    color: #ffffff;
}

.eme-red-final__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 32px;
    align-items: center;
}

.eme-red-final .eme-red-eyebrow {
    color: #ffffff;
}

.eme-red-final .eme-red-eyebrow::before {
    background: rgba(255, 255, 255, 0.2);
}

.eme-red-final h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(39px, 4.7vw, 62px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.eme-red-final p {
    max-width: 680px !important;
    margin: 18px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 18px;
}

.eme-red-final .eme-red-button {
    justify-self: end;
}

.eme-red-footer {
    padding: 25px 0 92px;
    color: var(--eme-muted);
    font-size: 12px;
    text-align: center;
}

.eme-red-floating-cta {
    position: fixed;
    right: max(16px, env(safe-area-inset-right));
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 9998;
    display: inline-flex;
    min-height: 56px;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    padding: 10px 19px 10px 10px;
    background: var(--eme-teal-dark);
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 850;
    box-shadow: 0 16px 38px rgba(18, 139, 132, 0.35);
    animation: emePulse 2.8s ease-in-out infinite;
    transition: transform 0.2s ease, background 0.2s ease;
}

.eme-red-floating-cta:hover,
.eme-red-floating-cta:focus-visible {
    transform: translateY(-3px);
    background: #0d7771;
    animation: none;
}

.eme-red-floating-cta__icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    font-size: 24px;
    font-weight: 400;
}

@keyframes emePulse {
    0%,
    65%,
    100% {
        box-shadow: 0 16px 38px rgba(18, 139, 132, 0.35);
    }

    78% {
        box-shadow:
            0 16px 38px rgba(18, 139, 132, 0.35),
            0 0 0 12px rgba(36, 181, 170, 0.12);
    }
}

/* Laptop pequeño y tablet horizontal */
@media (max-width: 1120px) {
    .eme-red-hero {
        min-height: auto;
        padding: 44px 0 82px;
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.86), #f7fbfa 62%),
            var(--eme-hero) center top / cover no-repeat;
    }

    .eme-red-hero__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 36px;
    }

    .eme-red-hero__copy {
        max-width: 820px;
    }

    .eme-red-form-card {
        max-width: 760px;
        justify-self: start;
    }

    .eme-red-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: -32px;
    }

    .eme-red-section__header,
    .eme-red-location,
    .eme-red-final__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .eme-red-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eme-red-split-card {
        grid-template-columns: minmax(0, 1fr);
    }

    .eme-red-split-card__media {
        min-height: 430px;
    }

    .eme-red-final .eme-red-button {
        justify-self: start;
    }
}

/* Tablet vertical */
@media (max-width: 768px) {
    .eme-red-shell {
        width: calc(100% - 30px);
    }

    .eme-red-hero h1 {
        font-size: clamp(40px, 9vw, 56px);
    }

    .eme-red-form {
        grid-template-columns: minmax(0, 1fr);
    }

    .eme-red-form__wide {
        grid-column: auto;
    }

    .eme-red-section__header {
        gap: 20px;
        margin-bottom: 30px;
    }

    .eme-red-cards {
        grid-template-columns: minmax(0, 1fr);
    }

    .eme-red-map-wrap,
    .eme-red-map-wrap iframe {
        min-height: 390px;
        height: 390px;
    }
}

/* Celular */
@media (max-width: 540px) {
    .eme-red-shell {
        width: calc(100% - 24px);
    }

    .eme-red-hero {
        padding: 30px 0 72px;
    }

    .eme-red-logo {
        width: 126px;
        margin-bottom: 22px;
    }

    .eme-red-hero h1 {
        font-size: clamp(38px, 11.5vw, 48px);
        line-height: 1;
    }

    .eme-red-lead {
        font-size: 17px;
    }

    .eme-red-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .eme-red-actions .eme-red-button {
        width: 100%;
    }

    .eme-red-form-card {
        border-radius: 22px;
        padding: 21px;
    }

    .eme-red-stats {
        gap: 9px;
    }

    .eme-red-stats article {
        min-height: 125px;
        padding: 17px;
    }

    .eme-red-section {
        padding: 68px 0;
    }

    .eme-red-split-card {
        border-radius: 22px;
    }

    .eme-red-split-card__media {
        min-height: 320px;
    }

    .eme-red-split-card__content {
        padding: 31px 22px;
    }

    .eme-red-map-wrap,
    .eme-red-map-wrap iframe {
        min-height: 330px;
        height: 330px;
    }

    .eme-red-final {
        padding: 66px 0;
    }

    .eme-red-footer {
        padding-bottom: 100px;
    }

    .eme-red-floating-cta {
        right: 12px;
        bottom: 12px;
        min-height: 52px;
        padding: 8px 16px 8px 8px;
    }
}

@media (max-width: 390px) {
    .eme-red-stats {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eme-red-lp *,
    .eme-red-lp *::before,
    .eme-red-lp *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}
