/* ==========================================================================
   Psiconversa Landing Page - Rediseño Minimalista y Premium
   ========================================================================== */

/* --- Variables & Custom Properties (App Theme Colors) --- */
:root {
    --bg-primary: #0F172A; /* Slate 900 - Deep Blue-Gray */
    --bg-secondary: #1E293B; /* Slate 800 - Navy-Gray */
    --bg-card: rgba(30, 41, 59, 0.5); /* Semi-transparent Slate */
    --border-color: rgba(255, 255, 255, 0.06);
    
    /* Branding Colors */
    --color-primary: #5AC7E0; /* Brand Teal */
    --color-primary-glow: rgba(90, 199, 224, 0.25);
    --color-secondary: #006AB8; /* Deep Blue */
    --color-secondary-glow: rgba(0, 106, 184, 0.2);
    --color-accent: #FBBF24; /* Amber Gold */
    --color-accent-glow: rgba(251, 191, 36, 0.2);
    --color-pink: #EF5276; /* Brand Pink */
    --color-pink-glow: rgba(239, 82, 118, 0.2);
    --color-green: #34D399; /* Emerald Green */
    
    /* Text Palette */
    --text-main: #F8FAFC; /* Slate 50 */
    --text-muted: #94A3B8; /* Slate 400 */
    --text-dark: #0F172A;
    
    /* Typography */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    /* Borders & Animations */
    --radius-sm: 10px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Resets --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Radial Glows (App Vibes) */
body::before {
    content: '';
    position: absolute;
    top: -10%;
    left: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(80px);
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, var(--color-pink-glow) 0%, transparent 70%);
    z-index: -1;
    filter: blur(100px);
    pointer-events: none;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

p {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

/* --- Layout Sections --- */
section {
    padding: 100px 24px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 70px auto;
}

.section-header h2 {
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.2rem;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 32px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, #3caac4 100%);
    color: var(--text-dark);
    box-shadow: 0 4px 20px var(--color-primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--color-primary-glow);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--color-secondary) 0%, #00508c 100%);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-secondary-glow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-secondary-glow);
}

.btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* --- Frosted Header Navbar --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 38px;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-primary);
}

.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hamburger-menu .bar {
    width: 100%;
    height: 2px;
    background-color: #fff;
    border-radius: 2px;
    transition: var(--transition-smooth);
}

