* {
    box-sizing: border-box;
}

img,
svg {
    max-width: 100%;
}

:root {
    --vino: #611232;
    --verde: #2e7d5c;
    --gris-fondo: #9d9d9d;
    --texto: #24313b;
    --texto-suave: #5d6c74;
    --borde: rgba(36, 49, 59, 0.12);
    --blanco: #ffffff;
    --sombra: 0 12px 40px rgba(35, 33, 28, 0.18);
    --page-bg-position: center top;
    --page-bg-size: cover;
    --page-bg-attachment: fixed;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
    min-width: 320px;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", Arial, Helvetica, sans-serif;
    color: var(--texto);
    background: #d9d9d9;
    width: 100%;
    min-width: 320px;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.container,
.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
}

.container {
    max-width: 1140px;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.container-fluid {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
}

.row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    display: flex;
    flex-wrap: wrap;
    margin-top: calc(-1 * var(--bs-gutter-y));
    margin-right: calc(-0.5 * var(--bs-gutter-x));
    margin-left: calc(-0.5 * var(--bs-gutter-x));
}

.row > * {
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--bs-gutter-x) * 0.5);
    padding-left: calc(var(--bs-gutter-x) * 0.5);
    margin-top: var(--bs-gutter-y);
}

.g-4 {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
}

.col-12 {
    flex: 0 0 auto;
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid transparent;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.72;
}

.input-group {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.input-group > .form-control {
    position: relative;
    flex: 1 1 auto;
    width: 1%;
    min-width: 0;
}

.form-check-input {
    flex: 0 0 auto;
}

[hidden] {
    display: none !important;
}

@media (min-width: 768px) {
    .col-md-3 {
        flex: 0 0 auto;
        width: 25%;
    }

    .col-md-4 {
        flex: 0 0 auto;
        width: 33.33333333%;
    }

    .col-md-6 {
        flex: 0 0 auto;
        width: 50%;
    }

    .col-md-8 {
        flex: 0 0 auto;
        width: 66.66666667%;
    }
}

.site-navbar {
    background: var(--vino);
    height: 63px;
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.site-navbar__inner {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 1.8rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
}

.site-brand__logo {
    height: 39px;
    width: auto;
}

.main-content {
    position: relative;
    overflow: hidden;
    background: #a6a6a6;
}

.main-content::before,
.main-content::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.main-content::before {
    background:
        url("edificio.png") var(--page-bg-position) / var(--page-bg-size) no-repeat,
        radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.08) 0 0.7px, transparent 1px),
        radial-gradient(circle at 78% 36%, rgba(0, 0, 0, 0.05) 0 0.8px, transparent 1.1px),
        radial-gradient(circle at 34% 72%, rgba(255, 255, 255, 0.06) 0 0.6px, transparent 1px),
        radial-gradient(circle at 62% 84%, rgba(0, 0, 0, 0.05) 0 0.8px, transparent 1.1px);
    background-attachment: var(--page-bg-attachment), scroll, scroll, scroll, scroll;
    background-size: var(--page-bg-size), 12px 12px, 15px 15px, 10px 10px, 14px 14px;
    filter: none;
    opacity: 1;
    mix-blend-mode: normal;
    z-index: 0;
}

.main-content::after {
    background: none;
    opacity: 0;
    z-index: 0;
}

.hero {
    position: relative;
    z-index: 1;
    padding: clamp(0.2rem, 0.7vw, 0.35rem) 0 clamp(0.15rem, 0.5vw, 0.25rem);
    min-height: clamp(205px, 32vw, 435px);
}

