/* ===========================================================
   SIFO — MisCuentasPRO RESICO
   Paleta: blanco, rojo, gris y negro
   =========================================================== */

.resico-page {
    --rs-red: #CD0D0D;
    --rs-red-dark: #a30a0a;
    --rs-black: #141414;
    --rs-gray: #3C3D3D;
    --rs-gray-light: #6b6c6c;
    --rs-white: #FFFFFF;
    --rs-surface: #F5F5F4;
    --rs-border: rgba(20, 20, 20, .09);
    --rs-shadow: 0 20px 45px -20px rgba(20, 20, 20, .30);

    --background-color: #FFFFFF;
    --default-color: #3C3D3D;
    --heading-color: #141414;
    --accent-color: #CD0D0D;
    --surface-color: #FFFFFF;
    --contrast-color: #FFFFFF;
    --heading-font: "Poppins", sans-serif;
    --default-font: "Open Sans", sans-serif;

    font-family: "Open Sans", sans-serif;
    color: var(--rs-gray);
    background: var(--rs-white);
}

.resico-page .dark-background {
    --background-color: #141414;
    --default-color: rgba(255, 255, 255, .78);
    --heading-color: #FFFFFF;
    --surface-color: #232323;
    --contrast-color: #FFFFFF;
}

.resico-page .main h1,
.resico-page .main h2,
.resico-page .main h3 {
    font-family: "Poppins", sans-serif;
    color: var(--rs-black);
    line-height: 1.25;
}

.resico-page .main p {
    line-height: 1.8;
}

.resico-page .main a {
    text-decoration: none;
}

/* BOTONES */

.resico-page .resico-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 29px;
    border-radius: 50px;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all .3s ease;
}

.resico-page .resico-btn--primary {
    background: var(--rs-red);
    color: #fff;
    border-color: var(--rs-red);
    box-shadow: 0 12px 24px -10px rgba(205, 13, 13, .55);
}

.resico-page .resico-btn--primary:hover {
    background: var(--rs-red-dark);
    border-color: var(--rs-red-dark);
    color: #fff;
    transform: translateY(-3px);
}

.resico-page .resico-btn--whatsapp {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.resico-page .resico-btn--whatsapp:hover {
    background: #20b957;
    border-color: #20b957;
    color: #fff;
    transform: translateY(-3px);
}

.resico-page .resico-btn--ghost {
    color: var(--rs-black);
    background: transparent;
    border-color: var(--rs-black);
}

.resico-page .resico-btn--ghost:hover {
    background: var(--rs-black);
    color: #fff;
    transform: translateY(-3px);
}

.resico-page .resico-btn--outline-light {
    color: #fff;
    border-color: rgba(255, 255, 255, .65);
    background: transparent;
}

.resico-page .resico-btn--outline-light:hover {
    background: #fff;
    color: var(--rs-black);
    transform: translateY(-3px);
}

/* HERO */

.resico-hero {
    position: relative;
    overflow: hidden;
    padding: 145px 0 110px;
    background: #fff;
}

.resico-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(720px 440px at 82% 18%,
            rgba(205, 13, 13, .12), transparent 65%),
        radial-gradient(900px 500px at 8% 90%,
            rgba(60, 61, 61, .08), transparent 60%),
        linear-gradient(180deg, #fff 0%, #fafafa 100%);
    pointer-events: none;
}

.resico-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 52px;
}

.resico-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--rs-gray-light);
    margin-bottom: 22px;
    animation: rsFadeUp .7s ease both;
}

.resico-breadcrumbs a {
    color: var(--rs-gray);
}

.resico-breadcrumbs a:hover {
    color: var(--rs-red);
}

.resico-eyebrow {
    display: block;
    color: var(--rs-red);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .4px;
    margin-bottom: 14px;
    animation: rsFadeUp .7s ease .08s both;
}

