/* ============================================================
   WEB TOTAL MEXICO — App Web Lite
   Estilos publicos — Cerrajeria Leo Miche 24hrs
   ============================================================
   Diseno: Moderno, tipo app, optimizado para conversion
   Colores: Azul noche, dorado confianza, verde WhatsApp
   ============================================================ */

/* ─── CSS Custom Properties ──────────────────────────────── */
:root {
  --primary: #1a2332;
  --primary-light: #2a3342;
  --primary-dark: #0d1321;
  --accent: #d4a843;
  --accent-light: #e8c46a;
  --accent-dark: #b8922e;
  --whatsapp: #25D366;
  --whatsapp-dark: #1DA851;
  --white: #ffffff;
  --gray-50: #f8f9fa;
  --gray-100: #f0f2f5;
  --gray-200: #e4e6eb;
  --gray-300: #ccd0d5;
  --gray-400: #98a2b3;
  --gray-500: #667788;
  --gray-600: #4a5568;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --danger: #dc3545;
  --success: #28a745;
  --warning: #ffc107;
  --info: #17a2b8;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
}

/* ─── Utility classes ───────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 60px 0;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray-500);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 40px;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.97);
}

.btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-accent {
  background: var(--accent);
  color: var(--primary-dark);
}

.btn-accent:hover {
  background: var(--accent-light);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.35);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 4px 15px rgba(26, 35, 50, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

.btn-block {
  width: 100%;
}

.btn-icon {
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
}

/* ─── Header / Navigation ───────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.header.scrolled {
  background: rgba(26, 35, 50, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
}

.header-logo img {
  height: 40px;
  width: auto;
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-cta .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

/* ─── Mobile Menu ────────────────────────────────────────── */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-menu a {
  color: var(--gray-300);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--accent);
}

/* ─── Hero Section ───────────────────────────────────────── */
.hero {
  padding: 100px 0 60px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 80%;
  height: 200%;
  background: radial-gradient(circle, rgba(212,168,67,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--white);
}

.hero-content p {
  font-size: 1.1rem;
  color: var(--gray-300);
  margin-bottom: 24px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray-200);
}

.hero-badge .icon {
  font-size: 0.9rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual img {
  max-width: 100%;
  border-radius: var(--radius-lg);
}

.hero-whatsapp-float {
  display: none;
}

/* ─── Trust Section ──────────────────────────────────────── */
.trust {
  background: var(--gray-50);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.trust-card {
  background: var(--white);
  padding: 28px 24px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-100);
  transition: var(--transition);
}

.trust-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.trust-card-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.trust-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.trust-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ─── Pagebuilder Lite ───────────────────────────────────── */
.pagebuilder-section {
  background: var(--gray-50);
  padding-top: 36px;
}

.pagebuilder-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.page-block {
  --block-bg: var(--white);
  --block-title: var(--primary);
  --block-text: var(--gray-600);
  --block-accent: var(--accent);
  grid-column: span 6;
  display: grid;
  gap: 18px;
  align-content: start;
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--block-bg);
  box-shadow: var(--shadow-sm);
}

.page-block.width-ancho {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.page-block.width-compacto {
  grid-column: span 4;
}

.page-block-destacado {
  background: var(--primary);
  border-color: rgba(255,255,255,0.08);
  box-shadow: var(--shadow-md);
}

.page-block-destacado h2,
.page-block-destacado p,
.page-block-destacado li {
  color: var(--white);
}

.page-block-servicio {
  border-top: 4px solid var(--block-accent);
}

.page-block-compacto {
  padding: 20px;
}

.page-block.align-centro {
  text-align: center;
}

.page-block.align-derecha {
  text-align: right;
}

.page-block-eyebrow {
  margin-bottom: 8px;
  color: var(--block-accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.page-block-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--block-accent) 18%, transparent);
  color: var(--block-accent);
  font-size: 1.35rem;
  font-weight: 800;
}

.page-block.align-centro .page-block-icon {
  margin-left: auto;
  margin-right: auto;
}

.page-block.align-derecha .page-block-icon {
  margin-left: auto;
}

