/* ==========================================================================
   SITIOWEBPYME MASTER CSS BUNDLE & ARCHITECTURAL IMPORTS
   ========================================================================== */
@import url('assets/css/base/variables.css');
@import url('assets/css/base/reset.css');
@import url('assets/css/pages/dashboards.css');
@import url('assets/css/responsive.css');

:root {
    /* Color Palette - Glassmorphic Sleek (Dark Default) */
    --bg-dark: #07070a; /* Fondo ultra oscuro y profundo */
    --bg-card: rgba(255, 255, 255, 0.02); /* Tarjeta sumamente transparente */
    --bg-glass: rgba(13, 13, 18, 0.65); /* Vidrio oscuro con blur alto */
    --text-main: #f8fafc; /* Blanco azulado para alta legibilidad */
    --text-muted: #94a3b8; /* Gris azulado suave */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --gradient-primary: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    --border-color: rgba(255, 255, 255, 0.07);
    --hero-bg: url('assets/hero_bg.png');
    
    /* Layout */
    --container-width: 1400px;
    --border-radius: 20px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

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

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

/* Typography & Utils */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.dark-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
}

.highlight-glass {
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--border-radius);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-whatsapp, .btn-block {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
}

.btn-primary, .btn-block.primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover, .btn-block.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-glass);
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

.btn-whatsapp .icon {
    margin-right: 8px;
}

.btn-block {
    width: 100%;
    margin-top: 24px;
}

.btn-block:not(.primary, .outline) {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}
.btn-block:not(.primary, .outline):hover {
    background: rgba(255, 255, 255, 0.15);
}

.btn-block.outline {
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-main);
}
.btn-block.outline:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 24px 0;
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    background: rgba(7, 7, 10, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

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

.nav-menu a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition);
    position: relative;
    padding: 6px 0;
    font-family: 'Outfit', sans-serif;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-main);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-blue);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 180px 0 100px 0;
    text-align: center;
}

.hero-content {
    max-width: 850px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--accent-blue);
    margin-bottom: 24px;
    font-weight: 500;
}

.pulse-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--accent-blue);
    border-radius: 50%;
    margin-right: 6px;
    box-shadow: 0 0 10px var(--accent-blue);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

