/* ==========================================================
   Fontanería Victoria — hoja de estilos
   Colores corporativos: RAL 5005 (#154889) y negro.
   Tipografías: Century Gothic (texto) y Allura (títulos,
   sustituta de Claire mientras no se reciba el archivo real).
   ========================================================== */

@font-face {
  font-family: "Century Gothic";
  src: url("assets/fonts/CenturyGothic.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url("assets/fonts/CenturyGothic-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url("assets/fonts/CenturyGothic-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Century Gothic";
  src: url("assets/fonts/CenturyGothic-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Allura";
  src: url("assets/fonts/allura.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f8fafd;
  --fg: #0d1936;
  --card: #ffffff;
  --primary: #154889;          /* RAL 5005 */
  --primary-fg: #f6f9fc;
  --secondary: #0b0d12;        /* negro */
  --secondary-fg: #f3f5f8;
  --muted-fg: #525f6f;
  --border: #d7dfe8;
  --navy: #15284b;
  --navy-fg: #eaeff5;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Century Gothic", "Trebuchet MS", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

h1, h2, h3 { margin: 0; font-family: "Century Gothic", "Trebuchet MS", sans-serif; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { max-width: 1152px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 253, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.brand img { height: 56px; width: auto; object-fit: contain; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; font-weight: 500; }
.nav a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted-fg);
  text-decoration: none;
}
.nav a:hover { color: var(--fg); }
.nav a.active { color: var(--primary); }
.btn-phone {
  display: none;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.langs { display: flex; gap: 4px; font-size: 12px; font-weight: 600; }
.langs button {
  border: 0;
  background: transparent;
  font: inherit;
  padding: 4px 8px;
  border-radius: 6px;
  color: var(--muted-fg);
  cursor: pointer;
}
.langs button:hover { color: var(--fg); }
.langs button.is-active { background: var(--primary); color: var(--primary-fg); }

/* ---------- Portada ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: var(--navy-fg); }
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.hero-inner { position: relative; padding-top: 48px; padding-bottom: 48px; }
.badge {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}
.hero-logo { width: 256px; max-width: 100%; height: auto; margin-bottom: 24px; }
.hero-text { margin-top: 20px; max-width: 576px; font-size: 18px; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-accent {
  display: inline-block;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(234, 239, 245, 0.4);
  color: var(--navy-fg);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Secciones ---------- */
.section { padding-top: 64px; padding-bottom: 64px; }
.section > .wrap > h2 { font-size: 30px; font-weight: 700; }

.grid-services { margin-top: 32px; display: grid; gap: 20px; grid-template-columns: 1fr; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 2px rgba(13, 25, 54, 0.06);
}
.card img { width: 48px; height: 48px; }
.card h3 { margin-top: 12px; font-size: 20px; font-weight: 600; }
.card p { margin-top: 8px; color: var(--muted-fg); }
.more { margin-top: 32px; display: inline-block; font-weight: 600; color: var(--primary); text-decoration: none; }

/* ---------- Banda de confianza ---------- */
.trust { background: var(--secondary); color: var(--secondary-fg); text-align: center; }
.trust-inner { display: grid; gap: 24px; grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 56px; }
.trust b { display: block; font-size: 24px; font-weight: 700; }
.trust span { opacity: 0.8; }

/* ---------- Cabecera de página interior ---------- */
.page-hero { background: var(--navy); color: var(--navy-fg); }
.page-hero-inner { padding-top: 64px; padding-bottom: 64px; }
.page-hero h1 { font-family: "Allura", cursive; font-weight: 400; font-size: 48px; line-height: 1.15; }
.page-hero p { margin-top: 16px; max-width: 672px; font-size: 18px; opacity: 0.9; }

/* ---------- Lista de servicios ---------- */
.grid-two { display: grid; gap: 24px; grid-template-columns: 1fr; }
.row-card {
  display: flex;
  gap: 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.row-card img { width: 56px; height: 56px; flex: 0 0 auto; }
.row-card h2 { font-size: 24px; font-weight: 600; }
.row-card p { margin-top: 8px; color: var(--muted-fg); }
.btn-primary {
  display: inline-block;
  margin-top: 40px;
  background: var(--primary);
  color: var(--primary-fg);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}

/* ---------- Sobre nosotros ---------- */
.about { max-width: 768px; }
.about p { margin-bottom: 20px; font-size: 18px; color: var(--muted-fg); }
.about strong { color: var(--fg); }
.grid-three { margin-top: 40px; display: grid; gap: 20px; grid-template-columns: 1fr; }
.value { background: var(--secondary); border-radius: 12px; padding: 24px; color: var(--secondary-fg); }
.value h2 { font-size: 20px; font-weight: 600; }
.value p { margin-top: 8px; opacity: 0.8; }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
.contact-info { font-size: 18px; }
.contact-info p { margin-bottom: 16px; }
.contact-info b { font-weight: 600; }
.contact-info a { color: var(--primary); }
.contact-area { color: var(--muted-fg); }
form { display: grid; gap: 16px; }
.field {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 12px 16px;
  font: inherit;
  color: var(--fg);
}
.field:focus { outline: none; box-shadow: 0 0 0 2px var(--primary); }
.btn-send {
  justify-self: start;
  background: var(--primary);
  color: var(--primary-fg);
  border: 0;
  padding: 12px 24px;
  border-radius: 8px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- Pie ---------- */
.site-footer { background: var(--navy); color: var(--navy-fg); }
.footer-inner { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 48px; }
.footer-logo { width: 208px; height: auto; }
.footer-note { margin-top: 8px; font-size: 14px; opacity: 0.85; }
.footer-contact { font-size: 14px; }
.footer-contact p { margin-bottom: 6px; }
.footer-contact a { color: var(--navy-fg); text-decoration: none; }
.footer-copy { font-size: 14px; opacity: 0.75; }

/* ---------- Botón de WhatsApp ---------- */
.wa {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 50;
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease;
}
.wa:hover { transform: scale(1.05); }
.wa svg { width: 28px; height: 28px; }

/* ---------- Ancho de pantalla ---------- */
@media (min-width: 640px) {
  .grid-services { grid-template-columns: 1fr 1fr; }
  .trust-inner { grid-template-columns: 1fr 1fr; }
  .grid-three { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) {
  .brand img { height: 80px; }
  .btn-phone { display: inline-block; }
  .hero-inner { padding-top: 80px; padding-bottom: 80px; }
  .hero-logo { width: 320px; }
  .page-hero h1 { font-size: 60px; }
  .grid-two { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-copy { text-align: right; }
}
@media (min-width: 1024px) {
  .grid-services { grid-template-columns: repeat(3, 1fr); }
}

/* En el móvil, el botón flotante de WhatsApp no tapa la última línea del pie */
@media (max-width: 767px) {
  .site-footer { padding-bottom: 80px; }
}
