/* ============================================================
   SOS FONTANERO TORREVIEJA — Emergency Dispatch Design System
   Dark, high-contrast, amber accent. Sharp edges, no blobs.
   ============================================================ */

:root {
  --bg:        #0c0c0e;
  --bg-2:      #151519;
  --panel:     #1b1b20;
  --panel-2:   #222228;
  --line:      rgba(255,255,255,0.10);
  --line-lt:   rgba(255,255,255,0.18);

  --amber:      #ff7a1a;
  --amber-lt:   #ffb648;
  --amber-deep: #c85400;
  --amber-soft: rgba(255,122,26,0.16);

  --paper:     #f4efe4;
  --paper-2:   #e9e1cf;
  --ink:       #17161a;
  --ink-md:    #4c4a46;
  --ink-lt:    #837f74;
  --white:     #ffffff;

  --text:      rgba(255,255,255,0.92);
  --text-md:   rgba(255,255,255,0.68);
  --text-lt:   rgba(255,255,255,0.46);

  --r:    3px;
  --r-sm: 2px;

  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);

  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', Arial, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

.container { width: min(92%, 1160px); margin-inline: auto; }
.section-pad { padding-block: 88px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- Type ---------- */
.sf-eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.sf-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--amber); flex-shrink: 0; }
.sf-h2 {
  font-family: var(--font-head);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.1;
  color: var(--text);
}
.sf-body { font-size: 1.02rem; line-height: 1.8; color: var(--text-md); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-1 { transition-delay: 0.08s; }
.reveal-2 { transition-delay: 0.16s; }
.reveal-3 { transition-delay: 0.24s; }
.reveal-4 { transition-delay: 0.32s; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 26px;
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-lg { padding: 18px 30px; font-size: 1.05rem; }
.btn-amber {
  background: var(--amber);
  color: #1a0d00;
  box-shadow: 0 10px 30px rgba(255,122,26,0.3);
}
.btn-amber:hover { background: var(--amber-lt); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  border-color: var(--line-lt);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--amber); color: var(--amber-lt); transform: translateY(-2px); }
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-block { width: 100%; justify-content: center; }

/* ============================================================
   TOP STRIP
   ============================================================ */
.sf-topbar {
  background: var(--amber);
  color: #1a0d00;
}
.sf-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  flex-wrap: wrap;
}
.sf-topbar-inner i { font-size: 0.8rem; }
.sf-topbar-phone { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   NAV
   ============================================================ */
.sf-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(12,12,14,0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.sf-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}
.sf-logo img { height: 34px; width: auto; }
.sf-nav-links { display: flex; align-items: center; gap: 30px; }
.sf-nav-links a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-md);
  transition: color 0.2s;
}
.sf-nav-links a:hover { color: var(--white); }
.sf-lang {
  border: 1px solid var(--line-lt);
  padding: 5px 11px !important;
  border-radius: var(--r-sm);
  font-size: 0.72rem !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sf-nav-cta {
  background: var(--amber);
  color: #1a0d00 !important;
  padding: 9px 18px;
  border-radius: var(--r-sm);
  font-weight: 700 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.sf-nav-cta:hover { background: var(--amber-lt); }

.sf-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.sf-burger span { display: block; width: 24px; height: 2px; background: var(--white); transition: transform 0.3s, opacity 0.3s; }
.sf-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sf-burger.open span:nth-child(2) { opacity: 0; }
.sf-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sf-drawer {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  padding: 0 10%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.sf-drawer.open { opacity: 1; pointer-events: all; }
.sf-drawer a {
  font-family: var(--font-head);
  font-size: 2rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text);
}
.sf-drawer .sf-nav-cta { font-family: var(--font-body); font-size: 1rem; padding: 14px 26px; }

@media (max-width: 820px) {
  .sf-nav-links { display: none; }
  .sf-burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.sf-hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.sf-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: saturate(0.85) contrast(1.05);
}
.sf-hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,8,9,0.55) 0%, rgba(8,8,9,0.35) 30%, rgba(8,8,9,0.92) 100%),
    linear-gradient(90deg, rgba(8,8,9,0.7) 0%, rgba(8,8,9,0.15) 55%);
}
.sf-hero-content {
  position: relative;
  z-index: 2;
  padding: 160px 0 72px;
  max-width: 760px;
}
.sf-hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.4vw, 4.6rem);
  line-height: 1.03;
  letter-spacing: 0;
  color: var(--white);
  margin-bottom: 22px;
}
.sf-hero-title span { color: var(--amber); }
.sf-hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: 34px;
}
.sf-hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.sf-hero-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.sf-tag {
  border: 1px solid rgba(255,255,255,0.28);
  color: rgba(255,255,255,0.8);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 7px 14px;
  border-radius: var(--r-sm);
}

@media (max-width: 600px) {
  .sf-hero-actions { flex-direction: column; align-items: stretch; }
}

/* Hazard stripe divider */
.sf-stripe {
  height: 10px;
  background: repeating-linear-gradient(
    -45deg,
    var(--amber), var(--amber) 14px,
    #0c0c0e 14px, #0c0c0e 28px
  );
}

/* ============================================================
   ABOUT
   ============================================================ */
