body {
    line-height: var(--line-height-primary);
}
.hero-section {
    background: linear-gradient(rgba(23, 23, 23, 0.85), rgba(38, 38, 38, 0.75)), 
            url('https://images.unsplash.com/photo-1585464231875-d9ef1f5ad396?auto=format&fit=crop&w=1600&q=80');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    margin-top: 60px;
}
.layout-hero {
    display: flex;
    width: 100%;
    max-width: 1100px;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}
.hero-side-text {
    flex: 1.2;
}
.hero-side-text h1 {
    color: var(--two-font-color);
}
.hero-side-text p {
    color: var(--two-font-color);
    margin: 30px 0;
}
.scroll-btn {
    display: inline-block;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 2px solid #ffffff; 
    padding-bottom: 4px;
    transition: 0.5s;
}
.scroll-btn:hover { 
    opacity: 0.8;
}
.form-side {
    flex: 0.9;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Diseño de tarjeta para el formulario */
.form-container {
    display: block;
    text-align: center;
    background: var(--one-bg-color);
    padding: 1px;
    border-radius: var(--two-border-radius);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    width: auto;
}
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--three-font-color);
    margin: 20px 0 0 0;
    font-size: var(--font-size-min);
}
.divider::before, .divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--two-border-color);
}
.divider:not(:empty)::before { margin-right: 1em; }
.divider:not(:empty)::after { margin-left: 1em; }

.divider a {
    font-weight: 700;
    color: var(--three-font-color);
}

/* Sección slider */
.tag-section {
    background-color: #ffffff;
    padding: 80px 40px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}
.tag-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
}
.tag-header {
    text-align: center;
}
.tag-header.margin {
    margin: 0 0 10px 0;
}
.tag-header p {
    margin: 10px 0 40px 0;
}
.slider-tag {
    overflow: hidden;
    width: 100%;
    border-radius: var(--two-border-radius);
    background: var(--three-bg-color);
    position: relative;
}
.slider-container {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
}
.slider {
    min-width: 100%;
    display: flex;
    align-items: center;
    gap: 40px;
    box-sizing: border-box;
    padding: 0 40px 0 40px;
}
.slider-img {
    flex: 1;
}
.slider-img img {
    width: 100%;
    max-width: 450px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.flip-container {
    perspective: 1000px;
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}
.flipper {
    transition: transform 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    position: relative;
    width: 100%;
}
.flip-container.is-flipped .flipper {
    transform: rotateY(180deg);
}
.flip-front, .flip-back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    width: 100%;
    top: 0;
    left: 0;
}
.flip-front {
    z-index: 2;
    transform: rotateY(0deg);
}
.flip-back {
    position: absolute;
    transform: rotateY(180deg);
}
.flip-back img {
    width: 100%;
    border-radius: 18px;
    display: block;
}
.btn-flip {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e5e5;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}
.btn-flip:hover {
    background-color: #d4d4d4;
}
.slider-txt {
    flex: 1;
}
.slider-txt h2 {
    font-weight: 300;
    margin: 5px 0 20px 0;
}
#demoBtnWrapper {
    display: none; 
    text-align: center; 
    margin: 20px 0 0 0;
}
.demo {
    font-size: var(--font-size-h4);
}
.slider-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}
.slider-nav-btn {
    background-color: #ffffff;
    color: #000000;
    border: 1px solid #e5e5e5;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.slider-nav-btn:hover {
    background-color: #000000;
    color: #ffffff;
    border-color: #000000;
}
.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #e5e5e5;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}
.dot.active {
    background-color: #000000;
    transform: scale(1.2);
}

/* Sección perfiles */
.profiles-section {
    background: var(--three-bg-color);
    padding: 80px 40px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.card-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}
.card {
    background: transparent;
    width: 100%;
    max-width: 480px;
    height: 500px;
    perspective: 1000px;
    border-radius: 24px;
    transition: height 0.4s ease;
}

/* Bloquea el ajuste de altura en escritorio (invalida el estilo en línea de JS) para Perfiles y Planes */
@media (min-width: 877px) {
    .card, .plan-card {
        height: 500px !important; 
    }
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 24px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.06);
}
.card.is-flipped .card-inner {
    transform: rotateY(180deg);
}
.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: #ffffff;
    border-radius: var(--two-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.card-front {
    padding: 0;
}
.card-front img {
    margin: auto;
    width: 350px;
    height: auto;
}
.card-info {
    padding: 30px 40px;
    flex-grow: 1;
}
.card-info h2 {
    margin-bottom: 10px;
    font-weight: 300;
}
.plus-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e5e5e5;
    border: none;
    font-size: 24px;
    font-weight: 300;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
    z-index: 10;
}
.plus-btn:hover {
    background-color: #d4d4d4;
}
/* Solución específica para Safari: Ocultar explícitamente el botón frontal tras el giro */
.card.is-flipped .card-front .plus-btn {
    opacity: 0;
    pointer-events: none;
}
.card-back {
    transform: rotateY(180deg);
    /* Se redujo el padding-bottom a 50px */
    padding: 20px 30px 50px 30px;
    overflow-y: auto;
}
.card-back h4 {
    margin: 0 0 20px 0;
}
.card-back ul {
    list-style: none;
    padding: 0;
}
.card-back li {
    margin-bottom: 18px;
}
/* Elimina el margen inferior extra del último elemento para quitar el espacio en blanco */
.card-back li:last-child {
    margin-bottom: 0;
}
.card-back li strong {
    color: #000000;
    display: block;
    margin-bottom: 4px;
}

