/* ================================================================
   1. BASE GENERAL
   ================================================================ */

html,
body {
    overflow-x: hidden;
}

.visual-side {
    display: none !important;
}

.main-container:not(.full-page) {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: var(--gris-fondo);
    overflow: visible;
}

.content-side {
    width: 100%;
    max-width: 1180px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ================================================================
   2. FUENTES Y ELEMENTOS GENERALES
   ================================================================ */

h1,
h2,
h3,
.brand-name-hero,
.btn-primary,
.btn-secondary,
.btn-link,
.about-cta,
.method-cta {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

p,
li,
.subtitle,
.landing-description,
.important-note,
.method-hero-description {
    font-family: 'Nunito Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.text-green {
    color: var(--verde);
}

.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.btn-link:focus-visible,
.about-cta:focus-visible,
.method-cta:focus-visible {
    outline: 3px solid rgba(24, 199, 154, 0.45);
    outline-offset: 4px;
}

/* ================================================================
   CLASE MODIFICADORA PARA BOTONES ESTÁTICOS
   ================================================================ */

.btn-static {
    pointer-events: none;
    cursor: default;
    background: transparent;
}

.btn-secondary.btn-static:hover {
    background: transparent;
    color: var(--morado);
    transform: none;
}

/* ================================================================
   3. SECCIÓN LINKTREE CON FONDO
   ================================================================ */

.linktree-background {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 36px 14px 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    background:
        linear-gradient(180deg,
            rgba(255, 255, 255, 0.78) 0%,
            rgba(255, 255, 255, 0.54) 45%,
            #f3fffb 100%),
        url("img/fondo.jpg");
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
}


/* ================================================================
   4. CARD LINKTREE
   ================================================================ */

.hero-card {
    width: 100%;
    max-width: 440px;
    padding: 32px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(81, 54, 130, 0.12);
    box-shadow: none;
    text-align: center;
    position: relative;
    z-index: 1;
}

.linktree-card {
    margin-top: 0;
}

.profile-img-slot {
    width: 105px;
    height: 105px;
    background: var(--blanco);
    border-radius: 50%;
    margin: 0 auto 20px;
    border: 4px solid var(--morado);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    box-shadow: none;
}

.profile-logo {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.brand-name-hero {
    color: var(--morado);
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.subtitle {
    color: var(--verde);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.subtitle-main {
    margin-bottom: 15px;
}

.divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.divider span {
    width: 60px;
    height: 2px;
    background: var(--morado);
    opacity: 0.5;
}

.divider .dot {
    width: 8px;
    height: 8px;
    background: var(--verde);
    border-radius: 50%;
}

.card-message {
    color: var(--morado);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    margin: -8px 0 26px;
    text-align: center;
}


/* ================================================================
   5. BOTONES LINKTREE
   ================================================================ */

.link-tree {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-link {
    width: 100%;
    min-height: 56px;
    padding: 13px 16px;
    border-radius: 14px;
    border: 2px solid #eeeeee;
    background: #ffffff;
    color: var(--morado);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.btn-icon {
    width: 25px;
    height: 25px;
    object-fit: contain;
    flex-shrink: 0;
}

.btn-label {
    flex: 1;
    line-height: 1.3;
}

.btn-arrow {
    color: var(--morado);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
    opacity: 0.85;
    transition: transform 0.3s ease, color 0.3s ease;
}

.btn-link:hover {
    background: var(--verde);
    color: #ffffff;
    border-color: var(--verde);
    transform: translateY(-2px);
}

.btn-link:hover .btn-arrow {
    color: #ffffff;
    transform: translateX(4px);
}

.btn-link:hover .btn-icon {
    filter: brightness(0) invert(1);
}


/* ================================================================
   6. BLOQUE VERDE
   ================================================================ */

.green-page-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #f3fffb;
    padding: 44px 16px 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.green-page-section::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    background: linear-gradient(to bottom,
            rgba(243, 255, 251, 0) 0%,
            rgba(243, 255, 251, 0.75) 20%,
            #eefcf8 40%,
            #f3f8fb 68%,
            #f7f3ff 100%);
}


/* ================================================================
   7. HERO PRINCIPAL
   ================================================================ */

.landing-hero {
    width: 100%;
    max-width: 760px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
    text-align: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
}

.landing-hero-content {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.landing-hero h1 {
    max-width: 720px;
    margin: 0 auto 22px;
    color: #181818;
    font-size: 2.15rem;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.landing-description {
    max-width: 680px;
    margin: 0 auto 28px;
    color: #2d2d2d;
    font-size: 0.98rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    width: 100%;
    min-width: unset;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 22px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1.2;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.btn-primary {
    background: var(--morado);
    color: #ffffff;
    border: 2px solid var(--morado);
}

.btn-primary:hover {
    background: var(--verde);
    border-color: var(--verde);
    transform: translateY(-2px);
}

.btn-secondary {
    background: #ffffff;
    color: var(--morado);
    border: 2px solid rgba(81, 54, 130, 0.18);
}

.btn-secondary:hover {
    background: var(--morado);
    color: #ffffff;
    border-color: var(--morado);
    transform: translateY(-2px);
}


/* ================================================================
   8. IMAGEN HERO PRINCIPAL
   ================================================================ */

.landing-hero-media {
    position: relative;
    width: 100%;
    max-width: 320px;
    justify-self: center;
    padding: 10px;
    border-radius: 24px;
}

.landing-hero-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(24, 199, 154, 0.12);
    border-radius: 24px;
    transform: rotate(-2deg);
    z-index: 0;
}

.landing-hero-media::after {
    content: "";
    position: absolute;
    width: 72px;
    height: 72px;
    right: -8px;
    bottom: -8px;
    background: rgba(81, 54, 130, 0.10);
    border-radius: 50%;
    z-index: 0;
}

.landing-hero-media img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center top;
    display: block;
    border-radius: 20px;
    border: 1px solid rgba(81, 54, 130, 0.12);
}


/* ================================================================
   9. ¿QUIÉN SOY?
   ================================================================ */

.info-section {
    width: 100%;
    max-width: 760px;
    text-align: left;
}

.green-about.info-section {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 1120px;
    margin-top: 72px;
}

.about-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
}

.about-copy {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

.about-copy h2,
.info-section h2 {
    color: #181818;
    font-size: 1.75rem;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.green-about .about-copy h2 {
    max-width: 620px;
    font-size: 2rem;
    line-height: 1.12;
}

.about-intro,
.info-section p {
    color: #2d2d2d;
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.green-about .about-copy .about-intro {
    max-width: 560px;
    margin-bottom: 0;
}


/* ================================================================
   10. CARDS DE ¿QUIÉN SOY?
   ================================================================ */

.about-highlights {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 0;
}

.highlight-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(81, 54, 130, 0.11);
    box-shadow: none;
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.highlight-item::before {
    grid-row: 1 / span 2;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(24, 199, 154, 0.12);
    color: var(--verde);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Montserrat', 'Segoe UI', sans-serif;
    font-size: 0.8rem;
    font-weight: 900;
}

.highlight-item:nth-child(1)::before {
    content: "01";
}

.highlight-item:nth-child(2)::before {
    content: "02";
}

.highlight-item:nth-child(3)::before {
    content: "03";
}

.highlight-item h3 {
    grid-column: 2;
    color: var(--morado);
    font-size: 1rem;
    line-height: 1.25;
    margin-bottom: 8px;
}

.highlight-item p {
    grid-column: 2;
    color: #3d3d3d;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.highlight-item:hover {
    transform: translateY(-3px);
    border-color: rgba(81, 54, 130, 0.28);
    background: #ffffff;
}


/* ================================================================
   11. BLOQUE MORADO
   ================================================================ */

.purple-page-section {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background: #f7f3ff;
    padding: 56px 16px 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.purple-page-section #a-quien-ayudo {
    margin-top: 80px;
}


/* ================================================================
   12. MI MÉTODO
   ================================================================ */

.method-showcase-section {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.method-hero-card {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    border-radius: 22px;
    background: #f7f3ff;
    border: none;
    box-shadow: none;
}

.method-hero-copy {
    padding: 34px 20px;
    background: #f7f3ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.method-hero-copy h2 {
    max-width: 560px;
    color: #181818;
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.method-hero-description {
    max-width: 540px;
    color: #333333;
    font-size: 0.98rem;
    line-height: 1.75;
    margin-bottom: 28px;
}

.method-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 12px;
    background: var(--verde);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    transition: transform 0.25s ease, background 0.25s ease;
}

.method-cta:hover {
    background: var(--morado);
    transform: translateY(-2px);
}


/* ================================================================
   13. MI MÉTODO - IMAGEN (Corregido para celular)
   ================================================================ */

.method-hero-media {
    position: relative;
    /* Limitamos la altura máxima en celulares para que no sea gigante */
    height: 280px;
    max-height: 35vh;
    background: var(--morado);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

.method-hero-media::before {
    content: none;
    display: none;
}

.method-hero-media::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: 32%;
    height: 100%;
    background: linear-gradient(90deg,
            rgba(247, 243, 255, 0) 0%,
            rgba(247, 243, 255, 0.75) 65%,
            #f7f3ff 100%);
    pointer-events: none;
    z-index: 2;
}

.method-hero-media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
    position: relative;
    z-index: 0;
}


/* ================================================================
   14. MI MÉTODO - BENEFICIOS (Corregido el corazón)
   ================================================================ */

.method-benefits-card {
    width: 100%;
    margin: 14px auto 0;
    padding: 24px 18px 28px;
    border-radius: 20px;
    background: #f7f3ff;
    border: none;
    box-shadow: none;
}

.method-benefits-label {
    margin: 0 0 20px;
    text-align: center;
    color: var(--verde);
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.method-benefits-grid {
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 10px;
}

.method-benefit-item {
    text-align: center;
    padding: 10px 8px;
}

/* Magia: El 5to elemento (el corazón) abarcará todo el ancho y se centrará */
.method-benefit-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 200px;
    margin: 0 auto;
}

.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 1.65rem;
    line-height: 1;
}

.method-benefit-item h3 {
    color: #181818;
    font-size: 0.86rem;
    line-height: 1.35;
    font-weight: 800;
    margin: 0;
}

.benefit-icon-img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    display: block;
}


/* ================================================================
   15. ¿A QUIÉN AYUDO?
   ================================================================ */

.audience-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 26px 0;
}

.audience-list li {
    position: relative;
    background: #ffffff;
    border: 1px solid rgba(81, 54, 130, 0.12);
    border-radius: 14px;
    padding: 14px 16px 14px 44px;
    color: #2d2d2d;
    font-weight: 600;
    line-height: 1.5;
}

.audience-list li::before {
    content: "✓";
    position: absolute;
    left: 16px;
    top: 14px;
    color: var(--verde);
    font-weight: 900;
}

.important-note {
    background: rgba(24, 199, 154, 0.08);
    border-left: 4px solid var(--verde);
    border-radius: 12px;
    padding: 16px;
    color: #2d2d2d;
    font-size: 0.95rem;
}

.about-cta {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 15px 20px;
    border-radius: 999px;
    background: var(--morado);
    color: white;
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
    transition: transform 0.25s ease, background 0.25s ease;
}

.about-cta:hover {
    background: var(--verde);
    transform: translateY(-2px);
    box-shadow: none;
}


/* ================================================================
   16. FOOTER
   ================================================================ */

.main-footer {
    margin-top: 0;
}

/* ================================================================
   16.5 TABLETS (Punto de quiebre para iPad y similares)
   ================================================================ */

@media (min-width: 768px) and (max-width: 1023px) {
    /* Hacemos la foto de la entrenadora mucho más proporcionada */
    .landing-hero-media {
        max-width: 480px; 
        margin: 0 auto;
    }

    .landing-hero h1 {
        font-size: 2.8rem;
    }

    .landing-description {
        font-size: 1.1rem;
        max-width: 650px;
    }

    /* Botones uno al lado del otro */
    .hero-actions {
        flex-direction: row; 
        justify-content: center;
    }

    .btn-primary, .btn-secondary {
        width: auto;
        min-width: 220px;
    }

    /* Ajustes para "Quién soy" */
    .about-copy {
        align-items: center;
        text-align: center;
    }
    
    .green-about .about-copy h2 {
        font-size: 2.4rem;
        text-align: center;
    }

    .green-about .about-intro {
        text-align: center;
        max-width: 100%;
    }

    /* --- NUEVO: CENTRAR EL SEGUNDO BLOQUE ("MI MÉTODO") EN TABLET --- */
    .method-hero-copy {
        align-items: center; /* Centra horizontalmente el título, texto y botón */
        text-align: center;  /* Centra el texto alineado */
        padding: 40px 30px;
    }

    .method-hero-copy h2 {
        max-width: 100%;
    }

    .method-hero-description {
        max-width: 100%;
    }

    .method-cta {
        width: fit-content;  /* Hace que el botón mantenga su tamaño elegante y no ocupe todo el ancho */
        margin: 0 auto;
    }
    /* ------------------------------------------------------------- */

    /* Imagen Método morada más grande para tablet */
    .method-hero-media {
        height: 400px;
        max-height: none;
    }
}

/* ================================================================
   17. DESKTOP (PCs y Pantallas grandes)
   ================================================================ */

@media (min-width: 1024px) {
    .content-side {
        max-width: 1180px;
        padding: 0 40px;
    }

    .linktree-background {
        padding: 72px 20px 82px;
    }

    .hero-card {
        max-width: 450px;
        padding: 42px 28px;
        border-radius: 20px;
    }

    .profile-img-slot {
        width: 120px;
        height: 120px;
    }

    .brand-name-hero {
        font-size: 1.15rem;
    }

    .subtitle {
        font-size: 1rem;
    }

    .card-message {
        font-size: 1rem;
    }

    .btn-link {
        min-height: 58px;
        padding: 14px 18px;
        gap: 14px;
        font-size: 1rem;
    }

    .btn-icon {
        width: 28px;
        height: 28px;
    }

    .btn-arrow {
        font-size: 1.8rem;
    }

    .green-page-section {
        padding: 72px 20px 96px;
    }

    .landing-hero {
        max-width: 1120px;
        display: grid;
        grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
        gap: clamp(36px, 5vw, 72px);
        align-items: center;
        text-align: left;
    }

    .landing-hero-content {
        max-width: 620px;
        margin: 0;
        text-align: left;
    }

    .landing-hero h1 {
        max-width: 620px;
        margin: 0 0 22px;
        font-size: clamp(2.9rem, 4.8vw, 4.45rem);
        line-height: 1.03;
    }

    .landing-description {
        max-width: 560px;
        margin: 0 0 28px;
        font-size: 1.03rem;
        line-height: 1.75;
    }

    .hero-actions {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
    }

    .btn-primary,
    .btn-secondary {
        width: auto;
        min-width: 220px;
    }

    .landing-hero-media {
        max-width: 470px;
        justify-self: end;
        padding: 14px;
        border-radius: 32px;
    }

    .landing-hero-media::before {
        border-radius: 32px;
    }

    .landing-hero-media::after {
        width: 110px;
        height: 110px;
        right: -18px;
        bottom: -18px;
    }

    .landing-hero-media img {
        border-radius: 26px;
    }

    .green-about.info-section {
        margin-top: 96px;
        padding: 0 24px;
    }

    .green-about .about-layout {
        grid-template-columns: minmax(420px, 0.95fr) minmax(0, 1.05fr);
        gap: 64px;
        align-items: center;
    }

    .green-about .about-copy h2 {
        max-width: 620px;
        font-size: clamp(2.2rem, 2.8vw, 2.75rem);
    }

    .green-about .about-copy .about-intro {
        max-width: 560px;
    }

    .highlight-item {
        grid-template-columns: 46px 1fr;
        column-gap: 16px;
        padding: 18px;
        border-radius: 22px;
    }

    .highlight-item::before {
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .purple-page-section {
        padding: 80px 20px 96px;
    }

    .method-showcase-section {
        max-width: 1180px;
    }

    .method-hero-card {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 0.9fr);
        border-radius: 28px;
        min-height: 350px;
    }

    .method-hero-media {
        grid-column: 1;
        grid-row: 1;
        height: auto;
        min-height: 350px;
        max-height: none;
    }

    .method-hero-copy {
        grid-column: 2;
        grid-row: 1;
        padding: 52px 64px 52px 90px;
    }

    .method-hero-copy h2 {
        font-size: clamp(2.2rem, 3.9vw, 3.65rem);
        line-height: 1.07;
    }

    .method-hero-description {
        font-size: 1rem;
        line-height: 1.8;
    }

    .method-cta {
        width: fit-content;
    }

    .method-benefits-card {
        max-width: 1180px;
        margin-top: 18px;
        padding: 26px 32px 30px;
        border-radius: 24px;
    }

    .method-benefits-grid {
        max-width: 1040px;
        grid-template-columns: repeat(5, 1fr);
        gap: 18px;
    }

    /* Como ahora son 5 columnas en PC, desactivamos el centrado forzado del corazón */
    .method-benefit-item:last-child:nth-child(odd) {
        grid-column: auto;
        max-width: none;
        margin: 0;
    }

    .benefit-icon {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .method-benefit-item h3 {
        font-size: 0.92rem;
    }

    .purple-page-section #a-quien-ayudo {
        margin-top: 80px;
    }

    .info-section {
        max-width: 780px;
    }

    .audience-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-cta {
        width: auto;
        padding: 14px 22px;
    }
}