/* ==========================================================================
   Red Raccoon Art House — Global CSS Foundation (OPTIMIZADO)
   Eliminadas duplicaciones, tipografía preloaded, inline styles convertidas
   ========================================================================== */

@font-face {
  font-family: 'Berlin Sans';
  src: url('../fonts/BerlinSans-Regular.woff2') format('woff2'),
       url('../fonts/BerlinSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E; /* ASCII básico */
}

@font-face {
  font-family: 'Berlin Sans';
  src: url('../fonts/BerlinSans-DemiBold.woff2') format('woff2'),
       url('../fonts/BerlinSans-DemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}

@font-face {
  font-family: 'Berlin Sans';
  src: url('../fonts/BerlinSans-Bold.woff2') format('woff2'),
       url('../fonts/BerlinSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}

@font-face {
  font-family: 'Calidrex';
  src: url('../fonts/Calidrex-Regular.woff2') format('woff2'),
       url('../fonts/Calidrex-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}

/* Google Fonts - Barlow (se carga via <link> en HTML) */

:root {
  /* Colores */
  --rr-red: #FF0000;
  --rr-red-hot: #CC0000;
  --rr-white: #FAFAFA;
  --rr-black: #1D1D1D;
  --rr-ink-900: #0b0b0b;
  --rr-ink-800: #141414;
  --rr-ink-700: #1f1f1f;
  --rr-ink-600: #2a2a2a;
  --rr-ink-500: #3a3a3a;
  --rr-ink-400: #4a4a4a;
  --rr-ink-300: #6e6e6e;
  --rr-ink-200: #9b9b9b;
  --rr-ink-100: #c2c2c2;

  /* Tipografía */
  --rr-display: 'Berlin Sans', 'Arial Narrow', sans-serif;
  --rr-body: 'Barlow', 'Arial', sans-serif;
  --rr-condensed: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --rr-brand: 'Calidrex', 'Barlow', sans-serif;
  --rr-mono: 'Courier New', monospace;

  /* Espacios */
  --rr-space-1: 4px;
  --rr-space-2: 8px;
  --rr-space-3: 12px;
  --rr-space-4: 16px;
  --rr-space-5: 20px;
  --rr-space-6: 24px;
  --rr-space-8: 32px;
  --rr-space-10: 40px;
  --rr-space-12: 48px;
  --rr-space-16: 64px;
  --rr-space-20: 80px;

  /* Layout */
  --rr-container: 1180px;
  --rr-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Dynamic theme (para tweaks) */
  --mood-bg: #0b0b0b;
  --mood-bg2: #141414;
  --mood-cream: #f5f3f0;
  --mood-cream-card: #faf8f3;
  --mood-text: #fafafa;
  --type-scale: 1;
}

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

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

html, body {
  background: var(--mood-bg);
  color: var(--mood-text);
  font-family: var(--rr-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
}

body { overflow-x: hidden; }

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

img, video {
  height: auto;
}

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

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

::selection {
  background: var(--rr-red);
  color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--rr-display);
  text-wrap: balance;
  color: var(--mood-text);
}

h1, h2 {
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

p {
  color: #cfcfcf;
  line-height: 1.72;
}

strong {
  font-weight: 700;
}

em {
  font-style: italic;
}

.wrap {
  width: min(var(--rr-container), 100%);
  margin-inline: auto;
}

.red {
  color: var(--rr-red);
}

.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;
}

/* Buttons */
.btn, .cta-btn, .nav__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: var(--rr-red);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  transition: background .2s var(--rr-ease), transform .2s var(--rr-ease), border-color .2s var(--rr-ease);
}

.btn:hover, .cta-btn:hover, .nav__cta:hover {
  background: var(--rr-red-hot);
  transform: translateY(-2px);
}

/* Form Elements */
input, textarea, select {
  background: var(--rr-ink-800);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--rr-white);
}

input:focus, textarea:focus, select:focus, a:focus-visible, button:focus-visible {
  outline: 2px solid var(--rr-red);
  outline-offset: 3px;
}

/* ========== ENHANCED MOBILE RESPONSIVITY (Added optimizations) ========== */
@media (max-width: 768px) {
  .wrap { padding-inline: 24px; }
  h1, h2, h3 { font-size: clamp(1.5rem, 5vw, 3.5rem); }
  .btn { font-size: 11px; padding: 10px 16px; }
}

@media (max-width: 480px) {
  html, body { font-size: 15px; }
  .wrap { padding-inline: 16px; }
  h1, h2, h3 { font-size: clamp(1.25rem, 6vw, 2rem); }
  .btn { font-size: 10px; padding: 10px 14px; }
  input, textarea, select { font-size: 16px; }
}
