/* ============================================================
   Simple Living — simpleliving.cl · un producto de KrimDev
   Paleta derivada del logo: navy #213d63, celeste #4a90d9,
   acento #0099ff, superficie hielo #eef4fb
   Tipografía compartida con krimdev.cl:
   Inter Tight (display) · Inter (cuerpo) · JetBrains Mono (etiquetas)
   ============================================================ */

:root {
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --navy: #213d63;
  --navy-deep: #16283f;
  --sky: #4a90d9;
  --accent: #0099ff;
  --ice: #eef4fb;
  --ice-line: #d8e6f5;
  --text: #22344d;
  --text-soft: #5b7191;
  --white: #ffffff;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(33, 61, 99, 0.10);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
}

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

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ---------- Tipografía ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.12;
  color: var(--navy);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.3rem; }

.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.btn-solid {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 153, 255, 0.35);
}
.btn-solid:hover { background: #0086e0; }

.btn-ghost {
  color: var(--navy);
  border-color: var(--ice-line);
  background: var(--white);
}
.btn-ghost:hover { border-color: var(--sky); }

.btn-sm { padding: 0.5rem 1.15rem; font-size: 0.92rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ice-line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
}

.brand-text { display: flex; flex-direction: column; }

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  line-height: 1.2;
}

.brand-tag {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--text-soft);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
}

.nav-links a:not(.btn) {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
  font-size: 0.98rem;
}
.nav-links a:not(.btn):hover { color: var(--accent); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--navy);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ice) 0%, var(--white) 100%);
  padding-block: clamp(3.5rem, 8vw, 6.5rem) clamp(3rem, 6vw, 5rem);
}

/* Firma: arcos wifi del logo, latiendo suavemente tras el contenido */
.hero-pulse {
  position: absolute;
  left: 50%;
  top: -12rem;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}
.hero-pulse span {
  position: absolute;
  left: 50%;
  top: 50%;
  translate: -50% -50%;
  border: 1.5px solid var(--sky);
  border-radius: 50%;
  opacity: 0.16;
  animation: pulse 7s ease-in-out infinite;
}
.hero-pulse span:nth-child(1) { width: 24rem;  height: 24rem; }
.hero-pulse span:nth-child(2) { width: 40rem;  height: 40rem; animation-delay: 1.2s; }
.hero-pulse span:nth-child(3) { width: 58rem;  height: 58rem; animation-delay: 2.4s; }
.hero-pulse span:nth-child(4) { width: 78rem;  height: 78rem; animation-delay: 3.6s; }

