/* --- LANDING PAGE: ALQUIMIA VISUAL --- */
:root {
    --color-fondo: #fdfcf8;
    /* Crema suave para reducir fatiga */
    --color-texto: #1a1a1a;
    --color-acento: #3a506b;
    /* Azul profundo (Calma/Autoridad) */
    --color-oro: #d4af37;
    /* Oro Alquímico (Progreso) */
    --color-oro-soft: #f4ece6;
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3 {
    font-family: var(--font-serif);
    color: var(--color-acento);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.header-nav {
    padding: 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: var(--color-acento);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    position: relative;
    gap: 40px;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.25rem;
    color: #555;
    margin-bottom: 30px;
}

.hero-promise {
    font-style: italic;
    color: var(--color-acento);
    border-left: 3px solid var(--color-oro);
    padding-left: 20px;
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* --- EMPATHY SECTION --- */
.empathy {
    padding: 100px 0;
    background: white;
    text-align: center;
}

.empathy h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.empathy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.empathy-card {
    padding: 40px;
    background: var(--color-fondo);
    border-radius: 20px;
    transition: transform 0.3s ease;
}

.empathy-card:hover {
    transform: translateY(-10px);
}

.empathy-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 25px;
}

.empathy-card p {
    font-size: 1.1rem;
    font-weight: 500;
}

.empathy-conclusion {
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    font-size: 1.1rem;
}

/* --- PHASES SECTION --- */
.phases {
    padding: 100px 0;
}

.phases-header {
    text-align: center;
    margin-bottom: 80px;
}

.phases-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.phases-visual {
    text-align: center;
}

.phases-app-img {
    max-width: 100%;
    height: 500px;
    width: auto;
    object-fit: contain;
    border-radius: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
}

.phases-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.phase-item {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    text-align: left;
}

.phase-icon {
    flex-shrink: 0;
    width: 80px;
    /* Reduced from 120px to fit better in vertical layout */
    height: 80px;
}

.phase-text h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--color-acento);
}

.phase-text p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.5;
}

/* --- APP TOUR INTERACTIVO (HOTSPOTS) --- */
.app-tour-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
}

.app-hotspot {
    position: absolute;
    width: 30px;
    height: 30px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
}

.hotspot-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-oro);
    border-radius: 50%;
    opacity: 0.6;
    animation: hotspot-pulse 2s infinite;
}

.hotspot-label {
    display: none;
    /* Ocultamos el icono para no tapar la app */
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--color-acento);
    color: white;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border: 2px solid white;
    z-index: 2;
}

.app-hotspot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: var(--color-oro);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    box-shadow: 0 0 10px var(--color-oro);
}

.hotspot-tooltip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 200px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    pointer-events: none;
    border: 1px solid var(--color-oro-soft);
}

.hotspot-tooltip strong {
    color: var(--color-acento);
    display: block;
    margin-bottom: 4px;
}

.app-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

@keyframes hotspot-pulse {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(2.5);
        opacity: 0;
    }
}

@media (max-width: 992px) {
    .phases-content-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .phases-visual {
        order: 1;
    }

    .phases-list {
        order: 2;
    }

    .phase-item {
        flex-direction: column;
        text-align: center;
    }
}

/* --- PRICING SECTION --- */
.pricing {
    padding: 100px 0;
    background: #fdfcf8;
}

.pricing-header {
    text-align: center;
    margin-bottom: 60px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    padding: 50px 40px;
    border-radius: 30px;
    border: 1px solid #eee;
    text-align: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.pricing-card.featured {
    border: 2px solid var(--color-oro);
    transform: scale(1.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.05);
}

.pricing-card:hover {
    transform: translateY(-10px);
}

.pricing-card.featured:hover {
    transform: scale(1.07) translateY(-10px);
}

.badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-oro);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
}

.price {
    font-size: 3rem;
    font-weight: bold;
    margin: 10px 0 20px;
    color: var(--color-acento);
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.1;
}

.price-old {
    font-size: 1.1rem;
    color: #999;
    text-decoration: line-through;
    font-weight: normal;
    margin-bottom: 5px;
}

.price-label {
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-acento);
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.price-condition {
    font-size: 1.2rem;
    font-weight: normal;
    display: block;
}

.price-sub {
    font-size: 0.95rem;
    color: #888;
    font-weight: normal;
    display: block;
    margin-top: 5px;
}

.price span {
    font-size: 1rem;
    color: #888;
}

