/* ================================================================
   A&C Cleaning Services Inc — GLOBAL CSS
   Paleta oficial extraída del logo (NO CAMBIAR)
   ================================================================ */

:root {
  /* === Paleta oficial === */
  --blue-dark: #0D2C54;      /* Fondo sidebar, headers, footer */
  --blue-intense: #1E77B6;   /* Botones primarios, enlaces */
  --blue-bright: #2FA7E0;    /* CTAs, highlights, badges, hover */
  --blue-light: #6EC6F1;     /* Hover states, acentos suaves */
  --blue-pale: #AEE1FA;      /* Textos secundarios dark mode */
  --blue-white: #EAF6FF;     /* Fondos de sección suaves */

  /* === Neutrales === */
  --white: #FFFFFF;
  --off-white: #F8FAFC;
  --gray-50: #F1F5F9;
  --gray-100: #E2E8F0;
  --gray-200: #CBD5E1;
  --gray-300: #94A3B8;
  --gray-500: #64748B;
  --gray-700: #334155;
  --gray-900: #0F172A;
  --black: #0A0A0A;

  /* === Semánticos === */
  --success: #10B981;
  --warning: #F59E0B;
  --danger:  #EF4444;
  --star:    #FBBF24;

  /* === Tipografía === */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Poppins', 'Inter', sans-serif;

  /* === Espaciado base === */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;

  /* === Radios === */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* === Sombras === */
  --shadow-sm: 0 1px 2px 0 rgba(13, 44, 84, 0.06);
  --shadow-md: 0 4px 10px -2px rgba(13, 44, 84, 0.10);
  --shadow-lg: 0 10px 25px -5px rgba(13, 44, 84, 0.15);
  --shadow-xl: 0 20px 40px -10px rgba(13, 44, 84, 0.20);

  /* === Transiciones === */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* === Layout === */
  --container: 1200px;
  --container-wide: 1400px;
  --navbar-h: 72px;
  --announcement-h: 40px;
}

/* ================================================================
   RESET
   ================================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--navbar-h) + var(--announcement-h) + 10px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--blue-dark);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }
h4 { font-size: clamp(1.1rem, 2.5vw, 1.3rem); }

a {
  color: var(--blue-intense);
  text-decoration: none;
  transition: color var(--t-fast);
}
a:hover { color: var(--blue-bright); }

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

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol { list-style: none; }

/* ================================================================
   UTILS
   ================================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide {
  width: 100%;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-16) 0;
}
.section-sm { padding: var(--space-10) 0; }
.section-lg { padding: var(--space-20) 0; }

.section-bg-light { background: var(--blue-white); }
.section-bg-dark  { background: var(--blue-dark); color: var(--white); }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3 { color: var(--white); }

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

.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--blue-intense);
  margin-bottom: var(--space-3);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-4);
}
.section-subtitle {
  text-align: center;
  color: var(--gray-500);
  max-width: 640px;
  margin: 0 auto var(--space-12);
  font-size: 1.05rem;
}

/* === Botones === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--t-base);
  cursor: pointer;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-primary {
  background: var(--blue-intense);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--blue-bright);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: var(--white);
  color: var(--blue-dark);
  border-color: var(--blue-intense);
}
.btn-secondary:hover {
  background: var(--blue-intense);
  color: var(--white);
}
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
.btn-whatsapp:hover { background: #128C7E; color: var(--white); }
.btn-lg { padding: 1.1rem 2.4rem; font-size: 1.05rem; }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* === Chip / badge === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.3rem 0.75rem;
  background: var(--blue-white);
  color: var(--blue-dark);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
}
.chip-success { background: #D1FAE5; color: #065F46; }
.chip-dark { background: var(--blue-dark); color: var(--white); }

/* === Accesibilidad: focus visible === */
:focus-visible {
  outline: 3px solid var(--blue-bright);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--blue-dark);
  color: var(--white);
  padding: var(--space-3) var(--space-6);
  z-index: 10000;
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
  transition: top var(--t-fast);
}
.skip-link:focus {
  top: 0;
  color: var(--white);
}

/* === Loading / lazy === */
img[loading="lazy"] { background: var(--gray-50); }

/* === Scrollbar === */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--gray-50); }
::-webkit-scrollbar-thumb { background: var(--blue-intense); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-bright); }

/* === Media prefers === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
