/* ============================================================
   Sunny House · direccion B «Playas postcard»
   Estampado, cartas rotadas 1deg, notas a mano, linea de horizonte.
   Radios: tarjetas y botones 6px, estampillas cuadradas (regla unica).
   ============================================================ */

:root {
  --coral: #E8A08D;
  --coral-deep: #B96A55;      /* sombra del coral, para texto/icono con contraste */
  --seafoam: #BFD8CD;
  --sea-deep: #6E9C8D;
  --kraft: #E5D5B8;
  --paper: #FBF6EA;
  --ink: #33302B;
  --ink-soft: rgba(51, 48, 43, 0.75);
  --line: rgba(51, 48, 43, 0.22);
  --shadow: 0 2px 5px rgba(51, 48, 43, 0.08), 0 16px 34px rgba(51, 48, 43, 0.13);
  --radius: 6px;
  --font-display: "Young Serif", Georgia, "Times New Roman", serif;
  --font-hand: "Caveat", "Comic Sans MS", cursive;
  --font-body: "Karla", "Segoe UI", system-ui, sans-serif;
}

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

html, body { overflow-x: clip; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--kraft);
  line-height: 1.55;
  font-size: 16px;
}

::selection { background: var(--coral); color: var(--ink); }

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

a { color: inherit; }

a:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 3px;
}

.foot a:focus-visible { outline-color: var(--paper); }

/* ---------- Nav: tira de cinta washi ---------- */

.tape {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 18px;
  padding: 18px 20px;
  min-height: 64px;
}

.tape-brand,
.tape-label {
  clip-path: polygon(0.6% 12%, 99.4% 2%, 100% 86%, 0% 98%);
  font-weight: 700;
  text-decoration: none;
  padding: 7px 16px;
}

.tape-brand {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.02em;
  background: rgba(229, 213, 184, 0.95);
  transform: rotate(-1deg);
}

.tape-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink);
}

.tape-a { background: rgba(191, 216, 205, 0.85); transform: rotate(1deg); }
.tape-b { background: rgba(232, 160, 141, 0.6); transform: rotate(-1.2deg); }

.tape-label:hover { background: rgba(251, 246, 234, 0.95); }

/* ---------- Postales ---------- */

.postcard {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 1000px;
  margin: 0 auto;
}

.hero-card { transform: rotate(0.8deg); }
.card-carta { transform: rotate(-1deg); }
.card-ubicaciones { transform: rotate(1deg); }
.card-patio { transform: rotate(-0.8deg); }

section.postcard {
  display: grid;
}

.photo-half { position: relative; }

.photo-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.note-half { padding: 46px 48px; }

h1, h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.12;
}

h1 { font-size: clamp(36px, 5vw, 54px); }
h2 { font-size: clamp(27px, 3.4vw, 36px); margin-bottom: 16px; }

/* --- Hero --- */

.hero {
  max-width: 1000px;
  margin: 0 auto;
  padding: 22px 24px 0;
}

.hero-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

.hero-card .photo-half img {
  border-radius: var(--radius) 0 0 var(--radius);
  min-height: 400px;
}

.postmark-strip {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 20px;
}

.promise {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: clamp(23px, 2.6vw, 28px);
  line-height: 1.35;
  margin: 14px 0 26px;
}

.btn {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(51, 48, 43, 0.18);
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(51, 48, 43, 0.22);
}

.btn:active { transform: translateY(1px); box-shadow: 0 1px 2px rgba(51, 48, 43, 0.2); }

/* --- Esquina de estampilla + matasellos --- */

.stamp-corner {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}

.stamp {
  display: grid;
  place-items: center;
  width: 74px;
  height: 88px;
  color: var(--coral-deep);
  transform: rotate(3deg);
  filter: drop-shadow(0 1px 2px rgba(51, 48, 43, 0.18));
  background-image:
    linear-gradient(var(--paper), var(--paper)),
    radial-gradient(circle at 50% 0, transparent 3.5px, var(--paper) 4px),
    radial-gradient(circle at 50% 100%, transparent 3.5px, var(--paper) 4px),
    radial-gradient(circle at 0 50%, transparent 3.5px, var(--paper) 4px),
    radial-gradient(circle at 100% 50%, transparent 3.5px, var(--paper) 4px);
  background-size:
    calc(100% - 14px) calc(100% - 14px),
    10px 7px,
    10px 7px,
    7px 10px,
    7px 10px;
  background-position: center, left top, left bottom, left top, right top;
  background-repeat: no-repeat, repeat-x, repeat-x, repeat-y, repeat-y;
}

