/*
Theme Name: SERCLIMA
Theme URI: https://smartfenix.es
Author: Smart Fenix S.L.
Author URI: https://smartfenix.es
Description: Tema a medida para SERCLIMA · Antonio Castell Jiménez. Climatización, aerotermia y ACS en Fuente Palmera (Córdoba).
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: serclima
Tags: business, local-business, custom-colors, custom-logo, editor-style, translation-ready
*/

/* ==========================================================================
   1. Tokens y reset
   ========================================================================== */
:root {
  --navy-950: #041d31;
  --navy-900: #06243d;
  --navy-800: #0a2e4e;
  --navy-700: #123f66;

  --teal-700: #086f6f;
  --teal-600: #0b7c7c;
  --teal-500: #0fa3a3;
  --teal-100: #e3f6f6;

  --orange-500: #f97316;
  --orange-400: #fb923c;
  --orange-100: #fff1e6;

  --ink: #0c1f2e;
  --body: #4a5b6b;
  --muted: #5e7183;

  --line: #e3eaf1;
  --bg: #f5f8fb;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 2px rgba(6, 36, 61, .06), 0 4px 14px rgba(6, 36, 61, .05);
  --shadow-md: 0 18px 40px -22px rgba(6, 36, 61, .35);
  --shadow-lg: 0 30px 70px -30px rgba(6, 36, 61, .45);

  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1180px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
}

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

h1 { font-size: clamp(2.15rem, 4.3vw, 3.35rem); }
h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--teal-600); }

:focus-visible {
  outline: 3px solid var(--teal-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 18px;
  background: var(--navy-900);
  color: #fff;
  border-radius: 0 0 10px 0;
  font-weight: 700;
}
.skip-link:focus { left: 0; color: #fff; }

/* ==========================================================================
   2. Cabecera
   ========================================================================== */
.sf-topbar {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}
.sf-topbar__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.sf-topbar p { margin: 0; }
.sf-topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.sf-topbar a:hover { color: var(--orange-400); }
.sf-topbar__links { display: flex; gap: 22px; flex-wrap: wrap; }
.sf-topbar__links span { display: inline-flex; align-items: center; gap: 7px; }
.sf-topbar svg { width: 14px; height: 14px; flex: none; opacity: .8; }

.sf-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.sf-header.is-scrolled { box-shadow: 0 8px 24px -18px rgba(6, 36, 61, .55); }

.sf-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sf-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--navy-900);
  flex: none;
}
.sf-logo__mark {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal-500), var(--navy-700));
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px -6px rgba(15, 163, 163, .8);
}
.sf-logo__mark svg { width: 24px; height: 24px; color: #fff; }
.sf-logo__text { display: flex; flex-direction: column; line-height: 1; }
.sf-logo__name {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--navy-900);
}
.sf-logo__tag {
  margin-top: 4px;
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-logo--custom .custom-logo-link { display: inline-flex; align-items: center; }
.sf-logo--custom img { max-height: 50px; width: auto; }
.sf-logo--footer img { width: 180px; height: auto; display: block; }

.sf-nav { display: flex; align-items: center; gap: 4px; }
.sf-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.sf-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}
.sf-nav a:hover,
.sf-nav .current-menu-item > a { background: var(--bg); color: var(--teal-700); }

.sf-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.sf-header__phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14.5px;
  color: var(--navy-900);
  text-decoration: none;
  white-space: nowrap;
}
.sf-header__phone svg { width: 17px; height: 17px; color: var(--teal-600); }
.sf-header__phone:hover { color: var(--teal-700); }

.sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--navy-950);
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 10px 22px -12px rgba(249, 115, 22, .9);
}
.sf-btn:hover {
  background: var(--orange-400);
  color: var(--navy-950);
  transform: translateY(-1px);
  box-shadow: 0 14px 26px -12px rgba(249, 115, 22, .95);
}
.sf-btn svg { width: 17px; height: 17px; }

