@import "tailwindcss";

/* Instrument Serif (display) — usada por los presets de tema con titulares serif.
   Los .woff2 viven en /public/b2b-assets/fonts. */
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/b2b-assets/fonts/421ba28b-7abe-4b86-a87c-fcd3e94378f7.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/b2b-assets/fonts/15d36112-e39a-4059-ae12-06c58a5747ac.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@theme {
  /* Colors */
  --color-black: #0a0a0a;
  --color-dark: #111111;
  --color-gray-900: #1a1a1a;
  --color-gray-800: #2d2d2d;
  --color-gray-600: #555555;
  --color-gray-400: #888888;
  --color-gray-300: #d1d1d1;
  --color-gray-200: #e5e5e5;
  --color-gray-100: #f5f5f5;
  --color-gray-50: #fafafa;
  --color-white: #ffffff;

  /* Accent */
  --color-accent: #0066ff;
  --color-accent-dark: #0052cc;
  --color-accent-light: #e8f0fe;

  /* Status */
  --color-success: #00c853;
  --color-error: #ff3b3b;

  /* Fonts */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Paleta de marca B2B "Architectural Warmth" — panel y área autenticada */
  --color-primary-50:  #f4f8f5;
  --color-primary-100: #e8f0eb;
  --color-primary-500: #4d8a6d;
  --color-primary-700: #2f5c46;
  --color-primary-900: #1f3a2e;
  --color-stone-50: #f7f8f7;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
}

@layer base {
  *, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }

  html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }

  body {
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--color-dark);
    background-color: var(--color-white);
    line-height: 1.6;
    overflow-x: hidden; /* fallback navegadores antiguos */
    overflow-x: clip; /* no crea contenedor de scroll: evita romper position:fixed (barra inferior) */
  }

  /* Custom Scrollbar */
  ::-webkit-scrollbar {
    width: 6px;
  }
  ::-webkit-scrollbar-track {
    background: var(--color-gray-100);
  }
  ::-webkit-scrollbar-thumb {
    background: var(--color-gray-400);
    border-radius: 9999px;
  }
}

@layer components {
  /* Layout */
  .container {
    @apply w-full max-w-7xl mx-auto px-6 md:px-4;
  }

  .section {
    @apply py-16 md:py-24;
  }

  /* Buttons */
  .btn {
    @apply inline-flex items-center justify-center gap-2 px-6 py-3 text-base font-semibold rounded-lg transition-all duration-250 ease-out whitespace-nowrap cursor-pointer tracking-tight;
  }

  .btn-primary {
    @apply bg-black text-white border-2 border-black hover:bg-gray-900 hover:border-gray-900 hover:-translate-y-[1px] hover:shadow-[0_8px_32px_rgba(0,0,0,0.10)];
  }

  .btn-secondary {
    @apply bg-transparent text-dark border-2 border-gray-200 hover:border-dark hover:-translate-y-[1px];
  }

  .btn-accent {
    @apply bg-accent text-white border-2 border-accent hover:bg-accent-dark hover:border-accent-dark hover:-translate-y-[1px] hover:shadow-[0_8px_24px_rgba(0,102,255,0.3)];
  }

  .btn-lg {
    @apply px-8 py-4 text-lg rounded-xl;
  }

  /* Badges */
  .badge {
    @apply inline-flex items-center gap-2 px-3 py-2 text-xs font-semibold uppercase tracking-widest rounded-full;
  }

  .badge-dark {
    @apply bg-black text-white;
  }

  .badge-accent {
    @apply bg-accent-light text-accent;
  }

  /* Botón con el color de marca del reformista (tema de la landing). */
  .btn-brand {
    background-color: var(--brand, #0a0a0a);
    color: var(--brand-contrast, #ffffff);
    border: 2px solid var(--brand, #0a0a0a);
  }
  .btn-brand:hover {
    background-color: var(--brand-dark, #1a1a1a);
    border-color: var(--brand-dark, #1a1a1a);
    transform: translateY(-1px);
  }
}

/* Presets de tema con titulares en serif (terracota, arena). */
.theme-serif :is(h1, h2, h3) {
  font-family: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}