.hero__logo-wrap {
    margin-bottom: 0;
    width: 100%;
    min-height: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero__content {
    text-align: center;
    max-width: 100%;
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero__eyebrow {
    margin: 0 0 0.3rem;
    color: #117368 !important;
    font-size: clamp(1rem, 1.2vw, 1.4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.035em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5),
        0 0 2px rgba(255, 255, 255, 0.22),
        0 3px 5px rgba(88, 88, 88, 0.24),
        0 6px 12px rgba(0, 0, 0, 0.12);
}

.hero__title {
    margin: 0;
    color: #117368 !important;
    font-size: clamp(1.5rem, 2.2vw, 2.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-shadow:
        0 1px 0 rgba(255, 255, 255, 0.52),
        0 0 2px rgba(255, 255, 255, 0.24),
        0 3px 5px rgba(88, 88, 88, 0.26),
        0 6px 12px rgba(0, 0, 0, 0.12);
}

.hero__logo {
    display: block;
    width: clamp(220px, 50vw, 680px);
    height: auto;
    margin: 0 auto;
}

.form-shell {
    position: relative;
    z-index: 1;
    margin-top: -0.2rem;
    padding-bottom: 4rem;
    max-width: 1350px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    padding-right: 1rem;
    width: 100%;
    box-sizing: border-box;
}

.stepper {
    display: flex;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
    margin: 0 auto 0.95rem;
    width: min(100%, 740px);
    padding: 0;
    border-radius: 999px;
    background: rgba(21, 87, 76, 0.9);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    overflow: hidden;
}

.stepper__item {
    flex: 1 1 185px;
    min-width: 0;
    padding: 0.84rem 1rem;
    border-radius: 0;
    border: none;
    background: transparent;
    color: rgba(231, 225, 212, 0.68) !important;
    font: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: -0.015em;
}

.stepper__item.is-clickable {
    cursor: pointer;
}

.stepper__item.is-active {
    background: #1b7a69;
    color: var(--blanco) !important;
}

.stepper__item.is-complete {
    color: rgba(231, 225, 212, 0.68) !important;
}

.stepper__label {
    font-size: 0.9rem;
}

.form-card {
    background: rgba(238, 238, 238, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);
    border-radius: 3.1rem;
    box-shadow: 0 20px 46px rgba(30, 34, 38, 0.14);
    padding: 4.1rem 4.55rem 3.25rem;
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.alert-stack {
    min-height: 1px;
}

.alert-stack .alert {
    border-radius: 1rem;
    border: 0;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 22px rgba(49, 43, 39, 0.08);
}

.form-step__header {
    margin-bottom: 3.85rem;
    text-align: center;
}

.form-step__header h2 {
    margin: 0;
    color: #245f51 !important;
    font-size: 3.9rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}

.form-step__header p {
    margin: 0.18rem 0 0;
    color: #111111 !important;
    max-width: none;
    font-size: 0.97rem;
    line-height: 1.28;
}

.form-label {
    margin-bottom: 0.55rem;
    font-weight: 700;
    color: #242a2f !important;
    font-size: 1rem;
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
}

.required {
    color: #c0392b;
}

.form-control {
    display: block;
    width: 100%;
    min-height: 56px;
    border-radius: 0.55rem;
    border: 1px solid rgba(180, 183, 185, 0.86);
    background: rgba(255, 255, 255, 0.7);
    color: var(--texto) !important;
    padding: 0.8rem 1.15rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-control::placeholder {
    color: #686d72 !important;
    opacity: 1;
}

.form-control:focus {
    border-color: var(--verde);
    box-shadow: 0 0 0 0.18rem rgba(46, 125, 92, 0.12);
    background: rgba(255, 255, 255, 0.86);
}

.form-control.is-invalid {
    border-color: #cf4b3d;
    background: #fff5f3;
}

.input-group-custom .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn-search-curp {
    min-width: 132px;
    border-radius: 0 0.9rem 0.9rem 0;
    border: 0;
    background: #245f51;
    margin-left: 0;
    color: #ffffff !important;
    font-size: 0;
    font-weight: 700;
    box-shadow: none;
    padding: 0 0.85rem;
}

.btn-search-curp:hover,
.btn-search-curp:focus,
.btn-search-curp:active,
.btn-search-curp:disabled {
    background: #1f5246;
    color: #ffffff !important;
}

.btn-search-curp__image {
    display: block;
    width: 92px;
    max-width: 100%;
    height: auto;
    pointer-events: none;
}

.form-actions {
    display: flex;
    margin-top: 3rem;
}

.form-actions--center {
    justify-content: center;
}

.form-actions--split {
    justify-content: space-between;
    gap: 1rem;
}

.btn-pill,
.btn-pill-alt {
    min-width: 10rem;
    min-height: 4.1rem;
    border-radius: 999px;
    padding-inline: 3rem;
    font-weight: 700;
    border: 0;
}

.btn-pill {
    background: #245f51;
    color: #ffffff !important;
    font-size: 0.95rem;
    min-width: 270px;
}

.btn-pill,
.btn-pill *,
#submitButton {
    color: #ffffff !important;
}

.btn-pill:hover,
.btn-pill:focus {
    background: #1f5246;
}

#registroForm .row.g-4 {
    --bs-gutter-x: 2.2rem;
    --bs-gutter-y: 1.45rem;
    display: grid !important;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--bs-gutter-x);
    row-gap: var(--bs-gutter-y);
    margin: 0 !important;
}

#registroForm .col-12,
#registroForm .col-md-4,
#registroForm .col-md-6,
#registroForm .col-md-8 {
    display: flex;
    flex-direction: column;
    width: auto !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#registroForm .col-12 {
    grid-column: span 12;
}

#registroForm .col-md-4 {
    grid-column: span 4;
}

