:root {
    --google-green: #10b981;
    --trucha-primary: #10b981;
    --trucha-secondary: #3b82f6;
    --trucha-accent: #8b5cf6;
    --dark-bg: #020617;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --premium-gradient: linear-gradient(135deg, #10b981 0%, #3b82f6 100%);
}

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

/* Kill browser-default blue link color globally */
a {
    color: white;
    text-decoration: none;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--dark-bg);
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* Header & Nav */
header {
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(10px);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
}

.ponte {
    color: white;
}

.trucha {
    color: var(--google-green);
}

.digital {
    font-weight: 300;
    opacity: 0.8;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 400;
    transition: 0.3s;
}

nav a:hover {
    color: var(--google-green);
}

.btn-primary {
    background: var(--google-green);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600 !important;
}

/* Hero Section */
#hero {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 10%;
    position: relative;
    overflow: hidden;
}

/* Fix for mobile height and address bar issues */
@media (max-width: 768px) {
    #hero {
        height: auto;
        min-height: 100vh;
        min-height: -webkit-fill-available;
        flex-direction: column;
        padding: 120px 5% 50px;
        justify-content: center;
        gap: 2rem;
    }
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(52, 168, 83, 0.2), transparent);
    z-index: 1;
}

.hero-content,
.hero-visual {
    width: 45%;
    position: relative;
    z-index: 2;
}

@media (max-width: 768px) {
    .hero-visual {
        width: 100%;
        max-width: 400px;
    }
}

.hero-content {
    flex: 1;
}

#hero h1 {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    #hero h1 {
        font-size: 2.8rem;
    }
}

.gradient-text {
    background: linear-gradient(90deg, #fff 30%, var(--trucha-primary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-secondary {
    border: 1px solid var(--google-green);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    color: white;
    text-decoration: none;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: rgba(52, 168, 83, 0.1);
}

/* Glass Card Animation */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    width: 350px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.ai-status {
    font-size: 0.8rem;
    color: var(--google-green);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pulse {
    width: 8px;
    height: 8px;
    background: var(--google-green);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--google-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.7; }
    70% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.7; }
}

.ai-reply {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(52, 168, 83, 0.1);
    border-left: 3px solid var(--google-green);
    border-radius: 5px;
}

/* Grid */
#soluciones {
    padding: 100px 10%;
    text-align: center;
}

.section-subtitle {
    font-size: 1.05rem;
    opacity: 0.7;
    max-width: 600px;
    margin: 0 auto 4rem;
}

.grid-industrias {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 0;
}

.card {
    background: var(--glass);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: 0.4s;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.card:hover {
    border-color: var(--google-green);
    transform: translateY(-10px);
    background: rgba(52, 168, 83, 0.05);
    box-shadow: 0 16px 40px rgba(52, 168, 83, 0.12);
}

.card-icon-wrap {
    font-size: 2.2rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(52, 168, 83, 0.12);
    border-radius: 14px;
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: white;
}

.card p {
    font-size: 0.92rem;
    opacity: 0.7;
    line-height: 1.55;
    flex: 1;
}

/* CTA Card (special) */
.card-cta {
    background: rgba(52, 168, 83, 0.06);
    border-color: rgba(52, 168, 83, 0.3);
}

.btn-card-cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.7rem 1.4rem;
    border-radius: 50px;
    font-size: 0.9rem;
    text-decoration: none;
    font-weight: 700;
    color: white !important;
    background: var(--google-green);
    transition: 0.3s;
}

#ia {
    padding: 100px 10%;
    text-align: center;
    background: linear-gradient(180deg, var(--dark-bg), #1e293b);
}

/* Demos Section */
#demos {
    padding: 100px 10%;
    background: #0f172a;
    text-align: center;
}

.demo-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 0;
}

.tab-btn {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
}

.tab-btn.active, .tab-btn:hover {
    background: var(--google-green);
    border-color: var(--google-green);
    box-shadow: 0 0 20px rgba(52, 168, 83, 0.3);
}

.demo-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.demo-content.active { display: block; }

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.chat-mockup {
    max-width: 500px;
    margin: 0 auto;
    background: #1e293b;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    text-align: left;
}

