/* premium.css - Estilos Premium SaaS para Nosotros */

:root {
    --premium-dark: #03080a;
    --premium-glass: rgba(255, 255, 255, 0.03);
    --premium-glass-border: rgba(255, 255, 255, 0.08);
    --glow-green: rgba(0, 230, 118, 0.15);
    --glow-green-intense: rgba(0, 230, 118, 0.3);
}

.container-premium {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-premium {
    background-color: var(--light);
    color: var(--text);
    overflow-x: hidden;
}

/* --- HERO 2.0 --- */
.hero-premium {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 8rem 0 4rem;
    overflow: hidden;
}

.hero-glow-1 {
    position: absolute;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, transparent 70%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.12) 0%, transparent 70%);
    filter: blur(100px);
    z-index: 0;
    pointer-events: none;
}

.hero-glow-3 {
    position: absolute;
    top: -5%;
    right: 10%;
    width: 45vw;
    height: 45vw;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.15) 0%, transparent 70%);
    filter: blur(90px);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title-premium {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.hero-subtitle-premium {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    color: rgba(243, 255, 251, 0.9);
}

.btn-primary-premium {
    background: linear-gradient(135deg, var(--primary), #00c853);
    color: #000 !important;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--glow-green-intense);
}

.btn-primary-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4);
}

.btn-outline-premium {
    background: var(--light);
    border: 1px solid var(--border-light);
    color: var(--text) !important;
    border-radius: 8px;
    font-weight: 600;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.btn-outline-premium:hover {
    background: var(--light-bg);
    border-color: rgba(22, 163, 74, 0.4);
    box-shadow: var(--shadow-md);
}

/* --- DASHBOARD HTML/CSS (SaaS Mockup) --- */
.hero-dashboard-wrapper {
    position: relative;
    z-index: 2;
    height: 600px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0,0,0,0.02);
    overflow: hidden;
}

.hero-dashboard-wrapper::before {
    content: '';
    display: block;
    height: 36px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-light);
    /* macOS Traffic Lights (Blue, Yellow, Green) */
    background-image: 
        radial-gradient(circle 6px at 20px 18px, #3b82f6 100%, transparent 100%),
        radial-gradient(circle 6px at 40px 18px, #ffbd2e 100%, transparent 100%),
        radial-gradient(circle 6px at 60px 18px, #27c93f 100%, transparent 100%);
    background-repeat: no-repeat;
}

.dashboard-abstract {
    position: relative;
    width: 100%;
    height: calc(100% - 36px);
    background: #f8fafc; /* Inner app background */
    perspective: 1000px;
}

.dash-glass-card {
    position: absolute;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.dash-glass-card:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: rgba(22, 163, 74, 0.3);
    box-shadow: var(--shadow-xl);
    z-index: 10;
}

.dash-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.1), rgba(0, 174, 239, 0.1));
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.dash-data {
    display: flex;
    flex-direction: column;
}

.dash-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.dash-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    margin-bottom: 0.2rem;
}

.dash-desc {
    font-size: 0.85rem;
    color: var(--primary);
}

/* Posiciones Dashboard */
.card-1 { top: 15%; right: 10%; width: 260px; animation: float1 8s ease-in-out infinite; z-index: 3; }
.card-2 { top: 45%; left: 8%; width: 240px; animation: float2 10s ease-in-out infinite; z-index: 2; }
.card-3 { bottom: 15%; right: 15%; width: 280px; animation: float3 9s ease-in-out infinite; z-index: 4; }
.card-4 { bottom: 5%; left: 15%; width: 220px; animation: float1 11s ease-in-out infinite reverse; z-index: 1; }

@keyframes float1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }
@keyframes float2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float3 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }

/* SVG Lines */
.dash-connection-lines {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.3;
}
.dash-connection-lines svg { width: 100%; height: 100%; }
.dash-connection-lines path {
    stroke: var(--primary);
    stroke-width: 1;
    fill: none;
    stroke-dasharray: 4;
    animation: dashAnim 20s linear infinite;
}
@keyframes dashAnim { to { stroke-dashoffset: 1000; } }


/* --- SECCIONES COMUNES PREMIUM --- */
.section-premium {
    padding: 6rem 0;
    position: relative;
}

.section-kicker-premium {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 20px;
    color: var(--primary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-heading-premium h2 {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

/* --- QUÉ HACE AIVRA (CARDS PREMIUM) --- */
.premium-service-card {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 3rem 2rem;
    height: 100%;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.premium-service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at top right, rgba(22, 163, 74, 0.05), transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.premium-service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(22, 163, 74, 0.1);
    box-shadow: var(--shadow-hover);
}

.premium-service-card:hover::before { opacity: 1; }

.premium-service-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 2rem;
}

.premium-service-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    color: var(--text);
}

.premium-service-card .result {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-weight: 500;
    position: relative;
}

.premium-service-card .problem {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
}

/* --- POR QUÉ ELEGIR (BENTO GRID) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
}

.bento-item {
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), var(--shadow-sm);
}

.bento-item:hover {
    border-color: transparent;
    background: #ffffff;
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 1px #fff, var(--shadow-hover);
}

.bento-large { grid-column: span 8; }
.bento-small { grid-column: span 4; }
.bento-half { grid-column: span 6; }

.bento-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.5rem;
}

@media (max-width: 991px) {
    .bento-large, .bento-small, .bento-half { grid-column: span 12; }
}

/* --- METODOLOGÍA TIMELINE --- */
.methodology-horizontal {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    padding-top: 2rem;
}

.methodology-horizontal::before {
    content: '';
    position: absolute;
    top: 3.5rem;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), transparent);
    box-shadow: 0 0 10px rgba(22, 163, 74, 0.4);
}