.hero h1 {
    font-size: clamp(2.3rem, 4.5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero p {
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 750px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Social Proof & Píldoras de Tecnología */
.social-proof {
    padding: 35px 0 20px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(180deg, rgba(255,255,255,0.015) 0%, transparent 100%);
}

.social-proof p {
    color: var(--text-muted);
    font-size: 0.8rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    font-weight: 600;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 1;
    filter: none;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.logo-item {
    font-family: 'Inter', 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    color: #f1f5f9;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(16px);
    padding: 10px 22px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.logo-item:hover {
    border-color: rgba(56, 189, 248, 0.4);
    background: rgba(56, 189, 248, 0.08);
    transform: translateY(-2px);
    color: #38bdf8;
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
}

.metodologia {
    padding: 40px 0 90px 0;
}

/* Problem & Solution */
.problem-solution {
    padding: 90px 0;
}

.ps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.ps-card {
    padding: 60px;
}

.icon-large {
    font-size: 3rem;
    display: block;
    margin-bottom: 20px;
}

.ps-card h3 {
    font-size: 1.8rem;
    margin-bottom: 16px;
}

.ps-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Portfolio */
.portfolio {
    padding: 90px 0;
    background: rgba(0, 0, 0, 0.2);
}

.section-header {
    text-align: left;
    margin-bottom: 80px;
    max-width: 600px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.portfolio-item {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: rgba(59, 130, 246, 0.3);
}

.img-wrapper {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .img-wrapper img {
    transform: scale(1.05);
}

.portfolio-info {
    padding: 30px;
}

.portfolio-info h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.portfolio-info p {
    color: var(--text-muted);
}

/* Pricing */
.pricing {
    padding: 90px 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: stretch; /* Estira las tarjetas para igualar el alto */
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 40px 95px 40px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    background: var(--bg-glass);
    border-color: var(--accent-blue);
}

.pricing-card.featured {
    background: var(--bg-glass);
    border: 1px solid rgba(59, 130, 246, 0.4);
    box-shadow: 0 20px 45px rgba(59, 130, 246, 0.15); /* Brillo sutil de neón */
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 24px;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 250px;
}

.card-header h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    min-height: 44px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-top: 0;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.features-list li {
    display: flex !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    font-size: 0.92rem;
    color: #e2e8f0;
    line-height: 1.5;
    text-align: left !important;
}

.features-list li .check {
    color: #38bdf8;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

.features-list li span:not(.check) {
    flex: 1;
    text-align: left !important;
}

.pricing-card .btn-block {
    position: absolute;
    bottom: 35px;
    left: 40px;
    right: 40px;
    width: calc(100% - 80px);
}

/* Banner de Garantía Comercial de Precios */
.pricing-guarantee-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 16px;
    padding: 16px 24px;
    margin: 0 auto 40px auto;
    max-width: 900px;
    font-size: 0.95rem;
    line-height: 1.5;
}

.guarantee-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}

.pricing-guarantee-banner p {
    color: var(--text-main);
}

.pricing-guarantee-banner strong {
    color: #60a5fa;
}

/* Sub-etiquetas de plan */
.plan-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.3);
    margin-bottom: 12px;
}

.plan-tag.tag-ecommerce {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border-color: rgba(236, 72, 153, 0.3);
}

.plan-tag.tag-ai {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border-color: rgba(168, 85, 247, 0.3);
}

/* Caja de Setup Inicial */
.setup-badge-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.setup-label {
    color: var(--text-muted);
}

.setup-value {
    color: #38bdf8;
    font-weight: 700;
}

/* Formato MRR Mensualidad */
.price-mrr {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
}

.mrr-text {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

.highlight-ticket {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
    padding: 2px 6px;
    border-radius: 6px;
}

/* Estilos Sección Anti Scope Creep */
.anti-scope-container {
    margin-top: 60px;
}

.anti-scope-card {
    padding: 40px;
    background: rgba(15, 17, 26, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
}

.anti-scope-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.anti-scope-badge-icon {
    font-size: 2.5rem;
    background: rgba(59, 130, 246, 0.1);
    padding: 12px;
    border-radius: 16px;
    line-height: 1;
}

.anti-scope-header h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 4px;
}

.anti-scope-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.anti-scope-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.anti-scope-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.anti-scope-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.anti-scope-title h4 {
    font-size: 1.05rem;
    color: #f1f5f9;
}

.anti-scope-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.mini-tag {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    text-transform: uppercase;
}

.mini-tag.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

.mini-tag.amber {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

.mini-tag.green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
}

.features-list {
    list-style: none;
    margin-bottom: 30px;
}

.features-list li {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #e4e4e7;
}

.check {
    color: var(--accent-blue);
    font-weight: bold;
    margin-right: 12px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
}

.cta-box {
    text-align: center;
    padding: 80px 40px;
    background: linear-gradient(145deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.05));
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.cta-box h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.cta-box p {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn-primary.large {
    font-size: 1.1rem;
    padding: 16px 40px;
}

/* Footer */
footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    background: var(--bg-dark);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 8px;
}

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

/* Animations Classes */
.fade-in { opacity: 0; transition: opacity 0.8s ease-out; }
.fade-in.visible { opacity: 1; }

.fade-in-up { opacity: 0; transform: translateY(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

.fade-in-left { opacity: 0; transform: translateX(-30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-in-left.visible { opacity: 1; transform: translateX(0); }

.fade-in-right { opacity: 0; transform: translateX(30px); transition: all 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); }
.fade-in-right.visible { opacity: 1; transform: translateX(0); }

.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-text {
        text-align: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero p {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        justify-content: center;
        margin-top: 40px;
    }
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.featured {
        transform: scale(1);
    }
    .section-header {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .hero-actions {
        flex-direction: column;
    }
    .ps-grid {
        grid-template-columns: 1fr;
    }
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   GLASSMORPHIC SLEEK & GLOW ORBS
   ========================================================================== */
.glass-bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    pointer-events: none;
    z-index: -2;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(140px);
    opacity: 0.12;
}

.orb-1 {
    top: -15%;
    right: -10%;
    width: 55vw;
    height: 55vw;
    background: radial-gradient(circle, var(--accent-blue) 0%, rgba(59, 130, 246, 0) 70%);
    animation: float-orb-1 25s infinite alternate ease-in-out;
}

.orb-2 {
    bottom: -20%;
    left: -15%;
    width: 65vw;
    height: 65vw;
    background: radial-gradient(circle, var(--accent-purple) 0%, rgba(139, 92, 246, 0) 70%);
    animation: float-orb-2 30s infinite alternate ease-in-out;
}

@keyframes float-orb-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 10%) scale(1.15); }
}

@keyframes float-orb-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-8%, -10%) scale(1.2); }
}

/* Glassmorphism Refined */
.dark-glass {
    background: rgba(13, 13, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.highlight-glass {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.08), rgba(139, 92, 246, 0.04));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(139, 92, 246, 0.25);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   NUEVA SECCIÓN: METODOLOGÍA
   ========================================================================== */
.metodologia {
    padding: 90px 0;
    position: relative;
}

.metodologia-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.metodologia-card {
    padding: 50px 40px;
    position: relative;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.metodologia-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.step-num {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.8;
    line-height: 1;
    margin-bottom: 20px;
}

.metodologia-card h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    line-height: 1.3;
}

.metodologia-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.time-badge {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 6px;
    font-size: 0.75rem;
    color: #60a5fa;
    margin-top: 6px;
    font-weight: 600;
}

/* ==========================================================================
   PORTAFOLIO INTERACTIVO & FILTROS
   ========================================================================== */
.portfolio-filters {
    display: flex;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    padding: 10px 22px;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.filter-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Tarjetas del portafolio con capturas simuladas */
.portfolio-item {
    cursor: pointer;
    transition: var(--transition);
}

.img-wrapper {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    height: 280px; /* Reducido para encajar mejor en grilla de 2 columnas */
    border: 1px solid var(--border-color);
}

.overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 7, 10, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
}

.portfolio-item:hover .overlay-hover {
    opacity: 1;
}

.btn-preview-trigger {
    background: var(--gradient-primary);
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    transform: translateY(10px);
    transition: var(--transition);
}

.portfolio-item:hover .btn-preview-trigger {
    transform: translateY(0);
}

/* Capturas de Pantalla Simuladas Exclusivas */
.simulated-screenshot {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: transform 0.5s ease;
}

.portfolio-item:hover .simulated-screenshot {
    transform: scale(1.05);
}

.badge-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Fondos temáticos simulados para la galería */
.bento-theme {
    background: linear-gradient(135deg, #1e1b4b 0%, #311042 100%);
    background-image: radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
                      radial-gradient(circle at 80% 70%, rgba(236, 72, 153, 0.15) 0%, transparent 50%);
}
.bento-theme::after {
    content: "🍱 Bento Layout Grid";
    font-family: 'Outfit', sans-serif;
    color: #818cf8;
    font-size: 1.1rem;
    font-weight: 600;
}

.glass-theme {
    background: linear-gradient(135deg, #090d16 0%, #111827 100%);
    background-image: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.2) 0%, transparent 60%);
}
.glass-theme::after {
    content: "💎 Glassmorphic UI";
    font-family: 'Outfit', sans-serif;
    color: #60a5fa;
    font-size: 1.1rem;
    font-weight: 600;
}

.neobrutalism-theme {
    background: #ffde4d;
    background-image: radial-gradient(#000000 1px, transparent 1px);
    background-size: 16px 16px;
}
.neobrutalism-theme::after {
    content: "⚡ NeoBrutalism";
    font-family: 'Outfit', sans-serif;
    color: #000;
    font-size: 1.2rem;
    font-weight: 800;
    border: 3px solid #000;
    padding: 8px 16px;
    background: #fff;
    box-shadow: 4px 4px 0 #000;
}

.editorial-theme {
    background: #fdfcf7;
}
.editorial-theme::after {
    content: "📐 Editorial Minimalist";
    font-family: 'Outfit', sans-serif;
    color: #1c1917;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1px;
}

.leadform-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.leadform-theme::after {
    content: "✉️ Conversion Leadform";
    font-family: 'Outfit', sans-serif;
    color: #38bdf8;
    font-size: 1.1rem;
    font-weight: 600;
}

.cyberglow-theme {
    background: #030712;
    background-image: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 70%);
}
.cyberglow-theme::after {
    content: "👾 Cyber Neon Glow";
    font-family: 'Outfit', sans-serif;
    color: #a78bfa;
    font-size: 1.1rem;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.8);
}

.organic-theme {
    background: linear-gradient(135deg, #152219 0%, #0d140f 100%);
}
.organic-theme::after {
    content: "🌿 Organic & Natural";
    font-family: 'Outfit', sans-serif;
    color: #34d399;
    font-size: 1.1rem;
    font-weight: 500;
}

.typographic-theme {
    background: #0f172a;
    border-bottom: 4px solid var(--accent-blue);
}
.typographic-theme::after {
    content: "🖋️ Corporate Typography";
    font-family: 'Outfit', sans-serif;
    color: #e2e8f0;
    font-size: 1.1rem;
    font-weight: 600;
}

.timeline-theme {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
}
.timeline-theme::after {
    content: "⏳ Timeline History Flow";
    font-family: 'Outfit', sans-serif;
    color: #f472b6;
    font-size: 1.1rem;
    font-weight: 600;
}

.dashboard-theme {
    background: #0f111a;
}
.dashboard-theme::after {
    content: "📊 Dashboard Interface";
    font-family: 'Outfit', sans-serif;
    color: #fbbf24;
    font-size: 1.1rem;
    font-weight: 600;
}

.project-category {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-blue);
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

/* Ocultar elementos filtrados */
.portfolio-item.hidden {
    display: none;
}

/* ==========================================================================
   MODAL INTERACTIVO PREVIEW (IFRAME SIMULATOR)
   ========================================================================== */
.preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.preview-modal.active {
    opacity: 1;
    pointer-events: all;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(3, 3, 5, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: 92%;
    max-width: 1200px;
    height: 94vh;
    background: rgba(18, 18, 24, 0.85);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    z-index: 2;
}

.preview-modal.active .modal-container {
    transform: scale(1) translateY(0);
}

/* Cabecera del modal */
.modal-header {
    padding: 8px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 18, 0.5);
}

.modal-title-info h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
}

.modal-style-pill {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Selectores de Dispositivo */
.device-selectors {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px;
    border-radius: 10px;
}

.device-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 6px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.device-btn:hover {
    color: #fff;
}

.device-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--accent-blue);
}

.modal-close-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

/* Cuerpo del modal (Simulador) */
.modal-body {
    flex: 1;
    background: #090a0f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    overflow: hidden;
}

.iframe-viewport {
    height: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    border: 4px solid #1e293b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.iframe-viewport.desktop {
    width: 100%;
}

.iframe-viewport.tablet {
    width: 768px;
    max-width: 100%;
}

.iframe-viewport.mobile {
    width: 375px;
    max-width: 100%;
}

.iframe-viewport iframe {
    width: 100%;
    height: 100%;
    background: #fff;
}

/* Footer del modal */
.modal-footer {
    padding: 8px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(13, 13, 18, 0.5);
}

.modal-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.modal-footer .btn-whatsapp {
    padding: 8px 18px;
    font-size: 0.85rem;
    box-shadow: 0 4px 10px rgba(37, 211, 102, 0.2);
}

/* ==========================================================================
   MEDIA QUERIES DE ADAPTABILIDAD ADICIONALES
   ========================================================================== */
@media (max-width: 1200px) {
    .metodologia-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .metodologia {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .metodologia-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .metodologia-card {
        padding: 35px 25px;
    }
    .modal-footer {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    .device-selectors {
        display: none; /* Ocultar en móviles para evitar problemas de espacio */
    }
}

/* ==========================================================================
   MINIATURAS VISUALES DE INTERFACES DEL PORTAFOLIO (CSS WORK)
   ========================================================================== */
/* Reajuste de la tipografía e interacciones del simulated-screenshot */
.simulated-screenshot {
    flex-direction: column;
    gap: 16px;
    padding-top: 20px;
}

/* Bento Mini Grid */
.mini-bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 28px;
    gap: 6px;
    width: 80%;
    max-width: 200px;
    margin-top: 15px;
}
.mini-bento-grid div {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
}
.grid-item-1 { grid-column: span 2; grid-row: span 2; background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(236, 72, 153, 0.05)) !important; }
.grid-item-2 { grid-column: span 1; grid-row: span 1; }
.grid-item-3 { grid-column: span 1; grid-row: span 2; background: rgba(59, 130, 246, 0.1) !important; }
.grid-item-4 { grid-column: span 2; grid-row: span 1; }

/* Glassmorphism Mini Layout */
.mini-glass-container {
    position: relative;
    width: 80%;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 15px;
}
.mini-glass-circle {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    filter: blur(8px);
    opacity: 0.7;
    z-index: 1;
}
.mini-glass-card {
    position: relative;
    width: 120px;
    height: 65px;
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    z-index: 2;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

/* NeoBrutalism Mini Layout */
.mini-neobrutalism-box {
    background: #ffde4d;
    border: 3px solid #000;
    width: 140px;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    box-shadow: 5px 5px 0 #000;
    margin-top: 15px;
}
.mini-neobrutalism-button {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 4px 10px;
    box-shadow: 2px 2px 0 #000;
    font-family: 'Outfit', sans-serif;
}

/* Editorial Mini Layout */
.mini-editorial-box {
    background: #fdfcf7;
    width: 140px;
    height: 90px;
    border: 1px solid #e7e5e4;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}
.mini-editorial-line-title {
    width: 60px;
    height: 6px;
    background: #1c1917;
}
.mini-editorial-block-content {
    flex: 1;
    background: #e7e5e4;
    width: 100%;
}

/* Lead Form Mini Layout */
.mini-form-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 8px;
    width: 140px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}
.mini-form-title {
    width: 40px;
    height: 4px;
    background: #38bdf8;
    margin-bottom: 2px;
}
.mini-form-input {
    width: 100%;
    height: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
}
.mini-form-btn {
    width: 100%;
    height: 14px;
    background: #38bdf8;
    border-radius: 4px;
}

/* Cyber Neon Glow Box */
.mini-cyber-neon-box {
    width: 130px;
    height: 75px;
    border: 2px solid #a78bfa;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(167, 139, 250, 0.4), inset 0 0 10px rgba(167, 139, 250, 0.2);
    background: rgba(17, 12, 28, 0.6);
    margin-top: 15px;
}

/* Organic Leaf Layout */
.mini-organic-card {
    width: 130px;
    height: 75px;
    background: #142118;
    border: 1px solid rgba(34, 197, 94, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 15px;
}
.mini-organic-leaf {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #10b981 0%, #047857 100%);
    border-radius: 0 30px;
}

/* Typographic Layout */
.mini-typographic-layout {
    width: 80%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 15px;
}
.mini-typo-1 {
    width: 100%;
    height: 8px;
    background: #e2e8f0;
    border-radius: 2px;
}
.mini-typo-2 {
    width: 60%;
    height: 8px;
    background: #64748b;
    border-radius: 2px;
}

/* Timeline Layout */
.mini-timeline-container {
    width: 80%;
    height: 80px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding-left: 20px;
    margin-top: 15px;
}
.mini-timeline-container::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 5px;
    bottom: 5px;
    width: 2px;
    background: rgba(244, 114, 182, 0.2);
}
.mini-timeline-node {
    position: relative;
    width: 100%;
    height: 10px;
}
.mini-timeline-node::before {
    content: "";
    position: absolute;
    left: -20px;
    top: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f472b6;
    box-shadow: 0 0 8px #f472b6;
}
.mini-timeline-node::after {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 50px;
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

/* Dashboard Layout */
.mini-dashboard-container {
    width: 150px;
    height: 80px;
    background: #0f111a;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    margin-top: 15px;
}
.mini-dashboard-sidebar {
    width: 35px;
    background: #07070a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.mini-dashboard-charts {
    flex: 1;
    padding: 8px;
    display: flex;
    gap: 6px;
    align-items: flex-end;
}
.mini-dashboard-charts div {
    flex: 1;
    background: #fbbf24;
    border-radius: 3px 3px 0 0;
}
.chart-1 { height: 60%; background: linear-gradient(to top, #fbbf24, #d97706) !important; }
.chart-2 { height: 40%; background: linear-gradient(to top, #3b82f6, #1d4ed8) !important; }

/* ==========================================================================
   PORTAFOLIO COLAPSABLE & TRANSICIONES
   ========================================================================== */
.portfolio-grid.portfolio-collapsed .portfolio-item[data-collapsed="true"] {
    display: none !important;
}

.portfolio-collapse-btn-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

/* ==========================================================================
   FORMULARIOS GLASSMORPHIC (LANDING Y CONTACTO)
   ========================================================================== */
.cotizacion-landing {
    padding: 90px 0;
    background: rgba(0, 0, 0, 0.1);
}

.contact-form-wrapper {
    padding: 45px;
    border-radius: var(--border-radius);
    max-width: 850px;
    margin: 0 auto;
}

.glass-contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.glass-contact-form input,
.glass-contact-form select,
.glass-contact-form textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px 18px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
}

.glass-contact-form input:focus,
.glass-contact-form select:focus,
.glass-contact-form textarea:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.15);
}

.glass-contact-form select option {
    background: #0b0c10;
    color: #fff;
}

.btn-submit {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

/* ==========================================================================
   ESTILOS DE SUBPÁGINAS: NOSOTROS Y CONTACTO
   ========================================================================== */
.page-banner {
    padding: 180px 0 60px 0;
    text-align: center;
    position: relative;
}

.page-banner h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 16px;
    letter-spacing: -1px;
}

.banner-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Nosotros */
.nosotros-content {
    padding: 60px 0;
}

.nosotros-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.nosotros-card {
    padding: 45px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-line {
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.nosotros-card h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    color: #fff;
}

.nosotros-card p {
    color: var(--text-muted);
    line-height: 1.75;
    font-size: 0.98rem;
}

.valores-section {
    padding: 60px 0 90px 0;
}

.valores-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.valor-card {
    padding: 35px 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
}

.valor-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.25);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.valor-icon {
    font-size: 2.2rem;
}

.valor-card h4 {
    font-size: 1.25rem;
    color: #fff;
}

.valor-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* Contacto Página */
.contacto-section-page {
    padding: 40px 0 90px 0;
}

.contacto-page-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-info-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-card {
    padding: 35px 30px;
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-icon {
    font-size: 2.5rem;
}

.info-card h4 {
    font-size: 1.3rem;
    color: #fff;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.contact-details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-details-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.contact-details-list li strong {
    color: #fff;
    display: block;
    margin-bottom: 2px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-instructions {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

/* ==========================================================================
   INTERACCIONES SVG & POPUP SECTOR DE CONTACTO
   ========================================================================== */
.whatsapp-icon-svg {
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover .whatsapp-icon-svg {
    transform: scale(1.15) rotate(-5deg);
}

/* Responsivo para nuevos elementos */
@media (max-width: 992px) {
    .nosotros-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .contacto-page-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .valores-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .contact-form-wrapper {
        padding: 30px 20px;
    }
}

/* ==========================================================================
   BOTÓN DE ALTERNANCIA DE TEMA (DARK/LIGHT)
   ========================================================================== */
.btn-theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1.1rem;
    margin-right: 12px;
    vertical-align: middle;
}
.btn-theme-toggle:hover {
    background: var(--bg-glass);
    transform: scale(1.05);
}

/* ==========================================================================
   MODO CLARO (LIGHT MODE)
   ========================================================================== */
body.light-mode {
    --bg-dark: #f8fafc;
    --bg-card: rgba(0, 0, 0, 0.02);
    --bg-glass: rgba(255, 255, 255, 0.7);
    --text-main: #0f172a;
    --text-muted: #475569; /* Contraste mejorado (antes #64748b) */
    --accent-blue: #2563eb;
    --accent-purple: #7c3aed;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --border-color: rgba(0, 0, 0, 0.08);
}

body.light-mode .glow-orb {
    opacity: 0.18; 
}
body.light-mode header.scrolled {
    background: rgba(248, 250, 252, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}
body.light-mode .dark-glass {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.light-mode .highlight-glass {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.03));
    border: 1px solid rgba(124, 58, 237, 0.15);
}
body.light-mode .pricing-card.featured {
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.08);
}

/* Optimización visual de sección portafolio en modo claro */
body.light-mode .portfolio {
    background: rgba(255, 255, 255, 0.4);
}
body.light-mode .portfolio-item {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}
body.light-mode .portfolio-item:hover {
    border-color: rgba(37, 99, 235, 0.3);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.08);
}
body.light-mode .portfolio-info p {
    color: var(--text-muted);
}
body.light-mode .portfolio-filters button:not(.active) {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: var(--text-muted) !important;
}
body.light-mode .portfolio-filters button:not(.active):hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--text-main) !important;
}

body.light-mode .social-proof {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .logo-item {
    color: #475569;
}
body.light-mode .btn-secondary {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
}
body.light-mode .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.05);
}
body.light-mode .glass-contact-form input, 
body.light-mode .glass-contact-form select, 
body.light-mode .glass-contact-form textarea {
    background: rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    color: #0f172a !important;
}
body.light-mode .glass-contact-form input:focus, 
body.light-mode .glass-contact-form select:focus, 
body.light-mode .glass-contact-form textarea:focus {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: var(--accent-blue) !important;
}
body.light-mode .glass-contact-form select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

/* Modales en modo claro */
body.light-mode .preview-modal .modal-container {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15) !important;
}
body.light-mode .preview-modal .modal-header, 
body.light-mode .preview-modal .modal-footer {
    background: rgba(248, 250, 252, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.06) !important;
}
body.light-mode .preview-modal .modal-title-info h3, 
body.light-mode .preview-modal .modal-close-btn, 
body.light-mode .preview-modal h3, 
body.light-mode .preview-modal p {
    color: #0f172a !important;
}
body.light-mode .preview-modal .modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.1) !important;
}
body.light-mode #selector-form-btn {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* Correcciones de visibilidad para textos fijos claros y badges */
body.light-mode h1,
body.light-mode h2,
body.light-mode h3,
body.light-mode h4,
body.light-mode h5,
body.light-mode h6,
body.light-mode .valor-card h4,
body.light-mode .info-card h4,
body.light-mode .contact-details-list li strong {
    color: #0f172a !important;
}
body.light-mode .features-list li {
    color: var(--text-main) !important;
}
body.light-mode .time-badge {
    background: rgba(37, 99, 235, 0.08) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
    color: #1d4ed8 !important;
}
body.light-mode footer {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}
body.light-mode .cta-box {
    background: linear-gradient(145deg, rgba(37, 99, 235, 0.05), rgba(124, 58, 237, 0.02)) !important;
    border: 1px solid rgba(124, 58, 237, 0.15) !important;
}

