/* ==========================================================================
   VARIABLES
   ========================================================================== */

:root {
  --ink: #3d3027;
  --paper: #f6efe3;
  --rice: #fffaf1;
  --muted: #806f5e;
  --line: rgba(91, 67, 45, .18);
  --terra: #a85f43;
  --gold: #b68a4a;
  --wasabi: #d8c7a9;
  --ease: cubic-bezier(.23, 1, .32, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(
    180deg,
    #f6efe3 0%,
    #f3ecdf 25%,
    #fbf6ed 55%,
    #ffffff 100%
  );
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: 4px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: auto;
  padding: 0 28px;
}


/* ==========================================================================
   HEADER
   ========================================================================== */

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 239, 227, .94);
  backdrop-filter: blur(14px);
  position: relative;
  z-index: 5;
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.mark {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--terra);
  color: #fffaf2;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: bold;
  transform: rotate(-7deg);
}

.wordmark {
  font: 700 26px/1 'Fraunces', serif;
  letter-spacing: .09em;
}

.brand small {
  align-self: flex-end;
  margin-left: -5px;
  padding-bottom: 1px;
  color: var(--muted);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.visitor-counter {
  margin-left: auto;
  margin-right: 24px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.visitor-counter strong {
  display: inline-block;
  min-width: 4ch;
  margin-left: 5px;
  color: var(--gold);
  font: 700 13px/1 'DM Sans', sans-serif;
  letter-spacing: .12em;
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  color: rgba(61, 48, 39, .72);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover,
.nav a.active {
  color: var(--terra);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  padding: 0;
}

.nav-toggle span {
  display: block;
  margin: 0 auto;
  width: 16px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform .2s var(--ease),
    opacity .2s var(--ease);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-mobile a.active {
  color: var(--terra);
}

.bag-btn,
.primary {
  border: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
}

.bag-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 99px;
  padding: 10px 14px;
  font-size: 12px;
}

.bag-btn:hover {
  background: var(--terra);
}

.count {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  font-size: 11px;
}


/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: 28px 0 32px;
  background: none;
}

.hero-grid {
  display: block;
}

.eyebrow,
.kicker {
  color: var(--terra);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--terra);
  box-shadow: 0 0 0 4px rgba(199, 91, 60, .14);
}

h1,
h2,
h3 {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  margin: 0;
}

h1 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -.065em;
  line-height: .94;
}

h1 em,
h2 em {
  color: var(--terra);
  font-style: italic;
  font-weight: 500;
}

.actions {
  display: flex;
  align-items: center;
  gap: 25px;
  margin-top: 34px;
}

.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  padding: 14px 20px;
  font-size: 13px;
  text-decoration: none;
}

.primary:hover {
  background: var(--ink);
  color: var(--paper);
}

.quiet {
  border: 0;
  border-bottom: 1px solid rgba(41, 37, 34, .3);
  background: transparent;
  color: var(--ink);
  padding: 0 0 5px;
  font-size: 13px;
  font-weight: 700;
}

.visual {
  position: relative;
  min-height: 470px;
}

.hero-img {
  display: none;
}

.visual::before {
  position: absolute;
  inset: 25px 0 25px 8%;
  border-radius: 8px 130px 8px 130px;
  background: linear-gradient(
    135deg,
    #d8c7a9,
    #f1e5d2 58%,
    #c99a76
  );
  box-shadow: 22px 24px 0 rgba(182, 138, 74, .22);
  content: '';
}

.stamp {
  position: absolute;
  right: -48px;
  bottom: 38px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 102px;
  height: 102px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(246, 239, 227, .84);
  color: var(--gold);
  font: 13px/1.1 'Fraunces', serif;
  text-align: center;
  transform: rotate(9deg);
}


/* ==========================================================================
   CATEGORÍAS
   ========================================================================== */

.categories {
  border-block: 1px solid var(--line);
  background: none;
}

.cat-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.cat-intro {
  display: flex;
  align-items: center;
  gap: 15px;
}

.cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
}

.cat-toggle-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 16px;
}

.cat-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform .2s var(--ease),
    opacity .2s var(--ease);
}

