/* Reset y configuración base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background-color: #ffffff;
    font-weight: 400;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section con Parallax */
.hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    position: relative;
    overflow: hidden;
    padding: 40px 0;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="%23e2e8f0" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.hero::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 4s ease-in-out infinite;
}

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

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 40px 20px;
    animation: fadeInUp 1s ease-out;
}

/* Logo Styles */
.logo-container {
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.logo-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.1s forwards;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-brand {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #4a596d;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.1s forwards;
    background: linear-gradient(135deg, #1a1a1a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(1.75rem, 3.5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1a1a1a 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(10deg); }
}

.hero-subtitle {
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
    font-weight: 400;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

/* Solutions Section con Scroll Animations */
.solutions {
    padding: 40px 0;
    background-color: #ffffff;
    position: relative;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

.expandable-cards {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

.expandable-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    position: relative;
    transform: translateY(0);
}

.expandable-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.expandable-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.expandable-card:hover::before {
    opacity: 1;
}

.expandable-card.expanded {
    border-color: #3b82f6;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-4px);
}

.expandable-card.expanded::before {
    opacity: 1;
}

.card-content {
    padding: 0;
    position: relative;
    z-index: 1;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    background: #ffffff;
    transition: all 0.3s ease;
    position: relative;
}

.card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 32px;
    right: 32px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.expandable-card.expanded .card-header::after {
    opacity: 1;
}

.card-icon {
    font-size: 1.75rem;
    margin-right: 14px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.expandable-card:hover .card-icon {
    transform: scale(1.1);
}

.card-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    transition: color 0.3s ease;
}

.expandable-card:hover .card-header h3 {
    color: #3b82f6;
}

.expand-icon {
    font-size: 1.5rem;
    font-weight: 300;
    color: #64748b;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f1f5f9;
    position: relative;
}

.expand-icon::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: #3b82f6;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.expandable-card:hover .expand-icon::before {
    width: 100%;
    height: 100%;
}

.expandable-card.expanded .expand-icon {
    transform: rotate(45deg);
    background: #3b82f6;
    color: #ffffff;
}

.expandable-card.expanded .expand-icon::before {
    width: 100%;
    height: 100%;
}

.card-body {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    padding: 0 24px;
    transform: translateY(-10px);
}

.expandable-card.expanded .card-body {
    max-height: 200px;
    opacity: 1;
    padding: 0 24px 24px 24px;
    transform: translateY(0);
}

.card-body p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.feature-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.1), transparent);
    transition: left 0.5s ease;
}

.feature-tag:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-tag:hover::before {
    left: 100%;
}

/* CTA Section con efectos avanzados */
.cta {
    padding: 40px 0;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    text-align: center;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    animation: float 15s ease-in-out infinite reverse;
}

.cta h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.cta-text {
    font-size: 1.25rem;
    margin-bottom: 48px;
    color: #cbd5e1;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.btn:hover .btn-icon {
    transform: scale(1.1);
}

.btn-whatsapp {
    background-color: #25d366;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
    background-color: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.4);
}

.btn-email {
    background-color: #3b82f6;
    color: #ffffff;
    border: 2px solid #3b82f6;
    box-shadow: 0 4px 6px rgba(59, 130, 246, 0.3);
    padding: 18px 32px;
    font-size: 1.1rem;
    font-weight: 600;
}

.btn-email:hover {
    background-color: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(59, 130, 246, 0.4);
}

.btn-linkedin {
    background-color: #0077b5;
    color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 119, 181, 0.3);
}

.btn-linkedin:hover {
    background-color: #005885;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 119, 181, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        min-height: 45vh;
        padding: 30px 0;
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .solutions {
        padding: 30px 0;
    }
    
    .expandable-cards {
        padding: 0 16px;
        gap: 12px;
    }
    
    .expandable-card {
        border-radius: 12px;
    }
    
    .card-header {
        padding: 14px 18px;
    }
    
    .card-header h3 {
        font-size: 1.125rem;
    }
    
    .expandable-card.expanded .card-body {
        padding: 0 18px 18px 18px;
    }
    
    .cta {
        padding: 30px 0;
    }
    
    .contact-buttons {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .logo-image {
        height: 30px;
    }
    
    .logo-brand {
        font-size: 2rem;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .card-header h3 {
        font-size: 1.25rem;
    }
    
    .btn {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
}

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

.expandable-card {
    animation: fadeInUp 0.6s ease-out;
}

.expandable-card:nth-child(1) { animation-delay: 0.1s; }
.expandable-card:nth-child(2) { animation-delay: 0.2s; }
.expandable-card:nth-child(3) { animation-delay: 0.3s; }
.expandable-card:nth-child(4) { animation-delay: 0.4s; }

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para accesibilidad */
.btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.expandable-card:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .btn {
        border: 1px solid #000;
        background: #fff;
        color: #000;
    }
    
    .expandable-card {
        break-inside: avoid;
    }
} 