/* ==========================================================================
   PERFECCIONAMIENTO DE LA SECCIÓN DE PRECIOS EN MODO CLARO
   ========================================================================== */
body.light-mode .pricing-guarantee-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.06), rgba(124, 58, 237, 0.04)) !important;
    border: 1px solid rgba(37, 99, 235, 0.2) !important;
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.06) !important;
}

body.light-mode .pricing-guarantee-banner p {
    color: #1e293b !important;
}

body.light-mode .pricing-guarantee-banner strong {
    color: #2563eb !important;
}

body.light-mode .pricing-card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .pricing-card:hover {
    border-color: #2563eb !important;
    box-shadow: 0 20px 45px rgba(37, 99, 235, 0.12) !important;
    transform: translateY(-4px);
}

body.light-mode .pricing-card.featured {
    background: #ffffff !important;
    border: 2px solid rgba(37, 99, 235, 0.4) !important;
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.15) !important;
}

body.light-mode .popular-badge {
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
}

body.light-mode .card-header {
    border-bottom-color: rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .setup-badge-box {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .setup-label {
    color: #64748b !important;
}

body.light-mode .setup-value {
    color: #0284c7 !important;
    font-weight: 700 !important;
}

body.light-mode .price-mrr {
    color: #0f172a !important;
}

body.light-mode .mrr-text {
    color: #475569 !important;
    font-weight: 600 !important;
}

body.light-mode .plan-tag {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #1d4ed8 !important;
    border-color: rgba(37, 99, 235, 0.25) !important;
}

body.light-mode .plan-tag.tag-ecommerce {
    background: rgba(219, 39, 119, 0.1) !important;
    color: #be185d !important;
    border-color: rgba(219, 39, 119, 0.25) !important;
}

body.light-mode .plan-tag.tag-ai {
    background: rgba(126, 34, 206, 0.1) !important;
    color: #6b21a8 !important;
    border-color: rgba(126, 34, 206, 0.25) !important;
}

body.light-mode .btn-block:not(.primary, .outline) {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
}

body.light-mode .btn-block:not(.primary, .outline):hover {
    background: #e2e8f0 !important;
}

body.light-mode .btn-block.outline {
    border: 1px solid rgba(15, 23, 42, 0.25) !important;
    color: #0f172a !important;
}

body.light-mode .btn-block.outline:hover {
    background: rgba(15, 23, 42, 0.05) !important;
}

body.light-mode .highlight-ticket {
    color: #b45309 !important;
    background: rgba(245, 158, 11, 0.15) !important;
}

/* ==========================================================================
   WIDGET CHATBOT IA FLOTANTE (MÓDULO 0)
   ========================================================================== */
.ai-chatbot-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.ai-chatbot-widget.pos-bottom-left {
    right: auto !important;
    left: 30px !important;
}

.ai-chatbot-widget.pos-bottom-left .chatbot-window {
    right: auto !important;
    left: 0 !important;
}

.ai-chatbot-widget.pos-bottom-right {
    left: auto !important;
    right: 30px !important;
}

.ai-chatbot-widget.pos-bottom-right .chatbot-window {
    left: auto !important;
    right: 0 !important;
}

/* Botón Flotante */
.chatbot-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1.6rem;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition);
}