#registroForm .col-md-6 {
    grid-column: span 6;
}

#registroForm .col-md-8 {
    grid-column: span 8;
}

.form-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 2.2rem 1.45rem;
    border: 0;
}

.form-table td {
    display: table-cell;
    padding: 0;
    border: 0;
    vertical-align: top;
    white-space: normal;
    float: none;
}

.form-table td > label,
.form-table .form-label {
    display: block;
    width: 100%;
    float: none;
    clear: both;
    margin: 0 0 0.55rem;
    text-align: left;
}

.form-table td > input,
.form-table td > select,
.form-table .form-control {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    float: none;
    clear: both;
    box-sizing: border-box;
}

.form-table .input-group-custom {
    display: flex;
    align-items: stretch;
    width: 100%;
}

.form-table .input-group-custom .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.form-table .input-group-custom .btn-search-curp {
    flex: 0 0 132px;
    width: 132px;
    min-width: 132px;
    white-space: nowrap;
}

.datepicker {
    position: relative;
}

.datepicker__field {
    display: flex;
    align-items: stretch;
    width: 100%;
    border: 4px solid rgba(79, 137, 121, 0.42);
    border-radius: 1rem;
    overflow: visible;
    box-shadow: 0 8px 18px rgba(36, 95, 81, 0.12);
}

.datepicker__input {
    border: 0 !important;
    border-radius: 0.82rem 0 0 0.82rem !important;
    min-height: 60px;
    padding-inline: 1.2rem;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: none !important;
}

.datepicker__input:focus {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: none !important;
}

.datepicker__toggle {
    flex: 0 0 56px;
    width: 56px;
    border: 0;
    border-radius: 0 0.82rem 0.82rem 0;
    background: #245f51;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-image: url("boton.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
    font-size: 0;
    transition: background 0.2s ease;
}

.datepicker__toggle i {
    display: none;
}

.datepicker__toggle:hover,
.datepicker__toggle:focus,
.datepicker__toggle:active,
.datepicker__toggle:disabled {
    background: #1f5246;
    background-image: url("boton.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 22px 22px;
}

.datepicker__field:focus-within {
    border-color: rgba(36, 95, 81, 0.6);
}

.datepicker__panel {
    position: absolute;
    top: calc(100% + 0.1rem);
    left: 0;
    z-index: 30;
    width: min(100%, 24rem);
    background: #ffffff;
    border-radius: 1rem;
    box-shadow: 0 14px 32px rgba(27, 37, 43, 0.16);
    overflow: hidden;
}

.datepicker__header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 0.9rem;
    background: #245f51;
}

.datepicker__nav {
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 1.45rem;
    line-height: 1;
    padding: 0.2rem;
}

.datepicker__selectors {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.35rem;
}