.cat-toggle.open .cat-toggle-icon span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.cat-toggle.open .cat-toggle-icon span:nth-child(2) {
  opacity: 0;
}

.cat-toggle.open .cat-toggle-icon span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.cat-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 10;
  flex-direction: column;
  min-width: 220px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--rice);
  box-shadow: 0 14px 34px rgba(41, 37, 34, .18);
  overflow: hidden;
}

.cat-menu.open {
  display: flex;
}

.cat {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 14px 18px;
  text-align: left;
}

.cat:last-child {
  border-bottom: 0;
}

.cat:hover,
.cat.active {
  background: rgba(215, 168, 75, .14);
  color: var(--gold);
}

.cat strong {
  display: block;
  font: 600 17px 'Fraunces', serif;
}

.cat small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}


/* ==========================================================================
   MENÚ
   ========================================================================== */

.menu {
  position: relative;
  padding: 112px 0 120px;
  background: none;
}

.menu:before {
  position: absolute;
  top: 58px;
  right: 9%;
  width: 190px;
  height: 22px;
  border-top: 4px solid rgba(211, 47, 47, .65);
  border-radius: 50%;
  content: '';
  transform: rotate(8deg);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 46px;
}

.section-head h2,
.how h2 {
  margin-top: 14px;
  font-size: clamp(42px, 4.7vw, 64px);
  letter-spacing: -.06em;
  line-height: .98;
}

.section-head p {
  max-width: 315px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.menu-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 235px;
  gap: 70px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px 28px;
}

.card {
  position: relative;
}

.card:before {
  position: absolute;
  top: -17px;
  left: 8px;
  width: 112px;
  height: 12px;
  border-top: 3px solid var(--gold);
  border-radius: 50%;
  content: '';
  opacity: .9;
  transform: rotate(-4deg);
}

.card-img {
  position: relative;
  height: 245px;
  overflow: hidden;
  background: #e8dfd2;
}

.card:nth-child(2) .card-img {
  border-radius: 72px 1px 1px 1px;
}

.card:nth-child(3) .card-img {
  border-radius: 1px 1px 72px 1px;
}

.card:nth-child(4) .card-img {
  border-radius: 1px 72px 1px 1px;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s var(--ease);
}

.card:hover img {
  transform: scale(1.045);
}

.tag {
  position: absolute;
  top: 13px;
  left: 13px;
  background: var(--terra);
  color: #fffaf2;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.add {
  position: absolute;
  right: 13px;
  bottom: 13px;
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 0;
  border-radius: 50%;
  background: var(--rice);
  color: var(--ink);
  font-size: 20px;
}

.add:hover {
  background: var(--terra);
  color: #fffaf2;
}

.card-body {
  padding-top: 17px;
}