.sf-btn--ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .38);
  box-shadow: none;
}
.sf-btn--ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.sf-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--navy-900);
  cursor: pointer;
  place-items: center;
  position: relative;
  z-index: 100;
}
.sf-nav-toggle svg { width: 22px; height: 22px; }
.sf-nav-toggle .sf-icon-open,
.sf-nav-toggle .sf-icon-close { display: grid; place-items: center; }
.sf-nav-toggle .sf-icon-close { display: none; }
.sf-nav-open .sf-nav-toggle .sf-icon-close { display: grid; }
.sf-nav-open .sf-nav-toggle .sf-icon-open { display: none; }

.sf-nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 29, 49, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s;
  z-index: 80;
}
.sf-nav-open .sf-nav-overlay { opacity: 1; visibility: visible; }

/* ==========================================================================
   3. Bloques: estructura común
   ========================================================================== */
.sf-section {
  position: relative;
  padding: 88px 0;
}
/* Neutraliza los márgenes automáticos de theme.json dentro de las secciones */
.sf-section :where(.is-layout-flow) > * { margin-block-start: 0; }
.sf-section > .wp-block-group,
.sf-section > .wp-block-columns,
.sf-section > .wp-block-heading,
.sf-section > .wp-block-paragraph {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.sf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal-700);
  white-space: nowrap;
}
.sf-eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal-500);
}
.sf-hero .sf-eyebrow { color: #7fe3e3; }
.sf-hero .sf-eyebrow::before { background: #7fe3e3; }

.sf-lead {
  font-size: 1.075rem;
  color: var(--body);
  max-width: 62ch;
}

.sf-head { margin-bottom: 44px; }
.sf-head.sf-head--center { text-align: center; }
.sf-head.sf-head--center .sf-lead { margin-left: auto; margin-right: auto; }

/* Botones de bloques */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--orange-500);
  color: var(--navy-950) !important;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
  box-shadow: 0 10px 22px -12px rgba(249, 115, 22, .9);
}
.wp-block-button__link:hover {
  background: var(--orange-400);
  transform: translateY(-1px);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: rgba(255, 255, 255, .4);
  color: #fff !important;
  box-shadow: none;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background: rgba(255, 255, 255, .12);
}

/* ==========================================================================
   4. Hero
   ========================================================================== */