.postmark {
  position: absolute;
  left: -30px;
  bottom: -14px;
  width: 54px;
  height: 54px;
  border: 2px solid rgba(51, 48, 43, 0.5);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(51, 48, 43, 0.55);
  transform: rotate(-13deg);
}

/* --- Fila de sellos bajo el hero --- */

.badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 16px;
  padding: 30px 20px 0;
}

.badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: 2px solid var(--ink);
  border-radius: 4px;
  padding: 8px 14px;
  color: var(--ink);
}

.badge-coral { background: rgba(232, 160, 141, 0.4); transform: rotate(-1.2deg); }
.badge-sea   { background: rgba(191, 216, 205, 0.55); transform: rotate(0.8deg); }
.badge-kraft { background: rgba(229, 213, 184, 0.7); transform: rotate(-0.6deg); }

/* --- Linea de horizonte entre postales --- */

.horizon {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: 1000px;
  margin: 54px auto;
  padding: 0 24px;
  color: var(--sea-deep);
}

.horizon::before,
.horizon::after {
  content: "";
  flex: 1;
  border-top: 1px solid var(--line);
}

/* --- Carta --- */

.card-carta { grid-template-columns: 1.05fr 1fr; }

.card-carta .photo-half img {
  border-radius: var(--radius) 0 0 var(--radius);
  min-height: 400px;
}

.card-carta .note-half { border-left: 2px dashed var(--line); }

.collage .snapshot {
  position: absolute;
  right: 14px;
  bottom: -16px;
  width: 132px;
  height: 132px;
  object-fit: cover;
  border: 6px solid var(--paper);
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(51, 48, 43, 0.22);
  transform: rotate(3deg);
  z-index: 1;
}

.menu-note {
  list-style: none;
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.3;
  margin-bottom: 16px;
}

.note-text {
  color: var(--ink-soft);
  max-width: 44ch;
}

/* --- Ubicaciones --- */

.card-ubicaciones { grid-template-columns: 1fr 1.15fr; }

.card-ubicaciones .photo-half { order: 2; }

.card-ubicaciones .photo-half img {
  border-radius: 0 var(--radius) var(--radius) 0;
  min-height: 460px;
}

.card-ubicaciones .note-half { border-right: 2px dashed var(--line); }

.addr {
  font-style: normal;
  margin-bottom: 22px;
}

.addr-name {
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 2px;
}

.addr-line {
  border-bottom: 1px dashed var(--line);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.maps-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 2px 4px;
  margin-left: -4px;
}

.maps-link:hover { background: rgba(232, 160, 141, 0.35); }

.hours-note {
  font-family: var(--font-hand);
  font-weight: 600;
  font-size: 21px;
}

/* --- Patio: postal con foto de recuerdo circular --- */

.card-patio {
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  padding: 46px 48px;
  gap: 24px;
}

.card-patio .note-half { padding: 0; }

.porthole {
  display: grid;
  place-items: center;
}

.porthole img {
  width: min(280px, 90%);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
  border: 10px solid var(--paper);
  box-shadow: 0 6px 16px rgba(51, 48, 43, 0.22);
  transform: rotate(2deg);
}

.rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.stars { position: relative; display: inline-flex; height: 20px; }

.stars-base,
.stars-fill {
  display: flex;
  gap: 2px;
}

.stars-base path { fill: rgba(51, 48, 43, 0.28); }

.stars-fill {
  position: absolute;
  inset: 0;
  width: 86%;              /* 4.3 de 5 */
  overflow: hidden;
}

.stars-fill path { fill: var(--coral-deep); }

.rating-text { font-size: 15px; }

/* ---------- Pie ---------- */

.foot {
  margin-top: 72px;
  background: var(--ink);
  color: var(--paper);
  padding: 52px 24px 44px;
}

.foot-inner { max-width: 1000px; margin: 0 auto; }

.foot-brand { font-family: var(--font-display); font-size: 24px; }

.foot-sub { color: rgba(251, 246, 234, 0.8); font-size: 14px; }

