/* ============================================================
   Estilos de la web de Carla Bill, versión clásica cálida
   - Colores y tipografías: se cambian en :root (acá abajo).
   - Todo el resto usa esas variables.
   ============================================================ */
:root {
  /* fondos: marfil, arena y rubor (de más claro a más cálido) */
  --bg: #FBF6F0;
  --surface: #FFFFFF;
  --sand: #F4E7DA;
  --blush: #F1DACB;
  --ink: #1A1F2E;
  --muted: #5C555B;
  --line: #E6D9CB;
  /* color principal (botones y números destacados) */
  --navy: #1F2B4A;
  --navy-ink: #FFFFFF;
  /* latón: --brass para líneas decorativas, --brass-text para texto */
  --brass: #B08848;
  --brass-text: #7A5A29;
  --f-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --f-body: 'Hanken Grotesk', 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px)
}

img {
  max-width: 100%
}

[hidden] {
  display: none !important
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 25
}

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

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
  border-radius: 2px
}

.wrap {
  max-width: 1152px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px))
}

.band {
  padding-block: 72px
}

h1,
h2,
h3 {
  font-family: var(--f-display);
  font-weight: 400;
  letter-spacing: -.015em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance
}

em {
  font-style: italic
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0
}

.skip {
  position: absolute;
  left: 16px;
  top: -80px;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 4px;
  z-index: 50
}

.skip:focus {
  top: calc(env(safe-area-inset-top, 0px) + 8px)
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 26px;
  font: 500 12.5px var(--f-body);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass-text)
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brass);
  flex: none
}

.sec-title {
  font-size: clamp(34px, 4.2vw, 48px);
  margin-bottom: 32px
}

.sec-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 1px;
  background: var(--brass);
  margin-top: 16px
}

/* nav */
header {
  position: relative;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line)
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-block: 8px
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  padding-block: 2px;
  line-height: 1.1
}

.bn {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -.01em
}

.bs {
  font-size: 11.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted)
}

.links {
  display: flex;
  gap: 34px;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase
}

.links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px
}

.links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 8px;
  height: 1px;
  width: 100%;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease
}

.links a:hover::after {
  transform: scaleX(1)
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 28px;
  background: var(--navy);
  color: var(--navy-ink);
  border: 1px solid var(--navy);
  border-radius: 3px;
  font: 500 14.5px var(--f-body);
  letter-spacing: .04em;
  cursor: pointer;
  transition: background .3s, color .3s, border-color .3s
}

.btn:hover {
  background: var(--ink);
  border-color: var(--ink)
}

.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .3s
}

.btn:hover svg {
  transform: translateX(4px)
}

.btn.ghost {
  background: transparent;
  color: var(--navy)
}

.btn.ghost:hover {
  background: var(--navy);
  color: var(--navy-ink)
}

.tlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  border-bottom: 1px solid var(--brass);
  transition: color .25s
}

.tlink:hover {
  color: var(--brass-text)
}

@media(max-width:760px) {
  .links {
    display: none
  }

  .btn.ghost {
    min-height: 44px;
    padding: 0 20px
  }
}

/* eyebrow en una sola línea en celular */
@media(max-width:600px) {
  .eyebrow {
    gap: 10px;
    white-space: nowrap;
    font-size: clamp(8.5px, 2.4vw, 12px);
    letter-spacing: .09em
  }

  .eyebrow::before {
    width: 18px
  }
}

/* hero */
.hero-band {
  position: relative;
  overflow: hidden;
  padding-block: 56px 48px;
  background: linear-gradient(180deg, var(--sand) 0%, var(--bg) 100%)
}

.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg, transparent 0 35px, rgba(176, 136, 72, .16) 35px 36px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%)
}

.hero-band>.wrap {
  position: relative
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: 64px;
  align-items: center
}

.hero h1 {
  font-size: clamp(44px, 6.2vw, 84px);
  line-height: 1.02;
  letter-spacing: -.025em;
  margin: 0 0 26px
}

.hero h1 em {
  color: var(--navy)
}

.lead-t {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--ink);
  max-width: 20em;
  margin: 0 0 14px
}

.lead {
  font-size: 19px;
  color: var(--muted);
  max-width: 32em;
  margin: 0 0 32px
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-items: center
}

.a {
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--d, 0s)
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px)
  }
}

@keyframes wipe {
  from {
    clip-path: inset(100% 0 0 0)
  }

  to {
    clip-path: inset(0 0 0 0)
  }
}