.sf-hero {
  padding: 76px 0 128px;
  color: rgba(255, 255, 255, .84);
  background: linear-gradient(155deg, var(--navy-950) 0%, var(--navy-900) 48%, #0d3a5c 100%);
  overflow: hidden;
}
.sf-hero::before,
.sf-hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.sf-hero::before {
  width: 620px;
  height: 620px;
  right: -140px;
  top: -180px;
  background: radial-gradient(circle, rgba(15, 163, 163, .32), transparent 65%);
}
.sf-hero::after {
  width: 460px;
  height: 460px;
  left: -200px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(249, 115, 22, .18), transparent 65%);
}
.sf-hero > .wp-block-group {
  position: relative;
  z-index: 1;
}
.sf-hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 60px;
  align-items: center;
}
.sf-hero h1 { color: #fff; margin-bottom: 18px; }
.sf-hero p { color: rgba(255, 255, 255, .78); }
.sf-hero__text > p:not(.sf-eyebrow) { font-size: 1.075rem; max-width: 54ch; }
.sf-hero__text .wp-block-buttons { margin-top: 30px; }

.sf-hero__checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 28px 0 0;
  padding: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, .8);
}
.sf-hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.sf-hero__checks li::before {
  content: "";
  width: 17px;
  height: 17px;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236ee7d3' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sf-hero__media { position: relative; isolation: isolate; }
.sf-hero__img { margin: 0; }
.sf-hero__img img {
  width: 100%;
  aspect-ratio: 5 / 4.7;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.sf-hero__media::before {
  content: "";
  position: absolute;
  inset: 22px -22px -22px 22px;
  border: 1px solid rgba(127, 227, 227, .35);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.sf-hero__badge {
  position: absolute;
  left: -26px;
  bottom: -26px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  color: var(--ink);
}
.sf-hero__badge p { margin: 0; color: var(--ink); line-height: 1.35; }
.sf-hero__badge strong { display: block; font-size: 14.5px; color: var(--navy-900); }
.sf-hero__badge span { font-size: 12.5px; color: var(--muted); }
.sf-hero__badge::before {
  content: "";
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 12px;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f97316' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.1'/%3E%3Cpath d='M12 2.4v3.1M12 18.5v3.1M2.4 12h3.1M18.5 12h3.1M5.2 5.2l2.2 2.2M16.6 16.6l2.2 2.2M18.8 5.2l-2.2 2.2M7.4 16.6l-2.2 2.2'/%3E%3C/svg%3E") center / 22px no-repeat;
}

/* ==========================================================================
   5. Franja de confianza
   ========================================================================== */
.sf-trust {
  padding: 0;
  margin-top: -64px;
  position: relative;
  z-index: 5;
}
.sf-trust__card {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  padding: 26px 8px !important;
  max-width: var(--max);
}
.sf-trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 6px 26px;
  border-left: 1px solid var(--line);
  color: var(--body);
  font-size: 14px;
}
.sf-trust-item:first-child { border-left: 0; }
.sf-trust-item strong { display: block; font-size: 15px; color: var(--ink); line-height: 1.3; }
.sf-trust-item span { font-size: 13px; color: var(--muted); }
.sf-trust-item p { margin: 0; }
.sf-trust-item::before {
  content: "";
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 12px;
  background-color: var(--teal-100);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 21px;
}
.sf-trust-item.ti-1::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 3 7v5c0 5 3.8 8.4 9 10 5.2-1.6 9-5 9-10V7l-9-5Z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E");
}
.sf-trust-item.ti-2::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18v3h3l6.3-6.3a4 4 0 0 0 5.4-5.4l-2.1 2.1-2.1-2.1 2.1-2.1Z'/%3E%3C/svg%3E");
}
.sf-trust-item.ti-3::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}

/* ==========================================================================
   6. Servicios
   ========================================================================== */
.sf-servicios { background: #fff; }
.sf-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.sf-grid-2 {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.sf-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.sf-card:hover {
  transform: translateY(-4px);
  border-color: #cfe3e4;
  box-shadow: var(--shadow-md);
}
.sf-card h3 { margin-bottom: 8px; }
.sf-card p { font-size: 14.5px; margin: 0; color: var(--body); }
.sf-card::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background-color: var(--teal-100);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 24px;
}
.sf-card--aire::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='8' rx='2.5'/%3E%3Cpath d='M6 13v2M10 13v3M14 13v2M18 13v3'/%3E%3Cpath d='M6 9h12'/%3E%3C/svg%3E");
}
.sf-card--aerotermia::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4.5 6.5l15 11M19.5 6.5l-15 11M12 6l-3-3M12 6l3-3M12 18l-3 3M12 18l3 3'/%3E%3C/svg%3E");
}
.sf-card--acs::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3s5 5.5 5 9a5 5 0 0 1-10 0c0-3.5 5-9 5-9Z'/%3E%3Cpath d='M9.5 13a2.5 2.5 0 0 0 5 0'/%3E%3C/svg%3E");
}
.sf-card--calefaccion::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='M7 8v8M11 8v8M15 8v8M19 8v8'/%3E%3C/svg%3E");
}
.sf-card--ventilacion::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 9.5c0-4 2-6 4.5-6S20 6 20 7.5 18.5 9.5 12 9.5ZM14.5 12c4 0 6 2 6 4.5S18 20 16.5 20 14.5 18.5 14.5 12ZM9.5 12c0 4-2 6-4.5 6S2 18 2 16.5 3.5 14.5 9.5 12Z'/%3E%3C/svg%3E");
}
.sf-card--frio::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='2.5' width='14' height='19' rx='2.5'/%3E%3Cpath d='M5 10.5h14M8.5 6v.1M8.5 14v.1'/%3E%3C/svg%3E");
}
.sf-card--termosolar::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='3.8'/%3E%3Cpath d='M12 2v2.4M12 19.6V22M2 12h2.4M19.6 12H22M4.9 4.9l1.7 1.7M17.4 17.4l1.7 1.7M19.1 4.9l-1.7 1.7M6.6 17.4l-1.7 1.7'/%3E%3C/svg%3E");
}
.sf-card--mantenimiento::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0-5.4 5.4L3 18v3h3l6.3-6.3a4 4 0 0 0 5.4-5.4l-2.1 2.1-2.1-2.1 2.1-2.1Z'/%3E%3C/svg%3E");
}

