/* Enhanced Styles - Envasify Web */

/* ========================================
   ESTRATEGIA DE TIPOGRAFÍA HÍBRIDA
   ========================================
   
   ✅ SERIF (Playfair Display) para:
   - Logo "Envasify"
   - Títulos H1, H2, H3
   - Títulos de secciones principales
   - Nombres de planes (pricing)
   - Títulos de características (features)
   - Elementos que requieren AUTORIDAD y CONFIANZA
   
   ✅ SANS-SERIF (Inter) para:
   - Navegación
   - Subtítulos y descripciones
   - Body copy/párrafos
   - Botones y CTAs
   - Formularios y campos
   - Badges y labels
   - Cualquier TEXTO FUNCIONAL
   
   Beneficios:
   - Mayor legibilidad digital (sans-serif)
   - Autoridad legal (serif en títulos)
   - Modernidad tech (sans-serif en UI)
   - Diferenciación visual
   - Mobile friendly
   ======================================== */

/* Professional Color Palette - Basada en Investigación de Identidad de Marca */
:root {
    /* Color Primario: Azul Klein (International Klein Blue) */
    --klein-blue: #002FA7;
    --primary-blue: #002FA7;
    --dark-blue: #001f7a;
    --light-blue: #003fd6;
    --bg-blue: #f0f4ff;
    
    /* Colores Secundarios */
    --sustainability-green: #00A131;
    --innovation-purple: #6A5ACD;
    
    /* Colores de Acento */
    --energy-orange: #FF8C00;
    --vibrant-yellow: #FFF68F;
    
    /* Grises y Neutros */
    --dark-gray: #1f2937;
    --medium-gray: #6b7280;
    --light-gray: #f9fafb;
    --white: #FFFFFF;
    
    /* Estados (Feedback) - Mantenemos verde para éxito */
    --success: #00A131;
    --warning: #FF8C00;
    --error: #EF4444;
    
    /* Compatibilidad - Alias para mantener consistencia */
    --accent-green: #00A131;
}

/* Professional Typography - ESTRATEGIA HÍBRIDA */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
}

/* LOGO TYPOGRAPHY - Visby Medium (alternativa: Poppins Medium) */
.logo-text,
.font-logo {
    font-family: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-transform: none;
}

/* SERIF para títulos principales y elementos de autoridad */
h1, h2, h3 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

/* SANS-SERIF para subtítulos y elementos funcionales */
h4, h5, h6 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

/* Professional Button Styles - SANS-SERIF */
.btn-primary {
    background: linear-gradient(90deg, var(--klein-blue) 0%, var(--innovation-purple) 100%);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 47, 167, 0.3);
}

.btn-secondary {
    background: var(--white);
    color: var(--klein-blue);
    padding: 12px 24px;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid var(--klein-blue);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: var(--klein-blue);
    color: white;
    transform: translateY(-2px);
}

/* Professional Card Styles */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 47, 167, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Professional Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 47, 167, 0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 0.25rem 0;
    min-height: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--dark-gray);
}

.navbar-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

/* NAVEGACIÓN SANS-SERIF para mejor legibilidad */
.navbar-nav a {
    color: var(--dark-gray);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.navbar-nav a:hover {
    color: var(--klein-blue);
}

.navbar-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--klein-blue);
    transition: width 0.3s ease;
}

.navbar-nav a:hover::after {
    width: 100%;
}

/* Professional Hero Section - MEJORADO */
.hero-pattern {
    background: linear-gradient(90deg, 
        rgba(240, 244, 255, 0.8) 0%, 
        rgba(245, 247, 250, 0.6) 50%,
        rgba(250, 245, 255, 0.8) 100%);
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(0, 47, 167, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(106, 90, 205, 0.03) 0%, transparent 50%);
}

.hero {
    background: linear-gradient(135deg, rgba(0,47,167,0.1) 0%, rgba(0,161,49,0.1) 35%, rgba(106,90,205,0.1) 70%, rgba(255,140,0,0.1) 100%);
    padding: 8rem 0 5rem;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero Gradient - Clase alternativa para hero con gradiente azul-verde-morado */
.hero-gradient {
    background: linear-gradient(135deg, rgba(0,47,167,0.1) 0%, rgba(0,161,49,0.1) 35%, rgba(106,90,205,0.1) 70%, rgba(255,140,0,0.1) 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Color Wave Animation - Movimiento sutil del gradiente */
.color-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(0,47,167,0.1) 25%, rgba(0,161,49,0.1) 50%, rgba(106,90,205,0.1) 75%, transparent 100%);
    z-index: 0;
    animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    25% {
        transform: translateX(-10px) translateY(-5px);
    }
    50% {
        transform: translateX(10px) translateY(5px);
    }
    75% {
        transform: translateX(-5px) translateY(-10px);
    }
}

/* Float Animation - Para la card MITECO */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

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

/* HERO TITLE - SERIF para autoridad */
.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

/* HERO SUBTITLE - SANS-SERIF para legibilidad */
.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: #4b5563;
    margin-bottom: 2rem;
    max-width: 600px;
    line-height: 1.8;
    font-weight: 500;
}

.urgent-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 8px;
    padding: 12px 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    animation: gentle-pulse 3s ease-in-out infinite;
}

@keyframes gentle-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.badge-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.demo-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.1);
    position: relative;
    overflow: hidden;
}

.demo-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--klein-blue), var(--sustainability-green));
}

.progress-step {
    transition: all 0.5s ease;
}

.progress-step.active {
    background: rgba(0, 161, 49, 0.1);
    border-color: rgba(0, 161, 49, 0.3);
}

