:root {
  --sand: #f7f1e6;
  --foam: #eef6f6;
  --ocean: #1f7a8c;
  --deep: #0b3b45;
  --sun: #f4b183;
  --coral: #e07a5f;
  --ink: #1b2b2f;
  --mist: rgba(11, 59, 69, 0.12);
  --card: #fffaf2;
  --shadow: 0 18px 40px rgba(11, 59, 69, 0.15);
  --radius: 28px;
  --max: 1180px;
}

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

body {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  background: linear-gradient(125deg, #f7f1e6 0%, #e6f2f2 45%, #fef9f3 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -10% -5% auto auto;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 30% 30%, rgba(244, 177, 131, 0.55), rgba(244, 177, 131, 0));
  z-index: -2;
  filter: blur(10px);
}

body::after {
  content: "";
  position: fixed;
  inset: auto auto -35% -10%;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 30% 30%, rgba(31, 122, 140, 0.35), rgba(31, 122, 140, 0));
  z-index: -2;
  filter: blur(18px);
}

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

picture {
  display: block;
}

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

p {
  margin: 0 0 1rem;
}

button {
  font: inherit;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 241, 230, 0.88);
  border-bottom: 1px solid rgba(11, 59, 69, 0.08);
  backdrop-filter: blur(8px);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 46px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--deep);
}

.brand-sub {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(11, 59, 69, 0.65);
}

.nav-toggle {
  display: none;
  border: none;
  background: var(--deep);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 500;
}

.nav a {
  padding: 6px 0;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--ocean);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav a:hover::after,
.nav a:focus-visible::after {
  transform: scaleX(1);
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--sun);
  color: var(--deep);
  font-weight: 600;
  border: 1px solid transparent;
  box-shadow: 0 12px 22px rgba(11, 59, 69, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(11, 59, 69, 0.22);
}

.button.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: none;
}

.button.dark {
  background: var(--deep);
  color: #fff;
}

.button.light {
  background: #fffaf2;
  color: var(--deep);
  border-color: rgba(11, 59, 69, 0.1);
}

.button.small {
  padding: 8px 16px;
  font-size: 0.9rem;
}

.hero {
  --hero-image: url("images/frente.jpg");
  --hero-image-set: var(--hero-image);
  color: #fff;
  background-image: linear-gradient(120deg, rgba(11, 59, 69, 0.75), rgba(11, 59, 69, 0.25)), var(--hero-image);
  background-size: cover;
  background-position: center;
  padding: 130px 0 90px;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 30px 60px rgba(11, 59, 69, 0.25);
}

@supports (background-image: image-set(url("images/frente.avif") type("image/avif"))) {
  .hero {
    background-image: linear-gradient(120deg, rgba(11, 59, 69, 0.75), rgba(11, 59, 69, 0.25)), var(--hero-image-set);
  }
}

.hero-content {
  max-width: 620px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

.hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  margin: 16px 0 12px;
  line-height: 1.05;
}

.hero-text {
  font-size: 1.1rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.hero--bubbles {
  --hero-bg: var(--hero-image);
  --hero-bg-set: var(--hero-image-set);
  position: relative;
  overflow: hidden;
  padding: 0;
  min-height: clamp(560px, 78vh, 900px);
  color: #fff;
  background-image: var(--hero-bg);
  background-size: cover;
  background-position: center;
  border-radius: 0 0 40px 40px;
  box-shadow: 0 30px 60px rgba(11, 59, 69, 0.25);
}

@supports (background-image: image-set(url("x.webp") type("image/webp"))) {
  .hero--bubbles {
    background-image: var(--hero-bg-set);
  }
}

.hero--bubbles::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(244, 177, 131, 0.25), transparent 55%),
    radial-gradient(circle at 80% 40%, rgba(31, 122, 140, 0.26), transparent 60%),
    linear-gradient(120deg, rgba(11, 59, 69, 0.92), rgba(11, 59, 69, 0.55));
  pointer-events: none;
  z-index: 0;
}

.hero-bubbles-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.hero-bubble-container {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 10px;
  transform-origin: left center;
}