.pricing-card ul {
    list-style: none;
    margin: 30px 0;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.pricing-card ul li::before {
    content: '✓';
    color: var(--color-oro);
    font-weight: bold;
}

/* --- BUTTONS --- */
.btn {
    display: inline-block;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: var(--color-acento);
    color: white;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(58, 80, 107, 0.3);
}

.btn-outline {
    border: 2px solid var(--color-acento);
    color: var(--color-acento);
}

.btn-outline:hover {
    background-color: var(--color-acento) !important;
    color: white !important;
}

.btn-nav {
    padding: 10px 25px;
    font-size: 0.9rem;
}

.btn-full-width {
    width: 100%;
}

.btn-footer-cta {
    padding: 20px 50px;
    font-size: 1.2rem;
}

/* --- TESTIMONIALS SECTION --- */
.testimonials-section {
    padding: 100px 0;
    text-align: center;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(5, 350px);
    gap: 30px;
    margin: 40px auto 0;
    overflow-x: auto;
    padding: 20px 20px 40px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--color-oro) transparent;
    -webkit-overflow-scrolling: touch;
}

.testimonials-grid::-webkit-scrollbar {
    height: 6px;
}

.testimonials-grid::-webkit-scrollbar-track {
    background: rgba(212, 175, 55, 0.05);
    border-radius: 10px;
}

.testimonials-grid::-webkit-scrollbar-thumb {
    background-color: var(--color-oro);
    border-radius: 10px;
}

.testimonial-card {
    background: white;
    padding: 40px 30px 30px;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    position: relative;
    text-align: left;
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    scroll-snap-align: center;
    min-width: 320px;
    flex-shrink: 0;
}

.testimonial-card:hover {
    transform: translateY(-10px);
}

.testimonial-card.featured {
    border: 2px solid var(--color-oro);
    transform: scale(1.05);
}

.testimonial-card.featured:hover {
    transform: scale(1.07) translateY(-10px);
}

.quote-icon-mini {
    font-size: 4rem;
    font-family: var(--font-serif);
    color: var(--color-oro);
    opacity: 0.15;
    position: absolute;
    top: 5px;
    left: 30px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.6;
    margin-bottom: 25px;
    font-style: italic;
    position: relative;
    z-index: 2;
    flex-grow: 1;
}

.testimonial-info {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.testimonial-info strong {
    display: block;
    color: var(--color-acento);
    font-size: 1.05rem;
    margin-bottom: 2px;
}

.testimonial-info span {
    color: #888;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- BIO SECTION --- */
.bio-section {
    padding: 100px 0;
    background-color: var(--color-fondo);
}

.bio-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.bio-image-wrapper {
    flex-shrink: 0;
}

.bio-image-oval {
    width: 210px;
    height: 280px;
    border-radius: 105px / 140px;
    overflow: hidden;
    padding: 10px;
    background: var(--color-fondo);
    border: 2px solid #eee;
    box-shadow: var(--shadow);
}

.bio-image-oval img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

.bio-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #444;
    max-width: 600px;
}

.bio-text strong {
    color: var(--color-acento);
}

@media (max-width: 768px) {
    .bio-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }

    .bio-image-oval {
        width: 260px;
        height: 360px;
        border-radius: 130px / 180px;
    }
}


.phase-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
    background: white;
    border-radius: 50%;
    padding: 15px;
    box-shadow: var(--shadow);
    border: 1px solid #eee;
}

.phase-icon-wrapper {
    width: 120px;
    height: 120px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
    flex-shrink: 0;
}

.phase-icon-svg {
    width: 50px;
    height: 50px;
    color: var(--color-acento);
}

/* --- FOOTER --- */
.footer {
    padding: 80px 0 50px;
    text-align: center;
    background: white;
}

.footer-quote {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--color-acento);
    max-width: 800px;
    margin: 0 auto 60px;
}

.footer-description {
    margin-top: 30px;
    color: #888;
}

.footer-bottom-info {
    margin-top: 60px;
    border-top: 1px solid #eee;
    padding-top: 30px;
    color: #bbb;
    font-size: 0.9rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-promise {
        border-left: none;
        border-top: 3px solid var(--color-oro);
        padding-top: 20px;
        padding-left: 0;
    }
}

@media (max-width: 768px) {
    .phases-timeline::after {
        display: none;
    }

    .pricing-card.featured {
        transform: scale(1);
    }

    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

/* Estilos para Modales en Landing */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 25px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal h2 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
    color: var(--color-acento);
    text-align: center;
}