.page-block h2 {
  color: var(--block-title);
  font-size: 1.25rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

.page-block p,
.page-block li {
  color: var(--block-text);
  font-size: 0.95rem;
}

.page-block ul {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.page-block li {
  position: relative;
  padding-left: 18px;
}

.page-block li::before {
  content: "";
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--block-accent);
}

.page-block-media img {
  width: 180px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.page-block-cta {
  margin-top: 18px;
}

/* ─── Process Steps ──────────────────────────────────────── */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.process-step {
  text-align: center;
  position: relative;
}

.process-step-number {
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}

.process-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.process-step p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ─── Services Section ───────────────────────────────────── */
.services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.12);
  transform: translateY(-2px);
}

.service-card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.service-card-icon {
  width: 44px;
  height: 44px;
  background: var(--gray-100);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.service-card-icon.emergency {
  background: rgba(220, 53, 69, 0.1);
  color: var(--danger);
}

.service-card-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.service-card-body p {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
  flex-grow: 1;
}

.service-card-footer {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-price-note {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-style: italic;
}

.service-card .btn {
  padding: 12px 20px;
  font-size: 0.85rem;
}

/* ─── Request Form Section ───────────────────────────────── */
.request {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
}

.request .section-title {
  color: var(--white);
}

.request .section-subtitle {
  color: var(--gray-400);
}

.request-form {
  max-width: 680px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
}

.request-form .form-group {
  margin-bottom: 18px;
}

.request-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}

.request-form label .required {
  color: var(--danger);
  margin-left: 2px;
}

.request-form input,
.request-form textarea,
.request-form select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.request-form input:focus,
.request-form textarea:focus,
.request-form select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 168, 67, 0.15);
}

.request-form textarea {
  min-height: 80px;
  resize: vertical;
}

.request-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.request-form .form-hint {
  font-size: 0.78rem;
  color: var(--gray-500);
  margin-top: 4px;
}

.request-form .file-input-wrapper {
  position: relative;
}

.request-form .file-input-wrapper input[type="file"] {
  padding: 10px;
  border: 2px dashed var(--gray-300);
  background: var(--gray-50);
  cursor: pointer;
}

.request-form .file-input-wrapper input[type="file"]:hover {
  border-color: var(--accent);
}