.resico-page .resico-hero__title {
    font-size: clamp(2.1rem, 3.4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -.7px;
    margin-bottom: 24px;
    animation: rsFadeUp .8s ease .14s both;
}

.resico-hero__title span {
    color: var(--rs-red);
}

.resico-hero__lead {
    font-size: 17px;
    max-width: 540px;
    margin-bottom: 32px;
    color: var(--rs-gray);
    animation: rsFadeUp .8s ease .23s both;
}

.resico-hero__lead strong {
    color: var(--rs-black);
}

.resico-hero__cta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    animation: rsFadeUp .8s ease .34s both;
}

/* LAPTOP */

.resico-hero__visual {
    display: flex;
    justify-content: center;
    min-width: 0;
    animation: rsFadeScale .9s ease .3s both;
}

.resico-laptop {
    width: min(480px, 100%);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.resico-laptop__screen {
    position: relative;
    aspect-ratio: 16 / 10;
    padding: 14px;
    background: #0c0c0c;
    border-radius: 18px;
    box-shadow: var(--rs-shadow);
    transition: transform .35s ease, box-shadow .35s ease;
}

.resico-laptop:hover .resico-laptop__screen {
    transform: translateY(-6px);
    box-shadow: 0 28px 55px -18px rgba(205, 13, 13, .4);
}

.resico-laptop__img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.resico-laptop__play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #0b5fa5;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 39px;
    box-shadow: 0 10px 25px rgba(11, 95, 165, .4);
    animation: rsPulse 1.8s ease-in-out infinite;
}

.resico-laptop__base {
    position: relative;
    width: 108%;
    height: 16px;
    margin-left: -4%;
    background: linear-gradient(180deg, #3c3d3d, #232323);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--rs-shadow);
}

.resico-laptop__base::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #171717;
    border-radius: 0 0 8px 8px;
}

/* MODAL VIDEO */

.resico-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.resico-modal.is-open {
    display: flex;
}

.resico-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 20, 20, .86);
    backdrop-filter: blur(4px);
}

.resico-modal__panel {
    position: relative;
    width: min(880px, 100%);
    padding: 16px;
    background: #141414;
    border-radius: 20px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, .5);
    animation: rsFadeScale .3s ease both;
}

.resico-modal__ratio {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 12px;
}

.resico-modal__ratio iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.resico-modal__close {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--rs-red);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    z-index: 2;
}

/* SECCIONES */

.resico-section {
    padding: 90px 0;
}

.resico-section--muted {
    background: var(--rs-surface);
}

.resico-page .resico-section h2 {
    position: relative;
    font-size: clamp(1.65rem, 2.2vw, 2.1rem);
    font-weight: 700;
    padding-bottom: 18px;
    margin-bottom: 26px;
}

.resico-section h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 56px;
    height: 4px;
    border-radius: 4px;
    background: var(--rs-red);
}

.resico-section__lead {
    color: var(--rs-gray-light);
    font-size: 16px;
    margin-bottom: 32px;
    max-width: 780px;
}

/* QUÉ ES */

.resico-what {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 56px;
    align-items: center;
}

.resico-what__text p {
    margin-bottom: 17px;
}

.resico-what__image img {
    width: 100%;
    border-radius: 26px;
    box-shadow: var(--rs-shadow);
}

/* CARACTERÍSTICAS */

.resico-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.resico-feature {
    background: #fff;
    border: 1px solid var(--rs-border);
    border-radius: 20px;
    padding: 30px 25px;
    transition: transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

.resico-feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--rs-shadow);
    border-color: transparent;
}

.resico-feature__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(205, 13, 13, .09);
    color: var(--rs-red);
    font-size: 24px;
    margin-bottom: 20px;
}

.resico-page .resico-feature h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.resico-feature p {
    font-size: 14px;
    margin: 0;
    color: var(--rs-gray);
}

/* INTRO */

.resico-intro {
    text-align: center;
}

.resico-intro__text {
    max-width: 900px;
    margin: 0 auto 30px;
    font-size: 17px;
}

.resico-intro__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* BENEFICIOS */

.resico-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.resico-benefit {
    position: relative;
    padding: 30px 26px;
    border-radius: 20px;
    border: 1px solid var(--rs-border);
    background: #fff;
    transition: transform .3s ease, box-shadow .3s ease;
}