.sf-about { background: var(--bg-2); }
.sf-about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.sf-about-visual {
  border: 1px solid var(--line);
  overflow: hidden;
  aspect-ratio: 4/5;
}
.sf-about-visual img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9); }
.sf-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.sf-badges li {
  border: 1px solid var(--line-lt);
  border-radius: var(--r-sm);
  padding: 8px 15px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-md);
  position: relative;
  padding-left: 22px;
}
.sf-badges li::before {
  content: '';
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 6px; height: 6px; border-radius: 50%; background: var(--amber);
}

@media (max-width: 860px) {
  .sf-about-grid { grid-template-columns: 1fr; gap: 36px; }
  .sf-about-visual { aspect-ratio: 16/9; max-height: 340px; }
}

/* ============================================================
   SERVICES
   ============================================================ */
.sf-services { background: var(--bg); }
.sf-section-head { max-width: 560px; margin-bottom: 52px; }
.sf-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.sf-service {
  background: var(--bg);
  padding: 34px 28px;
  position: relative;
}
.sf-service-num {
  display: block;
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--amber);
  margin-bottom: 20px;
}
.sf-service h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.sf-service p { font-size: 0.92rem; color: var(--text-md); line-height: 1.7; }

/* ============================================================
   ZONE BANNER
   ============================================================ */
.sf-zone {
  background: var(--amber);
  color: #1a0d00;
  padding-block: 56px;
}
.sf-zone-inner { text-align: center; max-width: 680px; margin-inline: auto; }
.sf-zone .sf-eyebrow { color: #1a0d00; }
.sf-zone .sf-eyebrow::before { background: #1a0d00; }
.sf-zone .sf-h2 { color: #1a0d00; margin-bottom: 14px; }
.sf-zone .sf-body { color: rgba(26,13,0,0.78); }

/* ============================================================
   PROOF
   ============================================================ */
.sf-proof { background: var(--bg-2); }
.sf-proof-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sf-proof-num {
  font-family: var(--font-head);
  font-size: clamp(3.4rem, 8vw, 6rem);
  font-weight: 700;
  color: var(--amber);
  line-height: 1;
}
.sf-proof-text p { color: var(--text-md); font-size: 1rem; margin-bottom: 10px; }
.sf-google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 0.92rem;
  border-bottom: 1.5px solid var(--amber);
  padding-bottom: 3px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.sf-contact { background: var(--bg); }
.sf-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.sf-contact-items { display: flex; flex-direction: column; gap: 22px; margin: 30px 0 30px; }
.sf-contact-item { display: flex; gap: 16px; align-items: flex-start; }
.sf-contact-item-icon {
  width: 42px; height: 42px;
  border: 1px solid var(--line-lt);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--amber);
  flex-shrink: 0;
}
.sf-contact-item-text { font-size: 0.96rem; color: var(--text-md); line-height: 1.6; }
.sf-contact-item-text strong {
  display: block; color: var(--text); font-size: 0.76rem;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 4px;
}
.sf-contact-item-text a:hover { color: var(--amber-lt); }
.sf-social { display: flex; gap: 10px; }
.sf-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--line-lt);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-md);
  transition: border-color 0.2s, color 0.2s;
}
.sf-social a:hover { border-color: var(--amber); color: var(--amber-lt); }

.sf-form-panel {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r);
  padding: 42px;
  box-shadow: var(--shadow);
}
.sf-form-panel h3 {
  font-family: var(--font-head);
  text-transform: uppercase;
  font-weight: 600;
  font-size: 1.3rem;
  margin-bottom: 22px;
  color: var(--ink);
}
.sf-field { margin-bottom: 16px; }
.sf-field input, .sf-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(0,0,0,0.15);
  border-radius: var(--r-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sf-field input:focus, .sf-field textarea:focus {
  border-color: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}
.sf-field textarea { resize: vertical; min-height: 110px; }
.sf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sf-form-msg { margin-top: 12px; font-size: 0.9rem; text-align: center; }
.sf-form-msg.success { color: #2a7a50; }
.sf-form-msg.error { color: #c0392b; }

@media (max-width: 860px) {
  .sf-contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .sf-form-panel { padding: 30px 24px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.sf-footer { background: #000; padding: 40px 0 100px; border-top: 1px solid var(--line); }
.sf-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.sf-footer-logo img { height: 30px; }
.sf-footer-copy { color: var(--text-lt); font-size: 0.82rem; }

@media (min-width: 821px) {
  .sf-footer { padding-bottom: 40px; }
}

/* ============================================================
   MOBILE STICKY ACTION BAR
   ============================================================ */
.sf-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 950;
  grid-template-columns: 1fr 1fr;
}
.sf-mobile-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 10px;
  font-weight: 700;
  font-size: 0.95rem;
}
.sf-mobile-call { background: var(--amber); color: #1a0d00; }
.sf-mobile-wa { background: #17a34a; color: var(--white); }

@media (max-width: 820px) {
  .sf-mobile-bar { display: grid; }
  .sf-footer { padding-bottom: 88px; }
}

/* Desktop-only floating WhatsApp */
.sf-wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: #17a34a;
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 8px 26px rgba(23,163,74,0.4);
  transition: transform 0.2s var(--ease);
}
.sf-wa-float:hover { transform: scale(1.08); }

@media (max-width: 820px) {
  .sf-wa-float { display: none; }
}