/* TRUST BADGE - SANS-SERIF para legibilidad y modernidad */
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
}

.highlight-text {
    background: linear-gradient(90deg, var(--klein-blue) 0%, var(--sustainability-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.stat-circle {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--sustainability-green) 0%, #008824 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    color: white;
    box-shadow: 0 8px 20px rgba(0, 161, 49, 0.3);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Professional Feature Cards */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.feature-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(135, 169, 107, 0.1);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--klein-blue) 0%, var(--sustainability-green) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

/* Feature Icons con gradientes específicos según imágenes */
.feature-icon.icon-time {
    background: linear-gradient(135deg, var(--klein-blue) 0%, var(--sustainability-green) 100%);
}

.feature-icon.icon-shield {
    background: var(--sustainability-green);
}

.feature-icon.icon-plugin {
    background: var(--innovation-purple);
}

.feature-icon.icon-dashboard {
    background: linear-gradient(135deg, var(--klein-blue) 0%, var(--innovation-purple) 50%, var(--energy-orange) 100%);
}

/* FEATURE TITLE - SERIF para importancia */
.feature-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--klein-blue);
    margin-bottom: 1rem;
}

/* FEATURE DESCRIPTION - SANS-SERIF para legibilidad */
.feature-description {
    font-family: 'Inter', sans-serif;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* Professional Pricing Cards */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.pricing-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.pricing-card.popular {
    border-color: var(--primary-blue);
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--klein-blue);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
}

/* PRICING TITLE - SERIF para destacar planes */
.pricing-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--klein-blue);
    margin-bottom: 0.5rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--klein-blue);
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    padding: 0.5rem 0;
    color: var(--medium-gray);
}

.pricing-features li.available {
    color: var(--success);
}

.pricing-features li.unavailable {
    color: var(--medium-gray);
    opacity: 0.6;
}

.pricing-features li i {
    margin-right: 12px;
    width: 20px;
}

/* Professional Form Styles - SANS-SERIF para funcionalidad */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    color: var(--dark-gray);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--klein-blue);
    box-shadow: 0 0 0 3px rgba(0, 47, 167, 0.1);
}

.form-input.error {
    border-color: var(--error);
}

/* Professional Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--light-blue);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--light-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
}

/* Professional Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

.animate-fade-in-left {
    animation: fadeInLeft 0.8s ease-out;
}

.animate-fade-in-right {
    animation: fadeInRight 0.8s ease-out;
}

/* Gradientes específicos según imágenes */
.gradient-text-horizontal {
    background: linear-gradient(90deg, var(--klein-blue) 0%, var(--sustainability-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Cards de casos de uso con gradientes suaves */
.use-case-card-1 {
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.5) 0%, rgba(209, 250, 229, 0.5) 100%);
}

.use-case-card-2 {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.5) 0%, rgba(233, 213, 255, 0.5) 100%);
}

.use-case-card-3 {
    background: linear-gradient(135deg, rgba(233, 213, 255, 0.5) 0%, rgba(254, 243, 199, 0.5) 100%);
}

/* Botón con gradiente azul a púrpura */
.btn-gradient-blue-purple {
    background: linear-gradient(90deg, var(--klein-blue) 0%, var(--innovation-purple) 100%);
    color: white;
    transition: all 0.3s ease;
}

.btn-gradient-blue-purple:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 47, 167, 0.3);
}

/* Badge con gradiente naranja a amarillo */
.badge-gradient-orange-yellow {
    background: linear-gradient(135deg, var(--energy-orange) 0%, var(--vibrant-yellow) 100%);
    color: var(--dark-gray);
    font-weight: 600;
}

/* Border con gradiente naranja a amarillo */
.border-gradient-orange-yellow {
    border: 2px solid;
    border-image: linear-gradient(135deg, var(--energy-orange) 0%, var(--vibrant-yellow) 100%) 1;
}

/* Professional Responsive Design */
@media (max-width: 768px) {
    .hero {
        min-height: auto;
        padding: 6rem 0 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .demo-card {
        padding: 1.5rem;
    }
    
    .btn-primary, 
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .trust-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    
    .urgent-banner {
        padding: 10px 16px;
        font-size: 0.875rem;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .pricing-card {
        padding: 2rem;
    }
    
    .pricing-card.popular {
        transform: none;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

/* Professional Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

/* SECTION TITLE - SERIF para autoridad */
.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--klein-blue);
    text-align: center;
    margin-bottom: 1rem;
}

/* SECTION SUBTITLE - SANS-SERIF para legibilidad */
.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    color: var(--medium-gray);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--klein-blue);
}

.text-secondary {
    color: var(--light-blue);
}

.text-gray {
    color: var(--medium-gray);
}

.bg-light {
    background: var(--light-gray);
}

.bg-blue {
    background: var(--bg-blue);
}

.mt-4 {
    margin-top: 1rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.p-4 {
    padding: 1rem;
}

/* Professional Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 47, 167, 0.2), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Professional Success States */
.success-message {
    background: rgba(0, 161, 49, 0.1);
    border: 1px solid rgba(0, 161, 49, 0.3);
    color: var(--success);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Professional Error States */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: var(--error);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

/* Professional Tooltip */
.tooltip {
    position: relative;
    cursor: help;
}

.tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--dark-gray);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.875rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Professional Badge - SANS-SERIF para legibilidad */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.badge-primary {
    background: rgba(0, 47, 167, 0.1);
    color: var(--klein-blue);
}

/* Modal Coming Soon Styles */
#comingSoonModal {
    animation: fadeIn 0.3s ease-out;
}

#comingSoonModal > div {
    animation: slideUp 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Accessibility - Screen Reader Only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}