.foot-ig { margin-top: 10px; }

.foot-ig a,
.colophon a {
  color: var(--seafoam);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.foot-ig a:hover,
.colophon a:hover { color: var(--paper); }

.colophon {
  margin-top: 34px;
  border-top: 1px solid rgba(251, 246, 234, 0.25);
  padding-top: 24px;
  font-size: 13px;
}

.colophon-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(251, 246, 234, 0.85);
  margin-bottom: 12px;
}

.colophon ul { list-style: none; }

.colophon li { margin-bottom: 6px; }

.colophon-note {
  margin-top: 16px;
  color: rgba(251, 246, 234, 0.8);
  max-width: 62ch;
}

/* ---------- Movil ---------- */

@media (max-width: 900px) {
  .hero-card,
  section.postcard {
    grid-template-columns: 1fr;
  }

  .card-ubicaciones .photo-half { order: 0; }

  .hero-card .photo-half img,
  .card-carta .photo-half img,
  .card-ubicaciones .photo-half img {
    min-height: 0;
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius) var(--radius) 0 0;
  }

  .card-carta .note-half,
  .card-ubicaciones .note-half {
    border-left: none;
    border-right: none;
    border-top: 2px dashed var(--line);
  }

  .card-patio {
    grid-template-columns: 1fr;
    padding: 38px 26px;
  }

  .card-patio .note-half { padding: 0; }
}

@media (max-width: 640px) {
  .hero { padding: 14px 16px 0; }

  /* Presupuesto del primer vistazo: nav (~64px) + postal completa <= 45svh */
  .hero-card .photo-half img {
    aspect-ratio: auto;
    max-height: 18vh;
    max-height: 18svh;   /* el hero cabe en el primer vistazo */
  }

  .hero-card .note-half {
    padding: 12px 16px 14px;
  }

  .hero-card h1 { font-size: 1.7rem; line-height: 1.05; }

  .hero-card .postmark-strip {
    margin-bottom: 8px;
    padding-bottom: 5px;
    font-size: 9px;
  }

  .hero-card .promise {
    font-size: 1.1rem;
    line-height: 1.28;
    margin: 6px 0 10px;
  }

  .hero-card .btn {
    padding: 9px 16px;
    font-size: 13.5px;
  }

  .badges { padding: 18px 16px 0; }

  .note-half { padding: 26px 22px; }

  .collage .snapshot { width: 104px; height: 104px; right: 10px; bottom: -14px; }

  .postcard { margin: 0 16px; }

  .horizon { margin: 40px auto; padding: 0 16px; }

  .stamp-corner { top: 10px; right: 10px; }

  .stamp { width: 56px; height: 66px; }

  .stamp svg { width: 26px; height: 26px; }

  .postmark { left: -22px; bottom: -10px; width: 44px; height: 44px; }
}

/* Las postales se enderezan para leer mejor en pantallas chicas */
@media (max-width: 479.98px) {
  .postcard,
  .porthole img,
  .badge,
  .tape-brand,
  .tape-label { transform: none; }

  .foot { margin-top: 52px; }
}


/* QA cap: desktop hero fits first viewport (assembly t_5922044a) */
@media (min-width: 901px) {
  .hero-card .photo-half img { min-height: 0; max-height: 45svh; object-fit: cover; }
  .hero-card .photo-half img { height: min(43svh, 420px); }
}


/* QA cap: note column drives hero past 45svh on desktop (assembly t_5922044a) */
@media (min-width: 901px) {
  .hero-card .note-half h1 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.08; }
  .hero-card .note-half .promise { font-size: clamp(18px, 1.8vw, 21px); line-height: 1.32; margin: 10px 0 18px; }
  .hero-card .note-half .postmark-strip { margin-bottom: 8px; }
  .hero-card .photo-half img { min-height: 0; }
}


/* QA cap: final trim, hero <= 45svh desktop (assembly t_5922044a) */
@media (min-width: 901px) {
  .hero { padding-top: 12px; }
  .hero-card .note-half h1 { font-size: clamp(27px, 3vw, 36px); }
  .hero-card .note-half .promise { font-size: clamp(16.5px, 1.6vw, 19px); margin: 8px 0 14px; }
  .hero-card .note-half .btn { padding: 11px 20px; font-size: 14px; }
}
