/* Capitán de Anta · capitandeanta.net — paleta CdeA */
:root {
  --navy: #052A64;
  --navy2: #0B3A80;
  --navy-deep: #031a40;
  --gold: #DBB246;
  --gold-dark: #9A7A1E;
  --gold-soft: #F7EDD2;
  --grey: #9AA6B6;
  --ink: #1B2430;
  --ink2: #5B6470;
  --line: #E2E6EB;
  --soft: #F4F6F9;
  --paper: #FFFFFF;
  --serif: "TeX Gyre Pagella", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font-family: var(--sans); font-size: 18px; line-height: 1.65; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy2); }
h1, h2, h3 { font-family: var(--serif); font-weight: 700; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h1 em, h2 em { font-weight: 400; }
p { margin: 0 0 1em; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: .9rem; display: flex; align-items: center; gap: .7rem; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.intro { max-width: 64ch; color: var(--ink2); font-size: 1.1rem; }
.nota { font-size: .95rem; color: var(--ink2); }

/* Cabecera */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 1rem; }
.marca { display: flex; align-items: center; gap: .7rem; text-decoration: none; font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 1.6rem; }
.menu a { text-decoration: none; font-size: .95rem; color: var(--ink); font-weight: 500; }
.menu a:hover { color: var(--gold-dark); }
.menu .menu-cta { border: 1px solid var(--navy); padding: .45rem 1.1rem; border-radius: var(--r); color: var(--navy); }
.menu .menu-cta:hover { background: var(--navy); color: #fff; }
.hamb { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.hamb span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* Botones */
.ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.btn { display: inline-block; padding: .8rem 1.5rem; border-radius: var(--r); text-decoration: none; font-weight: 600; font-size: 1rem; border: 1px solid transparent; transition: background .15s, color .15s; }
.btn.oro { background: var(--gold); color: var(--navy-deep); }
.btn.oro:hover { background: #e6c260; }
.btn.claro { border-color: rgba(255,255,255,.55); color: #fff; }
.btn.claro:hover { background: rgba(255,255,255,.1); }

/* Portada */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy2) 100%); color: #fff; padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(6rem, 12vw, 9rem); }
.hero .mar { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 42%; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.35fr 1fr; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; }
.hero h1 em { color: var(--gold); }
.hero .eyebrow { color: var(--gold); }
.hero .lead { font-size: 1.18rem; color: #d7dde6; max-width: 54ch; }
.rosa svg { width: min(340px, 100%); margin-inline: auto; animation: deriva 40s ease-in-out infinite alternate; }
@keyframes deriva { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }
@media (prefers-reduced-motion: reduce) { .rosa svg { animation: none; } html { scroll-behavior: auto; } }

/* Bloques */
.bloque { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.bloque.oscuro { background: var(--navy); color: #dfe4ec; }
.bloque.oscuro h2 { color: #fff; }
.bloque.oscuro .eyebrow { color: var(--gold); }
.dos { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.dos.invertido { grid-template-columns: 1.15fr 1fr; }
.lista { padding: 0; list-style: none; margin: 0 0 1.2rem; }
.lista li { padding: .35rem 0 .35rem 1.6rem; position: relative; }
.lista li::before { content: ""; position: absolute; left: 0; top: .95em; width: 10px; height: 10px; border: 2px solid var(--gold); border-radius: 50%; }

.retrato { margin: 0; position: relative; max-width: 440px; justify-self: center; }
.retrato img { width: 100%; border-radius: var(--r); box-shadow: 0 24px 50px rgba(3,26,64,.28); border-bottom: 4px solid var(--gold); }
.retrato figcaption { position: absolute; left: 1rem; bottom: 1.1rem; background: rgba(3,26,64,.82); color: #fff; font-family: var(--serif); font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; padding: .35rem .8rem; border-left: 3px solid var(--gold); }

.franja { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.6rem; margin: 1.6rem 0 .4rem; }
.franja div { border-left: 2px solid var(--gold); padding-left: .9rem; }
.franja b { display: block; color: #fff; font-family: var(--serif); font-size: 1.15rem; }
.franja span { font-size: .95rem; color: var(--grey); }

.pantallas { position: relative; padding-bottom: 12%; }
.portatil { margin: 0; border: 8px solid #0d1a2e; border-radius: 10px 10px 4px 4px; box-shadow: 0 25px 60px rgba(0,0,0,.45); background: #0d1a2e; }
.telefono { position: absolute; right: -2%; bottom: 0; width: 28%; margin: 0; border: 6px solid #0d1a2e; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,.5); background: #0d1a2e; }

/* Libro */
.libro { display: flex; justify-content: center; perspective: 1400px; }
.tapa { position: relative; width: min(330px, 80%); aspect-ratio: 4 / 5; transform: rotateY(-14deg); transform-origin: left center; box-shadow: 18px 24px 40px rgba(3,26,64,.35), inset 6px 0 10px rgba(0,0,0,.25); border-radius: 2px 6px 6px 2px; overflow: hidden; }
.tapa img { width: 100%; height: 100%; object-fit: cover; }
.tapa-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; text-align: center; color: #fff; font-family: var(--serif); padding: 5% 8% 7%; }
.tapa-txt .t1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 700; letter-spacing: .02em; }
.tapa-txt .t2 { font-size: clamp(.8rem, 1.8vw, 1rem); font-style: italic; color: var(--gold); margin-top: .3rem; line-height: 1.3; }
.tapa-txt .t4 { margin-top: auto; font-size: clamp(.75rem, 1.6vw, .95rem); letter-spacing: .18em; text-transform: uppercase; }
.sub { font-family: var(--serif); font-style: italic; color: var(--ink2); font-size: 1.15rem; margin-top: -.4rem; }
.partes { counter-reset: p; list-style: none; padding: 0; margin: 1.2rem 0; }
.partes li { counter-increment: p; position: relative; padding: .45rem 0 .45rem 2.6rem; border-bottom: 1px solid var(--line); font-size: .98rem; color: var(--ink2); }
.partes li::before { content: counter(p, upper-roman); position: absolute; left: 0; top: .45rem; font-family: var(--serif); font-weight: 700; color: var(--gold-dark); }
.partes b { color: var(--navy); margin-right: .3rem; }

/* Cita */
.cita { background: var(--navy-deep); color: #fff; text-align: center; padding: clamp(3rem, 7vw, 5rem) 0; border-top: 2px solid var(--gold); }
.cita blockquote { margin: 0 auto; max-width: 30ch; font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.3; }
.cita p { margin: 1rem 0 0; color: var(--gold); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; }

/* Contacto */
.contacto { text-align: center; }
.contacto .eyebrow { justify-content: center; }
.contacto .intro { margin-inline: auto; }
.tarjetas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; text-align: left; }
.tarjeta { display: block; padding: 1.3rem 1.4rem; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r); text-decoration: none; color: var(--ink2); transition: box-shadow .15s, transform .15s; overflow-wrap: anywhere; }
.tarjeta:hover { box-shadow: 0 10px 28px rgba(5,42,100,.12); transform: translateY(-2px); }
.tarjeta b { display: block; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }

/* Pie */
.pie { background: var(--navy-deep); color: var(--grey); padding: 2.2rem 0; font-size: .9rem; }
.pie-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.pie .marca { color: #fff; font-size: 1.15rem; }
.pie nav { display: flex; gap: 1.4rem; }
.pie a { color: #dfe4ec; text-decoration: none; }
.pie a:hover { color: var(--gold); }
.pie p { margin: 0; width: 100%; }

/* Móvil */
@media (max-width: 900px) {
  .hero-grid, .dos, .dos.invertido { grid-template-columns: 1fr; }
  .rosa { display: none; }
  .dos.invertido .pantallas { order: -1; }
  .retrato { max-width: 360px; }
  .tarjetas { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .hamb { display: block; }
  .menu { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 2px solid var(--gold); box-shadow: 0 12px 30px rgba(5,42,100,.12); }
  .menu.abierto { display: flex; }
  .menu a { padding: .95rem 16px; border-top: 1px solid var(--line); }
  .menu .menu-cta { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: .95rem 16px; }
  .marca { font-size: 1.2rem; }
  .franja { grid-template-columns: 1fr; }
  .btn { width: 100%; text-align: center; }
  .pie nav { flex-wrap: wrap; }
}