.card-title {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.card h3 {
  font-size: 24px;
}

.pieces {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.price {
  color: var(--terra);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}

.desc {
  max-width: 340px;
  margin: 11px 0 0;
  color: #806f5e;
  font-size: 13px;
  line-height: 1.55;
}

.text-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
  border: 0;
  border-bottom: 1px solid rgba(41, 37, 34, .28);
  background: none;
  padding: 0 0 4px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.text-action:hover {
  color: var(--terra);
}

.aside {
  border-top: 2px solid var(--ink);
  padding-top: 14px;
}

.aside .spark {
  color: var(--terra);
}

.aside h3 {
  margin-top: 18px;
  font-size: 21px;
}

.aside p {
  margin: 12px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.58;
}

.aside button {
  border: 0;
  border-bottom: 1px solid var(--terra);
  background: none;
  color: var(--terra);
  padding: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
}

.ink {
  margin-top: 95px;
  color: rgba(41, 37, 34, .14);
  font: 600 52px/.76 'Fraunces', serif;
  letter-spacing: -.08em;
  transform: rotate(-8deg);
}

.ink em {
  color: var(--terra);
  font-size: 35px;
  font-weight: 500;
}


/* ==========================================================================
   CÓMO FUNCIONA
   ========================================================================== */

.how {
  position: relative;
  background: none;
  padding: 105px 0 45px;
}

.how:before {
  position: absolute;
  left: 8%;
  top: 52px;
  width: 170px;
  height: 20px;
  border-top: 3px solid rgba(211, 47, 47, .8);
  border-radius: 50%;
  content: '';
  transform: rotate(-8deg);
}

.how:after {
  position: absolute;
  right: -75px;
  bottom: -150px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(215, 168, 75, .26);
  border-radius: 50%;
  content: '';
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
}

.how h2 {
  color: var(--ink);
}

.how h2 em {
  color: var(--terra);
}

.steps {
  border-top: 1px solid var(--line);
}

.step {
  display: grid;
  grid-template-columns: 55px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.num {
  color: var(--gold);
  font: 17px 'Fraunces', serif;
}

.step h3 {
  color: var(--ink);
  font-size: 23px;
}

.step p {
  max-width: 360px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
  margin-top: 0;
  background: #e5d4b9;
  color: #6b5a45;
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  padding: 20px 0;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-row a {
  color: var(--terra);
  text-decoration: none;
}


/* ==========================================================================
   CARRITO FLOTANTE
   ========================================================================== */

.floating-cart {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 35;

  display: grid;
  place-items: center;

  width: 58px;
  height: 58px;

  border: 1px solid rgba(61, 48, 39, .22);
  border-radius: 50%;

  background: var(--ink);
  color: var(--paper);

  box-shadow:
    0 10px 30px rgba(61, 48, 39, .20),
    0 0 0 5px rgba(246, 239, 227, .75);

  transition:
    transform .25s var(--ease),
    background .25s var(--ease),
    box-shadow .25s var(--ease);
}

.floating-cart:hover {
  transform: translateY(-4px) scale(1.04);
  background: var(--terra);

  box-shadow:
    0 14px 35px rgba(61, 48, 39, .25),
    0 0 0 5px rgba(246, 239, 227, .85);
}

.floating-cart:active {
  transform: scale(.94);
}

.floating-cart svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating-cart-count {
  position: absolute;
  top: -3px;
  right: -3px;

  display: grid;
  place-items: center;

  min-width: 21px;
  height: 21px;
  padding: 0 5px;

  border: 2px solid var(--paper);
  border-radius: 50%;

  background: var(--terra);
  color: #fff;

  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.floating-cart-count:empty {
  display: none;
}


/* ==========================================================================
   CARRITO LATERAL
   ========================================================================== */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(41, 37, 34, .36);
  backdrop-filter: blur(4px);
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;

  display: flex;

  width: min(455px, 100%);
  height: 100%;

  flex-direction: column;
  overflow: auto;

  background: #fffaf1;

  box-shadow:
    -22px 0 55px rgba(41, 37, 34, .16);

  animation: in .26s var(--ease);
}

@keyframes in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;

  border-bottom: 1px solid var(--line);

  padding: 31px 30px 25px;
}

.drawer h2 {
  margin-top: 10px;
  font-size: 34px;
  letter-spacing: -.06em;
}

.close {
  display: grid;
  place-items: center;

  width: 35px;
  height: 35px;

  border: 1px solid var(--line);
  border-radius: 50%;

  background: none;

  color: var(--ink);
  font-size: 20px;
}

.empty {
  display: grid;
  place-items: center;
  align-content: center;

  flex: 1;

  padding: 34px;
  text-align: center;
}

.empty h3 {
  font-size: 27px;
}

.empty p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 13px;
}

.empty .primary {
  margin-top: 18px;
}

.lines {
  padding: 10px 30px 24px;
}

.line {
  display: grid;
  grid-template-columns: 59px 1fr auto;
  align-items: center;
  gap: 13px;

  border-bottom: 1px solid var(--line);

  padding: 17px 0;
}

.line img {
  width: 59px;
  height: 59px;

  border-radius: 1px 18px 1px 1px;

  object-fit: cover;
}

.line h3 {
  font-size: 17px;
}

.line small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
}

.line strong {
  align-self: start;
  color: var(--terra);
  font-size: 13px;
}

.qty {
  display: flex;
  align-items: center;
  gap: 10px;

  margin-top: 8px;

  font-size: 11px;
  font-weight: 700;
}

.qty button {
  display: grid;
  place-items: center;

  width: 21px;
  height: 21px;

  border: 1px solid var(--line);
  border-radius: 50%;

  background: none;
  color: var(--ink);
}

.choice {
  border-top: 1px solid var(--line);
  padding: 22px 30px 0;
}

.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;

  margin-top: 12px;
}

