/*
  Enara Hondarribia
  CSS optimizado para legibilidad, responsive y accesibilidad.
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --gold: #f4c10f;
  --ink: #121212;
  --ink-soft: rgba(18, 18, 18, 0.8);
  --ink-muted: rgba(18, 18, 18, 0.65);
  --ink-faint: rgba(18, 18, 18, 0.22);
  --surface: rgba(255, 255, 255, 0.22);
  --surface-strong: rgba(255, 255, 255, 0.36);
  --panel-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
  --focus-ring: rgba(0, 0, 0, 0.72);
  --radius-sm: 4px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --space-xs: 0.35rem;
  --space-sm: 0.6rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --max-width: 1440px;
}

@font-face {
  font-family: "EnaraScript";
  src: url("assets/fonts/DesirableCalligraphy.woff2") format("woff2"),
       url("assets/fonts/DesirableCalligraphy.woff") format("woff");
  font-display: swap;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--gold);
  color: var(--ink);
  font-family: "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  line-height: 1.4;
  cursor: url("assets/cursor-swallow-32.png") 16 16, auto;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

a,
button {
  cursor: url("assets/cursor-swallow-32.png") 16 16, pointer;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-sm);
  background: #ffffff;
  color: #000000;
  font-size: 0.95rem;
}

.skip-link:focus-visible {
  top: 1rem;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.9), 0 0 0 6px var(--focus-ring);
}

.page {
  width: min(var(--max-width), 100%);
  min-height: 100dvh;
  margin: 0 auto;
  padding: clamp(0.7rem, 1.6vw, 1.3rem) clamp(0.9rem, 3vw, 2.2rem) clamp(1rem, 2.8vw, 1.7rem);
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  gap: 0.3rem;
}

.logo-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  text-align: center;
  min-height: clamp(74px, 10vh, 106px);
  padding-top: 1.08rem;
  padding-bottom: 0.35rem;
}

.logo-text {
  font-family: "EnaraScript", "Brush Script MT", cursive;
  font-size: clamp(1.85rem, 4.3vw, 3.1rem);
  line-height: 1;
  letter-spacing: -0.01em;
  user-select: none;
  display: inline-block;
}

.logo-first-e {
  margin-right: 0.14em;
}

.toldo-bar {
  display: flex;
  align-items: center;
  min-height: 16px;
  width: min(99%, 1380px);
  gap: 0.45rem;
  margin: 0 auto;
  transform: translateY(-0.45rem);
}

.ink-seg {
  flex: 1 1 auto;
  height: 2px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.92);
  box-shadow: 0 0.4px 0 rgba(10, 10, 10, 0.65);
  opacity: 0.95;
}

.ink-seg-end {
  flex: 1.15 1 auto;
}

.ink-gap {
  width: clamp(90px, 14vw, 170px);
  flex: 0 0 auto;
}

.line-label {
  flex-shrink: 0;
  font-size: clamp(0.62rem, 1vw, 0.72rem);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
  color: #121212;
  opacity: 1;
  white-space: nowrap;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.line-label-left {
  padding: 0 0.3rem;
  transform: translateX(0);
}

.city-label {
  padding: 0 0.3rem;
}

.wave-row {
  margin-top: 0.85rem;
  line-height: 0;
  transform: translateY(0.35rem);
}

.wave-svg {
  width: 100%;
  display: block;
}

.main {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(330px, 0.75fr);
  gap: clamp(1rem, 2.2vw, 2rem);
  padding-top: clamp(1.3rem, 3vw, 2.3rem);
}

.col-gallery,
.col-info {
  min-height: 0;
}

.col-gallery {
  display: flex;
}

.carousel {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: none;
  aspect-ratio: 5 / 4;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: var(--radius-md);
  box-shadow: var(--panel-shadow);
  outline: none;
}

.carousel:focus-visible {
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.c-track {
  display: flex;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.77, 0, 0.18, 1);
}

.c-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
}

.c-slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.2);
  display: block;
}

.slide-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.55);
  background: rgba(255, 255, 255, 0.2);
}

.c-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(0, 0, 0, 0.28);
  width: 2.1rem;
  height: 2.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  cursor: url("assets/cursor-swallow-32.png") 16 16, pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  opacity: 0;
  z-index: 10;
}

.c-btn svg {
  width: 0.95rem;
  height: 0.95rem;
}

.c-btn.prev {
  left: 0.55rem;
}

.c-btn.next {
  right: 0.55rem;
}

.carousel:hover .c-btn,
.carousel:focus-within .c-btn {
  opacity: 1;
}

.c-btn:hover,
.c-btn:focus-visible {
  background: #ffffff;
  transform: translateY(-50%) scale(1.04);
}

.c-dots {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  display: flex;
  gap: 0.38rem;
  z-index: 10;
}

.dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.24);
  cursor: url("assets/cursor-swallow-32.png") 16 16, pointer;
  padding: 0;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.dot.on,
.dot[aria-selected="true"] {
  transform: scale(1.2);
  background: rgba(0, 0, 0, 0.72);
}

.dot:focus-visible,
.c-btn:focus-visible,
.soc:focus-visible,
.info-text:focus-visible,
.wa-pill:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.col-info {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  background: var(--surface);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: var(--radius-md);
  box-shadow: var(--panel-shadow);
  padding: clamp(0.85rem, 1.5vw, 1.2rem);
}

.socials-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ink-faint);
}

.soc,
.pet-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 0;
}

.soc {
  color: var(--ink);
  text-decoration: none;
  opacity: 0.92;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.soc:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.soc svg {
  width: 1.75rem;
  height: 1.75rem;
}

.soc-lbl,
.pet-lbl {
  text-transform: uppercase;
}

.soc-lbl {
  font-size: clamp(0.58rem, 0.95vw, 0.7rem);
  letter-spacing: 0.16em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pet-lbl {
  font-size: clamp(0.52rem, 0.85vw, 0.64rem);
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  max-width: 100%;
  overflow-wrap: anywhere;
}

.pet-img {
  width: clamp(112px, 16vw, 165px);
  max-width: 100%;
  display: block;
}

.pet-emoji {
  display: none;
  font-size: 2rem;
}

.pet-wrap {
  position: relative;
}

.pet-wrap::after {
  content: "Hola, soy Sancho.";
  position: absolute;
  bottom: calc(100% - 1.05rem);
  left: 50%;
  transform: translateX(-50%) translateY(2px) rotate(-2deg);
  background: #fffdf7;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 1rem 1.15rem 0.92rem 1.08rem;
  padding: 0.42rem 0.62rem;
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.pet-wrap::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 1.3rem);
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 7px solid transparent;
  border-top: 12px solid #fffdf7;
  filter: drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.2));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.pet-wrap:hover::after,
.pet-wrap:hover::before,
.pet-wrap:focus-within::after,
.pet-wrap:focus-within::before {
  opacity: 1;
}

.pet-wrap:hover::after,
.pet-wrap:focus-within::after {
  transform: translateX(-50%) translateY(0) rotate(-2deg);
  animation: sancho-bubble 1.4s ease-in-out infinite;
}

@keyframes sancho-bubble {
  0% {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateX(-50%) translateY(-2px) rotate(1deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(-2deg);
  }
}

.data-panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  flex: 1;
}

.data-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
}

.info-row svg {
  width: 0.95rem;
  height: 0.95rem;
  margin-top: 0.16rem;
  flex-shrink: 0;
  color: var(--ink-muted);
}

.info-text {
  color: var(--ink-soft);
  font-size: clamp(0.8rem, 1.3vw, 0.92rem);
  line-height: 1.5;
  text-decoration: none;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.phone-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.36);
  border-radius: var(--radius-pill);
  padding: 0.26rem 0.58rem;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--surface-strong);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.wa-pill svg {
  width: 0.75rem;
  height: 0.75rem;
}

.wa-pill:hover,
.wa-pill:focus-visible {
  background: #ffffff;
  transform: translateY(-1px);
}

.hours-cta {
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.map-wrap {
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 180px;
  height: clamp(120px, 18vh, 180px);
  box-shadow: none;
  flex: 1;
  position: relative;
  padding-top: 0.9rem;
  box-sizing: border-box;
}

.map-wrap::before {
  content: "";
  position: absolute;
  top: 0.25rem;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--ink-faint);
}

.map-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 1200px) {
  .main {
    grid-template-columns: minmax(0, 1.6fr) minmax(360px, 0.7fr);
    gap: clamp(1.5rem, 2.6vw, 2.4rem);
  }

  .carousel {
    aspect-ratio: 5 / 4;
  }
}

@media (max-width: 820px) {
  .main {
    gap: 1.2rem;
  }

  .socials-panel {
    flex-wrap: wrap;
    gap: 0.85rem 1.2rem;
  }

  .soc,
  .pet-wrap {
    min-width: 110px;
  }

  .phone-row {
    gap: 0.45rem 0.7rem;
  }
}

@media (max-width: 960px) {
  .main {
    grid-template-columns: 1fr;
  }

  .carousel {
    min-height: 250px;
    aspect-ratio: 5 / 4;
  }

  .col-info {
    gap: 0.9rem;
  }

  .socials-panel {
    justify-content: center;
    padding-bottom: 0.75rem;
  }

  .map-wrap {
    height: 200px;
  }
}

@media (max-width: 680px) {
  .page {
    padding: 0.8rem 0.9rem 1.4rem;
  }

  .logo-row {
    min-height: 66px;
    padding-top: 0.25rem;
    padding-bottom: 0.45rem;
  }

  .ink-gap {
    width: clamp(48px, 8vw, 70px);
  }

  .line-label-left {
  font-size: 0.5rem;
  letter-spacing: 0.1em;
}

  .line-label {
    font-size: 0.56rem;
    letter-spacing: 0.14em;
  }

  .city-label {
    letter-spacing: 0.17em;
    padding-left: 0.4rem;
  }

  .socials-panel {
    gap: 0.5rem 0.9rem;
    grid-template-columns: 1fr 1fr 1fr;
  }

  .c-btn {
    opacity: 1;
  }

  .carousel {
    min-height: 200px;
    aspect-ratio: 4 / 3;
  }

  .info-text {
    font-size: 0.88rem;
  }

  .wa-pill {
    padding: 0.3rem 0.6rem;
  }

  .pet-wrap::after {
    font-size: 0.7rem;
    padding: 0.38rem 0.54rem;
    bottom: calc(100% - 0.8rem);
  }

  .map-wrap {
    height: 170px;
  }
}

@media (max-width: 680px) {
  .soc svg {
    width: 1.4rem;
    height: 1.4rem;
  }

  .soc-lbl {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
  }

  .pet-lbl {
    font-size: 0.56rem;
  }

  .info-row {
    gap: 0.45rem;
  }
}

@media (max-width: 420px) {
  .logo-text {
    font-size: clamp(1.55rem, 6.8vw, 2.1rem);
  }

  .line-label {
    letter-spacing: 0.14em;
  }

  .c-btn {
    width: 2.4rem;
    height: 2.4rem;
  }

  .dot {
    width: 0.6rem;
    height: 0.6rem;
  }

  .wa-pill {
    font-size: 0.68rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .c-track {
    transition: none;
  }
}

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