.modal-intro {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 12px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.legal-scroll-area {
    background: #fdfcf8;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 12px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 20px;
}

.privacy-notice-box {
    background: #fff4e5;
    border-left: 4px solid var(--color-oro);
    padding: 12px 15px;
    margin: 15px 0;
    border-radius: 4px;
    font-size: 0.85rem;
    color: #444;
}

.legal-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #444;
}

.check-item input {
    margin-top: 4px;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}


#landingAuthError {
    color: #c53030;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 15px;
    display: none;
}

/* --- CALL SCHEDULING SECTION --- */
.call-scheduling {
    padding: 100px 0;
    background: linear-gradient(to bottom, #ffffff, var(--color-oro-soft));
    text-align: center;
}

.call-scheduling-card {
    max-width: 850px;
    margin: 0 auto;
    background: white;
    padding: 60px 40px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(58, 80, 107, 0.08);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.call-scheduling h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--color-acento);
}

.call-scheduling p {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 40px;
    max-width: 650px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.call-scheduling .btn-primary {
    padding: 20px 50px;
    font-size: 1.2rem;
    box-shadow: 0 10px 30px rgba(58, 80, 107, 0.2);
}

.call-scheduling .session-features {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.session-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--color-acento);
    font-weight: 600;
}

.session-feature span {
    color: var(--color-oro);
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .call-scheduling {
        padding: 60px 20px;
    }

    .call-scheduling-card {
        padding: 40px 20px;
    }

    .call-scheduling h2 {
        font-size: 2rem;
    }
}

/* --- PRICING ADJUSTMENTS --- */
.pricing-card .btn+p {
    margin-top: 15px;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
}

.pricing-card .btn-premium-alt {
    margin-top: 5px;
    background: var(--color-oro-soft);
}

.pricing-card ul li.li-no-check::before {
    content: none;
}

.pricing-card ul li.li-no-check {
    margin-top: 20px;
    font-style: italic;
    color: var(--color-acento);
    font-weight: 500;
}

.btn-small {
    font-size: 0.85rem !important;
    padding: 10px 20px !important;
    letter-spacing: 0.5px;
}

.btn-brown {
    background-color: #a65d47 !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(166, 93, 71, 0.2);
}

.btn-brown:hover {
    background-color: #8e4d3a !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 93, 71, 0.3);
}

#legalLandingModal .modal-content {
    max-width: 600px;
}

/* --- FRIENDLY LEGAL MODAL (Improved) --- */
.legal-friendly-list {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    text-align: left;
}

.legal-icon {
    font-size: 1.4rem;
    flex-shrink: 0;
    width: 30px;
    text-align: center;
}

.legal-item p {
    font-size: 0.95rem;
    color: #444;
    line-height: 1.5;
    margin: 0;
}

.legal-item strong {
    color: var(--color-acento);
    display: block;
    margin-bottom: 2px;
}

/* Caja Dorada Promo */
.promo-golden-box {
    background: linear-gradient(135deg, #fdfcf8 0%, #f4ece6 100%);
    border: 2px solid var(--color-oro);
    padding: 20px;
    border-radius: 20px;
    margin-bottom: 25px;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.15);
}

.promo-golden-box h3 {
    margin-top: 0;
    font-size: 1.1rem;
    color: var(--color-oro);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.promo-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.promo-feature:last-child {
    margin-bottom: 0;
}

.promo-feature p {
    font-size: 0.85rem;
    margin: 0;
    color: #5d4e41;
}

.promo-feature strong {
    color: #3b2f25;
}

.legal-scroll-area-mini {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

@media (max-width: 991px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        display: grid;
        overflow-x: visible;
        padding: 40px 0;
    }

    .testimonial-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        min-width: 0;
    }
}

/* --- FAQ SECTION --- */
.faq-section {
    padding: 100px 0;
    background: white;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}

.faq-item details summary {
    list-style: none;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-acento);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    transition: color 0.3s ease;
}

.faq-item details summary::-webkit-details-marker {
    display: none;
}

.faq-item details summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--color-oro);
    transition: transform 0.3s ease;
}

.faq-item details[open] summary::after {
    transform: rotate(45deg);
}

.faq-item details summary:hover {
    color: var(--color-oro);
}

.faq-answer {
    padding: 15px 0 5px;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}