/* Sección «CTA de contacto» (tema hijo) — prefijo exclusivo .rys-cta para no chocar con Elementor ni el tema. */
.rys-cta {
    --rys-cta-blue: #00329b;
    --rys-cta-yellow: #ffd000;
    --rys-cta-dark: #111111;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 480px;
    background: var(--rys-cta-blue);
    color: #ffffff;
    font-family: 'Chivo', 'Helvetica Neue', Arial, sans-serif;
    box-sizing: border-box;
}

.rys-cta *,
.rys-cta *::before,
.rys-cta *::after { box-sizing: border-box; }

/* Imagen a sangre: en absoluto para que nunca dicte el alto (evita bucles de relayout en Safari móvil). */
.rys-cta__media {
    position: relative;
    overflow: hidden;
    background: #0b1f5c;
}

.rys-cta .rys-cta__img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
}

/* ---------- Contenido ---------- */
.rys-cta__content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(48px, 6vw, 88px) clamp(24px, 5vw, 72px);
}

.rys-cta__box {
    max-width: 480px;
    text-align: center;
}

.rys-cta .rys-cta__title {
    margin: 0 0 20px;
    padding: 0;
    font-family: inherit;
    font-size: clamp(26px, 2.6vw, 36px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    color: #ffffff;
}

.rys-cta .rys-cta__text {
    margin: 0 auto 32px;
    max-width: 440px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
}

.rys-cta .rys-cta__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 32px;
    border-radius: 4px;
    background: var(--rys-cta-dark);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.rys-cta .rys-cta__btn:hover,
.rys-cta .rys-cta__btn:focus-visible {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
}

.rys-cta .rys-cta__btn:focus-visible {
    outline: 2px solid var(--rys-cta-yellow);
    outline-offset: 3px;
}

.rys-cta .rys-cta__note {
    margin: 14px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: var(--rys-cta-yellow);
}

.rys-cta .screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
    .rys-cta { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); min-height: 420px; }
}

/* Móvil: imagen arriba con alto fijo (vw no cambia con la barra del navegador), contenido debajo. */
@media (max-width: 767px) {
    .rys-cta { grid-template-columns: 1fr; min-height: 0; }
    .rys-cta__media { height: clamp(240px, 68vw, 400px); min-height: 0; }
    .rys-cta__content { padding: 40px 20px 48px; }
    .rys-cta .rys-cta__text { font-size: 15px; margin-bottom: 28px; }
    .rys-cta .rys-cta__btn { display: flex; width: 100%; max-width: 360px; margin: 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
    .rys-cta .rys-cta__btn { transition: none; }
}