.datepicker__select {
    min-height: 2rem;
    border-radius: 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.15rem 0.65rem;
    box-shadow: none;
}

.datepicker__select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.65);
}

.datepicker__select option {
    color: #24313b;
}

.datepicker__weekdays,
.datepicker__days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.3rem;
    padding-inline: 0.85rem;
}

.datepicker__weekdays {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
}

.datepicker__weekdays span {
    text-align: center;
    font-weight: 800;
    font-size: 0.72rem;
    color: #143b33;
    letter-spacing: 0.04em;
}

.datepicker__days {
    padding-bottom: 0.8rem;
}

.datepicker__day,
.datepicker__day--empty {
    min-height: 2.4rem;
}

.datepicker__day {
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #24313b;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, color 0.2s ease;
}

.datepicker__day:hover,
.datepicker__day:focus {
    background: rgba(36, 95, 81, 0.12);
    color: #143b33;
}

.datepicker__day.is-selected {
    background: #7a163e;
    color: #ffffff;
}

.datepicker__day.is-today:not(.is-selected) {
    box-shadow: inset 0 0 0 2px rgba(36, 95, 81, 0.3);
}

.datepicker__day--empty {
    display: block;
}

.datepicker.is-open .datepicker__input {
    border-radius: 0.82rem 0 0 0 !important;
}

.datepicker.is-open .datepicker__toggle {
    border-radius: 0 0.82rem 0 0 !important;
}

.datepicker .invalid-feedback {
    display: block;
}

.btn-pill-alt {
    background: #d9d9d9;
    color: #333333 !important;
    border: 1px solid #d9d9d9;
}

.btn-pill-alt:hover,
.btn-pill-alt:focus {
    background: #cfcfcf;
    color: #333333 !important;
}

.summary-panel {
    border-radius: 1.5rem;
    padding: 1.8rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.summary-panel__header {
    margin-bottom: 1.2rem;
}

.summary-panel__header h3 {
    margin: 0;
    color: #333333 !important;
}

.summary-panel__header p {
    margin: 0.35rem 0 0;
    color: var(--texto-suave) !important;
    font-size: 0.92rem;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.summary-item {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(216, 216, 216, 0.9);
}

.summary-item strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--texto-suave) !important;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.summary-item span {
    display: block;
    color: var(--texto) !important;
    line-height: 1.45;
    word-break: break-word;
}

.consent-box {
    margin-top: 1.25rem;
    padding: 1.2rem 1.25rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(216, 216, 216, 0.9);
}

.form-check {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    margin: 0;
}

.form-check-input {
    margin-top: 0.25rem;
}

.form-check-label {
    color: var(--texto) !important;
    line-height: 1.5;
}

.success-panel {
    text-align: center;
    padding: 2rem 1rem;
}

.success-panel__icon {
    width: 4.4rem;
    height: 4.4rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(46, 125, 92, 0.14);
    color: var(--verde) !important;
    font-size: 1.7rem;
}

.success-panel h2 {
    margin: 0;
    color: var(--verde) !important;
}

.success-panel p {
    max-width: 34rem;
    margin: 0.75rem auto 0;
    color: var(--texto-suave) !important;
}

.success-panel__email strong {
    color: var(--texto) !important;
}

.main-footer {
    background: var(--vino);
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 2.7rem 0;
    position: relative;
    z-index: 1;
}

.main-footer--image {
    width: 100%;
    max-width: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.footer-image {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    margin: 0;
}

.main-footer h3 {
    font-size: 1.45rem;
    margin: 0 0 1rem;
    color: var(--blanco) !important;
    font-weight: 500;
    letter-spacing: 0.01em;
}

.main-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-footer li + li {
    margin-top: 0.55rem;
}

.main-footer p,
.main-footer li,
.main-footer a {
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.9) !important;
    line-height: 1.45;
}

.main-footer a:hover {
    color: #f6d792 !important;
}

.main-footer a,
.summary-item span,
.form-check-label {
    overflow-wrap: anywhere;
}

.footer-copy {
    color: rgba(255, 255, 255, 0.82) !important;
    line-height: 1.5;
    margin: 0 0 1.9rem;
    max-width: 18rem;
}

.footer-logo {
    max-width: 275px;
    width: 100%;
    height: auto;
}

.footer-social-title {
    margin-top: 1.2rem;
}

.footer-social-title {
    margin-top: 1rem;
    font-size: 1.45rem;
}

.footer-social-list li + li {
    margin-top: 0.25rem;
}

.footer-social-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    font-size: 1.5rem !important;
}