.request-form .checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.request-form .checkbox-group input[type="checkbox"] {
  width: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.request-form .checkbox-group label {
  font-size: 0.82rem;
  color: var(--gray-600);
  font-weight: 400;
  margin-bottom: 0;
}

/* ─── Contact Section ────────────────────────────────────── */
.contact {
  background: var(--gray-50);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.contact-item-icon {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: var(--primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.contact-item-text h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
}

.contact-item-text p,
.contact-item-text a {
  font-size: 0.85rem;
  color: var(--gray-500);
  line-height: 1.5;
}

.contact-item-text a:hover {
  color: var(--accent);
}

.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: 0;
}

.contact-zones {
  margin-top: 24px;
  padding: 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
}

.contact-zones h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}

.contact-zones ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-zones li {
  padding: 4px 12px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  background: var(--primary-dark);
  color: var(--gray-400);
  padding: 40px 0 20px;
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-brand img {
  height: 40px;
  width: auto;
  max-width: 190px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.7;
  max-width: 320px;
}

.footer h4 {
  color: var(--white);
  font-weight: 600;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.footer a {
  color: var(--gray-400);
  transition: var(--transition);
}

.footer a:hover {
  color: var(--accent);
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-bottom a {
  color: var(--accent);
}

/* ─── Floating Buttons ───────────────────────────────────── */
.floating-buttons {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
}

.floating-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.floating-btn:hover {
  transform: scale(1.1);
}

.floating-btn:active {
  transform: scale(0.95);
}

.floating-btn-whatsapp {
  background: var(--whatsapp);
  color: var(--white);
}

.floating-btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.floating-btn-top {
  background: var(--primary);
  color: var(--white);
  opacity: 0;
  visibility: hidden;
  font-size: 1.2rem;
}

.floating-btn-top.visible {
  opacity: 1;
  visibility: visible;
}

/* ─── Demo Mode Banner ───────────────────────────────────── */
.demo-banner {
  background: var(--warning);
  color: var(--primary-dark);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
}

.demo-banner a {
  color: var(--primary);
  text-decoration: underline;
}

/* ─── Toast Notifications ────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--primary);
  color: var(--white);
  padding: 14px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  max-width: 90vw;
  text-align: center;
}

.toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

/* ─── Modal ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--gray-100);
  color: var(--gray-600);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--gray-200);
}

/* ─── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.5s ease forwards;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

/* ─── Scroll animations ─────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Form validation states ─────────────────────────────── */
.request-form input.error,
.request-form textarea.error,
.request-form select.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.request-form .error-message {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 4px;
}

/* ─── SEO Text ───────────────────────────────────────────── */
.seo-text {
  background: var(--white);
  padding: 40px 0;
}

.seo-text h2 {
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 12px;
}

.seo-text p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}

.seo-text .keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.seo-text .keywords span {
  padding: 4px 10px;
  background: var(--gray-100);
  border-radius: 4px;
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ─── Responsive: Tablet ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ─── Responsive: Mobile ─────────────────────────────────── */
@media (max-width: 768px) {
  .section {
    padding: 40px 0;
  }

  .section-title {
    font-size: 1.4rem;
  }

  /* Header */
  .header-inner {
    height: 56px;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary);
    flex-direction: column;
    padding: 32px 24px;
    gap: 8px;
    transform: translateX(100%);
    transition: var(--transition);
    z-index: 999;
    overflow-y: auto;
  }

  .nav-menu.open {
    transform: translateX(0);
  }

  .nav-menu a {
    font-size: 1.1rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }

  .header-cta .btn-desktop {
    display: none;
  }

  /* Hero */
  .hero {
    padding: 80px 0 40px;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-badges {
    gap: 8px;
  }

  .hero-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Pagebuilder */
  .pagebuilder-grid {
    grid-template-columns: 1fr;
  }

  .page-block,
  .page-block.width-ancho,
  .page-block.width-compacto {
    grid-column: 1 / -1;
  }

  .page-block.width-ancho {
    grid-template-columns: 1fr;
  }

  .page-block-media img {
    width: 100%;
  }

  /* Request form */
  .request-form {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .request-form .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Contact */
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-map iframe {
    height: 220px;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Floating buttons */
  .floating-buttons {
    bottom: 16px;
    right: 16px;
  }

  .floating-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  /* Toast */
  .toast {
    bottom: 80px;
    font-size: 0.85rem;
    padding: 12px 20px;
  }
}

/* ─── Responsive: Small Mobile ───────────────────────────── */
@media (max-width: 380px) {
  .hero-content h1 {
    font-size: 1.3rem;
  }

  .hero-badge {
    font-size: 0.7rem;
  }
}

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  .header,
  .floating-buttons,
  .demo-banner {
    display: none;
  }

  .hero {
    padding: 40px 0;
    min-height: auto;
  }
}

/* ============================================================
   Modern Public App Skin
   ============================================================ */
:root {
  --primary: #101820;
  --primary-light: #1d2a36;
  --primary-dark: #090f14;
  --accent: #f0b429;
  --accent-light: #ffd166;
  --accent-dark: #c78f12;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --shadow-md: 0 12px 32px rgba(16, 24, 32, 0.12);
  --shadow-lg: 0 24px 70px rgba(16, 24, 32, 0.18);
}

body {
  background:
    radial-gradient(circle at 10% 0%, rgba(240, 180, 41, 0.10), transparent 32rem),
    linear-gradient(180deg, #ffffff 0%, #f5f7fa 100%);
}

.header {
  background: rgba(16, 24, 32, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  height: 68px;
}

.btn {
  border-radius: 8px;
  font-weight: 850;
  letter-spacing: 0;
}

.hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(16, 24, 32, 0.98), rgba(29, 42, 54, 0.94)),
    radial-gradient(circle at 80% 20%, rgba(240, 180, 41, 0.30), transparent 28rem);
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: min(42vw, 520px);
  height: min(42vw, 520px);
  background: radial-gradient(circle, rgba(37, 211, 102, 0.12), transparent 64%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  letter-spacing: 0;
  line-height: 1.04;
}

.hero-badge,
.service-card,
.trust-card,
.page-block,
.contact-info,
.contact-map,
.request-form {
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.hero-badge {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-visual {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.12);
  padding: 16px;
}

.hero-visual img {
  border-radius: 12px;
}

.section {
  scroll-margin-top: 82px;
}

.service-card,
.trust-card,
.page-block {
  border: 1px solid rgba(228, 230, 235, 0.82);
  overflow: hidden;
}

.service-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.request {
  background:
    linear-gradient(140deg, #101820 0%, #1d2a36 100%),
    radial-gradient(circle at 20% 20%, rgba(240, 180, 41, 0.25), transparent 26rem);
}

.request-form {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.request-form input,
.request-form textarea,
.request-form select {
  border-width: 1px;
  min-height: 46px;
}

.request-form .file-input-wrapper input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.public-image-dropzone {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1.5px dashed #b9c3cf;
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfcfe, #f1f5f9);
  color: var(--gray-500);
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.public-image-dropzone:hover,
.public-image-dropzone.is-dragover {
  border-color: var(--accent);
  background: #fff8e6;
}

.public-image-dropzone-copy {
  display: grid;
  gap: 4px;
}

.public-image-dropzone-copy strong {
  color: var(--gray-800);
  font-size: 0.9rem;
}

.public-image-dropzone-copy span {
  font-size: 0.78rem;
}

.public-image-dropzone .image-preview {
  display: none;
  width: min(100%, 320px);
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
}

.public-image-dropzone.has-preview .image-preview {
  display: block;
}

.app-bottom-bar {
  display: none;
}

@media (max-width: 768px) {
  html {
    scroll-padding-top: 66px;
  }

  body {
    padding-bottom: 82px;
  }

  .container {
    padding: 0 14px;
  }

  .header {
    top: 8px;
    left: 8px;
    right: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
  }

  .header-inner {
    height: 54px;
    padding: 0 12px;
  }

  .header-logo img {
    height: 34px;
  }

  .header-cta .btn {
    display: none;
  }

  .header-menu-toggle {
    display: none;
  }

  .nav-menu {
    display: none;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: 78px;
    max-height: min(66vh, 520px);
    border-radius: 18px;
    padding: 14px;
    background: rgba(16, 24, 32, 0.96);
    transform: translateY(calc(100% + 90px));
    box-shadow: var(--shadow-lg);
  }

  .nav-menu.open {
    display: flex;
    transform: translateY(0);
  }

  body.public-menu-open .nav-menu {
    display: flex;
    transform: translateY(0);
  }

  html.public-menu-open .nav-menu {
    display: flex;
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 14px 12px;
    border-radius: 10px;
    border-bottom: 0;
    background: rgba(255,255,255,0.04);
  }

  .hero {
    padding: 88px 0 34px;
  }

  .hero-content h1 {
    font-size: clamp(1.7rem, 9vw, 2.35rem);
  }

  .hero-visual {
    display: block;
    padding: 10px;
  }

  .hero-visual img {
    max-height: 220px;
    width: 100%;
    object-fit: cover;
  }

  .hero-actions {
    gap: 10px;
  }

  .section {
    padding: 42px 0;
  }

  .services-grid,
  .trust-grid,
  .process-steps,
  .pagebuilder-grid {
    gap: 12px;
  }

  .service-card,
  .trust-card,
  .page-block,
  .contact-info,
  .contact-map,
  .request-form {
    border-radius: 14px;
  }

  .request-form {
    padding: 18px 14px;
  }

  .request-form input,
  .request-form textarea,
  .request-form select {
    font-size: 16px;
  }

  .floating-buttons {
    display: none;
  }

  .app-bottom-bar {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 1200;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 8px;
    border: 1px solid rgba(228, 230, 235, 0.80);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 54px rgba(16, 24, 32, 0.22);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }

  .app-bottom-bar button {
    display: grid;
    place-items: center;
    gap: 3px;
    min-height: 54px;
    border: 0;
    border-radius: 10px;
    background: #f1f4f8;
    color: #17202a;
    font-size: 0.68rem;
    font-weight: 900;
    line-height: 1;
  }

  .app-bottom-bar button:nth-child(2) {
    background: #17202a;
    color: #fff;
  }

  .app-icon {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    font-size: 1.1rem;
    line-height: 1;
  }

  .toast {
    bottom: 94px;
  }
}

@media (max-width: 420px) {
  .hero-content h1 {
    font-size: 1.55rem;
  }

  .hero-badges {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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