.resico-benefit:hover {
    transform: translateY(-6px);
    box-shadow: var(--rs-shadow);
}

.resico-benefit__number {
    display: block;
    font-family: "Poppins", sans-serif;
    font-size: 25px;
    font-weight: 800;
    color: var(--rs-red);
    opacity: .75;
    margin-bottom: 18px;
}

.resico-page .resico-benefit h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.resico-benefit p {
    font-size: 14px;
    margin: 0;
}

/* PASOS */

.resico-steps__list {
    list-style: none;
    padding: 0;
    margin: 36px 0 0;
}

.resico-steps__item {
    display: flex;
    align-items: flex-start;
    gap: 23px;
    padding: 24px 6px;
    border-bottom: 1px solid var(--rs-border);
}

.resico-js .resico-steps__item {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .6s ease, transform .6s ease;
}

.resico-js .resico-steps__item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.resico-steps__item:last-child {
    border-bottom: 0;
}

.resico-steps__num {
    display: flex;
    flex: 0 0 46px;
    justify-content: center;
    align-items: center;
    height: 46px;
    border-radius: 50%;
    background: var(--rs-black);
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    transition: background .3s ease;
}

.resico-steps__item:hover .resico-steps__num {
    background: var(--rs-red);
}

.resico-page .resico-steps__item h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 7px;
}

.resico-steps__item p {
    margin: 0;
    font-size: 15px;
}

.resico-steps__tutorial {
    margin-top: 26px;
    text-align: center;
}

.resico-steps__tutorial a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--rs-red);
    font-weight: 700;
    transition: color .2s ease;
}

.resico-steps__tutorial a:hover {
    color: var(--rs-red-dark);
}

/* REPORTES */

.resico-reports {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.resico-report {
    padding: 30px 27px;
    background: #fff;
    border-radius: 20px;
    border-top: 4px solid var(--rs-red);
    box-shadow: var(--rs-shadow);
    transition: transform .3s ease;
}

.resico-report:hover {
    transform: translateY(-5px);
}

.resico-report__icon {
    display: block;
    margin-bottom: 16px;
    font-size: 30px;
    color: var(--rs-red);
}

.resico-page .resico-report h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 12px;
}

.resico-report p {
    font-size: 14px;
    margin: 0;
}

/* RÉGIMEN GENERAL */

.resico-other__box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    padding: 42px;
    border-radius: 24px;
    background: #fafafa;
    border: 1px solid var(--rs-border);
}

.resico-other__label {
    display: block;
    color: var(--rs-red);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}

.resico-page .resico-other h2 {
    font-size: 22px;
    padding: 0;
    margin-bottom: 12px;
}

.resico-other h2::after {
    display: none;
}

.resico-other p {
    margin: 0;
}

.resico-other .resico-btn {
    flex-shrink: 0;
}

/* CIERRE */

.resico-closing {
    background: var(--rs-black);
    text-align: center;
}

.resico-page .resico-closing h2 {
    max-width: 800px;
    margin: 0 auto 20px;
    color: #fff;
}

.resico-closing h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.resico-closing p {
    color: rgba(255, 255, 255, .8);
    max-width: 690px;
    margin: 0 auto 30px;
    font-size: 17px;
}

.resico-closing__cta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
}

.resico-closing__links {
    margin-top: 42px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    font-size: 13px;
}

.resico-closing__links span {
    color: rgba(255, 255, 255, .65);
}

.resico-closing__links a {
    color: #fff;
}

.resico-closing__links a:hover {
    color: #ff7777;
}

/* ANIMACIONES */