/* Sección funciones */
.funcs-section {
    padding: 80px 40px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.funcs-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
}
.funcs-header {
    text-align: center;
}
.funcs-slider-wrapper {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.funcs-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    width: 100%;
    gap: 24px;
}

.func-card {
    margin: 40px 0 0 0;
    min-width: 100%;
    background-color: var(--three-bg-color);
    border-radius: var(--two-border-radius);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 370px;
    box-sizing: border-box;
    overflow: hidden;
}
.func-content {
    max-width: 600px;
    padding: 40px 0 40px 40px;
    flex: 1;
}
.image-wrapper {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    height: 100%;
    flex: 1;
}
.func-img {
    max-height: 100%;
    object-fit: contain;
    object-position: bottom right;
    display: block;
}
.img-step-1 { width: 260px; padding-right: 0; }
.img-step-2 { width: 330px; padding-right: 30px; }
.img-step-3 { width: 280px; padding-right: 30px; }

.func-steps {
    color: #666666;
    text-transform: uppercase;
    font-weight: 600;
}
.func-content h2 {
    font-weight: 300;
    margin: 5px 0 20px 0;
}
.funcs-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 20px;
}
.f-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #666666;
    border: none;
    cursor: pointer;
    transition: width 0.3s ease, background-color 0.3s ease, border-radius 0.3s ease;
}
.f-dot.active {
    width: 24px;
    border-radius: 4px;
    background-color: #000000;
}

/* Sección planes */
.plans-section {
    background: var(--three-bg-color);
    padding: 80px 40px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.plans-container {
    width: 100%;
    max-width: 1100px;
    position: relative;
}
.plans-header {
    text-align: center;
}
.plans-header p {
    margin: 10px 0 40px 0;
}
.plans-grid {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
}
.plan-card {
    background: transparent;
    width: 100%;
    max-width: 480px;
    height: 500px;
    perspective: 1000px;
    border-radius: 24px;
    transition: height 0.4s ease;
}
.plan-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0.2, 0.2, 1);
    transform-style: preserve-3d;
    border-radius: 24px;
}
.plan-card.is-flipped .plan-inner {
    transform: rotateY(180deg);
}
.plan-front, .plan-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    background-color: var(--two-font-color);
    border-radius: var(--two-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 40px;
}
.plan-front {
    align-items: center;
    justify-content: center;
    text-align: center;
}
.plan-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
}
.plan-info p {
    margin-bottom: 20px;
}
.pricing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
}
.price-block {
    display: flex;
    align-items: center;
}
.price-amount {
    font-size: var(--font-size-h3);
    font-weight: 300;
    color: var(--one-font-color);
}
.price-details {
    display: flex;
    flex-direction: column;
    text-align: left;
    margin-left: 6px;
    justify-content: center;
}
.price-details span {
    font-size: var(--font-size-min);
    line-height: var(--line-height-secundary);
}
.price-separator {
    font-size: 1.6rem;
    font-weight: 400;
    color: #000000;
    margin: 0 15px;
}
.plan-back {
    transform: rotateY(180deg);
    background-color: var(--two-font-color);
    overflow-y: auto;
    padding: 30px 40px;
}
.plan-back h4 {
    margin: 0 0 20px 0;
}
.plan-back ul {
    list-style: none;
    padding: 0;
}
.plan-back li {
    margin-bottom: 18px;
}
.button-info {
    background: var(--four-bg-color);
}
.button-info:hover {
    opacity: 0.8;
    transition: 0.5s;
    background: var(--four-bg-color);
}
.plan-front .button-info,
.plan-back .button-info {
    align-self: center;
    margin-top: auto;
}
.plans-footer {
    margin-top: 50px;
    text-align: center;
}
.plans-footer p {
    font-size: var(--font-size-min);
    color: var(--five-font-color);
    max-width: 700px;
    margin: 0 auto;
}

