/* ============================================================
   QUINNOVEC — Sistema de Diseño Principal
   Empresa Química Venezolana | quinnovec.com.ve
   ============================================================ */

/* ============================================================
   Google Fonts — Inter
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

/* ============================================================
   CSS Custom Properties (Design Tokens)
   ============================================================ */
:root {
    /* — Colores Primarios — */
    --color-primary-900: #061024;
    --color-primary-800: #0A1628;
    --color-primary-700: #0E1F3D;
    --color-primary-600: #142D5A;
    --color-primary-500: #1B4D8E;
    --color-primary-400: #2563AA;
    --color-primary-300: #4A8FD6;
    --color-primary-200: #7FB5E8;
    --color-primary-100: #B4D7F5;
    --color-primary-50:  #E3F0FC;

    /* — Color Acento (Verde Químico) — */
    --color-accent-700: #007A63;
    --color-accent-600: #009B7D;
    --color-accent-500: #00B894;
    --color-accent-400: #1FDBA8;
    --color-accent-300: #55EABF;
    --color-accent-200: #A0F4DB;
    --color-accent-100: #D0FAF0;
    --color-accent-50:  #EFFDF8;

    /* — Color Secundario (Cyan/Tecnología) — */
    --color-cyan-600: #0091B3;
    --color-cyan-500: #00B4D8;
    --color-cyan-400: #00D2FF;
    --color-cyan-300: #48DFFF;
    --color-cyan-200: #90ECFF;
    --color-cyan-100: #CAF5FF;

    /* — Colores de Estado — */
    --color-success: #00B894;
    --color-warning: #FDCB6E;
    --color-danger:  #E74C3C;
    --color-info:    #00B4D8;

    /* — Colores de Tanques — */
    --tank-green:  #00B894;
    --tank-yellow: #F39C12;
    --tank-red:    #E74C3C;

    /* — Neutros — */
    --color-white:    #FFFFFF;
    --color-gray-50:  #F8FAFE;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;
    --color-black:    #020617;

    /* — Tipografía — */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-xs:   0.75rem;   /* 12px */
    --font-size-sm:   0.875rem;  /* 14px */
    --font-size-base: 1rem;      /* 16px */
    --font-size-lg:   1.125rem;  /* 18px */
    --font-size-xl:   1.25rem;   /* 20px */
    --font-size-2xl:  1.5rem;    /* 24px */
    --font-size-3xl:  1.875rem;  /* 30px */
    --font-size-4xl:  2.25rem;   /* 36px */
    --font-size-5xl:  3rem;      /* 48px */
    --font-size-6xl:  3.75rem;   /* 60px */
    --font-size-7xl:  4.5rem;    /* 72px */

    --font-weight-light:    300;
    --font-weight-normal:   400;
    --font-weight-medium:   500;
    --font-weight-semibold: 600;
    --font-weight-bold:     700;
    --font-weight-black:    900;

    --line-height-tight:  1.15;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;

    /* — Espaciado — */
    --space-1:  0.25rem;  /* 4px */
    --space-2:  0.5rem;   /* 8px */
    --space-3:  0.75rem;  /* 12px */
    --space-4:  1rem;     /* 16px */
    --space-5:  1.25rem;  /* 20px */
    --space-6:  1.5rem;   /* 24px */
    --space-8:  2rem;     /* 32px */
    --space-10: 2.5rem;   /* 40px */
    --space-12: 3rem;     /* 48px */
    --space-16: 4rem;     /* 64px */
    --space-20: 5rem;     /* 80px */
    --space-24: 6rem;     /* 96px */
    --space-32: 8rem;     /* 128px */

    /* — Bordes — */
    --radius-sm:   0.375rem;  /* 6px */
    --radius-md:   0.5rem;    /* 8px */
    --radius-lg:   0.75rem;   /* 12px */
    --radius-xl:   1rem;      /* 16px */
    --radius-2xl:  1.5rem;    /* 24px */
    --radius-full: 9999px;

    /* — Sombras — */
    --shadow-sm:   0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md:   0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg:   0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl:   0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl:  0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 20px rgba(0, 184, 148, 0.3);
    --shadow-glow-blue: 0 0 30px rgba(27, 77, 142, 0.3);

    /* — Transiciones — */
    --transition-fast:   150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow:   400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* — Z-Index — */
    --z-dropdown:  100;
    --z-sticky:    200;
    --z-fixed:     300;
    --z-modal:     400;
    --z-popover:   500;
    --z-tooltip:   600;
    --z-whatsapp:  700;

    /* — Contenedor — */
    --container-max: 1280px;
    --container-padding: var(--space-6);

    /* — Header — */
    --header-height: 80px;
}