/* --- Hero Section --- */
.hero {
    display: flex;
    align-items: center;
    min-height: 100vh;
    padding-top: 140px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.tag-premium {
    background: rgba(90, 199, 224, 0.08);
    color: var(--color-primary);
    border: 1px solid rgba(90, 199, 224, 0.2);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-block;
}

.tag-premium.accent {
    background: rgba(239, 82, 118, 0.08);
    color: var(--color-pink);
    border: 1px solid rgba(239, 82, 118, 0.2);
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.download-badges-row {
    display: flex;
    gap: 12px;
}

.badge-img {
    height: 40px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition-smooth);
}

.badge-img:hover {
    transform: scale(1.05);
}

/* --- Smartphone Mockup (Realistic CSS Bezel) --- */
.phone-mockup-wrapper {
    position: relative;
    width: 290px;
    height: 590px;
    margin: 0 auto;
}

.glow-effect {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 360px;
    height: 660px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 65%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
    animation: pulseGlow 6s infinite alternate ease-in-out;
}

.phone-frame {
    position: relative;
    width: 100%;
    height: 100%;
    background: #090D16;
    border: 9px solid #1E293B;
    border-radius: 36px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 30px rgba(90, 199, 224, 0.15);
    overflow: hidden;
    z-index: 2;
    animation: floatPhone 6s infinite alternate ease-in-out;
}

.phone-speaker {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 110px;
    height: 18px;
    background: #1E293B;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    overflow: hidden;
}

.phone-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* --- AI Guides Section --- */
.guias {
    border-top: 1px solid var(--border-color);
}

.guias-grid {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.guide-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.guide-row.reverse {
    grid-template-columns: 1fr 1fr;
}

.guide-row.reverse .guide-info-side {
    order: 2;
}

.guide-row.reverse .guide-visual-side {
    order: 1;
}

.guide-info-side {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.guide-info-side h3 {
    font-size: 2.25rem;
    margin-bottom: 5px;
}

.guide-role {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.ali-theme .guide-role { color: var(--color-primary); }
.indi-theme .guide-role { color: var(--color-pink); }

.guide-features-list {
    list-style: none;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guide-features-list li {
    font-size: 1.05rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
}

.guide-features-list li strong {
    color: #fff;
}

.bullet-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-primary);
    margin-top: 9px;
    flex-shrink: 0;
}

.indi-theme .bullet-dot {
    background-color: var(--color-pink);
}

/* --- Gamification Section --- */
.gamificacion {
    border-top: 1px solid var(--border-color);
    background: radial-gradient(circle at 80% 50%, rgba(251, 191, 36, 0.04), transparent 50%);
}

.gamificacion-container {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 80px;
    align-items: center;
}

.gamify-visual-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.gamify-phone-container {
    transform: rotate(-3deg);
}

.gamify-phone-container.second {
    transform: rotate(3deg) translateY(20px);
}

.gamify-card-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.gamify-info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 28px;
    border-radius: var(--radius-md);
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.gamify-icon {
    font-size: 2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.gamify-info-card h4 {
    margin-bottom: 6px;
    font-size: 1.25rem;
}

.gamify-info-card p {
    font-size: 0.95rem;
    margin: 0;
}

/* --- Masonry/Grid Features Section --- */
.explorar {
    border-top: 1px solid var(--border-color);
}

.features-masonry {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.feature-masonry-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    overflow: hidden;
}

.feature-masonry-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.feature-masonry-visual {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid var(--border-color);
}

.feature-masonry-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-masonry-card h4 {
    font-size: 1.2rem;
    margin-bottom: 6px;
    text-align: center;
}

.feature-masonry-card p {
    font-size: 0.9rem;
    margin: 0;
    text-align: center;
    color: var(--text-muted);
}

/* --- Premium CTA Plan Cards --- */
.premium-cta {
    border-top: 1px solid var(--border-color);
}

.premium-banner {
    background: radial-gradient(circle at top right, rgba(90, 199, 224, 0.08), transparent 60%), var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
}

.premium-banner h2 {
    font-size: 2.75rem;
    margin-bottom: 8px;
}

.premium-banner p {
    margin-bottom: 48px;
}

.premium-banner strong {
    color: var(--color-primary);
}

.premium-header-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.premium-logo-badge {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(251, 191, 36, 0.3));
    animation: floatBadge 4s infinite ease-in-out;
}

.premium-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    max-width: 850px;
    margin: 0 auto;
    align-items: stretch;
}

.premium-plan-card {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
}

.premium-plan-card.highlighted {
    background: rgba(90, 199, 224, 0.03);
    border: 2px solid var(--color-primary);
    box-shadow: 0 10px 30px rgba(90, 199, 224, 0.1);
}

.badge-card-top {
    position: absolute;
    top: -12px;
    right: 24px;
    background: linear-gradient(135deg, var(--color-accent) 0%, #d97706 100%);
    color: var(--text-dark);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 12px;
    letter-spacing: 0.05em;
}

.premium-plan-card h4 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-price {
    font-size: 2.25rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    margin-bottom: 8px;
}

.plan-price-annual {
    font-size: 1.25rem;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--text-muted);
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px;
    line-height: 1.4;
}

.save-badge {
    font-size: 0.75rem;
    color: var(--color-accent);
    background: rgba(251, 191, 36, 0.12);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 800;
    display: inline-block;
    margin-top: 4px;
}

.premium-plan-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.premium-plan-card ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.premium-plan-card.highlighted ul li {
    color: var(--text-main);
}

/* --- Download / Final CTA --- */
.descargar {
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.descargar-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.descargar h2 {
    font-size: 3rem;
    margin-bottom: 12px;
}

.mockup-disclaimer {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}

/* --- Footer --- */
footer {
    background-color: #0B0F19;
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 30px 24px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo-img {
    height: 38px;
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-brand p {
    font-size: 0.95rem;
    max-width: 300px;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.links-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.links-group h5 {
    font-size: 0.95rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.links-group a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.links-group a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    max-width: 1200px;
    margin: 30px auto 0 auto;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- Keyframes --- */
@keyframes floatPhone {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-12px); }
}

@keyframes floatBadge {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0px); }
}

@keyframes pulseGlow {
    0% { transform: translate(-50%, -50%) scale(0.95); opacity: 0.7; }
    100% { transform: translate(-50%, -50%) scale(1.05); opacity: 1; }
}

/* --- Media Queries --- */

/* Tablet & Mobile Layout Shifts */
@media (max-width: 992px) {
    h1 {
        font-size: 2.75rem;
    }
    
    section {
        padding: 80px 20px;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content {
        align-items: center;
    }
    
    .guide-row {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .guide-info-side {
        align-items: center;
    }
    
    .guide-row.reverse .guide-info-side {
        order: 1;
    }
    
    .guide-row.reverse .guide-visual-side {
        order: 2;
    }
    
    .gamificacion-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .gamify-card-info {
        align-items: center;
    }
    
    .gamify-visual-side {
        margin: 0 auto;
        max-width: 580px;
    }
    
    .features-masonry {
        grid-template-columns: 1fr 1fr;
    }
    
    .premium-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }
}

@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        height: 100vh;
        background-color: #121824;
        flex-direction: column;
        justify-content: center;
        gap: 36px;
        transition: var(--transition-smooth);
        box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-cta {
        width: 80%;
    }
    
    .hamburger-menu.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .hamburger-menu.active .bar:nth-child(2) { opacity: 0; }
    .hamburger-menu.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    
    .features-masonry {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 30px;
    }
}