@keyframes fadein {
  from {
    opacity: 0
  }
}

@media(max-width:900px) {
  .hero-band {
    padding-block: 36px 40px
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px
  }
}

/* retrato */
.visual {
  justify-self: end;
  width: 100%;
  max-width: 440px;
  padding: 0 18px 18px 0;
  min-width: 0
}

.frame {
  position: relative;
  aspect-ratio: 4/5
}

.frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brass);
  transform: translate(18px, 18px);
  animation: fadein 1s ease .9s both
}

.pic {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: linear-gradient(180deg, #F6DFCF, #E8C7B0);
  animation: wipe 1.3s cubic-bezier(.7, 0, .2, 1) .25s both
}

.pic::before {
  content: "";
  position: absolute;
  width: 66%;
  aspect-ratio: 1;
  left: 17%;
  top: 12%;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--brass) 80%, transparent)
}

.pic svg,
.pic img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block
}

.pic img {
  object-fit: cover
}

/* Con foto real: agregar la clase "foto" a .frame para ocultar el círculo decorativo */
.frame.foto .pic::before {
  display: none
}

@media(max-width:900px) {
  .visual {
    justify-self: center;
    max-width: 270px
  }
}

/* cifras */
.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  border-top: 3px double var(--ink)
}

.fact {
  padding: 26px 28px 0 0
}

.fact+.fact {
  padding-left: 32px;
  border-left: 1px solid #D8C6B3
}

.fact .v {
  font-family: var(--f-display);
  font-size: clamp(50px, 5.4vw, 68px);
  line-height: 1;
  color: var(--navy);
  font-variant-numeric: lining-nums tabular-nums
}

.fact .l {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px
}

@media(max-width:760px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px
  }

  .fact {
    display: flex;
    align-items: baseline;
    gap: 22px;
    padding: 16px 0
  }

  .fact+.fact {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid #D8C6B3
  }

  .fact .v {
    font-size: 44px;
    min-width: 68px
  }

  .fact .l {
    margin: 0;
    margin-left: auto;
    text-align: right
  }
}

/* servicios */
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px
}

.card {
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 28px 30px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--brass);
  box-shadow: 0 20px 38px -26px rgba(122, 90, 41, .55)
}

.ico {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--brass-text);
  margin-bottom: 20px
}

.ico svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round
}

.card h3 {
  font-size: 25px;
  margin-bottom: 8px
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 15.5px
}

@media(max-width:980px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr))
  }
}

@media(max-width:620px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px
  }

  .card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 0 16px;
    padding: 20px
  }

  .ico {
    grid-row: 1 / span 2;
    margin: 0
  }

  .card h3 {
    font-size: 22px;
    margin-bottom: 4px
  }
}

/* sobre mi + trayectoria */
.white-band {
  background: var(--surface);
  border-block: 1px solid var(--line)
}

.duo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 72px
}

.statement {
  font-family: var(--f-display);
  font-size: clamp(26px, 2.9vw, 35px);
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 20px;
  text-wrap: balance
}

.about-body {
  margin: 0;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 32em
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 26px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink)
}

.tags li {
  position: relative;
  padding-left: 15px
}

.tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 5px;
  height: 5px;
  transform: rotate(45deg);
  background: var(--brass)
}

@media(max-width:900px) {
  .duo {
    grid-template-columns: minmax(0, 1fr);
    gap: 56px
  }
}

.tl {
  --yw: 76px;
  --gap: 40px;
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none
}

.tl::before {
  content: "";
  position: absolute;
  left: calc(var(--yw) + var(--gap)/2);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #D2BFA9;
  transform-origin: top;
  transition: transform 1.6s cubic-bezier(.3, .7, .2, 1)
}

.tl.pre::before {
  transform: scaleY(0)
}

.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: var(--yw) var(--gap) minmax(0, 1fr);
  padding-bottom: 34px
}

.tl-item:last-child {
  padding-bottom: 0
}

.tl-item::after {
  content: "";
  position: absolute;
  left: calc(var(--yw) + var(--gap)/2 - 4px);
  top: 13px;
  width: 9px;
  height: 9px;
  transform: rotate(45deg);
  background: var(--surface);
  border: 1px solid var(--brass)
}

.tl-item.now::after {
  background: var(--brass)
}

.tl-item .yr {
  font-family: var(--f-display);
  font-size: 30px;
  line-height: 1.15;
  color: var(--brass-text);
  text-align: right;
  font-variant-numeric: lining-nums
}

