/*
Theme Name: Schael Host
Theme URI: https://schaelhost.com
Author: Schael Host Multiservices S.R.L.
Description: Tema oficial de Schael Host. Sin plugins externos. Sistema de diseño global con variables CSS.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: schaelhost
*/

/* ==========================================================
   1. TOKENS: sistema de diseño global
   ========================================================== */
:root {
  /* Colores corporativos */
  --sh-navy: #101d3c;
  --sh-blue: #1556a6;
  --sh-blue-action: #0056a6;   /* botones y detalles, según propuesta */
  --sh-footer: #004786;        /* footer, según propuesta */
  --sh-orange: #f39200;
  --sh-orange-hero: #ff9000;   /* naranja del hero, según propuesta */
  --sh-orange-light: #ffb13d;
  --sh-gold: #b89a45;
  --sh-gold-light: #e2d19a;

  /* Interfaz */
  --sh-ink: #172033;
  --sh-muted: #647084;
  --sh-paper: #f6f7fa;
  --sh-white: #ffffff;
  --sh-line: #e3e7ee;
  --sh-print-gray: #e5e5e5;

  /* Fondos */
  --sh-background: #ffffff;
  --sh-background-soft: #f6f7fa;

  /* Tipografía */
  --sh-font: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Tamaños */
  --sh-text-base: 17px;
  --sh-text-small: 15px;
  --sh-heading-1: clamp(42px, 6.8vw, 78px);
  --sh-heading-2: clamp(27px, 4vw, 42px);
  --sh-heading-3: 22px;

  /* Espaciado y anchos */
  --sh-space: 24px;
  --sh-section-y: clamp(64px, 9vw, 112px);
  --sh-container: 1180px;

  /* Bordes, radios, sombras */
  --sh-radius: 14px;
  --sh-radius-button: 8px;
  --sh-shadow: 0 24px 70px rgba(15, 29, 60, 0.13);
  --sh-transition: 0.2s ease;
}

/* ==========================================================
   2. BASE
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sh-font);
  font-size: var(--sh-text-base);
  line-height: 1.6;
  color: var(--sh-ink);
  background: var(--sh-background);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sh-blue-action); text-decoration: none; transition: color var(--sh-transition); }
a:hover { color: var(--sh-orange); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--sh-orange-light);
  outline-offset: 2px;
}
h1, h2, h3, h4 { color: var(--sh-navy); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -0.02em; }
h1 { font-size: var(--sh-heading-1); }
h2 { font-size: var(--sh-heading-2); }
h3 { font-size: var(--sh-heading-3); }
p { margin: 0 0 1em; }
.sh-small { font-size: var(--sh-text-small); color: var(--sh-muted); }
.sh-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--sh-orange); margin-bottom: 12px;
}
.sh-container { width: min(100% - 40px, var(--sh-container)); margin-inline: auto; }
.sh-section { padding-block: var(--sh-section-y); }
.sh-section--soft { background: var(--sh-background-soft); }
.sh-skip { position: absolute; left: -9999px; }
.sh-skip:focus { left: 16px; top: 16px; background: var(--sh-white); padding: 8px 12px; z-index: 100; }

/* ==========================================================
   3. BOTONES
   ========================================================== */
.sh-btn, .wp-block-button__link, button, input[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border: 2px solid transparent; border-radius: var(--sh-radius-button);
  font: inherit; font-weight: 700; cursor: pointer;
  background: var(--sh-blue-action); color: var(--sh-white);
  transition: background var(--sh-transition), color var(--sh-transition), transform var(--sh-transition);
}
.sh-btn:hover, button:hover, input[type="submit"]:hover { background: var(--sh-orange); color: var(--sh-white); transform: translateY(-1px); }
.sh-btn:active { transform: translateY(0); }
.sh-btn--primary { background: var(--sh-orange-hero); color: var(--sh-navy); }
.sh-btn--primary:hover { background: var(--sh-navy); color: var(--sh-white); }
.sh-btn--ghost { background: transparent; color: var(--sh-white); border-color: var(--sh-white); }
.sh-btn--ghost:hover { background: var(--sh-white); color: var(--sh-navy); }

/* ==========================================================
   4. ENCABEZADO Y NAVEGACIÓN
   ========================================================== */
