/* ==========================================================================
   Limpiezas Hogar Canario S.L. — replacement site design system
   Brand: blue #0090EC / accent yellow #FFC107 (taken from source CSS)
   ========================================================================== */

:root {
  --blue: #0090ec;
  --blue-dark: #0071bb;
  --blue-deep: #0b3d5c;
  --navy: #0d2b45;
  --yellow: #ffc107;
  --yellow-dark: #e6ab00;
  --ink: #1c2b36;
  --muted: #5b6b78;
  --bg: #ffffff;
  --bg-soft: #f2f7fb;
  --bg-tint: #e8f4fd;
  --line: #dce8f1;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(13, 43, 69, 0.10);
  --shadow-sm: 0 4px 14px rgba(13, 43, 69, 0.08);
  --font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--blue-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

.container { width: min(1160px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 150px; height: auto; }
.brand-text { display: none; }
.brand-tag { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: #bcd7ea; }

.header-contact { display: flex; align-items: center; gap: 14px; font-size: 14px; }
.header-contact a { color: #fff; font-weight: 700; white-space: nowrap; }
.header-contact .icon { color: var(--yellow); margin-right: 5px; }

/* ---------- Navigation ---------- */
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.main-nav a {
  display: inline-block;
  color: #eaf3fa;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
}
.main-nav a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; text-decoration: none; }
.main-nav a.active { background: var(--blue); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--blue-deep);
  color: #fff;
  overflow: hidden;
}
.hero-slide {
  position: relative;
  min-height: 380px;
  display: flex;
  align-items: center;
}
.hero-slide img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 56px 0;
  max-width: 640px;
}
.hero-kicker {
  display: inline-block;
  background: var(--yellow);
  color: var(--navy);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.hero h1, .hero .hero-title { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.15; margin: 0 0 14px; }
.hero h2.hero-title { font-size: clamp(28px, 4.6vw, 46px); line-height: 1.15; margin: 0 0 14px; }
.hero p.lead { font-size: 17px; color: #e3eef7; margin: 0 0 24px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--blue-dark); color: #fff; text-decoration: none; transform: translateY(-1px); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: var(--yellow-dark); color: var(--navy); }
.btn-ghost { background: transparent; border: 2px solid rgba(255, 255, 255, 0.7); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--navy); margin: 0 0 10px; }
.section-head p { color: var(--muted); margin: 0; font-size: 16px; }
.kicker {
  display: inline-block;
  color: var(--blue-dark);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* ---------- Service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card img.card-img { width: 100%; height: 170px; object-fit: cover; }
.card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin: 0 0 8px; font-size: 18px; color: var(--navy); }
.card-body h3 a { color: var(--navy); }
.card-body p { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; flex: 1; }
.card-link { font-weight: 700; color: var(--blue-dark); font-size: 14px; }
.card-link::after { content: " →"; }

.icon-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  display: block;
  color: var(--ink);
}
.icon-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.icon-card img { width: 64px; height: 64px; margin: 0 auto 10px; object-fit: contain; }
.icon-card span { font-weight: 700; font-size: 14.5px; color: var(--navy); display: block; }

/* ---------- Why us ---------- */
.why-grid { display: grid; gap: 16px; }
.why-item {
  background: #fff;
  border-left: 4px solid var(--yellow);
  border-radius: 10px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.why-item strong { color: var(--navy); }

/* ---------- Locations ---------- */
.loc-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.loc-chip {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 48px 0;
}
.cta-strip h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.cta-strip p { margin: 0 0 20px; color: #e3eef7; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Page hero (interior) ---------- */
.page-hero {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
  color: #fff;
  padding: 44px 0;
}
.page-hero h1 { margin: 0 0 6px; font-size: clamp(26px, 3.4vw, 38px); }
.page-hero p { margin: 0; color: #d7e9f7; max-width: 700px; }
.breadcrumb { font-size: 13px; color: #bcd7ea; margin-bottom: 10px; }
.breadcrumb a { color: #d7e9f7; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Content prose ---------- */
.prose { max-width: 820px; }
.prose h2 { color: var(--navy); font-size: 24px; margin: 34px 0 12px; }
.prose h3 { color: var(--navy); font-size: 20px; margin: 26px 0 10px; }
.prose h4 { color: var(--navy); font-size: 17px; margin: 20px 0 8px; }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose .note {
  background: var(--bg-tint);
  border-left: 4px solid var(--blue);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 18px 0;
}

/* ---------- Contact cards ---------- */
.contact-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }
.contact-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.contact-card h3 { margin: 0 0 10px; color: var(--navy); }
.contact-card .big { font-size: 20px; font-weight: 800; color: var(--navy); display: block; margin: 6px 0; overflow-wrap: anywhere; }
.contact-card .big a { color: var(--navy); }
.contact-row { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.contact-row > div { min-width: 0; }
.contact-row .ico { font-size: 18px; color: var(--blue-dark); width: 24px; text-align: center; flex: none; }

.map-embed { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 340px; border: 0; display: block; }

/* ---------- Gallery ---------- */
.video-grid { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; }
.video-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.video-frame iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.video-frame figcaption { padding: 10px 14px; font-weight: 700; color: var(--navy); background: #fff; font-size: 14px; }

.photo-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.photo-grid figure { margin: 0; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.photo-grid img { width: 100%; height: 130px; object-fit: cover; }
.photo-grid figcaption { padding: 8px 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- News ---------- */
.news-list { display: grid; gap: 18px; }
.news-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}
.news-item time { color: var(--blue-dark); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.news-item h2 { margin: 6px 0 8px; font-size: 20px; }
.news-item h2 a { color: var(--navy); }
.news-item p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #c8dae8; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 32px; padding: 48px 0 30px; }
.site-footer h3 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c8dae8; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 16px 0;
  text-align: center;
  font-size: 13px;
  color: #93afc4;
}
.footer-contact p { margin: 0 0 8px; }
.footer-contact strong { color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  background: #25d366;
  color: #fff;
  border-radius: 999px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s ease;
}
.wa-float:hover { transform: scale(1.06); color: #fff; text-decoration: none; }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- 404 ---------- */
.error-wrap { text-align: center; padding: 90px 0; }
.error-wrap h1 { font-size: 64px; color: var(--blue-dark); margin: 0; }
.error-wrap p { color: var(--muted); margin: 10px 0 24px; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .section { padding: 44px 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .header-contact { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 10px 5%;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { display: block; padding: 12px; }
  .hero-slide { min-height: 320px; }
  .hero-content { padding: 40px 0; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