.footer-social-list .fa-youtube {
    font-size: 1.32rem;
}

/* ESCRITORIO GRANDE - 992px y arriba */
@media (min-width: 992px) {
    :root {
        --page-bg-position: center top;
        --page-bg-size: cover;
        --page-bg-attachment: fixed;
    }

    .form-shell {
        max-width: 1350px;
        padding-bottom: 4rem;
    }

    .form-card {
        padding: 4.1rem 4.55rem 3.25rem;
    }

    .stepper {
        width: min(100%, 740px);
        flex-wrap: nowrap;
    }

    .stepper__item {
        flex: 1 1 185px;
        min-width: 0;
        padding: 0.84rem 1rem;
    }

    .main-content {
        background-position: var(--page-bg-position);
        background-size: var(--page-bg-size);
    }
}

/* TABLET - 768px y arriba */
@media (min-width: 768px) and (max-width: 991px) {
    :root {
        --page-bg-position: 52% top;
        --page-bg-size: cover;
        --page-bg-attachment: fixed;
    }

    .form-shell {
        max-width: 900px;
    }

    .stepper {
        width: 100%;
        border-radius: 22px;
        flex-wrap: wrap;
    }

    .stepper__item {
        flex: 1 1 48%;
        text-align: center;
        min-width: 0;
        padding: 0.75rem 0.8rem;
        font-size: 0.75rem;
    }

    .stepper__label {
        font-size: 0.8rem;
    }

    .summary-grid {
        grid-template-columns: 1fr;
    }

    .form-card {
        padding: 2.8rem 2.4rem 2.4rem;
        border-radius: 2.5rem;
    }

    .form-step__header h2 {
        font-size: 2.8rem;
        margin-bottom: 0.8rem;
    }

    .form-step__header {
        margin-bottom: 2.8rem;
    }

    .form-step__header p {
        font-size: 0.92rem;
    }

    .hero {
        min-height: clamp(260px, 34vw, 330px);
        padding: 0.3rem 0 0.2rem;
    }

    .hero__logo {
        width: clamp(270px, 48vw, 460px);
        max-width: 100%;
    }

    .hero__content {
        bottom: 12%;
    }

    .hero__eyebrow {
        font-size: 1.1rem;
    }

    .hero__title {
        font-size: 1.8rem;
    }

    #registroForm .row.g-4 {
        --bs-gutter-x: 1.6rem;
        --bs-gutter-y: 1.2rem;
    }

    .form-label {
        font-size: 0.95rem;
    }

    .form-control {
        min-height: 52px;
        font-size: 0.95rem;
    }

    .btn-pill {
        min-width: 240px;
        min-height: 3.8rem;
        font-size: 0.9rem;
    }

    .main-footer h3 {
        font-size: 0.95rem;
    }

    .main-footer p,
    .main-footer li,
    .main-footer a {
        font-size: 0.8rem;
    }
}