.sh-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sh-white); border-bottom: 1px solid var(--sh-line);
}
.sh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.sh-logo img { height: 52px; width: auto; }
.sh-nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.sh-nav a { color: var(--sh-navy); font-weight: 600; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.sh-nav a:hover, .sh-nav .current-menu-item > a { color: var(--sh-orange); border-bottom-color: var(--sh-orange); }
.sh-menu-toggle { display: none; background: transparent; color: var(--sh-navy); border: 1px solid var(--sh-line); padding: 8px 12px; }
.sh-menu-toggle:hover { background: var(--sh-paper); color: var(--sh-navy); transform: none; }

/* ==========================================================
   5. PORTADA (HERO)
   ========================================================== */
.sh-hero {
  background: linear-gradient(135deg, var(--sh-navy) 0%, var(--sh-blue) 62%, var(--sh-orange) 140%);
  color: var(--sh-white); padding-block: clamp(80px, 12vw, 150px);
}
.sh-hero h1, .sh-hero h2 { color: var(--sh-white); }
.sh-hero p { font-size: 19px; max-width: 640px; opacity: .92; }
.sh-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.sh-hero .sh-eyebrow { color: var(--sh-gold-light); }

/* ==========================================================
   6. TARJETAS Y COMPONENTES
   ========================================================== */
.sh-grid { display: grid; gap: var(--sh-space); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.sh-card {
  background: var(--sh-white); border: 1px solid var(--sh-line); border-radius: var(--sh-radius);
  padding: 32px; box-shadow: var(--sh-shadow); transition: transform var(--sh-transition), border-color var(--sh-transition);
}
.sh-card:hover { transform: translateY(-4px); border-color: var(--sh-orange-light); }
.sh-card__num {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border-radius: 50%; background: var(--sh-navy); color: var(--sh-gold-light); font-weight: 800; margin-bottom: 16px;
}
.sh-card h3 { margin-bottom: 8px; }
.sh-card p { color: var(--sh-muted); margin: 0; }
.sh-card--price { border-top: 6px solid var(--sh-orange-hero); }
.sh-price__old { text-decoration: line-through; color: var(--sh-muted); }
.sh-price__final { font-size: 40px; font-weight: 800; color: var(--sh-navy); }
.sh-badge {
  display: inline-block; background: var(--sh-orange-hero); color: var(--sh-navy);
  font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px;
}
.sh-list { padding-left: 20px; }
.sh-list li { margin-bottom: 8px; }

/* Formularios */
.sh-form { display: grid; gap: 16px; max-width: 640px; }
.sh-form label { display: grid; gap: 6px; font-weight: 600; color: var(--sh-navy); }
.sh-form input, .sh-form textarea {
  font: inherit; padding: 13px 14px; border: 1px solid var(--sh-line); border-radius: var(--sh-radius-button);
  background: var(--sh-white); color: var(--sh-ink);
}
.sh-form textarea { min-height: 140px; resize: vertical; }
.sh-notice { padding: 14px 18px; border-radius: var(--sh-radius-button); background: var(--sh-paper); border-left: 4px solid var(--sh-blue); }
.sh-notice--ok { border-left-color: #1f8a4c; }
.sh-notice--error { border-left-color: #b42318; }

/* Hover, focus y active ya están cubiertos arriba en botones, enlaces y tarjetas */

/* ==========================================================
   7. PIE DE PÁGINA
   ========================================================== */
.sh-footer { background: var(--sh-footer); color: #d9e2f1; padding-block: 56px 28px; }
.sh-footer h4 { color: var(--sh-white); font-size: 16px; }
.sh-footer a { color: #d9e2f1; }
.sh-footer a:hover { color: var(--sh-orange-light); }
.sh-footer__grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.sh-footer ul { list-style: none; padding: 0; margin: 0; }
.sh-footer li { margin-bottom: 8px; }
.sh-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: 14px; }

/* ==========================================================
   8. ANIMACIONES Y ESTILOS PARA IMPRESIÓN
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .sh-header, .sh-footer, .sh-btn, .sh-menu-toggle { display: none !important; }
  body { background: var(--sh-print-gray); }
}

/* ==========================================================
   9. RESPONSIVE
   ========================================================== */
@media (max-width: 860px) {
  .sh-menu-toggle { display: inline-flex; }
  .sh-nav { display: none; width: 100%; }
  .sh-nav.is-open { display: block; }
  .sh-nav ul { flex-direction: column; gap: 14px; padding-bottom: 16px; }
  .sh-header__inner { flex-wrap: wrap; }
}

/* ==========================================================
   10. CONTENIDO DE WORDPRESS
   ========================================================== */
.entry-content > * + * { margin-top: 1.2em; }
.sh-entry { padding-block: var(--sh-section-y); }
.sh-pagination { margin-top: 40px; }
.sh-pagination a, .sh-pagination span { margin-right: 8px; }
