/* ==========================================================================
   Sovia Design — Sitio en construcción (página única)
   Tipografías: Prompt (títulos) + DM Sans (texto) — imagen corporativa Sovia
   ========================================================================== */

/* ---- Tipografías locales ---- */
@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt/Prompt-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt/Prompt-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt/Prompt-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt/Prompt-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('../fonts/DMSans/DMSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Paleta de marca ---- */
:root {
  --navy-950: #051524;
  --navy-900: #06213a;
  --navy: #002e56;
  --blue-light: #b4d9f3;
  --amber: #f2a93b;
  --white: #ffffff;
  --paper: #f6f9fc;
  --line: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  background: var(--navy-950);
  color: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

h1 {
  font-family: 'Prompt', Arial, sans-serif;
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

/* ---- Fondo con textura de circuito (Industria 4.0) ---- */
.circuit-bg {
  position: absolute;
  inset: 0;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(180, 217, 243, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 217, 243, 0.35) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 85%);
}

/* ==========================================================================
   HERO / PÁGINA ÚNICA
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 28px;
  overflow: hidden;
  isolation: isolate;
}

.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.05);
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(3, 12, 22, 0.72) 0%, rgba(4, 15, 26, 0.55) 32%, rgba(4, 15, 26, 0.72) 62%, var(--navy-950) 100%),
    linear-gradient(90deg, rgba(2, 10, 19, 0.55) 0%, rgba(2, 10, 19, 0.15) 40%, rgba(2, 10, 19, 0.15) 60%, rgba(2, 10, 19, 0.55) 100%);
}

.hero__inner {
  position: relative;
  width: 100%;
  max-width: 640px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__logo {
  width: min(480px, 58vw);
  height: auto;
  margin-bottom: 30px;
}

.hero h1 {
  font-size: clamp(1.5rem, 1.05rem + 1.6vw, 2.15rem);
  font-weight: 600;
  line-height: 1.34;
  letter-spacing: 0.003em;
  color: var(--white);
}

.hero__actions {
  margin-top: 40px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Prompt', Arial, sans-serif;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  padding: 15px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:hover { transform: translateY(-2px); }

.btn--whatsapp {
  background: #25d366;
  color: #06301c;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.28);
}
.btn--whatsapp:hover { box-shadow: 0 14px 34px rgba(37, 211, 102, 0.4); }

.btn--outline {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: rgba(255,255,255,0.28);
}
.btn--outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Mini contacto: WhatsApp · correo · horario */
.mini-contact {
  margin-top: 34px;
  display: flex;
  gap: 12px 28px;
  flex-wrap: wrap;
  justify-content: center;
}
.mini-contact a,
.mini-contact span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: 'Prompt', Arial, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: rgba(230, 240, 249, 0.82);
  transition: color .2s ease;
}
.mini-contact a:hover { color: var(--blue-light); }
.mini-contact svg { width: 17px; height: 17px; flex: none; color: var(--blue-light); }

/* Redes sociales */
.hero__social {
  margin-top: 28px;
  display: flex;
  gap: 10px;
}
.hero__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--blue-light);
  transition: background .2s ease, border-color .2s ease;
}
.hero__social a:hover { background: rgba(180,217,243,0.12); border-color: rgba(180,217,243,0.4); }
.hero__social svg { width: 17px; height: 17px; }

.hero__copy {
  margin-top: 30px;
  font-size: 12px;
  color: rgba(220,233,246,0.45);
}

/* Floating WhatsApp */
.float-wa {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0,0,0,0.4);
  animation: floatbounce 3.2s ease-in-out infinite;
}
.float-wa svg { width: 28px; height: 28px; color: #06301c; }
@keyframes floatbounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 620px) {
  .hero__actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
  .mini-contact { flex-direction: column; align-items: center; gap: 14px; }
}