/* MÓVIL - Menos de 768px */
@media (max-width: 767px) {
    :root {
        --page-bg-position: center top;
        --page-bg-size: clamp(720px, 205vw, 940px) auto;
        --page-bg-attachment: scroll;
    }

    html, body {
        overflow-x: hidden;
    }

    .form-shell {
        max-width: 100%;
        padding-left: clamp(0.85rem, 4vw, 1.1rem);
        padding-right: clamp(0.85rem, 4vw, 1.1rem);
        padding-bottom: 2rem;
    }

    .stepper {
        width: 100%;
        border-radius: 16px;
        flex-wrap: wrap;
        margin: 0 auto 0.65rem;
        padding: 0.35rem;
        gap: 0.25rem;
    }

    .stepper__item {
        flex: 1 1 calc(50% - 0.25rem);
        padding: 0.58rem 0.35rem;
        font-size: 0.65rem;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stepper__label {
        font-size: 0.7rem;
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .form-card {
        padding: 1.45rem 1rem 1.35rem;
        border-radius: 1.45rem;
        margin: 0 auto;
        background: rgba(238, 238, 238, 0.65);
    }

    .form-step__header {
        margin-bottom: 1.35rem;
        text-align: center;
    }

    .form-step__header h2 {
        font-size: 1.65rem;
        font-weight: 600;
        margin-bottom: 0.55rem;
        color: #0c6a5f;
    }

    .form-step__header p {
        font-size: 0.83rem;
        color: #111111;
        margin: 0.3rem 0 0;
        line-height: 1.35;
    }

    .form-label {
        font-size: 0.88rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
        color: #242a2f;
    }

    .required {
        color: #c0392b;
    }

    .form-control {
        min-height: 48px;
        border-radius: 0.55rem;
        padding: 0.7rem 0.95rem;
        font-size: 16px;
        border: 1px solid rgba(180, 183, 185, 0.86);
    }

    .form-control::placeholder {
        font-size: 0.88rem;
    }

    .input-group-custom {
        display: flex;
        flex-direction: column;
        gap: 0.6rem;
    }

    .input-group-custom .form-control {
        border-radius: 0.55rem;
        width: 100%;
        flex: 0 0 auto;
    }

    .form-table .input-group-custom .form-control {
        flex: 0 0 auto;
    }

    .form-table .input-group-custom .btn-search-curp {
        flex: 0 0 auto;
        min-width: 0;
    }

    .btn-search-curp {
        width: 100%;
        border-radius: 0.55rem;
        min-height: 48px;
        padding: 0.7rem 1rem;
        font-size: 0.88rem;
        margin-left: 0;
    }

    .btn-pill {
        width: 100%;
        min-width: auto;
        min-height: 44px;
        border-radius: 999px;
        padding: 0.7rem 2rem;
        font-size: 0.9rem;
        font-weight: 700;
    }

    .btn-pill-alt {
        width: 100%;
        min-width: auto;
        min-height: 44px;
    }

    .datepicker__field {
        border-width: 3px;
        border-radius: 0.8rem;
    }

    .datepicker__input {
        min-height: 46px;
        border-radius: 0.62rem 0 0 0.62rem !important;
        font-size: 16px;
    }

    .datepicker__toggle {
        flex-basis: 48px;
        width: 48px;
        border-radius: 0 0.62rem 0.62rem 0;
        background-size: 18px 18px;
    }

    .datepicker__panel {
        width: 100%;
        max-width: 100%;
    }

    .datepicker__header {
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 0.45rem;
        padding: 0.7rem;
    }

    .datepicker__selectors {
        gap: 0.35rem;
    }

    .datepicker__select {
        min-height: 1.9rem;
        font-size: 0.82rem;
        padding-inline: 0.5rem;
    }

    .datepicker__weekdays,
    .datepicker__days {
        gap: 0.2rem;
        padding-inline: 0.55rem;
    }

    .datepicker__day,
    .datepicker__day--empty {
        min-height: 2.15rem;
    }

    #registroForm .row.g-4 {
        --bs-gutter-x: 0.8rem;
        --bs-gutter-y: 0.9rem;
    }

    #registroForm .col-12,
    #registroForm .col-md-4,
    #registroForm .col-md-6,
    #registroForm .col-md-8 {
        display: flex;
        flex-direction: column;
    }

    /* En móvil, los campos de col-md-4 y col-md-6 ocupan todo el ancho */
    #registroForm .col-md-4,
    #registroForm .col-md-6,
    #registroForm .col-md-8 {
        width: 100%;
        max-width: 100%;
    }

    .form-table,
    .form-table tbody,
    .form-table tr,
    .form-table td {
        display: block;
        width: 100%;
    }

    .form-table {
        border-spacing: 0;
    }

    .form-table td + td,
    .form-table tr + tr td:first-child {
        margin-top: 0.9rem;
    }

    .form-actions {
        display: flex;
        flex-direction: column-reverse;
        gap: 0.8rem;
        margin-top: 1.8rem;
    }

    .form-actions--center {
        justify-content: center;
    }

    .form-actions--split {
        justify-content: center;
    }

    .summary-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .summary-panel {
        padding: 1.4rem;
        border-radius: 1.2rem;
    }

    .summary-panel__header {
        margin-bottom: 1rem;
    }

    .summary-panel__header h3 {
        font-size: 0.95rem;
    }

    .summary-panel__header p {
        font-size: 0.8rem;
    }

    .summary-item {
        padding: 0.85rem;
        border-radius: 0.8rem;
    }

    .summary-item strong {
        font-size: 0.75rem;
    }

    .summary-item span {
        font-size: 0.88rem;
    }

    .consent-box {
        padding: 1rem;
        margin-top: 1rem;
        border-radius: 1rem;
    }

    .form-check {
        gap: 0.7rem;
    }

    .form-check-label {
        font-size: 0.85rem;
    }

    .hero {
        padding: 0.2rem 0;
        min-height: clamp(210px, 58vw, 265px);
    }

    .hero__logo-wrap {
        width: 100%;
    }

    .hero__logo {
        width: clamp(210px, 62vw, 285px);
        max-width: 100%;
    }

    .hero__content {
        position: absolute;
        bottom: 10%;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        max-width: 90%;
    }

    .hero__eyebrow {
        font-size: 0.95rem;
        margin-bottom: 0.2rem;
        font-weight: 500;
    }

    .hero__title {
        font-size: 1.4rem;
        line-height: 1.2;
        font-weight: 500;
    }

    .success-panel {
        padding: 1.5rem 1rem;
    }

    .success-panel__icon {
        width: 3.8rem;
        height: 3.8rem;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .success-panel h2 {
        font-size: 1.5rem;
        margin: 0;
    }

    .success-panel p {
        font-size: 0.85rem;
        margin: 0.5rem auto 0;
        max-width: 100%;
    }

    .main-footer {
        padding: 2rem 0;
    }

    .main-footer--image {
        padding: 0;
    }

    .main-footer h3 {
        font-size: 0.9rem;
        margin-bottom: 0.8rem;
    }

    .main-footer ul {
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .main-footer li + li {
        margin-top: 0.4rem;
    }

    .main-footer p,
    .main-footer li,
    .main-footer a {
        font-size: 0.75rem;
    }

    .footer-logo {
        max-width: 120px;
        margin-bottom: 1rem;
    }

    .footer-copy {
        font-size: 0.8rem;
        margin-bottom: 0.6rem;
    }

    .footer-social-title {
        margin-top: 1rem;
        font-size: 0.9rem;
    }


    .site-navbar {
        height: 41px;
    }

    .site-navbar__inner {
        padding: 0 1rem;
    }

    .site-brand__logo {
        height: 28px;
    }

    .main-content {
        background-position: var(--page-bg-position);
        background-size: var(--page-bg-size);
    }

    /* Prevenir saltos al cambiar de tamaño */
    * {
        -webkit-tap-highlight-color: transparent;
    }

    input[type="text"],
    input[type="email"],
    input[type="tel"],
    select,
    textarea {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        font-size: 16px; /* Evita zoom en iOS */
    }

    select {
        background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor"><polyline points="6 9 12 15 18 9"></polyline></svg>');
        background-repeat: no-repeat;
        background-position: right 0.7rem center;
        background-size: 1rem;
        padding-right: 2.5rem;
        cursor: pointer;
    }
}

/* Evitar scroll horizontal en todos los dispositivos */
html {
    overflow-x: hidden;
    width: 100%;
}

body {
    width: 100%;
    overflow-x: hidden;
}

/* PREFERENCIAS DE MOVIMIENTO REDUCIDO */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