.method-step-h {
    flex: 1;
    position: relative;
    padding-top: 3rem;
}

.step-dot {
    position: absolute;
    top: -0.25rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background: #ffffff;
    border: 3px solid var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(22, 163, 74, 0.4);
    z-index: 2;
    transition: all 0.3s ease;
}

.method-step-h:hover .step-dot {
    transform: translateX(-50%) scale(1.3);
    background: var(--primary);
    border-color: #fff;
}

.step-bg-num {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 8rem;
    font-weight: 900;
    color: rgba(0, 0, 0, 0.03);
    line-height: 1;
    z-index: 0;
    pointer-events: none;
}

.method-step-h-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.method-step-h-content i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

@media (max-width: 991px) {
    .methodology-horizontal { flex-direction: column; }
    .methodology-horizontal::before { display: none; }
    .step-bg-num { left: 10%; }
}

/* --- CREDENCIALES DIGITALES PREMIUM --- */
.digital-credential {
    background: rgba(10, 20, 25, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 230, 118, 0.2);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.digital-credential::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: conic-gradient(from 0deg, transparent, rgba(0,230,118,0.2), transparent 30%);
    animation: rotateBorder 8s linear infinite;
    z-index: 0;
}

.digital-credential::after {
    content: '';
    position: absolute;
    inset: 1px;
    background: var(--premium-dark);
    border-radius: 23px;
    z-index: 1;
}

.cred-content {
    position: relative;
    z-index: 2;
}

.cred-badges {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.cred-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 230, 118, 0.1);
    border: 1px solid rgba(0, 230, 118, 0.3);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cred-badge.openbadge {
    background: rgba(0, 174, 239, 0.1);
    border-color: rgba(0, 174, 239, 0.3);
    color: var(--secondary);
}

.digital-credential h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.digital-credential .institution {
    font-size: 1.1rem;
    color: rgba(243, 255, 251, 0.7);
    margin-bottom: 2rem;
}

.cred-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--premium-glass-border);
}

.meta-item span {
    display: block;
    font-size: 0.8rem;
    color: rgba(243, 255, 251, 0.5);
    text-transform: uppercase;
    margin-bottom: 0.3rem;
}

.meta-item strong {
    font-size: 1.1rem;
    color: var(--light);
}

/* --- FUNDADOR PREMIUM --- */
.founder-premium-card {
    background: var(--premium-glass);
    border: 1px solid var(--premium-glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    gap: 3rem;
    align-items: center;
}

.founder-photo-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,230,118,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.1);
    font-size: 4rem;
    color: var(--primary);
    flex-shrink: 0;
}

.founder-info h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.founder-info .role {
    font-size: 1.1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.f-skill {
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .founder-premium-card { flex-direction: column; text-align: center; gap: 2rem; }
    .founder-skills { justify-content: center; }
}

/* --- TECNOLOGÍAS LOGOS --- */
.tech-category {
    background: var(--premium-glass);
    border: 1px solid var(--premium-glass-border);
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
}

.tech-category h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--light);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.tech-item:hover {
    background: rgba(0, 230, 118, 0.05);
    border-color: rgba(0, 230, 118, 0.3);
}

.tech-item i {
    font-size: 1.5rem;
    color: rgba(255,255,255,0.7);
}

/* --- CTA FINAL B2B (MESH GRADIENT) --- */
.cta-premium {
    position: relative;
    padding: 10rem 0;
    background-color: var(--dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(22, 163, 74, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(14, 165, 233, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.8) 0%, transparent 60%);
    overflow: hidden;
    color: var(--light);
}

.cta-premium::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI0IiBoZWlnaHQ9IjQiPgo8cmVjdCB3aWR0aD0iNCIgaGVpZ2h0PSI0IiBmaWxsPSIjZmZmIiBmaWxsLW9wYWNpdHk9IjAuMDUiLz4KPC9zdmc+') repeat;
    pointer-events: none;
    z-index: 1;
}

.cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.2) 0%, transparent 50%);
    z-index: 0;
    animation: pulseGlow 8s infinite alternate ease-in-out;
}

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

.cta-premium-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-premium-content h2 {
    font-size: clamp(3.5rem, 6vw, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    line-height: 1.1;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

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

/* --- HYBRID THEME CLASSES (LIGHT MODE CONTENT) --- */
.bg-light-theme {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

.text-dark-theme {
    color: #111827 !important;
}

.text-dark-muted {
    color: #4b5563 !important;
}

.card-light {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
}

.card-light:hover {
    border-color: rgba(0, 230, 118, 0.4) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.border-light-theme {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

/* --- PREMIUM SEARCH BAR --- */
.search-bar-premium {
    position: relative;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 100px;
    padding: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04), 0 0 0 4px rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.search-bar-premium:focus-within {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08), 0 0 0 4px rgba(0, 230, 118, 0.1);
    transform: translateY(-2px);
}

.search-bar-premium .search-icon {
    color: #9ca3af;
    font-size: 1.1rem;
    margin-left: 1.2rem;
    margin-right: 0.5rem;
}

.search-bar-premium .search-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    color: #1f2937;
    font-size: 1.05rem;
    padding: 0.8rem 1rem;
    outline: none;
}

.search-bar-premium .search-input::placeholder {
    color: #9ca3af;
}

.search-bar-premium .search-btn {
    border-radius: 100px;
    padding: 0.8rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    box-shadow: 0 4px 15px rgba(22, 163, 74, 0.3);
}