.tl-item .tx {
  grid-column: 3
}

.tl-item h3 {
  font-size: 24px;
  margin-bottom: 6px
}

.tl-item p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  max-width: 28em
}

@media(max-width:760px) {
  .tl {
    --yw: 60px;
    --gap: 34px
  }

  .tl-item .yr {
    font-size: 24px
  }

  .tl-item h3 {
    font-size: 22px
  }
}

/* contacto */
.contact-band {
  background: linear-gradient(180deg, var(--sand) 0%, #EFD8C7 100%)
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px 56px;
  align-items: end
}

.contact h2 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.04;
  max-width: 11em
}

@media(max-width:760px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
    align-items: start
  }
}

/* pie con redes */
footer {
  padding-block: 20px;
  border-top: 1px solid var(--line)
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 32px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}

.redes {
  display: flex;
  align-items: center;
  gap: 20px
}

.redes-t {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase
}

.soc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--brass);
  transition: color .25s
}

.soc:hover {
  color: var(--brass-text)
}

.soc svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6
}

/* aparición al scrollear: solo oculta lo que arranca debajo de la pantalla */
.rv {
  transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--d, 0s)
}

.rv.pre {
  opacity: 0;
  transform: translateY(18px)
}

@media(prefers-reduced-motion:reduce) {

  .a,
  .pic,
  .frame::before {
    animation: none
  }

  .rv,
  .rv.pre {
    opacity: 1;
    transform: none;
    transition: none
  }

  .tl::before,
  .tl.pre::before {
    transform: none;
    transition: none
  }

  html {
    scroll-behavior: auto
  }
}

/* íconos de contacto bajo el botón */
.icons {
  display: flex;
  flex-basis: 100%;
  width: 100%;
  gap: 12px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none
}

.icons a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #CDB9A3;
  border-radius: 50%;
  color: var(--navy);
  transition: background .3s, color .3s, border-color .3s, transform .3s
}

.icons a:hover {
  background: var(--navy);
  color: var(--navy-ink);
  border-color: var(--navy);
  transform: translateY(-2px)
}

.icons svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round
}

/* ubicación */
.ubi {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 64px;
  align-items: center
}

.addr {
  font-style: normal;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6
}

.addr strong {
  display: block;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 8px
}

.mapwrap {
  padding: 0 16px 16px 0;
  min-width: 0
}

.map {
  position: relative;
  aspect-ratio: 4/3
}

.map::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--brass);
  transform: translate(16px, 16px)
}

.map-in {
  position: relative;
  height: 100%;
  overflow: hidden;
  background: var(--sand);
  border: 1px solid var(--line)
}

.map-svg {
  display: block;
  width: 100%;
  height: 100%;
  border: 0
}

@media(max-width:900px) {
  .ubi {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px
  }
}
/* textos nuevos: subtítulo de sección, años en rango, columna fija */
.sec-sub {
  margin: -14px 0 32px;
  color: var(--muted);
  max-width: 30em
}

.about-body+.about-body {
  margin-top: 16px
}

.tl-item .yr small {
  display: block;
  font-size: .68em;
  line-height: 1.1
}

.tl-item p {
  max-width: 32em
}

@media(min-width:901px) {
  .duo {
    align-items: start
  }

  #sobre-mi {
    position: sticky;
    top: 32px
  }
}

/* bordes más suaves + foto alineada a la izquierda en celular */
.pic,
.frame::before,
.map-in,
.map::before {
  border-radius: 16px
}

.card {
  border-radius: 16px
}

.btn {
  border-radius: 10px
}

@media(max-width:900px) {
  .hero-grid {
    gap: 32px
  }

  .visual {
    justify-self: start
  }
}

/* sombra suave detrás de la foto */
.frame::before,
.map::before {
  border: 0;
  background: color-mix(in srgb, var(--blush) 62%, transparent);
  transform: translate(12px, 12px)
}

/* pie azul con el logo en blanco */
footer {
  background: var(--navy);
  border-top: 0;
  padding-block: 32px
}

.foot {
  gap: 20px 32px;
  color: rgba(255, 255, 255, .78)
}

.foot-logo {
  width: 210px;
  height: auto;
  flex: none
}

@media(max-width:600px) {
  .foot {
    flex-direction: column;
    justify-content: center;
    text-align: center
  }

  .foot-logo {
    width: 160px
  }
}