/* --- Variables & Reset --- */
:root {
    /* Colors - Vibrant Light Theme */
    --bg-color: #ffffff;
    --bg-secondary: #f8fafc;
    --surface-color: rgba(255, 255, 255, 0.8);
    --surface-hover: rgba(255, 255, 255, 1);
    --surface-border: rgba(0, 0, 0, 0.06);
    --surface-border-bright: rgba(0, 0, 0, 0.1);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-magenta: #ff00ff;
    --accent-red-light: #ff4d4d;
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;

    --gradient-1: linear-gradient(135deg, #ff00ff 0%, #8b5cf6 100%);
    /* Magenta to Violet */
    --gradient-2: linear-gradient(135deg, #ff4d4d 0%, #3b82f6 100%);
    /* Light Red to Blue */
    --accent-gradient: var(--gradient-1);

    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;

    /* Typography */
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --h1-size: clamp(3rem, 6vw, 5rem);
    --h2-size: clamp(2.25rem, 4.5vw, 3.5rem);
    --h3-size: clamp(1.5rem, 3vw, 2.25rem);
    --body-size: 1.1rem;

    /* Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-xl: 64px;

    /* Shadows */
    --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 16px 32px -8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.12);
    --shadow-accent: 0 20px 40px rgba(139, 92, 246, 0.15);

    /* Spacing */
    --spacing-xl: clamp(6rem, 12vw, 12rem);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

body {
    background: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.text-gradient {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-gradient-alt {
    background: var(--gradient-2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Layout Utilities */
.container {
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
}

.section {
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
}

.center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Section with Wave Bottom */
.section--wave {
    padding-bottom: 0;
}

.wave-container {
    width: 100%;
    line-height: 0;
    margin-top: 4rem;
}

.wave-container svg {
    width: 100%;
    height: auto;
}

/* Abstract Images Styling */
.section-image {
    width: 100%;
    max-width: 900px;
    margin: 4rem auto 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.section-image img {
    width: 100%;
    display: block;
}

/* Background Elements */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.12;
    animation: floatingGlow 20s infinite alternate ease-in-out;
}

@keyframes floatingGlow {
    from {
        transform: translate(-10%, -10%) rotate(0deg);
    }

    to {
        transform: translate(10%, 10%) rotate(20deg);
    }
}

.glow--magenta {
    background: var(--accent-magenta);
    width: 60vw;
    height: 60vw;
}

.glow--violet {
    background: var(--accent-violet);
    width: 50vw;
    height: 50vw;
}

.glow--blue {
    background: var(--accent-blue);
    width: 40vw;
    height: 40vw;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.1rem 2.8rem;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 1.05rem;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
    text-decoration: none;
    border: none;
}

.btn--primary {
    background: var(--gradient-1);
    color: white;
    box-shadow: 0 10px 25px rgba(255, 0, 255, 0.25);
}

.btn--primary:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(255, 0, 255, 0.35);
    filter: brightness(1.1);
}

.btn--secondary {
    background: white;
    color: var(--text-primary);
    border: 1px solid var(--surface-border-bright);
    box-shadow: var(--shadow-sm);
}

.btn--secondary:hover {
    background: #f8fafc;
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.btn--sm {
    padding: 0.6rem 1.4rem;
    font-size: 0.9rem;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 0.7rem 1.6rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 100px;
    color: var(--accent-violet);
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding-top: 160px;
    background: radial-gradient(circle at 70% 20%, rgba(255, 0, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
}

.hero__content {
    max-width: 900px;
    margin: 0 auto;
}

.hero__title {
    margin-bottom: 2rem;
}

.hero__subtitle {
    font-size: 1.3rem;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    color: var(--text-secondary);
}

.hero__visual {
    margin-top: 5rem;
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 5rem auto 0;
}

.hero__visual img {
    width: 100%;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.15),
        0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

/* Bento Grid Vibrant */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 2.5rem;
    margin-top: 5rem;
}

.bento-card {
    background: white;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: 3.5rem;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    grid-column: span 4;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(139, 92, 246, 0.3);
}

.bento-card--featured {
    grid-column: span 8;
    background: var(--bg-secondary);
}

.bento-icon-box {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    /* Vertices radiales de 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
    /* Clips the image with 10px corners */

    /* High-End Glass Housing */
    background: rgba(0, 0, 0, 0.03) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    border: 1px solid rgba(0, 0, 0, 0.05);

    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.bento-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    /* Vertices radiales de 10px en la imagen */
    position: relative;
    z-index: 4;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover .bento-icon-box {
    transform: translateY(-5px) scale(1.05);
    background: rgba(255, 255, 255, 0.4) !important;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.bento-card:hover .bento-icon-box img {
    transform: scale(1.1);
}

/* Integrated Thematic Glow */
.bento-icon-box::before {
    content: '';
    position: absolute;
    inset: 10px;
    background: inherit;
    border-radius: inherit;
    z-index: -1;
    filter: blur(25px);
    opacity: 0.1;
    transition: all 0.5s ease;
}

.bento-card:hover .bento-icon-box::before {
    opacity: 0.4;
    inset: -2px;
    filter: blur(28px);
}

/* Surface Reflection layer */
.bento-icon-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.6) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(255, 255, 255, 0) 60%,
            rgba(255, 255, 255, 0.2) 100%);
    pointer-events: none;
    z-index: 3;
}

.bento-icon-box span,
.bento-icon-box i {
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.1));
    position: relative;
    z-index: 4;
    transition: transform 0.5s ease;
}

.bento-card:hover .bento-icon-box span {
    transform: translateZ(20px) scale(1.05);
}

/* Glass Card Utility - Apple Style */
.glass-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: var(--radius-md);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.04),
        inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    padding: 1.5rem;
    transition: all 0.4s ease;
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.8) !important;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    border-color: rgba(255, 255, 255, 1);
}

/* CTA Vibrant */
.cta-box {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.cta-box h2 {
    font-weight: 900;
    letter-spacing: -0.04em;
}

.cta-box p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Chat Demo Light */
.chat-window {
    background: white;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.chat-window__header {
    background: var(--bg-secondary);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 15px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-window__body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.chat-bubble {
    padding: 1rem 1.5rem;
    border-radius: 18px;
    max-width: 85%;
    font-size: 1rem;
}

.chat-bubble.bot {
    background: var(--bg-secondary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.chat-bubble.user {
    background: var(--accent-magenta);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* Header Light */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.75);
    border-bottom: 1px solid var(--surface-border);
    padding: 1.5rem 0;
    transition: all 0.4s ease;
}

.header--scrolled {
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-sm);
}

.header__logo .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.header__logo .logo-container:hover {
    transform: scale(1.05);
}

.logo-c {
    width: 38px;
    height: 38px;
    background: white;
    border-radius: 10px;
    /* Vertices radiales de 10px */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 4px 10px rgba(0, 0, 0, 0.05),
        inset 0 0 0 1.5px rgba(139, 92, 246, 0.1);
    overflow: hidden;
    flex-shrink: 0;
}

.logo-c img {
    width: 85%;
    height: 85%;
    object-fit: contain;
}

.logo-c::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, transparent 60%);
    pointer-events: none;
}

.logo-text {
    font-weight: 900;
    font-size: 1.6rem;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    text-transform: uppercase;
}

.header__nav {
    display: flex;
    gap: 3rem;
}

.header__nav a {
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.header__nav a:hover {
    color: var(--accent-magenta);
}

/* Section Header */
.section-header h2 {
    font-size: var(--h2-size);
    margin-bottom: 1.5rem;
}

.section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

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

@media (max-width: 1024px) {

    .bento-card,
    .bento-card--featured {
        grid-column: span 12;
    }

    .header__nav {
        display: none;
    }
}