/* ============================================================
   CSS Reset / Normalize
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--line-height-normal);
    color: var(--color-gray-800);
    background-color: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

input,
button,
textarea,
select {
    font: inherit;
    color: inherit;
}

p {
    margin-bottom: var(--space-4);
}

a {
    color: var(--color-primary-500);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-500);
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: var(--line-height-tight);
    color: var(--color-primary-800);
    margin-bottom: var(--space-4);
    text-transform: capitalize;
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.025em;
}

h2 {
    font-size: var(--font-size-4xl);
    letter-spacing: -0.02em;
}

h3 {
    font-size: var(--font-size-2xl);
}

h4 {
    font-size: var(--font-size-xl);
}

h5 {
    font-size: var(--font-size-lg);
}

h6 {
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-semibold);
}

/* ============================================================
   Layout Utilities
   ============================================================ */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container-wide {
    max-width: 1440px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container-narrow {
    max-width: 800px;
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.section {
    padding-block: var(--space-20);
}

.section-lg {
    padding-block: var(--space-24);
}

.section-sm {
    padding-block: var(--space-12);
}

/* Flexbox */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

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

.items-start {
    align-items: flex-start;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }
.gap-10 { gap: var(--space-10); }

/* Grid */
.grid {
    display: grid;
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

/* Text Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* ============================================================
   Typography Utilities
   ============================================================ */
.text-xs   { font-size: var(--font-size-xs); }
.text-sm   { font-size: var(--font-size-sm); }
.text-base { font-size: var(--font-size-base); }
.text-lg   { font-size: var(--font-size-lg); }
.text-xl   { font-size: var(--font-size-xl); }
.text-2xl  { font-size: var(--font-size-2xl); }
.text-3xl  { font-size: var(--font-size-3xl); }
.text-4xl  { font-size: var(--font-size-4xl); }

.font-light    { font-weight: var(--font-weight-light); }
.font-normal   { font-weight: var(--font-weight-normal); }
.font-medium   { font-weight: var(--font-weight-medium); }
.font-semibold { font-weight: var(--font-weight-semibold); }
.font-bold     { font-weight: var(--font-weight-bold); }

.text-primary  { color: var(--color-primary-500); }
.text-accent   { color: var(--color-accent-500); }
.text-muted    { color: var(--color-gray-500); }
.text-white    { color: var(--color-white); }
.text-dark     { color: var(--color-primary-800); }

.uppercase {
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Section Label — used above section headings */
.section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-500);
    margin-bottom: var(--space-4);
}

.section-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-accent-500), transparent);
    border-radius: 1px;
}

/* Section Heading */
.section-heading {
    max-width: 700px;
    margin-bottom: var(--space-6);
}

.section-heading.centered {
    margin-inline: auto;
    text-align: center;
}

.section-heading p {
    font-size: var(--font-size-lg);
    color: var(--color-gray-500);
    line-height: var(--line-height-relaxed);
    margin-top: var(--space-4);
}

/* ============================================================
   Backgrounds
   ============================================================ */
.bg-white   { background-color: var(--color-white); }
.bg-light   { background-color: var(--color-gray-50); }
.bg-dark    { background-color: var(--color-primary-800); color: var(--color-white); }
.bg-darker  { background-color: var(--color-primary-900); color: var(--color-white); }
.bg-primary { background-color: var(--color-primary-500); color: var(--color-white); }

.bg-gradient-hero {
    background: linear-gradient(135deg, var(--color-primary-900) 0%, var(--color-primary-700) 40%, #0E2844 70%, #0A2540 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.bg-gradient-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bg-gradient-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 180, 216, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.bg-gradient-cta {
    background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-800) 100%);
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.bg-mesh {
    background-color: var(--color-gray-50);
    background-image:
        radial-gradient(at 40% 20%, rgba(27, 77, 142, 0.04) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(0, 184, 148, 0.04) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(0, 180, 216, 0.03) 0px, transparent 50%);
}

/* ============================================================
   Glassmorphism
   ============================================================ */
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-light {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ============================================================
   Spacing Utilities
   ============================================================ */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-10 { margin-top: var(--space-10); }
.mt-12 { margin-top: var(--space-12); }
.mt-16 { margin-top: var(--space-16); }

.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }
.mb-12 { margin-bottom: var(--space-12); }

.mx-auto { margin-inline: auto; }

.p-4  { padding: var(--space-4); }
.p-6  { padding: var(--space-6); }
.p-8  { padding: var(--space-8); }
.p-10 { padding: var(--space-10); }

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

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

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

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(0, 184, 148, 0.4);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(0, 184, 148, 0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* Animation utilities */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    opacity: 0;
    transition: opacity 0.5s ease;
}

.animate-fade-in.visible {
    opacity: 1;
}

.animate-scale-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.animate-scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered delays for children */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* ============================================================
   Decorative Elements
   ============================================================ */

/* Chemical molecule dots — decorative floating dots */
.chem-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    overflow: hidden;
}

.chem-dot {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 184, 148, 0.25);
    animation: float 6s ease-in-out infinite;
}

.chem-dot:nth-child(1) { top: 15%; left: 10%; animation-delay: 0s; }
.chem-dot:nth-child(2) { top: 25%; right: 15%; animation-delay: 1s; width: 4px; height: 4px; }
.chem-dot:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 2s; background: rgba(0, 180, 216, 0.2); }
.chem-dot:nth-child(4) { top: 60%; right: 8%; animation-delay: 3s; width: 8px; height: 8px; }
.chem-dot:nth-child(5) { bottom: 30%; left: 5%; animation-delay: 1.5s; width: 5px; height: 5px; background: rgba(0, 180, 216, 0.15); }

/* Grid pattern overlay */
.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* ============================================================
   Scrollbar Styling
   ============================================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-gray-500);
}

/* ============================================================
   Selection
   ============================================================ */
::selection {
    background: var(--color-accent-500);
    color: var(--color-white);
}

/* ============================================================
   Visibility / Accessibility
   ============================================================ */
.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;
}

.hidden {
    display: none !important;
}

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 2px solid var(--color-accent-500);
    outline-offset: 2px;
}