.chatbot-toggle-btn:hover {
    transform: scale(1.08) rotate(5deg);
    box-shadow: 0 12px 30px rgba(59, 130, 246, 0.6);
}

.chatbot-badge-pulse {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border: 2px solid #07070a;
    border-radius: 50%;
}

/* Ventana del Chatbot */
.chatbot-window {
    position: absolute;
    bottom: 75px;
    right: 0;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 520px;
    max-height: calc(100vh - 120px);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.chatbot-window.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Header del Chatbot */
.chatbot-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chatbot-avatar-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chatbot-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
}

.chatbot-header h4 {
    font-size: 0.95rem;
    color: #fff;
    margin: 0;
}

.chatbot-status {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}

.chatbot-close-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
}

.chatbot-close-btn:hover {
    color: #fff;
}

/* Cuerpo de Mensajes */
.chatbot-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.chat-message {
    max-width: 82%;
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 0.9rem;
    line-height: 1.5;
    position: relative;
    word-break: break-word;
}

.chat-message.bot-message {
    align-self: flex-start;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #f1f5f9;
    border-top-left-radius: 4px;
}

.chat-message.user-message {
    align-self: flex-end;
    background: var(--gradient-primary);
    color: #ffffff;
    border-top-right-radius: 4px;
}

.chat-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.6;
    margin-top: 4px;
    text-align: right;
}