/* ==========================================================================
   7. Nosotros
   ========================================================================== */
.sf-nosotros { background: var(--bg); }
.sf-about {
  display: grid !important;
  grid-template-columns: .95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
.sf-about__media { position: relative; margin: 0; isolation: isolate; }
.sf-about__media img {
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.sf-about__media::after {
  content: "";
  position: absolute;
  inset: 26px 26px -26px -26px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--teal-500);
  opacity: .45;
  z-index: -1;
}
.sf-checks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.sf-checks li {
  position: relative;
  padding-left: 32px;
  font-size: 15px;
  color: var(--body);
}
.sf-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.sf-about__quote {
  margin-top: 26px;
  padding: 18px 22px;
  border-left: 3px solid var(--orange-500);
  background: #fff;
  border-radius: 0 12px 12px 0;
  font-size: 15px;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   8. Proceso
   ========================================================================== */
.sf-proceso { background: #fff; }
.sf-step {
  counter-increment: paso;
  position: relative;
  padding: 30px 26px !important;
  background: var(--bg);
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.sf-step::before {
  content: "0" counter(paso);
  display: block;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
  color: var(--teal-500);
  opacity: .35;
  margin-bottom: 14px;
}
.sf-steps { counter-reset: paso; }
.sf-step h3 { font-size: 1.1rem; }
.sf-step p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   9. Zonas
   ========================================================================== */.sf-zonas { background: var(--bg); }
.sf-zonas__box {
  display: grid !important;
  grid-template-columns: .85fr 1.15fr;
  gap: 48px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px !important;
  box-shadow: var(--shadow-sm);
}
.sf-zonas__list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.sf-zonas__list .sf-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sf-zonas__list .sf-chip::before {
  content: "";
  width: 13px;
  height: 13px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b7c7c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}

.sf-faq { background: #fff; }
.sf-faq .sf-grid-2 { gap: 20px; }
.sf-faq-item {
  padding: 26px 24px !important;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sf-faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.sf-faq-item p { font-size: 14.5px; margin: 0; }

/* ==========================================================================
   10. CTA
   ========================================================================== */
.sf-cta { padding: 40px 0 88px; background: var(--bg); }
.sf-cta__box {
  position: relative;
  display: grid !important;
  grid-template-columns: 1.35fr auto;
  gap: 40px;
  align-items: center;
  padding: 52px 56px !important;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--navy-900), var(--navy-700) 60%, #0e5b6b);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.sf-cta__box::after {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -100px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, .35), transparent 65%);
  pointer-events: none;
}
.sf-cta__box > * { position: relative; z-index: 1; }
.sf-cta h2 { color: #fff; margin-bottom: 8px; }
.sf-cta p { color: rgba(255, 255, 255, .78); margin: 0; }
.sf-cta .wp-block-buttons { justify-content: flex-end; }

/* ==========================================================================
   11. Contacto
   ========================================================================== */
.sf-contacto { background: #fff; padding-top: 88px; }
.sf-contacto__grid {
  display: grid !important;
  grid-template-columns: 1.05fr .95fr;
  gap: 32px;
  align-items: start;
}
.sf-form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px !important;
  box-shadow: var(--shadow-sm);
}
.sf-form-card h3 { margin-bottom: 6px; }
.sf-form-card > p { font-size: 14px; margin-bottom: 22px; }

.sf-form { display: grid; gap: 16px; }
.sf-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-field { display: grid; gap: 6px; }
.sf-field label { font-size: 13px; font-weight: 700; color: var(--ink); }
.sf-field .req { color: var(--orange-500); }
.sf-field input,
.sf-field select,
.sf-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid #d7e2ec;
  border-radius: 12px;
  background: #fbfdff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.sf-field textarea { min-height: 128px; resize: vertical; }
.sf-field input:focus,
.sf-field select:focus,
.sf-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(15, 163, 163, .14);
}
.sf-field input[aria-invalid="true"],
.sf-field textarea[aria-invalid="true"],
.sf-field select[aria-invalid="true"] { border-color: #dc2626; }
.sf-field__error { font-size: 12.5px; color: #b91c1c; min-height: 0; }
.sf-field__error:empty { display: none; }

.sf-check-legal {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.sf-check-legal input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--teal-600); }
.sf-check-legal a { color: var(--teal-700); }

.sf-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--orange-500);
  color: var(--navy-950);
  font: inherit;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease;
}
.sf-form__submit:hover { background: var(--orange-400); transform: translateY(-1px); }
.sf-form__submit[disabled] { opacity: .65; cursor: wait; transform: none; }
.sf-form__submit svg { width: 18px; height: 18px; flex: none; }

.sf-form__note { font-size: 12px; color: var(--muted); text-align: center; }
.sf-hp { position: absolute !important; left: -9999px !important; }

.sf-form__feedback {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
}
.sf-form__feedback.is-error { display: block; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.sf-form__feedback.is-ok { display: block; background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }

.sf-form-success {
  padding: 26px;
  border-radius: 14px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
}
.sf-form-success strong { display: block; font-size: 17px; margin-bottom: 6px; }

/* Tarjeta de datos */
.sf-info-card {
  position: relative;
  padding: 36px !important;
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: rgba(255, 255, 255, .78);
  overflow: hidden;
}
.sf-info-card::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 163, 163, .4), transparent 65%);
}
.sf-info-card h3 { color: #fff; font-size: 1.3rem; }
.sf-info-card > p { font-size: 14.5px; }
.sf-info-list { display: grid; gap: 6px; margin-top: 22px; position: relative; z-index: 1; }
.sf-info-item {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin: 0;
}
.sf-info-item:first-child { border-top: 0; }
.sf-info-item svg { width: 19px; height: 19px; flex: none; margin-top: 1px; color: #7fe3e3; }
.sf-info-item::before {
  content: "";
  width: 19px;
  height: 19px;
  flex: none;
  margin-top: 2px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}
.sf-info-item.sil--tel::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe3e3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.9a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.2-1.2a2 2 0 0 1 2.1-.5c.9.3 1.9.6 2.9.7A2 2 0 0 1 22 16.9Z'/%3E%3C/svg%3E");
}
.sf-info-item.sil--wa::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe3e3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2Z'/%3E%3Cpath d='M8.5 8.4c.2-.4.3-.4.6-.4h.5c.2 0 .4 0 .5.4l.8 1.8c.1.3.1.5-.1.7l-.5.6c-.2.2-.3.4-.1.7a7 7 0 0 0 3.2 2.8c.3.1.5.1.7-.1l.7-.8c.2-.2.4-.3.7-.2l1.8.8c.3.2.4.3.4.6 0 .4-.1 1.2-.5 1.6-.4.5-1.1.9-1.9.9-1 0-2.5-.4-4.3-2a12 12 0 0 1-3.2-4.3c-.5-1.3-.4-2.4.1-3.1Z'/%3E%3C/svg%3E");
}
.sf-info-item.sil--mail::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe3e3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='m2 7 10 6 10-6'/%3E%3C/svg%3E");
}
.sf-info-item.sil--pin::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe3e3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 6-9 12-9 12s-9-6-9-12a9 9 0 0 1 18 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
}
.sf-info-item.sil--zona::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237fe3e3' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3a15 15 0 0 1 0 18 15 15 0 0 1 0-18Z'/%3E%3C/svg%3E");
}
.sf-info-item strong { display: block; color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.sf-info-item a,
.sf-info-item span { color: rgba(255, 255, 255, .88); font-size: 15px; text-decoration: none; }
.sf-info-item a:hover { color: #7fe3e3; }
.sf-info-item p { margin: 0; }

.sf-map-wrap {
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0 24px;
}
.sf-map {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  line-height: 0;
  background: var(--bg);
}
.sf-map iframe { width: 100%; height: 440px; border: 0; display: block; }
.sf-map-link { margin: 12px 0 0; text-align: center; font-size: 14px; }
.sf-map-link a { font-weight: 700; }

@media (max-width: 680px) {
  .sf-map iframe { height: 320px; }
}

/* ==========================================================================
   12. Páginas legales / contenido
   ========================================================================== */
.sf-page-hero {
  background: linear-gradient(150deg, var(--navy-950), var(--navy-700));
  color: rgba(255, 255, 255, .8);
  padding: 64px 0 56px;
}
.sf-page-hero__inner { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.sf-page-hero h1 { color: #fff; margin: 0; font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.sf-page-hero p { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, .6); }

.sf-page { padding: 64px 0 88px; background: #fff; }
.sf-prose {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 15.5px;
}
.sf-prose h2 { font-size: 1.35rem; margin-top: 2em; }
.sf-prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.sf-prose ul, .sf-prose ol { padding-left: 1.25em; }
.sf-prose li { margin-bottom: .4em; }
.sf-prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.sf-prose th, .sf-prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.sf-prose th { background: var(--bg); }

.sf-page > .wp-block-group,
.sf-page > .wp-block-columns {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   13. Footer
   ========================================================================== */
.sf-footer {
  background: var(--navy-950);
  color: rgba(255, 255, 255, .62);
  font-size: 14px;
  padding: 64px 0 0;
}
.sf-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
}
.sf-footer .sf-logo { color: #fff; }
.sf-footer .sf-logo__name { color: #fff; }
.sf-footer .sf-logo__tag { color: rgba(255, 255, 255, .5); }
.sf-footer__brand p { margin: 16px 0 0; max-width: 30ch; font-size: 13.5px; line-height: 1.6; }
.sf-footer h4 {
  color: #fff;
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 4px 0 16px;
}
.sf-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.sf-footer a { color: rgba(255, 255, 255, .68); text-decoration: none; }
.sf-footer a:hover { color: #fff; }
.sf-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: center;
  max-width: calc(var(--max) + 48px);
  margin: 0 auto;
  font-size: 12.5px;
}
.sf-footer__bottom p { margin: 0; }
.sf-footer__bottom span { opacity: .8; }
.sf-footer__legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   14. Menú móvil y utilidades
   ========================================================================== */
.sf-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s ease, transform .6s ease;
}
.sf-reveal.is-visible { opacity: 1; transform: none; }

.sf-back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
  z-index: 70;
}
.sf-back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.sf-back-top:hover { background: var(--teal-700); color: #fff; }
.sf-back-top svg { width: 20px; height: 20px; }

/* ==========================================================================
   15. Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .sf-nav a { padding: 10px 11px; font-size: 14px; }
  .sf-hero__grid { gap: 40px; }
  .sf-about { gap: 44px; }
}

@media (max-width: 1024px) {
  .sf-header__inner { padding: 0 18px; }
  .sf-header__phone span { display: none; }
  .sf-header { backdrop-filter: none; background: rgba(255, 255, 255, .98); }
  .sf-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(330px, 86vw);
    height: 100vh;
    height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    padding: 92px 22px 30px;
    background: #fff;
    box-shadow: -20px 0 60px rgba(4, 29, 49, .18);
    transform: translateX(102%);
    visibility: hidden;
    transition: transform .28s ease, visibility .28s;
    z-index: 85;
    overflow-y: auto;
    gap: 0;
  }
  .sf-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
  .sf-nav a { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sf-nav-toggle { display: grid; }
  .sf-nav-open .sf-nav { transform: none; visibility: visible; }
  body.sf-nav-open { overflow: hidden; }

  .sf-hero { padding: 56px 0 118px; }
  .sf-hero__grid { grid-template-columns: 1fr; gap: 46px; }
  .sf-hero__text > p { max-width: 62ch; }
  .sf-hero__media { max-width: 560px; }
  .sf-hero__media::before { display: none; }

  .sf-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .sf-trust__card { grid-template-columns: 1fr; gap: 0; padding: 8px 26px !important; }
  .sf-trust-item { border-left: 0; border-top: 1px solid var(--line); padding: 16px 0; }
  .sf-trust-item:first-child { border-top: 0; }

  .sf-about { grid-template-columns: 1fr; gap: 46px; }
  .sf-about__media { max-width: 520px; }
  .sf-about__media::after { display: none; }

  .sf-zonas__box { grid-template-columns: 1fr; gap: 28px; padding: 32px !important; }

  .sf-cta__box { grid-template-columns: 1fr; gap: 26px; padding: 40px 32px !important; }
  .sf-cta .wp-block-buttons { justify-content: flex-start; }

  .sf-contacto__grid { grid-template-columns: 1fr; }

  .sf-footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 680px) {
  .sf-section { padding: 64px 0; }
  .sf-hero { padding: 44px 0 110px; }
  .sf-hero__badge { left: 12px; bottom: -20px; padding: 12px 16px; }
  .sf-hero__badge strong { font-size: 13.5px; }
  .sf-hero__checks { gap: 8px 16px; font-size: 13.5px; }
  .sf-grid-3, .sf-grid-2 { grid-template-columns: 1fr; }
  .sf-step { padding: 24px !important; }
  .sf-form__row { grid-template-columns: 1fr; }
  .sf-form-card, .sf-info-card { padding: 26px !important; }
  .sf-footer__inner { grid-template-columns: 1fr; }
  .sf-footer__bottom { flex-direction: column; align-items: flex-start; }
  .sf-topbar__inner { justify-content: center; flex-wrap: wrap; gap: 4px 16px; text-align: center; }
  .sf-topbar__links { gap: 14px; }
  .sf-topbar__place { display: none; }
  .sf-header__actions .sf-btn { display: none; }
}

@media (max-width: 560px) {
  .sf-topbar__links span:last-child { display: none; }
  .sf-header__inner { padding: 0 14px; }
  .sf-logo__mark { width: 38px; height: 38px; }
  .sf-logo__name { font-size: 18px; }
}

@media (max-width: 420px) {
  .sf-logo__tag { display: none; }
  .sf-eyebrow { font-size: 10.5px; letter-spacing: .1em; gap: 7px; }
  .sf-eyebrow::before { width: 16px; }
  .sf-cta__box { padding: 32px 22px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .sf-reveal { opacity: 1; transform: none; }
}

@media print {
  .sf-topbar,
  .sf-header,
  .sf-back-top,
  .sf-nav-overlay { display: none !important; }
  .sf-reveal { opacity: 1 !important; transform: none !important; }
  .sf-hero,
  .sf-cta__box,
  .sf-info-card,
  .sf-footer { background: #fff !important; color: #000 !important; }
  .sf-hero h1,
  .sf-cta h2,
  .sf-info-card h3 { color: #000 !important; }
  .sf-section { padding: 24px 0 !important; }
}

