/* ===========================
   Palabred SEO Pages - Custom CSS
   Sin Tailwind, Sin Bundlers, Sin Dark Mode
   =========================== */

/* --- Font Face (Self-hosted) --- */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/PlusJakartaSans-K1MphTw.ttf") format('truetype');
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/PlusJakartaSans-Italic-9zE-oPy.ttf") format('truetype');
}

/* --- Variables CSS --- */
:root {
  --primary: #1313ec;
  --secondary: #4f46e5;
  --accent: #ff9933;
  --bg-light: #f6f6f8;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --white: #ffffff;
  --black: #000000;
  --purple-500: #a855f7;
  --blue-500: #3b82f6;
  --green-500: #22c55e;
  --orange-500: #f97316;
  --pink-500: #ec4899;
  --blue-200: #bfdbfe;
  --green-200: #bbf7d0;
  --orange-200: #fed7aa;
  --purple-200: #e9d5ff;
  --pink-200: #fbcfe8;
  --blue-600: #2563eb;
  --green-600: #16a34a;
  --orange-600: #ea580c;
  --purple-600: #9333ea;
  --pink-600: #db2777;
  --red-500: #ef4444;
}

/* --- Reset básico --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: var(--slate-900);
}

/* --- Tipografía --- */
.font-display {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

/* --- Layout base para páginas SEO --- */
body.seo-wireframe {
  min-height: max(884px, 100dvh);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
}

.bg-background-light {
  background-color: var(--bg-light);
}

/* --- Contenedor principal --- */
.page-wrapper {
  position: relative;
  display: flex;
  min-height: 100vh;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow-x: hidden;
}

.page-wrapper > .flex-grow {
  flex-grow: 1;
}

/* --- Header --- */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--bg-light);
  backdrop-filter: blur(4px);
}

.seo-header .header-inner {
  display: flex;
  align-items: center;
  padding: 1rem;
}

.seo-header a {
  color: var(--slate-800);
  text-decoration: none;
}

.seo-header h1 {
  flex: 1;
  text-align: center;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--slate-900);
  padding-right: 1.5rem;
}

/* --- Main Content --- */
main.seo-main {
  padding: 1rem;
}

@media (min-width: 640px) {
  main.seo-main {
    padding: 1.5rem;
  }
}

/* --- Container --- */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

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

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
  }
}

/* --- Utilidades de espaciado --- */
.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-1 { padding-top: 0.25rem; padding-bottom: 0.25rem; }
.px-2 { padding-left: 0.5rem; padding-right: 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; }
.mt-4 { margin-top: 1rem; }
.mt-10 { margin-top: 2.5rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.ml-4 { margin-left: 1rem; }
.gap-4 { gap: 1rem; }
.gap-3 { gap: 0.75rem; }
.gap-8 { gap: 2rem; }
.pl-4 { padding-left: 1rem; }
.pl-12 { padding-left: 3rem; }
.pr-4 { padding-right: 1rem; }
.pr-6 { padding-right: 1.5rem; }

/* --- Tipografía --- */
.text-center { text-align: center; }
.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }

.leading-relaxed { line-height: 1.625; }

/* --- Colores de texto --- */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-slate-900 { color: var(--slate-900); }
.text-slate-800 { color: var(--slate-800); }
.text-slate-700 { color: var(--slate-700); }
.text-slate-600 { color: var(--slate-600); }
.text-gray-700 { color: var(--gray-700); }
.text-gray-300 { color: var(--gray-300); }
.text-black { color: var(--black); }
.text-white { color: var(--white); }
.text-black-60 { color: rgba(0, 0, 0, 0.6); }
.text-blue-500 { color: var(--blue-500); }
.text-blue-600 { color: var(--blue-600); }
.text-green-600 { color: var(--green-600); }
.text-orange-600 { color: var(--orange-600); }
.text-purple-600 { color: var(--purple-600); }
.text-pink-600 { color: var(--pink-600); }
.text-red-500 { color: var(--red-500); }

.text-foreground-light { color: var(--slate-900); }
.text-subtle-light { color: var(--slate-600); }

/* --- Colores de fondo --- */
.bg-primary { background-color: var(--primary); }
.bg-primary-10 { background-color: rgba(19, 19, 236, 0.1); }
.bg-primary-20 { background-color: rgba(19, 19, 236, 0.2); }
.bg-primary\/5 { background-color: rgba(19, 19, 236, 0.05); }
.bg-primary\/10 { background-color: rgba(19, 19, 236, 0.1); }

.bg-purple-500 { background-color: var(--purple-500); }
.bg-blue-500 { background-color: var(--blue-500); }
.bg-green-500 { background-color: var(--green-500); }
.bg-orange-500 { background-color: var(--orange-500); }
.bg-pink-500 { background-color: var(--pink-500); }

.bg-blue-200 { background-color: var(--blue-200); }
.bg-green-200 { background-color: var(--green-200); }
.bg-orange-200 { background-color: var(--orange-200); }
.bg-purple-200 { background-color: var(--purple-200); }
.bg-pink-200 { background-color: var(--pink-200); }

