@import "https://www.nerdfonts.com/assets/css/webfont.css";

:root {
    /* Colors */
    --primary: #0066FF;
    --primary-soft: rgba(0, 102, 255, 0.05);
    --primary-glow: rgba(0, 102, 255, 0.15);
    --secondary: #6B7280;
    --text-main: #111827;
    --text-muted: #4B5563;
    --bg-main: #FAFAFA;
    --surface: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --success: #10B981;

    /* Typography - Fluid scaling */
    --font-main: system-ui, -apple-system, sans-serif;
    --h1: clamp(2.25rem, 5vw + 1rem, 3.5rem);
    --h2: clamp(1.75rem, 3vw + 1rem, 2.5rem);
    --h3: clamp(1.25rem, 2vw + 1rem, 1.75rem);
    --body: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);

    /* Spacing */
    --space-8: 0.5rem;
    --space-16: 1rem;
    --space-24: 1.5rem;
    --space-32: 2rem;
    --space-48: 3rem;
    --space-64: 4rem;
    --container-max: 1100px;

    /* Radius & Shadow */
    --radius-soft: 12px;
    --radius-pill: 9999px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.02), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.05), 0 4px 6px -2px rgba(0,0,0,0.02);
}

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: var(--h1); }
h2 { font-size: var(--h2); }
h3 { font-size: var(--h3); }
p { font-size: var(--body); color: var(--text-muted); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-soft);
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #0052CC;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.2);
}

.btn-secondary {
    background-color: transparent;
    border-color: var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background-color: var(--bg-main);
    border-color: var(--secondary);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    padding: var(--space-16) 0;
}

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

.nav-links {
    display: none;
    gap: var(--space-32);
}

@media (min-width: 768px) {
    .nav-links { display: flex; }
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-links a:hover { color: var(--primary); }

/* Sections */
section {
    padding: var(--space-64) 0;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-icon-large {
    font-size: clamp(8rem, 15vw, 12rem);
    background: linear-gradient(135deg, var(--primary), #00A3FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 20px 40px var(--primary-glow));
    animation: float-icon 6s ease-in-out infinite;
}

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

/* Services Grid */
.services-grid {
    display: grid;
    gap: var(--space-24);
    margin-top: var(--space-48);
}

@media (min-width: 640px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .card-destacado { grid-column: span 2; justify-self: center; width: 100%; max-width: 500px; }
}

@media (min-width: 1024px) {
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .card-destacado { grid-column: span 1; max-width: none; }
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-soft);
    padding: var(--space-32);
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.card-destacado {
    border: 1.5px solid var(--primary);
    background: linear-gradient(to bottom right, #FFFFFF, var(--primary-soft));
    box-shadow: 0 0 20px var(--primary-glow);
    position: relative;
}

.badge {
    position: absolute;
    top: var(--space-16);
    right: var(--space-16);
    background: var(--primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 700;
}

/* Diferenciadores */
.diferenciadores-grid {
    display: grid;
    gap: var(--space-32);
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.diff-item {
    display: flex;
    gap: var(--space-16);
}

.diff-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Tecnologías */
.tech-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-48);
    align-items: center;
    margin-top: var(--space-32);
}

.tech-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-8);
    color: var(--secondary);
    transition: all 0.3s ease;
    filter: grayscale(1);
    opacity: 0.6;
}

.tech-item:hover {
    filter: grayscale(0);
    opacity: 1;
    color: var(--primary);
    transform: translateY(-2px);
}

.tech-icon {
    font-size: 2.5rem;
    color: var(--secondary);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-item:hover .tech-icon {
    color: var(--primary);
    transform: scale(1.1);
}

.tech-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* CTA Final */
.cta-final {
    text-align: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-soft);
    padding: var(--space-48) var(--space-24);
    margin-bottom: var(--space-64);
}

.cta-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-16);
    justify-content: center;
    margin-top: var(--space-32);
}

@media (min-width: 640px) {
    .cta-group { flex-direction: row; }
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: var(--space-48) 0;
    text-align: center;
}

/* Floating WhatsApp Widget */
.whatsapp-widget {
    position: fixed;
    bottom: var(--space-32);
    right: var(--space-32);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: var(--space-16);
    text-decoration: none;
}

.whatsapp-label {
    background: var(--surface);
    color: var(--text-main);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(10px);
    pointer-events: none;
}

.whatsapp-widget:hover .whatsapp-label {
    opacity: 1;
    transform: translateX(0);
}

.whatsapp-icon-box {
    background-color: var(--success);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.whatsapp-icon-box::after {
    content: "";
    position: absolute;
    inset: -4px;
    border: 2px solid var(--success);
    border-radius: 50%;
    animation: pulse-widget 2s infinite;
    opacity: 0;
}

@keyframes pulse-widget {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-widget:hover .whatsapp-icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: #0E9F6E;
}

.whatsapp-widget:focus-visible {
    outline: none;
}

.whatsapp-widget:focus-visible .whatsapp-icon-box {
    outline: 3px solid var(--primary);
    outline-offset: 4px;
}

@media (max-width: 640px) {
    .whatsapp-label { display: none; }
    .whatsapp-widget { bottom: var(--space-24); right: var(--space-24); }
    .whatsapp-icon-box { width: 56px; height: 56px; font-size: 28px; }
}