.chat-header {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem;
    font-weight: 800;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chat-header::before {
    content: '';
    width: 10px;
    height: 10px;
    background: var(--google-green);
    border-radius: 50%;
}

.chat-body {
    height: 350px;
    padding: 1.5rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.msg {
    max-width: 80%;
    padding: 0.8rem 1.2rem;
    border-radius: 15px;
    font-size: 0.95rem;
}

.msg.bot {
    background: var(--glass);
    align-self: flex-start;
    border-bottom-left-radius: 2px;
}

.msg.user {
    background: var(--google-green);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.thinking-process {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    padding: 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: #94a3b8;
    width: 90%;
}

.thinking-step {
    margin-bottom: 0.4rem;
    opacity: 0;
    animation: fadeInStep 0.5s forwards;
}

@keyframes fadeInStep {
    from { opacity: 0; transform: translateX(-5px); }
    to { opacity: 1; transform: translateX(0); }
}

.contact-cta {
    display: block;
    text-align: center;
    margin: 1rem auto;
    width: 80%;
    animation: pulseContact 2s infinite;
}

@keyframes pulseContact {
    0% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(52, 168, 83, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 168, 83, 0); }
}

.chat-input {
    padding: 1rem;
    display: flex;
    gap: 0.5rem;
    background: rgba(0, 0, 0, 0.2);
}

.chat-input input {
    flex: 1;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1rem;
    border-radius: 10px;
    color: white;
    outline: none;
}

.chat-input button {
    background: var(--google-green);
    border: none;
    color: white;
    padding: 0 1.2rem;
    border-radius: 10px;
    cursor: pointer;
}

.tech-stack {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.tech-stack span {
    background: var(--glass);
    padding: 1rem 2rem;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    font-weight: 600;
}

footer {
    padding: 4rem 10% 2rem;
    background: #020617;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-bottom {
    text-align: center;
    opacity: 0.5;
    font-size: 0.9rem;
    border-top: 1px solid var(--glass-border);
    padding-top: 2rem;
}

.admin-dashboard {
    background: linear-gradient(135deg, #0f172a 0%, #0d2b1a 100%);
    padding: 100px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-dashboard h2 { text-align: center; margin-bottom: 20px; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    border-color: var(--google-green);
}

.stat-card .label { display: block; font-size: 0.9rem; color: #94a3b8; margin-bottom: 10px; }
.stat-card .value { display: block; font-size: 2.5rem; font-weight: 800; color: var(--google-green); }

.table-scroll { overflow-x: auto; border-radius: 15px; border: 1px solid rgba(255, 255, 255, 0.1); }
#niche-table { width: 100%; border-collapse: collapse; background: rgba(255, 255, 255, 0.02); }
#niche-table th, #niche-table td { padding: 20px; text-align: left; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
#niche-table th { background: rgba(255, 255, 255, 0.05); color: var(--google-green); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; }

.bpc-cta {
    display: block;
    width: 100%;
    padding: 1.2rem;
    background: #10b981;
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    border-radius: 12px;
    margin-top: 1.5rem;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    border: none;
    cursor: pointer;
}

.bpc-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

.btn-text {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--google-green);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-text:hover { color: white; letter-spacing: 0.5px; }
.green-text { color: #10b981; }

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .hero-content { text-align: center; }
    .hero-btns { justify-content: center; }
    .footer-content { flex-direction: column; text-align: center; }
}

#blog {
    padding: 120px 10%;
    background: linear-gradient(180deg, #0f172a 0%, #0b1a0f 100%);
    text-align: center;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    text-align: left;
}

.blog-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: 0.4s;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.blog-card:hover {
    transform: translateY(-8px);
    border-color: var(--google-green);
    box-shadow: 0 24px 50px rgba(52, 168, 83, 0.14);
}

/* Visual header inside each blog card */
.blog-visual-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.blog-big-icon {
    font-size: 3rem;
    animation: iconPulse 3s ease-in-out infinite;
    line-height: 1;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.blog-art-num {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--google-green);
    background: rgba(52, 168, 83, 0.12);
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    align-self: flex-start;
}

/* Blog card body */
.blog-card-body {
    padding: 1.4rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.blog-card-body h3 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
    color: white;
}

.blog-hook {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--google-green);
    font-style: italic;
    line-height: 1.4;
}

/* Blog steps list */
.blog-steps {
    list-style: none;
    padding: 0;
    margin-top: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.blog-steps li {
    display: grid;
    grid-template-columns: 12px 1fr;
    gap: 0.6rem;
    align-items: start;
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.82);
}

.step-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 5px;
    flex-shrink: 0;
}

.step-dot.s1 { background: #f87171; }
.step-dot.s2 { background: #fbbf24; }
.step-dot.s3 { background: #34a853; }

/* Blog Plan Card (BPC) — inside blog cards */
.blog-plan-card {
    margin: 0 1.5rem 1.5rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(52,168,83,0.2);
    border-radius: 16px;
    padding: 1.2rem 1.4rem;
    margin-top: auto;
}

.blog-plan-card.bpc-featured {
    background: rgba(52,168,83,0.08);
    border-color: rgba(52,168,83,0.5);
}

.bpc-header {
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.bpc-level {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--google-green);
    opacity: 0.8;
}

.bpc-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: white;
}

.bpc-price {
    margin-top: 0.3rem;
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
}

.bpc-price .bpc-amount {
    font-size: 1.7rem;
    font-weight: 800;
    color: white;
    letter-spacing: -1px;
}

.bpc-currency {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
}

.bpc-items {
    list-style: none;
    padding: 0;
    margin-bottom: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.bpc-items li {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.bpc-cta {
    display: block;
    width: 100%;
    padding: 0.8rem;
    background: var(--google-green);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.88rem;
    border-radius: 10px;
    transition: 0.3s;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    border: none;
    cursor: pointer;
}

.bpc-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
    filter: brightness(1.1);
}

.blog-card-header {
    padding: 1.8rem 2rem 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

@media (max-width: 768px) {
    .card {
        text-align: center;
    }
    .card-icon-wrap {
        margin-left: auto;
        margin-right: auto;
    }
}

.blog-big-icon {
    font-size: 3.5rem;
    margin-bottom: 0.7rem;
    animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.blog-steps { list-style: none; padding: 0; margin-top: 0.8rem; display: flex; flex-direction: column; gap: 0.55rem; }
.blog-steps li { display: grid; grid-template-columns: 14px 1fr; gap: 0.55rem; align-items: start; font-size: 0.85rem; color: rgba(255, 255, 255, 0.82); }
.step-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; }
.step-dot.s1 { background: #f87171; }
.step-dot.s2 { background: #fbbf24; }
.step-dot.s3 { background: #34a853; }

.plan-drawer { overflow: hidden; max-height: 0; transition: 0.35s ease; }
.plan-drawer.open { max-height: 500px; padding: 1rem; background: rgba(52, 168, 83, 0.07); border-radius: 12px; }

.ia-final { padding: 120px 8%; text-align: center; }
.tech-stack-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.tech-item { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(52, 168, 83, 0.2); border-radius: 20px; padding: 2rem; }
.tech-icon { font-size: 2.8rem; }
.wizard-container { width: 100%; max-width: 900px; margin: 40px auto; padding: 40px; background: var(--glass); border: 1px solid var(--glass-border); border-radius: 20px; text-align: left; }
.wizard-progress { display: flex; justify-content: space-between; margin-bottom: 50px; position: relative; }
.wizard-progress .step span { width: 40px; height: 40px; background: #1e293b; border: 2px solid var(--glass-border); display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 10px; }
.wizard-progress .step.active span { background: var(--google-green); color: white; }
.progress-bar-bg { position: absolute; top: 20px; left: 10%; right: 10%; height: 2px; background: var(--glass-border); z-index: 1; }
.progress-bar-fill { height: 100%; background: var(--google-green); width: 0%; transition: 0.4s; }

.wizard-step { display: none; }
.wizard-step.active { display: block; animation: slideIn 0.5s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full-width, .form-grid .grid-col-2 { grid-column: 1 / -1; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group input, .form-group textarea, .form-group select { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); padding: 12px; border-radius: 12px; color: white; width: 100%; font-family: 'Outfit', sans-serif;}
.form-group select option { background: var(--dark-bg); color: white; }
.level-selection { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.level-card { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); padding: 20px; border-radius: 20px; cursor: pointer; text-align: center; }
.level-card.selected { border-color: var(--google-green); background: rgba(52, 168, 83, 0.1); }

#wizard-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.summary-item { border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 10px; }
.summary-item label { color: var(--google-green); font-size: 0.75rem; text-transform: uppercase; font-weight: 700; }

.btn-success { background: #10b981; color: white; padding: 1rem 2rem; border-radius: 50px; font-weight: 700; border: none; cursor: pointer; }

.ps-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    transition: 0.3s;
    opacity: 0.5;
}
.ps-item.completed {
    opacity: 1;
    border-color: var(--google-green);
    background: rgba(16, 185, 129, 0.05);
}
.ps-icon { font-size: 1.5rem; }
.ps-label { flex: 1; font-weight: 600; font-size: 0.9rem; }
.ps-status { font-size: 0.8rem; font-weight: 700; color: #94a3b8; }
.ps-done { color: var(--google-green); }

.construction-header h3 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.construction-header p { opacity: 0.7; font-size: 0.9rem; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
    .wizard-container { padding: 25px; }
    .form-grid, .level-selection, .level-selection-pro, #wizard-summary { grid-template-columns: 1fr; }
    .wizard-progress .step p { display: none; }
}

/* ── Wizard v5: Phase Headers ────────────────────────────── */
.wiz-phase-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.wiz-phase-icon { font-size: 2.5rem; }
.wiz-phase-header h3 { font-size: 1.3rem; margin: 0; }
.wiz-phase-header p { font-size: 0.85rem; opacity: 0.6; margin: 0.2rem 0 0; }

.wiz-nav { margin-top: 2rem; display: flex; justify-content: flex-end; gap: 1rem; }
.btn-secondary { background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border); padding: 0.8rem 1.5rem; border-radius: 50px; color: white; font-weight: 600; cursor: pointer; transition: 0.3s; }
.btn-secondary:hover { background: rgba(255,255,255,0.12); }

/* ── Wizard v5: Checkbox Groups ──────────────────────────── */
.wiz-checkgroup { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.wiz-check { display: flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 10px; cursor: pointer; transition: 0.3s; font-size: 0.85rem; }
.wiz-check:has(input:checked) { border-color: var(--google-green); background: rgba(16,185,129,0.1); }
.wiz-check input[type="checkbox"] { accent-color: var(--google-green); }

/* ── Wizard v5: Level Cards Pro ──────────────────────────── */
.level-selection-pro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.level-card-pro { position: relative; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 20px; padding: 1.5rem; cursor: pointer; transition: all 0.3s; text-align: center; }
.level-card-pro:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.3); }
.level-card-pro.selected { border-color: var(--google-green); background: rgba(16,185,129,0.08); box-shadow: 0 0 25px rgba(16,185,129,0.15); }
.level-card-pro.recommended { border-color: var(--trucha-secondary); }

.lcp-badge { display: inline-block; background: var(--trucha-secondary); color: white; font-weight: 800; font-size: 0.7rem; padding: 0.25rem 0.7rem; border-radius: 20px; margin-bottom: 0.5rem; }
.lcp-badge-gold { background: linear-gradient(135deg, #f59e0b, #d97706); }
.lcp-recommended { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--trucha-secondary); color: white; font-size: 0.7rem; font-weight: 700; padding: 0.25rem 0.8rem; border-radius: 20px; white-space: nowrap; }
.lcp-price { font-size: 1.8rem; font-weight: 800; color: white; margin: 0.5rem 0; }
.lcp-price small { font-size: 0.7rem; font-weight: 400; opacity: 0.5; }
.lcp-features { list-style: none; padding: 0; margin: 1rem 0; text-align: left; display: flex; flex-direction: column; gap: 0.4rem; }
.lcp-features li { font-size: 0.78rem; padding: 0.2rem 0; }
.lcp-features li.included { color: rgba(255,255,255,0.85); }
.lcp-features li.locked { color: rgba(255,255,255,0.3); }
.lcp-upgrade { font-size: 0.75rem; color: var(--trucha-secondary); font-weight: 600; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--glass-border); }
.lcp-upgrade-max { color: #f59e0b; }

/* ── Wizard v5: Plan Result Display ──────────────────────── */
.wiz-plan-result { margin-top: 2rem; padding: 2rem; background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border); border-radius: 20px; animation: fadeUp 0.5s ease; }
.wiz-plan-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--glass-border); }
.wiz-plan-header h3 { margin: 0; font-size: 1.2rem; }
.chip-level { padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.7rem; font-weight: 700; }
.chip-level-arranca { background: rgba(59,130,246,0.15); color: #60a5fa; }
.chip-level-control { background: rgba(16,185,129,0.15); color: #34d399; }
.chip-level-socio { background: rgba(245,158,11,0.15); color: #fbbf24; }

.wiz-plan-content { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.82); }
.wiz-plan-content h3.plan-h3, .wiz-plan-content h4.plan-h4 { color: var(--google-green); margin: 1.2rem 0 0.5rem; font-size: 1rem; }
.wiz-plan-content li { margin-left: 1rem; margin-bottom: 0.3rem; }
.wiz-plan-content strong { color: white; }

.plan-upgrade-card { margin-top: 1.5rem; padding: 1.5rem; background: linear-gradient(135deg, rgba(59,130,246,0.08), rgba(139,92,246,0.08)); border: 1px solid rgba(139,92,246,0.2); border-radius: 16px; }
.puc-header { font-size: 1rem; font-weight: 700; color: var(--trucha-accent); margin-bottom: 0.8rem; }
.plan-upgrade-card ul { padding-left: 0; list-style: none; }
.plan-upgrade-card li { font-size: 0.85rem; margin-bottom: 0.3rem; }
.puc-cta { font-size: 0.8rem; font-weight: 600; color: var(--trucha-secondary); margin-top: 0.8rem; }

.wiz-plan-actions { margin-top: 1.5rem; text-align: center; }

.ps-active { color: var(--trucha-secondary); animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

.pipeline-status { display: flex; flex-direction: column; gap: 0.8rem; }

/* ── Wizard v5: 5-step progress bar ─────────────────────── */
.wizard-progress-5 { display: flex; justify-content: space-between; margin-bottom: 40px; position: relative; }
.wizard-progress-5 .step { z-index: 2; text-align: center; flex: 1; }
.wizard-progress-5 .progress-bar-bg { left: 5%; right: 5%; }

@media (max-width: 768px) {
    .level-selection-pro { grid-template-columns: 1fr; }
    .wiz-phase-header { flex-direction: column; text-align: center; }
    .wiz-plan-header { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* --- Premium Pricing & Checkout --- */
#planes {
    padding: 100px 5%;
    text-align: center;
}

#wizard-estrategia { padding: 100px 5%; text-align: center; }

.premium-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
}

.pricing-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden; /* Para el badge */
    transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(20px);
    text-align: left;
}

.pricing-card:hover {
    transform: translateY(-15px);
    border-color: var(--trucha-primary);
    box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}

.pricing-card.featured {
    border-color: var(--trucha-primary);
    background: rgba(16, 185, 129, 0.08);
    transform: scale(1.05);
}

.badge-pop {
    position: absolute;
    top: 18px;
    right: 0;
    background: var(--trucha-primary);
    color: white;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 5px 30px;
    transform: rotate(0deg);
    border-radius: 0 32px 0 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    letter-spacing: 1px;
}

.price-box { margin-bottom: 2rem; }
.price-box .amount { font-size: 3.8rem; font-weight: 800; color: white; letter-spacing: -2px; }
.price-box .currency { font-size: 1.4rem; vertical-align: super; opacity: 0.8; }
.price-box .period { display: block; color: #94a3b8; font-size: 0.9rem; margin-top: -5px; }

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
}

.pricing-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #e2e8f0;
}

.pricing-features li::before {
    content: "✓";
    width: 20px; height: 20px;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 50%;
    color: var(--trucha-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 900;
}

.btn-buy {
    width: 100%;
    padding: 1.2rem;
    border-radius: 16px;
    border: none;
    background: white;
    color: black;
    font-weight: 900;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card.featured .btn-buy {
    background: var(--trucha-primary);
    color: white;
}

.btn-buy:hover {
    transform: scale(1.02);
    filter: brightness(1.1);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.2);
}

.buy-loading {
    opacity: 0.5;
    pointer-events: none;
}

/* --- PayPal & Payment Styling --- */
.paypal-container {
    margin-top: 1.5rem;
    min-height: 150px;
    transition: 0.3s ease;
}

.paypal-container p {
    font-size: 0.85rem;
    opacity: 0.8;
    margin-bottom: 1rem;
}

/* Loader for processing */
.loader {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-left-color: var(--trucha-primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1.5rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
