/* ==================================================================
   UTERINA · sitio institucional
   Paleta tomada del logo. Tipografía serif para la marca, sans para leer.
   ================================================================== */

:root {
  --cream:     #f8ede6;
  --cream-2:   #f2e1d8;
  --cream-3:   #ecd6cb;
  --surface:   #fffaf7;
  --line:      #e8d2c6;
  --line-2:    #ddbfb0;

  --ink:       #4e2c23;
  --ink-2:     #7d5748;
  --ink-3:     #a4806f;

  --blush:     #e9cabc;
  --rose:      #cc907d;
  --terra:     #a85c49;
  --deep:      #864333;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, system-ui, sans-serif;

  --wrap: 1120px;
  --radius: 20px;
  --shadow: 0 2px 16px rgba(134,67,51,.07);
  --shadow-lg: 0 18px 50px rgba(134,67,51,.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--terra); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

h1, h2, h3, .serif {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--deep);
  line-height: 1.18;
  letter-spacing: .2px;
}
h2 { font-size: clamp(30px, 4.4vw, 44px); margin: 0 0 14px; }
h3 { font-size: 22px; margin: 0 0 8px; }

.eyebrow {
  font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase;
  color: var(--terra); font-weight: 600; margin: 0 0 12px;
}
.lede { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; max-width: 62ch; }

section { padding: 84px 0; }
section.tint { background: var(--cream-2); }
section.deep { background: var(--cream-3); }

/* ---------------- BOTONES ---------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  font-family: var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: .18s; white-space: nowrap;
}
.btn.primary { background: linear-gradient(135deg, var(--rose), var(--terra)); color: #fff; box-shadow: 0 6px 18px rgba(168,92,73,.26); }
.btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn.outline { border-color: var(--line-2); color: var(--deep); background: transparent; }
.btn.outline:hover { background: var(--surface); }
.btn.block { width: 100%; }

/* ---------------- HEADER ---------------- */

header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248,237,230,.9); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.logo img { width: 40px; height: 40px; border-radius: 50%; }
.logo b {
  font-family: var(--serif); font-size: 23px; font-weight: 500; letter-spacing: 4.5px;
  color: var(--deep); text-transform: uppercase;
}
nav.main { display: flex; align-items: center; gap: 30px; }
nav.main a { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: .15s; }
nav.main a:hover { color: var(--terra); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 40px; height: 40px; cursor: pointer; font-size: 17px; color: var(--deep); }

@media (max-width: 900px) {
  nav.main {
    position: fixed; inset: 72px 0 auto; background: var(--cream);
    flex-direction: column; align-items: stretch; gap: 0; padding: 10px 24px 24px;
    border-bottom: 1px solid var(--line); display: none;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  nav.main .btn { margin-top: 16px; }
  .nav-toggle { display: block; }
}

/* ---------------- HERO ---------------- */

.hero { padding: 76px 0 70px; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; width: 760px; height: 760px; right: -240px; top: -300px;
  background: radial-gradient(circle, var(--blush), transparent 62%); opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6vw, 68px); margin: 0 0 18px; }
.hero h1 em { font-style: italic; color: var(--terra); }
.hero p.lede { font-size: 19px; }
.hero-cta { display: flex; gap: 13px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-note { font-size: 13px; color: var(--ink-3); margin: 0; }

.hero-art { position: relative; display: flex; justify-content: center; }
/* El emblema viene sobre su fondo crema. La máscara difumina el borde del
   cuadrado para que se funda con el fondo de la sección. */
.hero-art img.mark {
  width: min(420px, 100%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 56%, transparent 71%);
  mask-image: radial-gradient(circle at 50% 50%, #000 56%, transparent 71%);
}

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-cta { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-art img.mark { width: min(300px, 70%); }
}

/* ---------------- TELÉFONOS ---------------- */

.phone-frame {
  border-radius: 34px; border: 9px solid #3a241d; background: #3a241d;
  box-shadow: var(--shadow-lg); overflow: hidden; width: 260px; flex-shrink: 0;
}
.phone-frame img { border-radius: 25px; }

.screens { display: flex; gap: 26px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; }
.screens::-webkit-scrollbar { height: 8px; }
.screens::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; }
.screen-item { scroll-snap-align: center; text-align: center; }
.screen-item .cap { margin-top: 16px; max-width: 260px; }
.screen-item .cap b { display: block; font-family: var(--serif); font-size: 19px; color: var(--deep); margin-bottom: 4px; }
.screen-item .cap span { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; display: block; }

/* ---------------- GRILLAS ---------------- */

.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .g3, .g4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.card .ico {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blush), var(--cream-2)); font-size: 21px; margin-bottom: 16px;
}
.card p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.7; }