@keyframes pulse {
  0%, 100% { opacity: 0.10; scale: 1; }
  50%      { opacity: 0.28; scale: 1.03; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pulse span { animation: none; }
  html { scroll-behavior: auto; }
  .btn, .card { transition: none !important; }
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero .lead {
  margin-top: 1.2rem;
  font-size: 1.15rem;
  color: var(--text-soft);
  max-width: 34rem;
}

.hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.hero-media { position: relative; }

.hero-media img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 5 / 4;
  object-fit: cover;
  height: auto;
}

.hero-badge {
  position: absolute;
  left: -1rem;
  bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-radius: 14px;
  padding: 0.65rem 1rem;
  box-shadow: var(--shadow);
}
.hero-badge strong {
  display: block;
  font-family: var(--display);
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.25;
}
.hero-badge span {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---------- Franja de confianza ---------- */

.trust {
  background: var(--navy);
  color: var(--white);
  padding-block: 1.1rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem 2rem;
}

.trust-row p {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.95;
}

.trust-row svg { width: 20px; height: 20px; color: #9cc8ff; flex-shrink: 0; }

/* ---------- Secciones ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.section-head p {
  margin-top: 0.9rem;
  color: var(--text-soft);
}

/* ---------- Servicios ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.3rem;
}

.card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto 1fr auto;
  column-gap: 2rem;
  background: var(--ice);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 2.2rem 2rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  background: var(--white);
  border-color: var(--ice-line);
  box-shadow: var(--shadow);
}

.card-shield {
  width: 112px;
  height: auto;
  grid-row: 1 / 5;
  align-self: center;
  filter: drop-shadow(0 4px 10px rgba(33, 61, 99, 0.18));
}

.card-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.card h3 { margin-bottom: 0.55rem; }

.card p:not(.card-label) {
  font-size: 0.95rem;
  color: var(--text-soft);
}

.card-link {
  margin-top: 1.1rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.card-link::after {
  content: " →";
  transition: margin-left 0.15s ease;
}
.card-link:hover { color: var(--accent); }
.card-link:hover::after { margin-left: 4px; }

.coming-soon {
  margin-top: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem 1.8rem;
}
.coming-soon .card-label { margin: 0; }
.coming-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--display);
  font-weight: 600;
  color: var(--text-soft);
}
.coming-item img { width: 30px; height: auto; opacity: 0.85; }

/* ---------- Componentes Guardian ---------- */

.modules { background: var(--ice); }

.module-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.3rem;
}

.module-grid li {
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.1rem;
  align-items: start;
}
.module-grid img {
  width: 56px;
  height: auto;
  grid-row: 1 / 3;
}
.module-name {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.module-grid li p:not(.module-name) {
  font-size: 0.92rem;
  color: var(--text-soft);
}

/* ---------- Nosotros ---------- */

.about {
  background: var(--navy-deep);
  color: var(--white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.about-media img {
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35);
}

.about-media .about-quote { margin-top: 1.6rem; }

.about-quote p {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.about-quote span { color: var(--accent); }

.about-copy h2 { color: var(--white); margin-bottom: 0.9rem; }
.about-copy p { color: #b9cbe4; }

.about-krim {
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(185, 203, 228, 0.18);
  font-size: 0.9rem;
}
.about-krim a {
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}
.about-krim a:hover { color: var(--accent); }

/* ---------- Contacto ---------- */

.contact { background: var(--ice); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-copy p {
  margin-top: 0.9rem;
  color: var(--text-soft);
}

.contact-form {
  position: relative;
  background: var(--white);
  border: 1px solid var(--ice-line);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.1rem;
}

.field { display: grid; gap: 0.35rem; }

.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  border: 1.5px solid var(--ice-line);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  background: var(--white);
  transition: border-color 0.15s ease;
}
.field input:hover,
.field textarea:hover { border-color: var(--sky); }
.field textarea { resize: vertical; }

/* honeypot: invisible para personas, presente para bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .btn { justify-self: center; }
.contact-form .btn:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

.form-status {
  font-size: 0.9rem;
  color: var(--text-soft);
  min-height: 1.3em;
  text-align: center;
}
.form-status.is-ok { color: #1a7f4e; font-weight: 600; }
.form-status.is-error { color: #b3261e; font-weight: 600; }

.form-alt {
  font-size: 0.82rem;
  color: var(--text-soft);
  text-align: center;
}
.form-alt a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
.form-alt a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-deep);
  color: #b9cbe4;
  padding-block: 2.8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem 3rem;
  align-items: center;
}

.footer-brand img { margin-bottom: 0.6rem; }
.footer-brand .brand-name { color: var(--white); }
.footer-brand .brand-tag { color: #8fa6c6; }
.footer-location {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #8fa6c6;
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
}
.footer-nav a {
  color: #b9cbe4;
  text-decoration: none;
  font-size: 0.95rem;
}
.footer-nav a:hover { color: var(--white); }

.footer-legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(185, 203, 228, 0.18);
  padding-top: 1.4rem;
  font-size: 0.85rem;
  color: #8fa6c6;
}

.krim-credit {
  color: #b9cbe4;
  font-weight: 600;
  text-decoration: none;
}
.krim-credit:hover { color: var(--white); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 34rem; }
  .hero-badge { left: 1rem; }
  .cards { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 30rem; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    background: var(--white);
    border-bottom: 1px solid var(--ice-line);
    padding: 1.2rem 1.25rem 1.5rem;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .brand-tag { display: none; }
  .footer-grid { grid-template-columns: 1fr; align-items: start; }
  .footer-nav { flex-wrap: wrap; gap: 1rem 1.4rem; }
  .cards { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; padding: 1.8rem 1.5rem; }
  .card-shield { grid-row: auto; align-self: start; width: 96px; margin-bottom: 1.1rem; }
  .module-grid { grid-template-columns: 1fr; }
  .trust-row { justify-content: flex-start; }
  .contact-form { padding: 1.4rem; }
}
