/* ==========================================================================
   VALVASOFT - SISTEMA DE DISEÑO DEEP TECH & GLASSMORPHISM 2.0
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Paleta Principal */
    --valva-bg-main: #07090e;
    --valva-bg-secondary: #0c1017;
    --valva-surface: rgba(18, 24, 38, 0.75);
    --valva-surface-hover: rgba(26, 35, 54, 0.9);
    --valva-surface-solid: #111726;
    
    /* Acentos de Marca */
    --valva-green: #10b981;
    --valva-green-bright: #34d399;
    --valva-green-neon: #a3e635;
    --valva-green-glow: rgba(16, 185, 129, 0.35);
    --valva-cyan: #06b6d4;
    --valva-gradient-primary: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --valva-gradient-accent: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    --valva-gradient-card: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    
    /* Tipografía y Textos */
    --valva-text-main: #f8fafc;
    --valva-text-muted: #94a3b8;
    --valva-text-dim: #64748b;
    --valva-border: rgba(255, 255, 255, 0.08);
    --valva-border-focus: rgba(16, 185, 129, 0.5);
    
    /* Efectos & Sombras */
    --valva-shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
    --valva-shadow-glow: 0 0 25px rgba(16, 185, 129, 0.25);
    --valva-transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--valva-bg-main);
    color: var(--valva-text-main);
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.7;
    overflow-x: hidden;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 85% 65%, rgba(6, 182, 212, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
}

/* Tipografías */
h1, h2, h3, h4, h5, h6 {
    color: var(--valva-text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.text-gradient {
    background: linear-gradient(135deg, #ffffff 30%, #a3e635 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #34d399 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-muted {
    color: var(--valva-text-muted) !important;
}

.lead {
    color: var(--valva-text-muted);
    font-weight: 400;
}

/* ==========================================================================
   BARRA DE NAVEGACIÓN (Frosted Glass)
   ========================================================================== */
.navbar-valva {
    background: rgba(7, 9, 14, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--valva-border);
    padding: 14px 0;
    transition: var(--valva-transition);
    z-index: 1030;
}

.navbar-valva.scrolled {
    background: rgba(7, 9, 14, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 10px 0;
    border-bottom-color: rgba(16, 185, 129, 0.2);
}

.navbar-brand img {
    height: 44px;
    width: auto;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
    transition: var(--valva-transition);
}

.navbar-brand:hover img {
    transform: scale(1.02);
}

.navbar-nav .nav-link {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    border-radius: 8px;
    transition: var(--valva-transition);
    position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--valva-green);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--valva-green);
}

.navbar-toggler {
    border: 1px solid var(--valva-border);
    padding: 8px 12px;
    color: #fff;
    border-radius: 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px var(--valva-green-glow);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding-top: 110px;
    padding-bottom: 80px;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -2;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7, 9, 14, 0.75) 0%, rgba(7, 9, 14, 0.95) 100%);
    z-index: -1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 30px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
    backdrop-filter: blur(8px);
}

.hero-badge i {
    color: #a3e635;
}

.hero-title {
    font-size: clamp(2.3rem, 5vw, 4.1rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    color: #cbd5e1;
    max-width: 720px;
    margin: 0 auto 36px auto;
    line-height: 1.7;
}

/* ==========================================================================
   BOTONES Y ACCIONES
   ========================================================================== */
.btn-valva-primary {
    background: var(--valva-gradient-primary);
    color: #07090e !important;
    font-weight: 700;
    font-size: 0.98rem;
    padding: 14px 32px;
    border-radius: 12px;
    border: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--valva-transition);
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.35);
    text-decoration: none;
}

.btn-valva-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.55);
    color: #050505 !important;
}

.btn-valva-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--valva-border);
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.98rem;
    padding: 14px 28px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(8px);
    transition: var(--valva-transition);
    text-decoration: none;
}

