@import "core.css";

@import "core.css";

:root {
  /* Gradients Overrides - Pointing to core.css logic */
  --brand-gradient: linear-gradient(135deg, var(--color-gradient-start) 0%, var(--color-gradient-end) 100%);
  --gradient-cta: linear-gradient(135deg, var(--color-primary) 0%, var(--color-gradient-start) 100%);
  
  /* Text Colors Mapping */
  --text-primary: var(--color-white);
  --text-secondary: var(--color-white-dim);
  --text-tertiary: rgba(237, 247, 246, 0.5);
  --text-inverse: var(--color-black);
  
  /* Typography */
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* ─── Type Scale — Fluid (min → max) ───────────────────────────────────── */
  --type-h1: clamp(4rem, 6vw + 1rem, 6rem);        /* 64 → 96 px */
  --type-h2: clamp(2.5rem, 3.5vw + 0.5rem, 3.5rem); /* 40 → 56 px */
  --type-h3: clamp(1.75rem, 2vw + 0.25rem, 2.25rem);/* 28 → 36 px */
  --type-h4: clamp(1.25rem, 1vw + 0.5rem, 1.5rem);  /* 20 → 24 px */
  --type-h5: clamp(0.875rem, 0.5vw + 0.5rem, 1rem); /* 14 → 16 px */
  --type-h6: clamp(0.75rem, 0.25vw + 0.5rem, 0.8125rem); /* 12 → 13 px */

  --type-body-lg: clamp(1.0625rem, 0.5vw + 0.75rem, 1.125rem); /* 17 → 18 px */
  --type-body-base: clamp(0.9375rem, 0.25vw + 0.75rem, 1rem);  /* 15 → 16 px */
  --type-body-sm: clamp(0.8125rem, 0.25vw + 0.625rem, 0.875rem);/* 13 → 14 px */
  --type-caption: clamp(0.6875rem, 0.25vw + 0.5rem, 0.75rem);   /* 11 → 12 px */

  /* Legacy aliases — kept for backward compat */
  --text-xs: var(--type-caption);
  --text-sm: var(--type-body-sm);
  --text-base: var(--type-body-base);
  --text-lg: var(--type-body-lg);
  --text-xl: var(--type-h5);
  --text-2xl: var(--type-h4);
  --text-3xl: var(--type-h3);
  --text-4xl: var(--type-h2);
  --text-5xl: var(--type-h1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 300ms ease;
  
  /* Shadows */
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  
  /* Border Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-black);
  background-image: 
    url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E"),
    linear-gradient(rgba(0, 5, 0, 0.65), rgba(0, 5, 0, 0.65)),
    image-set(url('../assets/images/fondo_index.webp') type('image/webp'), url('../assets/images/fondo_index.png') type('image/png'));
  background-size: auto, cover, cover;
  background-position: top left, center, center;
  background-attachment: fixed, fixed, fixed;
  color: var(--text-primary);
  line-height: 1.6;
}

/* ─── Semantic Heading Styles ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* H1 — Hero / Page Title: Used once per page, maximum impact */
h1 {
  font-size: var(--type-h1);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* H2 — Section Title: Major content sections */
h2 {
  font-size: var(--type-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* H3 — Sub-section / Card Header */
h3 {
  font-size: var(--type-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

/* H4 — Block Heading: Within cards, sidebars */
h4 {
  font-size: var(--type-h4);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

/* H5 — Eyebrow / Label: Category indicators, above H2 */
h5 {
  font-size: var(--type-h5);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

/* H6 — Micro Label: Table headers, captions, tags */
h6 {
  font-size: var(--type-h6);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  color: var(--text-tertiary);
  margin-bottom: 0.25rem;
}

/* ─── Semantic Body Text ──────────────────────────────────────────────────── */
p {
  font-size: var(--type-body-base);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

p.lead {
  font-size: var(--type-body-lg);
  font-weight: 300;
  color: var(--text-secondary);
}

small, .caption {
  font-size: var(--type-caption);
  color: var(--text-tertiary);
}

/* ─── Utility Type Classes ───────────────────────────────────────────────── */
/* Eyebrow: small uppercase label above a title */
.eyebrow {
  font-size: var(--type-h6);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-cta);
  display: block;
  margin-bottom: 0.5rem;
}

/* Hero class: overrides H1 for full-display hero text */
.hero-display {
  font-size: clamp(4.5rem, 8vw + 1rem, 8rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

/* Section Headline helper */
.section-title {
  font-size: var(--type-h2);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* Card Title helper */
.card-title {
  font-size: var(--type-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* Legacy display classes — map to new scale */
.display-hero { font-size: clamp(4.5rem, 8vw + 1rem, 8rem); font-weight: 900; letter-spacing: -0.04em; line-height: 0.95; }
.display-lg   { font-size: var(--type-h1); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.display-md   { font-size: var(--type-h2); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.body-lg      { font-size: var(--type-body-lg); font-weight: 400; line-height: 1.65; }
.body-sm      { font-size: var(--type-body-sm); font-weight: 400; line-height: 1.6; }

.text-zuume-subtitle {
    font-family: 'Zuume Rough', 'ZuumeRough-Regular', sans-serif !important;
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 2.8rem);
    color: var(--text-secondary);
    letter-spacing: 0.08em;
    line-height: 1.1;
    margin-top: 0.75rem;
}



a {
  color: var(--color-cta);
  text-decoration: none;
  transition: color var(--transition-base);
}

a:hover, a:focus {
  color: var(--color-cta-hover);
  outline: none;
}

/* Liquid Glass Utilities */
.liquid-glass {
  background: var(--glass-surface-base);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-base);
  border-image: var(--glass-border-gradient) 1;
  box-shadow: var(--shadow-glass);
  /* Use border-radius carefully with border-image, standard fallback below */
}

/* Workaround for border-image preventing border-radius */
.liquid-glass-rounded {
  position: relative;
  background: var(--glass-surface-base);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-glass);
}

.liquid-glass-rounded::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: var(--glass-border-gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.liquid-glass-card {
  padding: 1.5rem;
  border-radius: var(--radius-xl);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

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

/* Buttons */
.btn-liquid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-inverse);
  background-color: var(--color-cta);
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-liquid:hover, .btn-liquid:focus {
  background-color: var(--color-cta-hover);
  transform: scale(1.02);
  box-shadow: 0 0 20px rgba(202, 138, 4, 0.4);
  outline: none;
}

.btn-liquid:active {
  transform: scale(0.98);
}

.btn-glass {
  background: var(--glass-surface-heavy);
  color: var(--text-primary);
  border: 1px solid var(--glass-border-base);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.btn-glass:hover, .btn-glass:focus {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

/* Forms */
.glass-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border-base);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.glass-input::placeholder {
  color: var(--text-tertiary);
}

.glass-input:focus {
  outline: none;
  border-color: var(--color-cta);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(202, 138, 4, 0.15);
}

/* Animations */
@keyframes fluidMorph {
  0% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
  34% { border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%; }
  67% { border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%; }
  100% { border-radius: 40% 60% 70% 30% / 40% 40% 60% 50%; }
}

.morph-shape {
  animation: fluidMorph 8s ease-in-out infinite;
  background: linear-gradient(45deg, var(--c-negro), var(--color-cta));
  opacity: 0.1;
  filter: blur(30px);
}

/* Layout Utilities (Mobile First) */
.container-fluid {
  width: 100%;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 768px) {
  .container-fluid {
    max-width: 720px;
  }
}

@media (min-width: 1024px) {
  .container-fluid {
    max-width: 960px;
    padding-right: 2rem;
    padding-left: 2rem;
  }
}

@media (min-width: 1440px) {
  .container-fluid {
    max-width: 1320px;
  }
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