/* Input Form */
.chatbot-input-form {
    padding: 14px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.chatbot-input-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 10px 16px;
    border-radius: 20px;
    color: #fff;
    font-size: 0.88rem;
    outline: none;
    transition: var(--transition);
}

.chatbot-input-form input:focus {
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.08);
}

.chatbot-send-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.chatbot-send-btn:hover {
    transform: scale(1.05);
}

/* Estilos de Chatbot en Modo Claro */
body.light-mode .chatbot-window {
    background: rgba(255, 255, 255, 0.92) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12) !important;
}

body.light-mode .chatbot-header {
    background: rgba(248, 250, 252, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .chatbot-header h4 {
    color: #0f172a !important;
}

body.light-mode .chat-message.bot-message {
    background: #f1f5f9 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    color: #0f172a !important;
}

body.light-mode .chatbot-input-form {
    background: #f8fafc !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06) !important;
}

body.light-mode .chatbot-input-form input {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

/* ==========================================================================
   ESTILOS WIDGET Y MENÚ DESPLEGABLE DE PERFIL DE USUARIO (HEADER)
   ========================================================================== */
.user-profile-container {
    position: relative;
    display: inline-block;
}

.user-profile-trigger {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 6px 14px 6px 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    user-select: none;
}

.user-profile-trigger:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.user-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-pink, #f43f5e) 0%, var(--accent-purple, #8b5cf6) 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    flex-shrink: 0;
}

.user-name-text {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main, #ffffff);
    max-width: 130px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-caret {
    font-size: 0.65rem;
    color: var(--text-muted, rgba(255, 255, 255, 0.6));
    transition: transform 0.25s ease;
}

.user-profile-container.active .user-dropdown-caret {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: rgba(15, 23, 42, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1050;
}

.user-profile-container.active .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    text-align: left;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.dropdown-item.logout-item {
    color: #f87171;
    margin-top: 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-item.logout-item:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #fca5a5;
}

/* Modo Claro Header User Widget */
body.light-mode .user-profile-trigger {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Modo Claro Header User Widget */
body.light-mode .user-profile-trigger {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.12);
}

body.light-mode .user-profile-trigger:hover {
    background: rgba(0, 0, 0, 0.08);
}

/* ==========================================================================
   OPTIMIZACIÓN RESPONSIVA Y BREAKPOINTS MÓVILES (375px - 768px)
   ========================================================================== */
@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr !important;
        gap: 25px !important;
    }

    .pricing-card {
        padding: 25px 20px !important;
    }

    .pricing-card.popular {
        transform: none !important;
    }

    .hero h1 {
        font-size: 2.1rem !important;
        line-height: 1.25 !important;
    }

    .hero-content {
        padding: 40px 15px !important;
    }

    .hero-actions div {
        flex-direction: column !important;
        width: 100% !important;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
    }

    .nav-menu:not(.active) {
        display: none !important;
    }

    #swp-cookie-banner {
        left: 10px !important;
        right: 10px !important;
        bottom: 10px !important;
        padding: 14px 16px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    .section-header h2 {
        font-size: 1.6rem !important;
    }

    .card-header {
        min-height: auto !important;
    }

    .btn-block {
        position: static !important;
        margin-top: 20px !important;
    }
}

body.light-mode .user-name-text {
    color: #0f172a;
}

body.light-mode .user-dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

body.light-mode .dropdown-item {
    color: #334155;
}

body.light-mode .dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
}