.btn-valva-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-valva-outline {
    background: transparent;
    border: 1.5px solid var(--valva-green);
    color: var(--valva-green-bright) !important;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 10px;
    transition: var(--valva-transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-valva-outline:hover {
    background: var(--valva-green);
    color: #050505 !important;
    box-shadow: 0 0 15px var(--valva-green-glow);
}

/* ==========================================================================
   METRICS & AUTHORITY STRIP
   ========================================================================== */
.metrics-strip {
    background: var(--valva-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-top: 1px solid var(--valva-border);
    border-bottom: 1px solid var(--valva-border);
    padding: 40px 0;
    position: relative;
    z-index: 10;
}

.metric-item {
    text-align: center;
    padding: 10px 15px;
    border-right: 1px solid var(--valva-border);
}

.metric-item:last-child {
    border-right: none;
}

.metric-number {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 40%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-label {
    color: var(--valva-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    margin: 0;
}

@media (max-width: 768px) {
    .metric-item {
        border-right: none;
        border-bottom: 1px solid var(--valva-border);
        padding: 20px 10px;
    }
    .metric-item:last-child {
        border-bottom: none;
    }
}

/* ==========================================================================
   GLASS CARDS & COMPONENTES
   ========================================================================== */
.glass-card {
    background: var(--valva-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--valva-border);
    border-radius: 16px;
    padding: 30px;
    transition: var(--valva-transition);
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.glass-card:hover {
    background: var(--valva-surface-hover);
    border-color: rgba(16, 185, 129, 0.35);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6), var(--valva-shadow-glow);
}

/* Tarjetas de Soluciones (Index) */
.solution-card-modern {
    position: relative;
    border-radius: 18px;
    overflow: hidden;
    height: 340px;
    border: 1px solid var(--valva-border);
    box-shadow: var(--valva-shadow-card);
    transition: var(--valva-transition);
    cursor: pointer;
    background: var(--valva-surface-solid);
    display: block;
    text-decoration: none !important;
}

.solution-card-modern .card-img-wrapper {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.solution-card-modern .card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
    filter: brightness(0.8);
}

.solution-card-modern:hover .card-img-wrapper img {
    transform: scale(1.08);
    filter: brightness(0.65);
}

.solution-card-modern .card-content-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(7, 9, 14, 0.95) 0%, rgba(7, 9, 14, 0.4) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    z-index: 2;
    transition: var(--valva-transition);
}

.solution-card-modern .card-tag {
    display: inline-block;
    color: #34d399;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.solution-card-modern .card-title {
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.solution-card-modern .card-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 0.88rem;
    font-weight: 600;
    transition: var(--valva-transition);
}

.solution-card-modern:hover {
    border-color: rgba(16, 185, 129, 0.5);
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), var(--valva-shadow-glow);
}

.solution-card-modern:hover .card-arrow {
    color: #34d399;
    transform: translateX(4px);
}

/* ==========================================================================
   CATÁLOGO / PRODUCTOS (Bento Style Cards)
   ========================================================================== */
.product-card-modern {
    background: var(--valva-surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--valva-border);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: var(--valva-transition);
}

.product-card-modern:hover {
    border-color: rgba(16, 185, 129, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -10px rgba(0, 0, 0, 0.7), var(--valva-shadow-glow);
}

.product-card-modern .product-thumb {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background: #0d121c;
    border-bottom: 1px solid var(--valva-border);
    transition: transform 0.5s ease;
}

.product-card-modern:hover .product-thumb {
    transform: scale(1.03);
}

.product-card-modern .product-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.badge-tech {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: #34d399;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    display: inline-block;
}

/* ==========================================================================
   SERVICIOS DETAIL LAYOUT
   ========================================================================== */
.service-block {
    background: var(--valva-surface);
    border: 1px solid var(--valva-border);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 40px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: var(--valva-transition);
}

.service-block:hover {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: var(--valva-shadow-card);
}

.service-img-rounded {
    border-radius: 14px;
    border: 1px solid var(--valva-border);
    width: 100%;
    height: 320px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    transition: var(--valva-transition);
}

.service-block:hover .service-img-rounded {
    transform: scale(1.02);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    color: #cbd5e1;
    font-size: 0.98rem;
}

.feature-list li i {
    color: var(--valva-green-bright);
    margin-top: 4px;
    font-size: 1rem;
}

/* ==========================================================================
   FORMULARIO DE CONTACTO
   ========================================================================== */
.contact-container-modern {
    background: var(--valva-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--valva-border);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--valva-shadow-card);
}

.form-label-modern {
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.form-control-modern {
    background-color: rgba(11, 15, 25, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 13px 16px !important;
    font-size: 0.95rem;
    transition: var(--valva-transition);
}

.form-control-modern:focus {
    background-color: rgba(14, 20, 34, 0.95) !important;
    border-color: var(--valva-green) !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
}

.form-control-modern::placeholder {
    color: #64748b;
}

.contact-info-pill {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--valva-border);
    margin-bottom: 16px;
    transition: var(--valva-transition);
    text-decoration: none;
    color: inherit;
}

.contact-info-pill:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(16, 185, 129, 0.3);
    transform: translateX(4px);
    color: inherit;
}

.contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
    color: var(--valva-green-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

/* ==========================================================================
   FOOTER (Deep Slate & Glowing Accents)
   ========================================================================== */
.footer-valva {
    background-color: var(--valva-bg-secondary);
    border-top: 1px solid var(--valva-border);
    color: var(--valva-text-muted);
    padding: 70px 0 30px 0;
    position: relative;
}

.footer-valva::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--valva-green), transparent);
}

.footer-valva h5 {
    color: #ffffff;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 22px;
}

.footer-link {
    color: #94a3b8;
    text-decoration: none;
    transition: var(--valva-transition);
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: var(--valva-green-bright);
    transform: translateX(4px);
}

.social-circle-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--valva-border);
    color: #cbd5e1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px;
    transition: var(--valva-transition);
    text-decoration: none;
}

.social-circle-btn:hover {
    background: var(--valva-green);
    color: #050505;
    border-color: var(--valva-green);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

/* ==========================================================================
   BOTÓN FLOTANTE WHATSAPP
   ========================================================================== */
.whatsapp-floating {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: #ffffff;
    width: 62px;
    height: 62px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    text-decoration: none;
    transition: var(--valva-transition);
}

.whatsapp-floating:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
    color: #ffffff;
}

.whatsapp-floating-tooltip {
    position: absolute;
    right: 76px;
    background: #0f172a;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--valva-transition);
    pointer-events: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-floating:hover .whatsapp-floating-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-4px);
}

/* ==========================================================================
   UTILIDADES & CLASES COMPATIBLES
   ========================================================================== */
.text-valva-bright {
    color: var(--valva-green-bright) !important;
}

.border-valva-bright {
    border-color: rgba(16, 185, 129, 0.3) !important;
}

.bg-valva-bright {
    background-color: var(--valva-green-bright) !important;
}

.section-divider {
    width: 60px;
    height: 3px;
    background: var(--valva-gradient-accent);
    border-radius: 3px;
    margin: 18px auto 0 auto;
}

.hover-green:hover {
    color: var(--valva-green-bright) !important;
}