@keyframes rsFadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes rsFadeScale {
    from {
        opacity: 0;
        transform: scale(.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes rsPulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 10px 25px rgba(11, 95, 165, .5),
            0 0 0 0 rgba(11, 95, 165, .3);
    }

    50% {
        transform: translate(-50%, -50%) scale(1.12);
        box-shadow: 0 14px 30px rgba(11, 95, 165, .6),
            0 0 0 14px rgba(11, 95, 165, .05);
    }
}

/* RESPONSIVO */

@media (max-width: 991px) {

    .resico-hero {
        padding: 120px 0 80px;
    }

    .resico-hero__grid {
        grid-template-columns: 1fr;
        gap: 45px;
        text-align: center;
    }

    .resico-breadcrumbs,
    .resico-hero__cta {
        justify-content: center;
    }

    .resico-hero__lead {
        max-width: 100%;
    }

    .resico-what {
        grid-template-columns: 1fr;
    }

    .resico-what__image {
        order: -1;
        max-width: 650px;
        margin: 0 auto;
    }

    .resico-features,
    .resico-benefits,
    .resico-reports {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .resico-other__box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 575px) {

    .resico-hero {
        padding: 25px 0 65px;
    }

    .resico-breadcrumbs {
        margin-bottom: 8px;
    }

    .resico-page .resico-hero__title {
        font-size: 2rem;
    }

    .resico-hero__lead {
        font-size: 15px;
    }

    .resico-hero__cta,
    .resico-intro__cta,
    .resico-closing__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .resico-section {
        padding: 64px 0;
    }

    .resico-features,
    .resico-benefits,
    .resico-reports {
        grid-template-columns: 1fr;
    }

    .resico-feature,
    .resico-benefit,
    .resico-report {
        padding: 25px 22px;
    }

    .resico-steps__item {
        gap: 15px;
    }

    .resico-other__box {
        padding: 26px 22px;
    }

    .resico-other .resico-btn {
        width: 100%;
    }

    .resico-modal__close {
        top: -47px;
        right: 0;
    }

    .resico-modal__panel {
        padding: 8px;
    }
}

/* ACCESIBILIDAD */

.resico-laptop:focus-visible,
.resico-btn:focus-visible,
.resico-modal__close:focus-visible {
    outline: 3px solid var(--rs-red);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .resico-page *,
    .resico-page *::before,
    .resico-page *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    .resico-js .resico-steps__item {
        opacity: 1 !important;
        transform: none !important;
    }
}














/* =====================================================
   FACTURACIÓN ELECTRÓNICA
   Ajustes exclusivos para facturacion-electronica.php
   ===================================================== */

.facturacion-page .resico-hero__visual {
    align-items: center;
}

.facturacion-page .resico-hero__visual .resico-what__image {
    width: 100%;
    max-width: 530px;
    margin: 0 auto;
}

.facturacion-page .resico-hero__visual picture {
    display: block;
    width: 100%;
}

.facturacion-page .resico-hero__visual img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 22px 48px -20px rgba(20, 20, 20, .28);
    transition: transform .35s ease, box-shadow .35s ease;
}

.facturacion-page .resico-hero__visual img:hover {
    transform: translateY(-5px);
    box-shadow: 0 28px 55px -20px rgba(205, 13, 13, .25);
}

/* Enlaces dentro de tarjetas PAC */
.facturacion-page .resico-report a {
    color: #CD0D0D;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.facturacion-page .resico-report a:hover {
    color: #a30a0a;
    text-decoration: underline;
}

.facturacion-page .resico-report p+p {
    margin-top: 14px;
}

/* Ajustes móviles */
@media (max-width: 575px) {

    .facturacion-page .resico-hero__visual {
        margin-top: 5px;
    }

    .facturacion-page .resico-hero__visual img {
        border-radius: 18px;
    }

}





/* HEADER Y FOOTER — GRIS #3D3D3D */

body.resico-page #header.header.dark-background,
body.resico-page #footer.footer.dark-background {
    --background-color: #3D3D3D !important;
    background: #3D3D3D !important;
    background-color: #3D3D3D !important;
}

/* Mantener el mismo fondo en las secciones internas */
body.resico-page #header .topbar,
body.resico-page #footer .footer-top,
body.resico-page #footer .footer-bottom,
body.resico-page #footer .copyright {
    --background-color: #3D3D3D !important;
    background: #3D3D3D !important;
}