.choice-grid button {
  border: 1px solid var(--line);
  background: none;
  padding: 11px;

  color: var(--muted);

  font-weight: 700;
  font-size: 11px;
}

.choice-grid button.selected {
  border-color: var(--terra);
  background: rgba(199, 91, 60, .08);
  color: var(--terra);
}

.summary {
  margin: 22px 30px 30px;

  border-top: 1px solid var(--ink);

  padding-top: 15px;
}

.summary-row {
  display: flex;
  justify-content: space-between;

  padding: 5px 0;

  color: var(--muted);
  font-size: 12px;
}

.summary-total {
  margin-top: 10px;

  padding-top: 14px;

  border-top: 1px dashed var(--line);

  color: var(--ink);
  font-size: 14px;
}

.summary-total strong {
  color: var(--terra);
  font-size: 20px;
}

.checkout {
  width: 100%;
  margin-top: 19px;
}

.note {
  margin: 11px 0 0;

  color: var(--muted);

  font-size: 10px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;

  max-width: 300px;

  background: var(--ink);
  color: var(--paper);

  padding: 14px 17px;

  font-size: 12px;

  box-shadow:
    0 10px 30px rgba(41, 37, 34, .18);

  animation: toast .2s var(--ease);
}

@keyframes toast {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media(max-width: 800px) {

  .container {
    padding-inline: 20px;
  }

  .visitor-counter {
    margin: 8px 0 0;
    order: 3;
    width: 100%;
    text-align: center;
  }

  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 20px 0 28px;
  }

  .hero-grid {
    display: block;
  }

  .visual {
    min-height: 370px;
  }

  .visual::before {
    inset: 12px 0 20px 3%;
  }

  .cat-menu {
    left: 0;
    right: 0;
    min-width: 0;
  }

  .menu {
    padding: 78px 0 86px;
  }

  .section-head {
    display: block;
    margin-bottom: 36px;
  }

  .section-head p {
    margin-top: 22px;
  }

  .menu-layout {
    display: block;
  }

  .aside {
    margin-top: 65px;
  }

  .ink {
    display: none;
  }

  .how {
    padding-top: 78px;
    padding-bottom: 35px;
  }

  .how-grid {
    display: block;
  }

  .steps {
    margin-top: 44px;
  }

  .floating-cart {
    right: 18px;
    bottom: 18px;
  }
}


@media(max-width: 560px) {

  h1 {
    font-size: clamp(36px, 11vw, 54px);
  }

  .actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .visual {
    min-height: 260px;
  }

  .visual::before {
    inset: 10px 0 15px 2%;
    border-radius: 8px 58px 8px 58px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .card-img {
    height: 255px;
  }

  .section-head h2,
  .how h2 {
    font-size: 46px;
  }

  .footer-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .drawer-head,
  .lines,
  .choice {
    padding-inline: 21px;
  }

  .summary {
    margin-inline: 21px;
  }

  .floating-cart {
    right: 15px;
    bottom: 15px;
    width: 54px;
    height: 54px;
  }

  .floating-cart svg {
    width: 23px;
    height: 23px;
  }
}
/* Corrección de la página de contacto: evita que los SVG ocupen todo el formulario */
.contact {
  padding: 96px 0 110px;
  min-height: calc(100vh - 150px);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  max-width: 900px;
  margin-top: 52px;
}

.contact-form .field {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.contact-form .field:nth-child(4),
.contact-form .field:nth-child(5),
.contact-form .contact-submit,
.contact-form .contact-status {
  grid-column: 1 / -1;
}

.contact-form label,
.contact-form .label-like {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
}

.contact-form .ico {
  display: inline-block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vertical-align: middle;
}

.contact-form input,
.contact-form textarea {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 250, 242, .74);
  color: var(--ink);
  padding: 14px 15px;
  font: 14px/1.45 'DM Sans', sans-serif;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.contact-form input {
  min-height: 48px;
}

.contact-form textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--muted);
  opacity: .78;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--terra);
  background: var(--rice);
  box-shadow: 0 0 0 3px rgba(168, 95, 67, .12);
}