.bg-gray-200 { background-color: var(--gray-200); }
.bg-gray-700 { background-color: var(--gray-700); }
.bg-gray-800 { background-color: var(--gray-800); }
.bg-white { background-color: var(--white); }

.bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }

.bg-cover { background-size: cover; }
.bg-center { background-position: center; }

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

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

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

@media (min-width: 768px) {
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- Flex --- */
.flex {
  display: flex;
}

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

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

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

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

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

.flex-1 {
  flex: 1 1 0%;
}

.shrink-0 {
  flex-shrink: 0;
}

/* --- Tarjetas de beneficios --- */
.benefit-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  border-radius: 0.5rem;
  background-color: rgba(19, 19, 236, 0.1);
  padding: 1rem;
}

.benefit-card-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.benefit-icon {
  display: flex;
  height: 4rem;
  width: 4rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
}

.benefit-icon svg {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--white);
}

.benefit-content {
  display: flex;
  flex-direction: column;
}

.benefit-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--black);
}

.benefit-description {
  font-size: 0.875rem;
  color: rgba(0, 0, 0, 0.6);
}

/* --- Botones --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 9999px;
  transition: all 0.3s ease;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  filter: brightness(0.92);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.btn-primary:active {
  filter: brightness(0.85);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* --- Footer sticky con navegación --- */
.seo-with-sticky-footer {
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

@supports(padding: max(0px)) {
  .seo-with-sticky-footer {
    padding-bottom: max(72px, calc(72px + env(safe-area-inset-bottom)));
  }
}

.seo-sticky-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 20;
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--bg-light);
  border-top: 1px solid var(--slate-200);
}

.seo-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 5rem;
  padding: 0 0.5rem;
}

.seo-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--slate-600);
  text-decoration: none;
  transition: color 0.2s ease;
}

.seo-nav a svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.seo-nav a span {
  font-size: 0.75rem;
  font-weight: 500;
}

.seo-nav a[aria-current="page"] {
  color: var(--primary);
}

.seo-nav a[aria-current="page"] span {
  font-weight: 700;
}

.seo-nav .nav-pill {
  padding: 0.25rem 0.5rem;
  border-radius: 9999px;
}

.seo-nav a[aria-current="page"] .nav-pill {
  background-color: rgba(19, 19, 236, 0.1);
}

/* Navegación con círculo central destacado */
.nav-circle-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.nav-circle {
  border-radius: 9999px;
  padding: 0.75rem;
}

.nav-circle.active {
  background-color: var(--primary);
  color: var(--white);
}

.nav-circle svg {
  width: 32px;
  height: 32px;
}

/* --- Secciones --- */
.section-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* --- Utilidades adicionales --- */
.space-y-8 > * + * { margin-top: 2rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }

.relative { position: relative; }
.absolute { position: absolute; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }

.w-full { width: 100%; }
.h-14 { height: 3.5rem; }
.h-12 { height: 3rem; }
.h-10 { height: 2.5rem; }
.h-8 { height: 2rem; }
.h-6 { height: 1.5rem; }
.h-32 { height: 8rem; }
.h-24 { height: 6rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-24 { width: 6rem; }
.w-8 { width: 2rem; }
.w-6 { width: 1.5rem; }

.min-w-24 { min-width: 6rem; }
.min-h-24 { min-height: 6rem; }
.min-h-16 { min-height: 4rem; }

.rounded-md { border-radius: 0.375rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }

.border { border-width: 1px; }
.border-t { border-top-width: 1px; }
.border-transparent { border-color: transparent; }
.border-slate-200 { border-color: var(--slate-200); }

.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

.hover-shadow-xl:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

/* Inputs */
input[type="search"] {
  outline: none;
}

input[type="search"]:focus {
  box-shadow: 0 0 0 2px var(--primary);
}

input::placeholder {
  color: var(--slate-600);
}

/* Links y transiciones */
a {
  text-decoration: none;
}

.hover\:border-primary:hover {
  border-color: var(--primary);
}

.transition {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 300ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 200ms;
}

.duration-200 {
  transition-duration: 200ms;
}

.duration-300 {
  transition-duration: 300ms;
}

/* Overflow y display */
.overflow-hidden { overflow: hidden; }
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }

/* FAQ Accordion - estilos interactivos */
.faq-accordion .faq-item summary {
  list-style: none;
  cursor: pointer;
}

.faq-accordion .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-accordion .faq-item[open] .chev {
  transform: rotate(180deg);
}

.faq-accordion .faq-item summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.select-none {
  user-select: none;
}

.cursor-pointer {
  cursor: pointer;
}

/* Listas */
.list-disc {
  list-style-type: disc;
}

.list-inside {
  list-style-position: inside;
}

.list-circle {
  list-style-type: circle;
}

/* Hover effects */
.hover\:underline:hover {
  text-decoration: underline;
}

/* Responsive utilities */
@media (min-width: 768px) {
  .md\:text-lg {
    font-size: 1.125rem;
    line-height: 1.75rem;
  }
}
