:root {
  --paper: #fbf5ec;
  --paper-strong: #fffaf4;
  --ink: #2f251e;
  --muted: #705f54;
  --clay: #af5238;
  --clay-dark: #7e3322;
  --melon: #f2b39b;
  --sand: #e7d4bd;
  --sage: #60776a;
  --line: #decdbb;
  --shadow: 0 18px 44px rgba(75, 42, 25, .13);
  --radius: 22px;
  --radius-sm: 14px;
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2.25rem;
  --space-6: 3.5rem;
  --space-7: 5rem;
  --content-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a, select, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .5; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .7rem 1rem;
  background: var(--ink);
  color: #fff;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

.site-header, .admin-header {
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.site-header { border-bottom: 1px solid rgba(117, 86, 63, .18); }
.brand { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.25rem, 2vw, 1.65rem); font-weight: 700; text-decoration: none; }
.site-nav { display: flex; gap: 1.25rem; font-size: .92rem; }
.site-nav a { text-decoration: none; color: var(--muted); }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--clay-dark); text-decoration: underline; text-underline-offset: 4px; }

.section-shell { width: min(calc(100% - 2rem), var(--content-width)); margin: 0 auto; }
.section-space { padding-block: var(--space-7); }
.eyebrow { margin: 0 0 .65rem; color: var(--clay-dark); font-size: .78rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.hero {
  min-height: 585px;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(280px, .96fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  padding-block: clamp(3rem, 8vw, 7.5rem);
}
.hero-copy { max-width: 620px; }
h1, h2, h3 { color: var(--ink); font-family: Georgia, "Times New Roman", serif; line-height: 1.05; }
h1 { margin: 0; font-size: clamp(2.7rem, 6vw, 5.35rem); letter-spacing: -.055em; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.045em; }
h3 { margin: 0; font-size: clamp(1.4rem, 2.5vw, 1.85rem); letter-spacing: -.025em; }
.hero-text { max-width: 560px; margin: 1.35rem 0 1.75rem; color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.16rem); }
.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.05rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 750;
  font-size: .94rem;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button:focus-visible, .icon-button:focus-visible, .calendar-day:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible { outline: 3px solid rgba(175, 82, 56, .42); outline-offset: 3px; }
.button-primary { background: var(--clay); color: #fff; box-shadow: 0 8px 18px rgba(126, 51, 34, .2); }
.button-primary:hover:not(:disabled) { background: var(--clay-dark); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line); }
.button-secondary:hover:not(:disabled) { background: #f5e8d8; border-color: #c8aa8f; }
.button-quiet { padding-inline: .65rem; background: transparent; color: var(--clay-dark); min-height: auto; }
.button-quiet:hover { background: #f8e7db; }

.hero-art {
  min-height: 400px;
  position: relative;
  overflow: hidden;
  border-radius: 47% 53% 40% 60% / 51% 38% 62% 49%;
  background: linear-gradient(145deg, #f3c1aa 0%, #efaa8c 50%, #ce7e5b 100%);
  box-shadow: var(--shadow);
}
.hero-art::before, .hero-art::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 246, 232, .38); }
.hero-art::before { width: 290px; height: 290px; left: -70px; bottom: -105px; }
.hero-art::after { width: 120px; height: 120px; right: 28px; top: 38px; }
.hero-sun { position: absolute; width: 170px; height: 170px; top: 38px; left: 46%; border-radius: 50%; background: rgba(255, 237, 196, .86); }
.hero-vessel { position: absolute; z-index: 2; bottom: 40px; background: linear-gradient(90deg, #a74631, #c66d49 48%, #8e3727); box-shadow: inset 20px 0 25px rgba(255, 255, 255, .12), 14px 17px 20px rgba(72, 31, 17, .19); }
.vessel-one { width: 164px; height: 220px; left: 14%; border-radius: 43% 43% 28% 28% / 22% 22% 18% 18%; }
.vessel-one::before { content: ""; position: absolute; width: 125px; height: 33px; border-radius: 50%; left: 20px; top: -14px; background: #5b2a21; border: 9px solid #b95d3e; box-sizing: border-box; }
.vessel-two { width: 118px; height: 155px; left: 49%; bottom: 28px; border-radius: 35% 35% 24% 24% / 20% 20% 18% 18%; background: linear-gradient(90deg, #8a3325, #bd5d3c, #762e24); }
.vessel-two::before { content: ""; position: absolute; width: 85px; height: 24px; border-radius: 50%; left: 17px; top: -11px; background: #59261e; border: 7px solid #a94a31; box-sizing: border-box; }
.vessel-three { width: 85px; height: 100px; right: 11%; bottom: 55px; border-radius: 40% 40% 20% 20% / 25% 25% 12% 12%; background: linear-gradient(90deg, #87442c, #ce8158, #86422c); }
.vessel-three::before { content: ""; position: absolute; width: 61px; height: 19px; border-radius: 50%; left: 12px; top: -9px; background: #532c20; border: 6px solid #b66a45; box-sizing: border-box; }

.section-heading { max-width: 680px; margin-bottom: 2.3rem; }
.section-heading > p:last-child { margin: .9rem 0 0; color: var(--muted); }
.workshops-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.workshop-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper-strong); box-shadow: 0 5px 0 rgba(112, 76, 50, .04); }
.workshop-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); transition: transform .2s ease, box-shadow .2s ease; }
.workshop-image { min-height: 180px; background: linear-gradient(135deg, #db9c7a, #eec5ac); overflow: hidden; }
.workshop-image img { width: 100%; height: 215px; object-fit: cover; transition: transform .35s ease; }
.workshop-card:hover .workshop-image img { transform: scale(1.04); }
.image-fallback { display: grid; place-items: center; padding: 1rem; color: rgba(65, 35, 24, .75); font-family: Georgia, serif; font-style: italic; text-align: center; }
.workshop-content { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.workshop-content .eyebrow { font-size: .68rem; margin-bottom: .45rem; }
.workshop-content h3 { font-size: 1.52rem; }
.duration { margin: .35rem 0 .7rem; color: var(--clay-dark); font-size: .88rem; font-weight: 650; }
.workshop-content > p:not(.eyebrow):not(.duration) { margin: 0; color: var(--muted); font-size: .95rem; }
.feature-list { padding: 0; margin: 1rem 0 1.35rem; list-style: none; color: var(--muted); font-size: .85rem; }
.feature-list li { margin-bottom: .38rem; padding-left: 1.1rem; position: relative; }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .56rem; width: .42rem; height: .42rem; border-radius: 50%; background: var(--melon); }
.workshop-bottom { margin-top: auto; display: flex; align-items: baseline; gap: .4rem; }
.price { color: var(--clay-dark); font-size: 1.38rem; }
.price-note { color: var(--muted); font-size: .78rem; }
.workshop-actions { display: flex; align-items: center; gap: .35rem; margin-top: 1rem; }
.text-link { display: inline-flex; width: fit-content; margin-top: .75rem; color: var(--clay-dark); font-size: .88rem; font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.booking-section { padding-block: var(--space-7); background: #2f2924; color: #fff7ef; }
.booking-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(2rem, 7vw, 7rem); }
.booking-intro { padding-top: .7rem; }
.booking-intro .eyebrow { color: var(--melon); }
.booking-intro h2 { color: #fff7ef; }
.booking-intro p:not(.eyebrow) { max-width: 460px; color: #decfc0; }
.capacity-note { display: flex; align-items: center; gap: .5rem; margin-top: 1.4rem; color: #f6e8db; }
.capacity-note span { color: var(--melon); }
.booking-panel { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: start; gap: 1rem; }
.calendar-card, .reservation-form { border: 1px solid rgba(255, 235, 218, .18); border-radius: var(--radius-sm); background: #403830; }
.calendar-card { padding: 1rem; }
.calendar-toolbar { display: grid; grid-template-columns: 38px 1fr 38px; align-items: center; gap: .5rem; margin-bottom: .85rem; }
.calendar-toolbar h3 { margin: 0; color: #fff7ef; font-family: inherit; font-size: .97rem; font-weight: 750; text-align: center; text-transform: capitalize; }
.icon-button { width: 38px; height: 38px; padding: 0; border: 1px solid rgba(255, 235, 218, .23); border-radius: 50%; background: transparent; color: inherit; font-size: 1.25rem; line-height: 1; }
.icon-button:hover { background: rgba(255, 255, 255, .1); }
.calendar-weekdays, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .25rem; }
.calendar-weekdays { margin-bottom: .3rem; color: #bdaea0; font-size: .68rem; text-align: center; }
.calendar-day { aspect-ratio: 1; position: relative; display: grid; place-items: center; padding: 0; border: 1px solid transparent; border-radius: 50%; background: transparent; color: #ad9e92; font-size: .82rem; }
.calendar-day.available { color: #fff; border-color: rgba(242, 179, 155, .5); }
.calendar-day.available:hover { background: rgba(242, 179, 155, .2); }
.calendar-day.selected { border-color: var(--melon); background: var(--melon); color: #3b2e28; font-weight: 800; }
.calendar-day i { position: absolute; width: 4px; height: 4px; bottom: 5px; border-radius: 50%; background: var(--melon); }
.calendar-day.selected i { background: var(--clay-dark); }
.calendar-day.empty { pointer-events: none; }
.calendar-legend { margin: .9rem 0 0; color: #bdaea0; font-size: .72rem; text-align: center; }
.legend-dot { display: inline-block; width: 6px; height: 6px; margin-right: .25rem; border-radius: 50%; background: var(--melon); }
.calendar-error { grid-column: 1 / -1; margin: .5rem 0; color: #ffc9b5; font-size: .8rem; text-align: center; }

.reservation-form { padding: 1.2rem; }
.form-heading h3 { color: #fff7ef; font-family: inherit; font-size: 1.05rem; }
.form-heading p { margin: .2rem 0 1rem; color: #c8bbb0; font-size: .83rem; text-transform: capitalize; }
.form-grid, .admin-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
label { display: grid; gap: .35rem; color: inherit; font-size: .83rem; font-weight: 650; }
input, select, textarea { width: 100%; border: 1px solid #af9d90; border-radius: 9px; background: #fffaf4; color: var(--ink); padding: .65rem .72rem; }
textarea { resize: vertical; }
.reservation-form label { color: #efe3d7; }
.reservation-form .button { width: 100%; margin-top: 1rem; }
.full-width, .full-span { grid-column: 1 / -1; }
.optional { color: inherit; font-weight: 500; opacity: .7; }
.form-feedback { min-height: 1.35rem; margin: .9rem 0 0; font-size: .84rem; }
.form-feedback.success { color: #b8e6c9; }
.form-feedback.error { color: #ffc4af; }

.instagram-section { padding-bottom: var(--space-7); }
.instagram-feed { min-height: 190px; }
.instagram-embed { overflow: hidden; max-width: 500px; min-height: 480px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.instagram-embed iframe { width: 100%; height: 540px; border: 0; }
.instagram-placeholder { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; padding: 1.7rem; border: 1px dashed #c7a68c; border-radius: var(--radius); background: #f8ebdc; color: var(--muted); }
.instagram-placeholder span { color: var(--clay); font-size: 2rem; }
.instagram-placeholder p { max-width: 520px; margin: 0; }
.instagram-post { display: block; overflow: hidden; aspect-ratio: 1; border-radius: 14px; background: #e5b194; }
.instagram-post img { width: 100%; height: 100%; object-fit: cover; }
.instagram-feed:has(.instagram-post) { display: grid; grid-template-columns: repeat(6, 1fr); gap: .65rem; }
.site-footer { width: min(calc(100% - 2rem), var(--content-width)); margin: 0 auto; padding: 1.5rem 0 2.2rem; display: flex; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.site-footer p { margin: 0; }
.site-footer a { color: var(--clay-dark); }

.video-modal { width: min(920px, calc(100% - 2rem)); border: 0; border-radius: 18px; padding: 0; overflow: hidden; background: #241f1b; color: #fff7ef; box-shadow: 0 25px 80px rgba(0, 0, 0, .45); }
.video-modal::backdrop { background: rgba(34, 27, 23, .72); backdrop-filter: blur(3px); }
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; }
.modal-header h2 { color: #fff7ef; font-family: inherit; font-size: 1rem; }
.video-player { width: 100%; aspect-ratio: 16 / 9; background: #151210; }
.video-player iframe, .video-player video { width: 100%; height: 100%; border: 0; background: #151210; }
.video-player .empty-state { display: grid; height: 100%; place-items: center; margin: 0; color: #d5c5b8; }
.empty-state { color: var(--muted); }
.global-error { position: fixed; z-index: 110; right: 1rem; bottom: 1rem; max-width: 350px; margin: 0; padding: .9rem 1rem; border: 1px solid #e89175; border-radius: 10px; background: #fff2ed; color: #7b2c1c; box-shadow: var(--shadow); }

/* Administración */
.admin-body { min-height: 100vh; background: #f6efe5; }
.admin-header { width: min(calc(100% - 2rem), 1240px); padding-block: 1.4rem; }
.admin-header h1 { margin: 0; font-size: clamp(1.85rem, 4vw, 3rem); }
.admin-header .eyebrow { margin-bottom: .3rem; }
.admin-main { width: min(calc(100% - 2rem), 1240px); margin: 0 auto; padding: .7rem 0 4rem; }
.admin-section { margin-top: 2.4rem; }
.admin-section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.admin-section-heading h2 { font-size: clamp(1.55rem, 3vw, 2.4rem); }
.admin-section-heading .eyebrow { margin-bottom: .35rem; }
.admin-card { padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--paper-strong); box-shadow: 0 4px 0 rgba(83, 51, 33, .04); }
.admin-form .button, .workshop-editor .button { margin-top: 1.15rem; }
.admin-form label, .workshop-editor label { color: var(--ink); }
.admin-fieldset { margin: 1.25rem 0 0; padding: 1rem; border: 1px solid #e4d2be; border-radius: 12px; }
.admin-fieldset legend { padding: 0 .35rem; color: var(--clay-dark); font-size: .9rem; font-weight: 800; }
.weekday-picker { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.weekday-picker > span, .sessions-editor > span { width: 100%; margin-bottom: .25rem; }
.weekday-picker label { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: #fcf5ed; font-size: .75rem; }
.weekday-picker input { width: auto; margin: 0; }
.sessions-editor { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.sessions-editor > span { grid-column: 1 / -1; }
.sessions-editor small { color: var(--muted); font-weight: 500; }
.session-row { display: grid; grid-template-columns: 90px 1fr; align-items: center; gap: .55rem; }
.session-row span { font-size: .8rem; }
.admin-workshops { display: grid; gap: 1rem; }
.workshop-editor-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; margin-bottom: 1rem; border-bottom: 1px solid var(--line); }
.workshop-editor-heading h3 { font-size: 1.6rem; }
.workshop-editor-heading strong { color: var(--clay-dark); }
.admin-feedback { min-height: 1.4rem; margin: 0; font-size: .9rem; }
.admin-feedback.success { color: #246640; }
.admin-feedback.error { color: #9b2d22; }

@media (max-width: 1020px) {
  .workshops-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .booking-layout { grid-template-columns: 1fr; }
  .booking-panel { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
  .instagram-feed:has(.instagram-post) { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
  :root { --space-7: 3.8rem; }
  .site-header { min-height: 68px; }
  .site-nav { gap: .8rem; font-size: .78rem; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-block: 3rem 3.6rem; }
  .hero-art { min-height: 320px; max-width: 530px; width: 100%; }
  .vessel-one { left: 12%; transform: scale(.82); transform-origin: bottom left; }
  .vessel-two { left: 48%; transform: scale(.82); transform-origin: bottom left; }
  .vessel-three { right: 8%; transform: scale(.82); transform-origin: bottom right; }
  .workshops-grid { grid-template-columns: 1fr; }
  .workshop-image img { height: 230px; }
  .booking-panel { grid-template-columns: 1fr; }
  .form-grid, .admin-form-grid { grid-template-columns: 1fr; }
  .full-width, .full-span { grid-column: auto; }
  .sessions-editor { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
  .admin-header { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .section-shell, .site-header, .site-footer, .admin-header, .admin-main { width: min(calc(100% - 1.25rem), var(--content-width)); }
  .site-nav a:first-child { display: none; }
  .reservation-form, .calendar-card { padding: .9rem; }
  .calendar-days { gap: .16rem; }
  .calendar-day { font-size: .75rem; }
  .instagram-feed:has(.instagram-post) { grid-template-columns: repeat(2, 1fr); }
}

/* Reservas del panel administrativo */
.reservations-admin {
  overflow: hidden;
}

.reservation-list {
  display: grid;
  gap: .8rem;
}

.reservation-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(210px, 1fr) minmax(175px, .65fr);
  gap: 1rem;
  align-items: start;
  padding: .9rem;
  border: 1px solid #e4d2be;
  border-radius: 12px;
  background: #fffaf4;
}

.reservation-main,
.reservation-contact {
  display: grid;
  gap: .18rem;
}

.reservation-main strong {
  color: var(--ink);
}

.reservation-main span,
.reservation-contact a,
.reservation-contact p {
  color: var(--muted);
  font-size: .84rem;
}

.reservation-contact a {
  width: fit-content;
}

.reservation-contact p {
  margin: .25rem 0 0;
  white-space: pre-wrap;
}

.reservation-status-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .55rem;
  align-items: end;
}

.reservation-status-form .button {
  min-height: 39px;
  padding-inline: .75rem;
}

@media (max-width: 840px) {
  .reservation-row {
    grid-template-columns: 1fr;
  }

  .reservation-status-form {
    grid-template-columns: minmax(160px, .8fr) auto;
  }
}
