/* ==========================================================================
   styles.css — Hoja de estilos local para tecnofactor.com
   Reemplaza la dependencia externa de https://cdn.tailwindcss.com
   Contiene solo las utilidades realmente usadas en index.html, generadas
   a mano a partir del tailwind.config original (colors: brand, corporate;
   boxShadow: apple, apple-hover, apple-inner; fontFamily: sans).
   ========================================================================== */

/* ---- Preflight mínimo (equivalente al "base" de Tailwind) ---- */
*, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: #e5e7eb; }
html { -webkit-text-size-adjust: 100%; line-height: 1.5; }
body {
  margin: 0;
  line-height: inherit;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
h1, h2, h3, h4, h5, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: inherit; }
svg { display: block; vertical-align: middle; }
button, a { cursor: pointer; }
img, svg { max-width: 100%; height: auto; }

/* ---- Colores de marca (theme.extend.colors) ---- */
:root {
  --color-brand: #0ea5e9;
  --color-corporate: #0f172a;
}

.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

/* ---- Layout / display ---- */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.inline-block { display: inline-block; }
.grid { display: grid; }
.hidden { display: none; }
.relative { position: relative; }
.absolute { position: absolute; }
.sticky { position: sticky; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }

.top-0 { top: 0; }
.right-0 { right: 0; }
.-top-4 { top: -1rem; }
.-right-2 { right: -0.5rem; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

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

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

.group:hover .group-hover\:shadow-apple-hover { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); }

/* ---- Tamaños ---- */
.w-2 { width: 0.5rem; }
.w-7 { width: 1.75rem; }
.w-14 { width: 3.5rem; }
.w-full { width: 100%; }
.w-1\/2 { width: 50%; }
.h-2 { height: 0.5rem; }
.h-7 { height: 1.75rem; }
.h-14 { height: 3.5rem; }
.h-full { height: 100%; }
.min-w-\[200px\] { min-width: 200px; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }
.max-w-xs { max-width: 20rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

/* ---- Espaciados ---- */
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-16 { gap: 4rem; }

.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.pt-8 { padding-top: 2rem; }
.pt-20 { padding-top: 5rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-24 { padding-bottom: 6rem; }

.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }

.space-y-3 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.75rem; }
.space-y-4 > :not([hidden]) ~ :not([hidden]) { margin-top: 1rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.space-y-28 > :not([hidden]) ~ :not([hidden]) { margin-top: 7rem; }

/* ---- Bordes / radios ---- */
.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-y { border-top-width: 1px; border-bottom-width: 1px; }
.rounded-2xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-\[2rem\] { border-radius: 2rem; }
.rounded-\[3rem\] { border-radius: 3rem; }

.border-blue-100 { border-color: #dbeafe; }
.border-slate-100 { border-color: #f1f5f9; }
.border-slate-100\/50 { border-color: rgba(241,245,249,0.5); }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-200\/50 { border-color: rgba(226,232,240,0.5); }
.border-slate-200\/60 { border-color: rgba(226,232,240,0.6); }
.border-slate-800 { border-color: #1e293b; }
.border-white\/20 { border-color: rgba(255,255,255,0.2); }

/* ---- Colores de fondo ---- */
.bg-white { background-color: #ffffff; }
.bg-white\/10 { background-color: rgba(255,255,255,0.1); }
.bg-blue-50 { background-color: #eff6ff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-brand { background-color: var(--color-brand); }
.bg-brand\/10 { background-color: rgba(14,165,233,0.1); }
.bg-corporate { background-color: var(--color-corporate); }
.bg-corporate\/5 { background-color: rgba(15,23,42,0.05); }
.bg-\[\#fbfbfd\]\/80 { background-color: rgba(251,251,253,0.8); }

.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-l { background-image: linear-gradient(to left, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-brand\/20 { --tw-gradient-from: rgba(14,165,233,0.2); --tw-gradient-to: rgba(14,165,233,0); }
.from-corporate { --tw-gradient-from: var(--color-corporate); --tw-gradient-to: rgba(15,23,42,0); }
.to-slate-800 { --tw-gradient-to: #1e293b; }
.to-transparent { --tw-gradient-to: transparent; }

.backdrop-blur-sm { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.grayscale { filter: grayscale(1); }
.opacity-60 { opacity: 0.6; }

/* ---- Sombras (theme.extend.boxShadow) ---- */
.shadow-apple { box-shadow: 0 10px 40px -10px rgba(0,0,0,0.05); }
.shadow-apple-hover { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); }
.shadow-apple-inner { box-shadow: inset 0 2px 4px 0 rgba(0,0,0,0.02); }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* ---- Tipografía ---- */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }
.text-\[10px\] { font-size: 10px; }
.text-\[11px\] { font-size: 11px; }

.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.uppercase { text-transform: uppercase; }
.text-center { text-align: center; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.text-white { color: #ffffff; }
.text-brand { color: var(--color-brand); }
.text-corporate { color: var(--color-corporate); }
.text-\[\#3B4D9D\] { color: #3B4D9D; }
.text-\[\#6466B3\] { color: #6466B3; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-50 { color: #f8fafc; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-800 { color: #1e293b; }

.selection\:bg-brand ::selection, .selection\:bg-brand::selection { background-color: var(--color-brand); }
.selection\:text-white ::selection, .selection\:text-white::selection { color: #ffffff; }

/* ---- Transiciones / animación ---- */
.transition { transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-all { transition-property: all; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); transition-duration: 150ms; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }

@keyframes pulse { 50% { opacity: 0.5; } }
.animate-pulse { animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---- Interacción (hover / active) ---- */
.hover\:text-corporate:hover { color: var(--color-corporate); }
.hover\:text-brand:hover { color: var(--color-brand); }
.hover\:bg-brand:hover { background-color: var(--color-brand); }
.hover\:bg-slate-50:hover { background-color: #f8fafc; }
.hover\:bg-white\/20:hover { background-color: rgba(255,255,255,0.2); }
.hover\:shadow-apple-hover:hover { box-shadow: 0 20px 40px -10px rgba(0,0,0,0.08); }
.hover\:grayscale-0:hover { filter: grayscale(0); }
.hover\:underline:hover { text-decoration: underline; }
.hover\:-translate-y-0\.5:hover { transform: translateY(-0.125rem); }
.hover\:-translate-y-1:hover { transform: translateY(-0.25rem); }
.hover\:scale-\[1\.02\]:hover { transform: scale(1.02); }
.active\:scale-95:active { transform: scale(0.95); }

/* ==========================================================================
   Breakpoints (idénticos a los valores por defecto de Tailwind)
   ========================================================================== */

/* sm: 640px */
@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
}

/* md: 768px */
@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:flex-row { flex-direction: row; }
  .md\:col-span-2 { grid-column: span 2 / span 2; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:gap-16 { gap: 4rem; }
  .md\:mt-0 { margin-top: 0; }
  .md\:p-10 { padding: 2.5rem; }
  .md\:p-16 { padding: 4rem; }
  .md\:px-8 { padding-left: 2rem; padding-right: 2rem; }
  .md\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
  .md\:text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* lg: 1024px */
@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:w-1\/2 { width: 50%; }
}