.hero-bubble {
  position: absolute;
  left: 0;
  top: calc(var(--bubble-size, 8px) / -2);
  width: var(--bubble-size, 8px);
  height: var(--bubble-size, 8px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  opacity: 0;
  animation: hero-bubble-move var(--bubble-life, 20s) linear infinite;
  animation-delay: var(--bubble-delay, 0s);
}

@keyframes hero-bubble-move {
  0% {
    transform: translateX(0);
    opacity: 0;
  }

  1% {
    opacity: 1;
  }

  50% {
    opacity: 0.55;
  }

  100% {
    transform: translateX(72vmin);
    opacity: 0;
  }
}

.hero--bubbles .container {
  width: 100%;
  margin: 0;
  padding: 0 1.25rem;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.hero-bubbles-card {
  width: min(86vmin, 620px);
  height: min(86vmin, 620px);
  border-radius: 999px;
  padding: clamp(26px, 4.2vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 34px rgba(255, 255, 255, 0.12),
    0 24px 70px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

@supports not ((backdrop-filter: blur(10px)) or (-webkit-backdrop-filter: blur(10px))) {
  .hero-bubbles-card {
    background: rgba(11, 59, 69, 0.6);
  }
}

.hero--bubbles .hero-title,
.hero--bubbles .hero-text {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero--bubbles .hero-text {
  max-width: 44ch;
  margin: 0;
}

.hero--bubbles .hero-actions {
  justify-content: center;
}

.hero--bubbles .button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero--split {
  --hero-min-h: clamp(480px, 72vh, 720px);
  position: relative;
  overflow: hidden;
  background-image: none;
  padding: 0;
  min-height: var(--hero-min-h);
}

.hero--split::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 30%, rgba(255, 199, 107, 0.26), transparent 52%),
    radial-gradient(circle at 78% 40%, rgba(31, 122, 140, 0.32), transparent 56%),
    linear-gradient(120deg, rgba(11, 59, 69, 0.92), rgba(11, 59, 69, 0.72));
  pointer-events: none;
}

.hero--split .hero-content {
  position: relative;
  z-index: 1;
  max-width: none;
}

.hero--split .container {
  width: 100%;
  margin: 0;
}

.hero-content--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  min-height: var(--hero-min-h);
  padding: 130px 0 90px;
  padding-left: 1.25rem;
}

.hero-copy {
  max-width: 64ch;
}

.hero-media {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-self: stretch;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.hero-media picture,
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  object-fit: cover;
}

.hero--split .hero-badge {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero--split .button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.38);
}

.hero--split .hero-title,
.hero--split .hero-text {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.section {
  padding: 80px 0;
}

.section-header {
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.8rem;
  color: rgba(11, 59, 69, 0.7);
}

.section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin: 0;
  color: var(--deep);
}

.card {
  background: var(--card);
  padding: 26px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  position: relative;
}

.card-icon {
  width: 48px;
  height: 48px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
}

.image-frame {
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.media-card {
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(11, 59, 69, 0.18);
  display: grid;
}

.media-card--link {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.media-card--link img {
  transition: transform 0.35s ease;
}

.media-card--link:hover,
.media-card--link:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 34px 90px rgba(11, 59, 69, 0.32);
}

.media-card--link:hover img,
.media-card--link:focus-visible img {
  transform: scale(1.04);
}

.media-card--link:focus-visible {
  outline: 3px solid rgba(31, 122, 140, 0.55);
  outline-offset: 4px;
}

.media-card img {
  height: 200px;
  width: 100%;
  object-fit: cover;
}

.media-card .media-body {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.media-card-cta {
  color: var(--ocean);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  justify-self: start;
  margin-top: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(31, 122, 140, 0.12);
  color: var(--deep);
  font-size: 0.85rem;
  font-weight: 600;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
}

.service-card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(11, 59, 69, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
}

.service-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ocean);
  box-shadow: 0 0 0 6px rgba(31, 122, 140, 0.12);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.gallery-grid img {
  border-radius: 22px;
  height: 220px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.cta-band {
  margin-top: 32px;
  padding: 26px;
  border-radius: 24px;
  background: linear-gradient(120deg, rgba(31, 122, 140, 0.15), rgba(244, 177, 131, 0.2));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.rate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.rate-card {
  background: #fff;
  padding: 22px;
  border-radius: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}

.rate-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--deep);
}

.rate-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ocean);
}

.rate-price-link {
  text-decoration: none;
}

.rate-price-link:hover,
.rate-price-link:focus-visible {
  text-decoration: underline;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.contact-card {
  background: #fff;
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-card-content {
  display: grid;
  gap: 6px;
}

.contact-icon {
  width: 36px;
  height: 36px;
  color: var(--ocean);
  flex-shrink: 0;
}

.contact-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.contact-action {
  color: var(--ocean);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.contact-card strong {
  font-size: 1.05rem;
  color: var(--deep);
}

.form-card {
  background: #fff;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  pointer-events: none;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.95rem;
}

label.check-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 500;
}

label.check-row input {
  margin-top: 3px;
}

input,
select,
textarea {
  font: inherit;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(11, 59, 69, 0.2);
  background: #fff;
}

ul {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
}

li {
  margin: 0.15rem 0;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(31, 122, 140, 0.25);
  border-color: var(--ocean);
}

.form-note {
  font-size: 0.9rem;
  color: rgba(11, 59, 69, 0.7);
}

.form-response {
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(31, 122, 140, 0.12);
  color: var(--deep);
}

.form-response.is-error {
  background: rgba(224, 122, 95, 0.18);
  color: #7a2b1f;
}

.form-response:empty {
  display: none;
}

.map-card {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 260px;
  background: rgba(255, 255, 255, 0.8);
}

.map-card iframe {
  width: 100%;
  height: 320px;
  border: 0;
}

.footer {
  padding: 40px 0 60px;
  color: rgba(11, 59, 69, 0.8);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.footer strong {
  color: var(--deep);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.9s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    right: 0;
    top: 70px;
    background: #fffaf2;
    border-radius: 18px;
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: var(--shadow);
    display: none;
    width: min(240px, 86vw);
  }

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

@media (max-width: 700px) {
  .hero {
    padding: 110px 0 70px;
  }

  .hero--split {
    --hero-min-h: 0px;
  }

  .hero-content--split {
    grid-template-columns: 1fr;
    padding: 110px 1.25rem 70px;
  }

  .hero-media img {
    min-height: 260px;
  }

  .hero--split .hero-media {
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-sub {
    display: none;
  }
}

/* Hero con efecto glassmorphism para mejor legibilidad */
.hero--glass .hero-content {
  background: linear-gradient(135deg, rgba(11, 59, 69, 0.72), rgba(11, 59, 69, 0.42));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 32px 40px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.28);
  max-width: 720px;
}

@supports not ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  .hero--glass .hero-content {
    background: rgba(11, 59, 69, 0.72);
  }
}

.hero--glass .hero-title,
.hero--glass .hero-text {
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 700px) {
  .hero--glass .hero-content {
    padding: 24px 20px;
    margin: 0 -0.5rem;
    border-radius: 16px;
  }
}

.card-icon-wrap {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(31, 122, 140, 0.12);
  border-radius: 12px;
}

.card-icon-svg {
  width: 28px;
  height: 28px;
  color: var(--ocean);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
    opacity: 1;
    transform: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}