/* Sección incentivo */
.incentive-section {
    background-color: #ffffff;
    padding: 80px 40px 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.inc-box {
    width: 100%;
    max-width: 1100px;
    background: var(--three-bg-color);
    border-radius: var(--two-border-radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 40px;
    gap: 40px;
    box-sizing: border-box;
}
.inc-info {
    flex: 1;
    max-width: 500px;
}
.inc-info h2 {
    margin: 10px 0 20px 0;
}
.inc-info p b {
    color: #000000;
    font-weight: 600;
}
.inc-info span {
    font-size: 0.9rem;
    color: #666666;
}
.inc-link {
    color: #0071e3;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.3s;
    margin-top: 20px;
}
.inc-link:hover {
    opacity: 0.8;
}
.inc-link span {
    font-size: 1.2rem;
    margin-left: 6px;
    color: #0071e3;
    font-weight: 400;
}
.inc-media {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.inc-pic {
    width: 100%;
    max-width: 400px;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 100%;
}

/* Sección preguntas frecuentes */
.faqs-section {
    background-color: #ffffff;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.faqs-section h2 {
    text-align: center;
    letter-spacing: -0.02em;
}
.faqs-wrapper {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    margin: 30px 0 0 0;
}
.faqs-wrapper details {
    border-bottom: 1px solid #e5e5e5;
    padding: 20px 0;
    transition: background-color 0.3s ease;
}
.faqs-wrapper details:first-child {
    border-top: 1px solid #e5e5e5;
}
.faqs-wrapper summary {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--one-font-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
}
.faqs-wrapper summary::-webkit-details-marker {
    display: none;
}
.faqs-wrapper summary::after {
    content: "+";
    font-size: 1.5rem;
    font-weight: 300;
    color: #888888;
    transition: transform 0.3s ease;
}
.faqs-wrapper details[open] summary::after {
    transform: rotate(45deg);
}
.faqs-wrapper details[open] summary {
    color: #000000;
}
.faqs-wrapper p {
    margin-top: 20px;
    line-height: var(--line-height-tertiary);
}

@media (max-width: 876px) {
    /* Sección funciones */
    .funcs-header h1 {
        font-size: var(--fonts-h1);
    }
    .func-content h2 {
        font-size: var(--fonts-h2);
    }
    .image-wrapper {
        width: 100%;
        justify-content: center;
    }
    .step-one {
        justify-content: right;
    }
    .img-step-1 { width: 180px; padding-right: 0; }
    .img-step-2 { width: 200px; padding-right: 0; }
    .img-step-3 { width: 170px; padding-right: 0; }

    /* Sección perfiles */
    .tag-header h1 {
        font-size: var(--fonts-h1);
    }
    .card-info h2 {
        font-size: var(--fonts-h2);
    }

    /* Sección tag premium */
    .tag-header h1 {
        font-size: var(--fonts-h1);
    }
    .slider-txt h2 {
        font-size: var(--fonts-h2);
    }

    /* Sección planes */
    .plans-header h1 {
        font-size: var(--fonts-h1);
    }
    .plan-info h2 {
        font-size: var(--fonts-h2);
    }

    /* Sección incentivo */
    .inc-info h2 {
        font-size: var(--fonts-h2);
    }
    .plans-footer p {
        margin: -20px 0;
    }

    /* Sección preguntas frecuentes */
    .faqs-section h2 {
        font-size: var(--fonts-h2);
    }
    .hero-side-text h1 {
        font-size: var(--fonts-h1);
    }
    .hero-section {
        margin-top: 0;
    }
    .layout-hero {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    .slider {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        gap: 30px;
    }
    .card {
        height: 520px;
    }
    .card-info {
        padding: 20px;
    }
    .card-back {
        /* Se redujo el padding-bottom a 50px */
        padding: 20px 20px 50px 20px;
    }
    
    .func-card {
        height: auto;
        min-height: 400px;
        align-items: flex-start;
        flex-direction: column;
        padding: 0;
    }
    .func-content {
        padding: 20px;
        max-width: 100%;
    }
    .func-img {
        object-position: bottom center;
    }
    
    .plan-card {
        height: 300px;
    }
    .plan-front, .plan-back {
        padding: 30px 20px;
    }
    .price-amount {
        font-size: 1.8rem;
    }
    .price-separator {
        font-size: 1.4rem;
        margin: 0 10px;
    }
    .inc-box {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
        gap: 10px;
    }
    .inc-info {
        max-width: 100%;
    }
    .inc-link {
        justify-content: center;
    }
    .faqs-section {
        padding: 60px 24px;
    }
    .faqs-wrapper summary {
        font-size: 1.1rem;
    }
    .funcs-section, 
    .profiles-section,
    .tag-section,
    .plans-section,
    .incentive-section {
        padding: 80px 30px 80px 30px;
    }
}