/* =====================================================
   Registro de empresas — estilos de la página pública
   ===================================================== */

/* ---------- Fuentes y tipografía base ---------- */
.rg-font { font-family: "Quicksand", sans-serif; font-weight: bold; }

.rg-titulo   { font-size: 28px; letter-spacing: 1px; color: #080838; line-height: 1.2; }
.rg-subtitulo { font-size: 20px; letter-spacing: 1px; color: #080838; }
.rg-texto    { font-size: 15px; color: #080838; font-family: "Quicksand", sans-serif; font-weight: bold; }

/* ---------- Colores de marca ---------- */
.rg-bg-primario  { background-color: #5FC2C9; }
.rg-bg-secundario { background-color: #3E7891; }
.rg-bg-oscuro    { background-color: #080838; }

/* ---------- Body ---------- */
.rg-body {
    background: #F4F7F8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* ---------- Header ---------- */
.rg-header {
    padding: 12px 0;
}

.rg-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.rg-header__logo {
    height: 50px;
    width: auto;
}

.rg-select-idioma,
.rg-select-periodo {
    background-color: #080838;
    border: 1px solid transparent;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.rg-select-idioma:focus,
.rg-select-periodo:focus,
.rg-select-idioma:hover,
.rg-select-periodo:hover {
    border-color: #5FC2C9;
    outline: none;
    color: #fff;
    background-color: #080838;
}

/* ---------- Contenido principal ---------- */
.rg-main {
    flex: 1;
    padding: 32px 0;
}

/* ---------- Step indicator ---------- */
.rg-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 32px;
    padding: 0 16px;
}

.rg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    max-width: 100px;
    position: relative;
}

.rg-step__circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #CAD3D8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    font-family: "Quicksand", sans-serif;
    position: relative;
    z-index: 1;
    transition: background 0.3s;
}

.rg-step__label {
    margin-top: 6px;
    font-size: 11px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #9AA5AF;
    text-align: center;
    transition: color 0.3s;
}

/* Línea conectora entre pasos */
.rg-step + .rg-step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: calc(-50% + 18px);
    right: calc(50% + 18px);
    height: 2px;
    background: #CAD3D8;
    transition: background 0.3s;
}

/* Estado activo */
.rg-step.active .rg-step__circle {
    background: #5FC2C9;
    box-shadow: 0 0 0 4px rgba(95, 194, 201, 0.2);
}

.rg-step.active .rg-step__label {
    color: #5FC2C9;
}

/* Estado completado */
.rg-step.completed .rg-step__circle {
    background: #28a745;
}

.rg-step.completed .rg-step__label {
    color: #28a745;
}

.rg-step.completed + .rg-step::before {
    background: #28a745;
}

/* ---------- Card contenedor del paso ---------- */
.rg-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(8, 8, 56, 0.08);
    overflow: hidden;
}

/* ---------- PASO 1: Plan ---------- */

.rg-plan-header {
    background: #5FC2C9;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.rg-plan-header__nombre {
    font-size: 22px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #fff;
    letter-spacing: 2px;
    margin: 0;
}

.rg-plan-header__precio {
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #fff;
    text-align: right;
}

.rg-plan-header__precio .rg-precio-valor {
    font-size: 32px;
    line-height: 1;
}

.rg-plan-header__precio .rg-precio-moneda {
    font-size: 16px;
    opacity: 0.9;
}

.rg-plan-header__periodo {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 6px 12px;
}

.rg-plan-header__periodo label {
    color: #fff;
    font-size: 13px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    margin: 0;
}

/* Sección de características */
.rg-features {
    padding: 0;
}

.rg-features__title {
    background: #080838;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
}

.rg-feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #E6EAED;
    gap: 12px;
}

.rg-feature-row:nth-child(even) { background: #F4F7F8; }
.rg-feature-row:nth-child(odd)  { background: #fff; }

.rg-feature-row__label {
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
    flex: 1;
}

.rg-feature-row__valor {
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #3E7891;
    text-align: right;
    min-width: 60px;
}

/* Sección add-ons */
.rg-addons__title {
    background: #3E7891;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
}

.rg-addon-row {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    border-bottom: 1px solid #E6EAED;
    gap: 12px;
    flex-wrap: wrap;
}

.rg-addon-row:nth-child(even) { background: #F4F7F8; }
.rg-addon-row:nth-child(odd)  { background: #fff; }

.rg-addon-row__label {
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
    flex: 1;
    min-width: 140px;
}

.rg-addon-row__control {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rg-addon-row__precio {
    font-size: 13px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #5FC2C9;
    min-width: 72px;
    text-align: right;
}

/* Botones +/- de add-ons */
.rg-btn-qty {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #5FC2C9;
    background: #fff;
    color: #5FC2C9;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    padding: 0;
}

.rg-btn-qty:hover {
    background: #5FC2C9;
    color: #fff;
}

.rg-qty-valor {
    min-width: 24px;
    text-align: center;
    font-size: 15px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
}

/* Resumen de precio */
.rg-resumen__title {
    background: #080838;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 20px;
}

.rg-resumen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #E6EAED;
    background: #fff;
}

.rg-resumen-row--total {
    background: #F4F7F8;
    padding: 14px 20px;
}

.rg-resumen-row__label {
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
}

.rg-resumen-row--total .rg-resumen-row__label {
    font-size: 16px;
}

.rg-resumen-row__valor {
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #3E7891;
}

.rg-resumen-row--total .rg-resumen-row__valor {
    font-size: 20px;
    color: #080838;
}

/* ---------- PASO 2 y 3: Email y datos ---------- */
.rg-step-section {
    padding: 28px 24px;
}

.rg-step-section__titulo {
    font-size: 20px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
    margin-bottom: 20px;
    text-align: center;
}

.rg-form-label {
    font-size: 14px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
    margin-bottom: 4px;
    display: block;
}

.rg-form-control {
    border: 1px solid #CAD3D8;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 14px;
    width: 100%;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.rg-form-control:focus {
    border-color: #5FC2C9;
    box-shadow: 0 0 0 3px rgba(95, 194, 201, 0.2);
    outline: none;
}

/* ---------- PASO 4: Resumen facturación ---------- */
.rg-resumen-fact {
    padding: 28px 24px;
}

.rg-resumen-fact__titulo {
    font-size: 20px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    color: #080838;
    text-align: center;
    margin-bottom: 20px;
}

.rg-resumen-fact__plan-nombre {
    text-align: center;
    font-size: 14px;
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    background: #5FC2C9;
    padding: 8px 16px;
    border-radius: 6px 6px 0 0;
}

/* ---------- Botones de navegación ---------- */
.rg-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-top: 1px solid #E6EAED;
    background: #fff;
}

.rg-nav-buttons--right {
    justify-content: flex-end;
}

/* ---------- Footer ---------- */
.rg-footer {
    padding: 40px 0 16px;
}

.rg-footer__divider {
    border-top: 4px solid #fff;
    margin-bottom: 16px;
}

.rg-footer__titulo-seccion {
    color: #fff;
    font-size: 18px;
    font-family: "Quicksand", sans-serif;
    font-weight: bold;
    margin-bottom: 12px;
}

.rg-footer__info {
    color: #fff;
    font-family: "Quicksand", sans-serif;
    font-size: 14px;
    line-height: 1.8;
}

.rg-footer__info a {
    color: #5FC2C9;
}

.rg-btn-social {
    border: 2px solid #fff;
    background: #fff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #080838;
    margin-right: 8px;
    transition: background 0.2s, color 0.2s;
}

.rg-btn-social:hover {
    background: #5FC2C9;
    border-color: #5FC2C9;
    color: #fff;
}

.rg-footer__firma {
    text-align: center;
    font-size: 13px;
    font-family: "Quicksand", sans-serif;
    color: rgba(255,255,255,0.6);
    margin-top: 24px;
}

/* ---------- Responsividad ---------- */
@media (max-width: 575px) {
    .rg-plan-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .rg-plan-header__precio {
        text-align: left;
    }

    .rg-plan-header__periodo {
        width: 100%;
        justify-content: center;
    }

    .rg-addon-row {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .rg-addon-row__label {
        width: 100%;
        min-width: unset;
        margin-bottom: 6px;
    }

    .rg-addon-row__control {
        flex: 1;
        justify-content: center;
    }

    .rg-addon-row__precio {
        text-align: center;
        flex: 1;
    }

    .rg-nav-buttons {
        padding: 12px 16px;
    }

    .rg-step__label {
        font-size: 10px;
    }

    .rg-step__circle {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }

    .rg-step + .rg-step::before {
        top: 15px;
    }

    .rg-step-section {
        padding: 20px 16px;
    }

    .rg-resumen-fact {
        padding: 20px 16px;
    }
}