/* ---------------- PRIVACIDAD (dos columnas) ---------------- */

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px) { .privacy { grid-template-columns: 1fr; } }
.priv-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.priv-col h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.priv-col ul { margin: 14px 0 0; padding: 0; list-style: none; }
.priv-col li { padding: 9px 0 9px 28px; position: relative; font-size: 14.5px; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.priv-col li:last-child { border-bottom: 0; }
.priv-col li::before { position: absolute; left: 0; top: 9px; font-weight: 700; }
.priv-col.yes li::before { content: '✓'; color: #5c8a6b; }
.priv-col.no li::before { content: '✕'; color: var(--terra); }

/* ---------------- TESTIMONIOS ---------------- */

.quote {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.quote .mark { font-family: var(--serif); font-size: 52px; line-height: .6; color: var(--blush); margin-bottom: 10px; }
.quote p { margin: 0 0 20px; font-size: 15.5px; line-height: 1.75; color: var(--ink); flex: 1; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote .who { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blush), var(--rose)); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; }
.quote .who-txt b { display: block; font-size: 14px; color: var(--deep); }
.quote .who-txt span { font-size: 12.5px; color: var(--ink-3); }

.pending { border-style: dashed; background: transparent; }
.pending p { color: var(--ink-3); font-style: italic; }
.badge-pending {
  display: inline-block; font-size: 10.5px; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--terra); background: var(--cream-2); border: 1px solid var(--line-2);
  padding: 4px 11px; border-radius: 999px; font-weight: 700; margin-bottom: 14px; align-self: flex-start;
}

/* ---------------- DESCARGA ---------------- */

.download { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 760px) { .download { grid-template-columns: 1fr; } }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.dl-card .os { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.dl-card .os span { font-size: 26px; }
.dl-card .os b { font-family: var(--serif); font-size: 23px; color: var(--deep); }
.dl-card ol { margin: 0 0 22px; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; line-height: 1.8; }
.dl-card ol b { color: var(--ink); }

/* ---------------- BLOG ---------------- */

.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; text-decoration: none;
  box-shadow: var(--shadow); transition: .2s;
}
.post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.post .thumb { aspect-ratio: 16 / 10; background: var(--cream-2); overflow: hidden; }
.post .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post .body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.post .kicker { font-size: 10.5px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--terra); font-weight: 700; margin-bottom: 9px; }
.post h3 { font-size: 21px; margin-bottom: 9px; }
.post p { margin: 0; font-size: 14px; color: var(--ink-2); line-height: 1.65; flex: 1; }
.post .more { margin-top: 16px; font-size: 13.5px; color: var(--terra); font-weight: 600; }

/* ---------------- FORMULARIOS ---------------- */

.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--cream); font-family: var(--sans); font-size: 15.5px; color: var(--ink);
  transition: .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--rose); background: #fff; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-msg { margin: 14px 0 0; font-size: 14px; min-height: 0; }
.form-msg.ok { color: #4f7a5d; }
.form-msg.bad { color: #a8463c; }
.form-msg:empty { display: none; }

.subscribe-band { background: linear-gradient(135deg, var(--rose), var(--terra)); color: #fff; border-radius: var(--radius); padding: 46px; text-align: center; }
.subscribe-band h2 { color: #fff; }
.subscribe-band p { color: rgba(255,255,255,.9); max-width: 54ch; margin: 0 auto 26px; }
.sub-form { display: flex; gap: 11px; max-width: 480px; margin: 0 auto; }
.sub-form input {
  flex: 1; padding: 14px 18px; border-radius: 999px; border: 0; font-size: 15.5px;
  font-family: var(--sans); background: rgba(255,255,255,.95); color: var(--ink);
}
.sub-form input:focus { outline: 2px solid rgba(255,255,255,.7); }
.sub-form button { background: var(--deep); color: #fff; border: 0; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; font-family: var(--sans); }
.sub-form button:hover { background: #6d3528; }
@media (max-width: 560px) { .sub-form { flex-direction: column; border-radius: 16px; } .sub-form input, .sub-form button { border-radius: 14px; } }
.subscribe-band .form-msg { color: #fff; font-weight: 600; }

/* ---------------- FOOTER ---------------- */

footer.site { background: var(--deep); color: var(--cream-2); padding: 64px 0 30px; }
footer.site a { color: var(--blush); text-decoration: none; }
footer.site a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; margin-bottom: 44px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .logo b { color: var(--cream); }
.foot-brand img { filter: brightness(1.04); }
.foot-brand p { color: rgba(242,225,216,.7); font-size: 14px; margin: 16px 0 0; max-width: 34ch; line-height: 1.7; }
footer.site h4 { font-family: var(--serif); font-size: 17px; color: var(--cream); margin: 0 0 14px; font-weight: 500; letter-spacing: .5px; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 9px; font-size: 14px; }

.social { display: flex; gap: 11px; margin-top: 4px; }
.social a {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); transition: .18s;
}
.social a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.social svg { width: 19px; height: 19px; fill: var(--cream); }

.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 24px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: rgba(242,225,216,.65);
}

.med-note {
  background: var(--cream-2); border: 1px dashed var(--line-2); border-radius: 14px;
  padding: 18px 22px; font-size: 13.5px; color: var(--ink-2); line-height: 1.7; margin-top: 34px;
}

/* ---------------- ARTÍCULOS ---------------- */

.article-hero { padding: 54px 0 34px; }
.article-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 10px 0 16px; }
.article-meta { font-size: 13.5px; color: var(--ink-3); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }
.article-body { padding-bottom: 80px; }
.article-body p { font-size: 17px; line-height: 1.85; color: var(--ink-2); margin: 0 0 22px; }
.article-body h2 { font-size: 30px; margin: 44px 0 14px; }
.article-body h3 { font-size: 21px; margin: 32px 0 10px; }
.article-body ul, .article-body ol { font-size: 17px; line-height: 1.85; color: var(--ink-2); padding-left: 24px; margin: 0 0 22px; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--ink); }
.article-body blockquote {
  margin: 30px 0; padding: 22px 26px; background: var(--surface);
  border-left: 3px solid var(--rose); border-radius: 0 14px 14px 0;
  font-family: var(--serif); font-size: 22px; line-height: 1.5; color: var(--deep);
}
.article-body table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.article-body th, .article-body td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.article-body th { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--terra); font-weight: 700; }
.article-body td { color: var(--ink-2); }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--terra); text-decoration: none; font-weight: 600; }