.contact-form .req {
  color: var(--terra);
}

.plan-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  min-height: 48px;
}

.plan-pick-opt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .5);
  padding: 12px 15px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.plan-pick-opt:has(input:checked) {
  border-color: var(--terra);
  background: rgba(168, 95, 67, .1);
  color: var(--terra);
}

.plan-pick-opt input {
  width: 15px;
  height: 15px;
  min-height: 0;
  margin: 0;
  accent-color: var(--terra);
}

.contact-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  min-height: 48px;
  border: 0;
  background: var(--terra);
  color: var(--paper);
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.contact-submit:hover {
  background: var(--ink);
}

.contact-submit:disabled {
  cursor: wait;
  opacity: .65;
}

.contact-status {
  min-height: 20px;
  margin: -14px 0 0;
  font-size: 12px;
}

.contact-status.ok { color: #477052; }
.contact-status.error { color: #9a3f33; }

@media (max-width: 800px) {
  .contact {
    padding: 70px 0 80px;
  }

  .contact-form {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 38px;
  }

  .contact-form .field:nth-child(4),
  .contact-form .field:nth-child(5),
  .contact-form .contact-submit,
  .contact-form .contact-status {
    grid-column: auto;
  }

  .contact-submit {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .contact-form .ico {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }

  .plan-pick {
    display: grid;
    grid-template-columns: 1fr;
  }

  .plan-pick-opt {
    justify-content: flex-start;
  }
}

/* Estilos para la página de planes */
.plans {
  padding: 96px 0 112px;
  min-height: calc(100vh - 150px);
}

.plans .section-head {
  margin-bottom: 54px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.plan-card {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  border: 1px solid var(--line);
  background: rgba(255, 250, 242, .76);
  padding: 30px 26px 26px;
  box-shadow: 0 12px 30px rgba(61, 48, 39, .06);
}

.plan-card:nth-child(2) {
  border-color: var(--terra);
  box-shadow: 0 16px 34px rgba(168, 95, 67, .13);
  transform: translateY(-10px);
}

.plan-card h3 {
  color: var(--ink);
  font-size: 28px;
}

.plan-price {
  margin-top: 20px;
  color: var(--terra);
  font: 600 25px/1.1 'Fraunces', serif;
}

.plan-desc {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.plan-features {
  display: grid;
  gap: 11px;
  margin: 30px 0 28px;
  padding: 0;
  color: var(--ink);
  list-style: none;
  font-size: 13px;
  line-height: 1.4;
}

.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.plan-features li::before {
  flex: 0 0 auto;
  color: var(--terra);
  content: '✓';
  font-weight: 700;
}

.plan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: auto;
  border: 1px solid var(--terra);
  background: transparent;
  color: var(--terra);
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.plan-cta:hover {
  background: var(--terra);
  color: var(--paper);
  transform: translateY(-2px);
}

.plan-card:nth-child(2) .plan-cta {
  background: var(--terra);
  color: var(--paper);
}

.plan-card:nth-child(2) .plan-cta:hover {
  background: var(--ink);
}

@media (max-width: 800px) {
  .plans {
    padding: 70px 0 80px;
  }

  .plans .section-head {
    margin-bottom: 38px;
  }

  .plans-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .plan-card,
  .plan-card:nth-child(2) {
    min-height: 0;
    transform: none;
  }
}

.plan-price small {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font: 600 10px/1.2 'DM Sans', sans-serif;
  letter-spacing: .02em;
  vertical-align: middle;
}

/* Ajuste final de espaciado y alineación en planes */
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.plan-price small {
  display: inline-block;
  color: var(--muted);
  font: 600 12px/1.2 'DM Sans', sans-serif;
  letter-spacing: .01em;
  white-space: nowrap;
}

.plan-desc {
  margin-top: 4px;
}

@media (max-width: 800px) {
  .plans {
    padding-top: 30px;
  }

  .plans .section-head {
    margin-bottom: 20px;
  }

  .plans .section-head p {
    margin-top: 14px;
  }

  .plan-card {
    padding-top: 26px;
  }

  .plan-price {
    margin-top: 14px;
  }
}

