/* =========================================================
   Arpón Azul | Pescados y mariscos seleccionados
   Réplica de la landing original (Lovable)
   ========================================================= */

:root {
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Sora", var(--font-sans);

  --background: #fbfcfe;
  --foreground: #1b2138;
  --card: #ffffff;
  --primary: #40328f;
  --primary-foreground: #f7f6fc;
  --secondary: #f0f3f8;
  --muted-foreground: #5b627a;
  --border: #dfe3ef;
  --input: #dfe3ef;
  --ring: #40328f;

  --sea: #123f4a;
  --sea-foreground: #eff9fb;
  --sea-highlight: #82d3cb;
  --teal: #16828a;

  --radius: 0.5rem;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid var(--border);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: inherit;
}

img, svg, video {
  display: block;
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
}

.icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 9999px;
  font-weight: 600;
  transition: transform 0.3s, background-color 0.3s, box-shadow 0.3s, border-color 0.3s;
  cursor: pointer;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.btn--primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn--primary:hover {
  background-color: rgba(64, 50, 143, 0.9);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.btn--ghost {
  border: 1px solid rgba(64, 50, 143, 0.25);
  background: rgba(251, 252, 254, 0.8);
  color: var(--primary);
  backdrop-filter: blur(8px);
}

.btn--ghost:hover {
  border-color: var(--primary);
  background-color: var(--secondary);
}

/* ---------- Header ---------- */
.header {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 30;
}

.header__inner {
  margin-inline: auto;
  display: flex;
  height: 96px;
  max-width: 80rem;
  align-items: center;
  justify-content: space-between;
  padding-inline: 20px;
}

.header__logo {
  display: block;
  margin-top: 30px;
  border-radius: 0.375rem;
  background: rgba(251, 252, 254, 0.95);
  padding: 8px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.header__logo img {
  width: 135px;
  height: 135px;
  object-fit: contain;
}

.header__nav {
  display: none;
  align-items: center;
  gap: 32px;
}

.header__nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
}

.header__nav-link::after {
  content: "";
  position: absolute;
  bottom: -0.45rem;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: 100%;
  transition: transform 0.25s;
}

.header__nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: 0;
}

.header__cta {
  display: none;
  height: 44px;
  padding-inline: 24px;
  font-size: 0.875rem;
}

.header__menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid rgba(64, 50, 143, 0.25);
  background: rgba(251, 252, 254, 0.8);
  color: var(--primary);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.header__menu-btn .icon {
  width: 24px;
  height: 24px;
}

/* ---------- Menú móvil ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: var(--background);
  padding: 20px;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease);
  visibility: hidden;
}

.mobile-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.mobile-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-menu__logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.mobile-menu__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  cursor: pointer;
}

.mobile-menu__close .icon {
  width: 24px;
  height: 24px;
}

.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
}

.mobile-menu__link {
  padding: 12px 16px;
  border-radius: var(--radius);
  font-weight: 600;
  color: var(--foreground);
}

.mobile-menu__link:hover {
  background: var(--secondary);
  color: var(--primary);
}

.mobile-menu__cta {
  position: absolute;
  bottom: 24px;
  left: 20px;
  right: 20px;
  height: 52px;
  padding-inline: 24px;
  font-size: 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 760px;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, var(--background) 0%, rgba(251, 252, 254, 0.9) 35%, rgba(251, 252, 254, 0.1) 100%);
}

.hero__lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__lines span {
  position: absolute;
  top: 18%;
  right: -120px;
  width: 820px;
  height: 440px;
  border: 1px solid rgba(64, 50, 143, 0.16);
  border-radius: 50%;
}

.hero__lines span:nth-child(2) {
  top: 20%;
  right: -180px;
  width: 940px;
  height: 520px;
}

.hero__lines span:nth-child(3) {
  top: 22%;
  right: -245px;
  width: 1070px;
  height: 600px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero__lines span {
    animation: tide 8s ease-in-out infinite alternate;
  }
  .hero__lines span:nth-child(2) {
    animation-delay: -2s;
  }
  .hero__lines span:nth-child(3) {
    animation-delay: -4s;
  }
}

@keyframes tide {
  to {
    transform: translate(-20px, 12px) scale(1.02);
  }
}

.hero__content {
  position: relative;
  margin-inline: auto;
  display: flex;
  min-height: 760px;
  max-width: 80rem;
  align-items: center;
  padding: 96px 20px 0;
}

.hero__text {
  max-width: 42rem;
  animation: fade-in 0.6s var(--ease) both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--primary);
}

.hero__kicker-line {
  width: 40px;
  height: 1px;
  background: var(--primary);
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7vw, 6.7rem);
  font-weight: 600;
  line-height: 0.94;
  color: var(--foreground);
}

.hero__title span {
  color: var(--primary);
}

.hero__sub {
  margin-top: 28px;
  max-width: 32rem;
  font-size: 1rem;
  line-height: 1.75;
  color: var(--muted-foreground);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__actions .btn {
  height: 52px;
  padding-inline: 32px;
  font-size: 1rem;
}

.hero__stats {
  position: absolute;
  right: 0;
  bottom: 0;
  display: none;
  width: 42%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(64, 50, 143, 0.1);
  border-left: 1px solid rgba(64, 50, 143, 0.1);
  background: rgba(251, 252, 254, 0.9);
  backdrop-filter: blur(8px);
}

.hero__stat {
  padding: 24px 20px;
  border-right: 1px solid rgba(64, 50, 143, 0.1);
}

.hero__stat:last-child {
  border-right: 0;
}

.hero__stat strong {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--primary);
}

.hero__stat p {
  margin-top: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted-foreground);
}

/* ---------- Nosotros (features) ---------- */
.features {
  background: var(--primary);
  color: var(--primary-foreground);
}

.features__grid {
  display: grid;
  gap: 0;
  margin-inline: auto;
  max-width: 80rem;
  grid-template-columns: 1fr;
}

.feature {
  display: flex;
  gap: 20px;
  padding: 36px 32px;
  border-bottom: 1px solid rgba(247, 246, 252, 0.15);
}

.feature:last-child {
  border-bottom: 0;
}

.feature__icon {
  margin-top: 4px;
  color: var(--sea-highlight);
}

.feature__icon .icon,
.feature__icon svg {
  width: 24px;
  height: 24px;
}

.feature__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
}

.feature__desc {
  margin-top: 8px;
  font-size: 0.875rem;
  line-height: 1.5;
  color: rgba(247, 246, 252, 0.7);
}

/* ---------- Secciones generales ---------- */
.section-kicker {
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 800;
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--foreground);
}

/* ---------- Catálogo ---------- */
.catalog {
  position: relative;
  padding: 96px 0;
}

.catalog__head {
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 20px;
  display: grid;
  gap: 24px;
  align-items: start;
}

.catalog__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  justify-content: flex-start;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding-inline: 24px;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid rgba(64, 50, 143, 0.25);
  background: rgba(251, 252, 254, 0.8);
  color: var(--primary);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: all 0.3s;
}

.filter-btn:hover {
  border-color: var(--primary);
  background: var(--secondary);
}

.filter-btn.is-active {
  background: var(--primary);
  color: var(--primary-foreground);
}

.catalog__grid {
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 20px;
  margin-top: 56px;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
  grid-template-columns: 1fr;
}

.catalog__empty {
  grid-column: 1 / -1;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted-foreground);
  background: var(--card);
}

.product {
  background: var(--card);
}

.product.is-hidden {
  display: none;
}

.product__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.product__media--photo {
  background-color: #ffffff;
}

.product__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.product__media--photo:hover .product__img {
  transform: scale(1.08);
}

.product__glyph {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 70% 25%, rgba(255, 255, 255, 0.45), transparent 45%),
                    radial-gradient(circle at 25% 85%, rgba(18, 63, 74, 0.25), transparent 55%);
  opacity: 0.7;
}

.product__body {
  position: relative;
  padding: 24px;
}

.product__num {
  position: absolute;
  top: 24px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  color: var(--muted-foreground);
}

.product__cat {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--teal);
}

.product__name {
  margin-top: 8px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--foreground);
}

.product__desc {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--muted-foreground);
}

/* Miniaturas (placeholders con degradados marinos) */
.product__thumb--1 { background: linear-gradient(135deg, #2b6d8c, #173b4d); }
.product__thumb--2 { background: linear-gradient(135deg, #3a6ea5, #1f3a5f); }
.product__thumb--3 { background: linear-gradient(135deg, #284f7a, #0f2440); }
.product__thumb--4 { background: linear-gradient(135deg, #e98a6e, #b04c45); }
.product__thumb--5 { background: linear-gradient(135deg, #8a4f3a, #4a2a20); }
.product__thumb--6 { background: linear-gradient(135deg, #d8b78a, #8a6b3a); }
.product__thumb--7 { background: linear-gradient(135deg, #6e4f2b, #3b2a17); }
.product__thumb--8 { background: linear-gradient(135deg, #a3556e, #57283a); }
.product__thumb--9 { background: linear-gradient(135deg, #7a7050, #3f3a29); }
.product__thumb--10 { background: linear-gradient(135deg, #5b7a8a, #2c444f); }
.product__thumb--11 { background: linear-gradient(135deg, #c9654b, #743322); }
.product__thumb--12 { background: linear-gradient(135deg, #6b7f52, #35422a); }
.product__thumb--13 { background: linear-gradient(135deg, #4c6d6b, #243836); }
.product__thumb--14 { background: linear-gradient(135deg, #9a9fb0, #4c5060); }

/* ---------- Proceso (cómo trabajamos) ---------- */
.process {
  position: relative;
  background: var(--sea);
  color: var(--sea-foreground);
  padding: 96px 0;
  overflow: hidden;
}

.process__deco {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 144px;
  height: 144px;
  opacity: 0.1;
}

.process__inner {
  position: relative;
  margin-inline: auto;
  display: grid;
  gap: 48px;
  max-width: 80rem;
  padding-inline: 20px;
  grid-template-columns: 1fr;
  align-items: center;
}

.process__kicker {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--sea-highlight);
}

.process__title {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sea-foreground);
}

.process__text {
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 2;
  color: rgba(239, 249, 251, 0.75);
}

.process__note {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
  border-left: 2px solid var(--sea-highlight);
  padding-left: 20px;
}

.process__note svg,
.process__note .icon {
  width: 32px;
  height: 32px;
  color: var(--sea-highlight);
}

.process__note p {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--sea-foreground);
}

/* ---------- Contacto ---------- */
.contact {
  padding: 96px 0;
}

.contact__inner {
  position: relative;
  overflow: hidden;
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 20px;
  border-top: 1px solid rgba(64, 50, 143, 0.2);
  border-bottom: 1px solid rgba(64, 50, 143, 0.2);
  padding-block: 64px;
}

.contact__deco {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(64, 50, 143, 0.15);
  top: 50%;
  transform: translateY(-50%);
}

.contact__deco--1 {
  right: -40px;
  width: 192px;
  height: 192px;
}

.contact__deco--2 {
  right: 28px;
  width: 128px;
  height: 128px;
  border-color: rgba(64, 50, 143, 0.1);
}

.contact__grid {
  position: relative;
  display: grid;
  gap: 48px;
  grid-template-columns: 1fr;
  align-items: start;
}

.contact__title {
  margin-top: 16px;
}

.contact__text {
  margin-top: 24px;
  max-width: 36rem;
  color: var(--muted-foreground);
}

.contact-form {
  display: grid;
  gap: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 24px;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.08);
}

.field {
  display: grid;
  gap: 8px;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
}

.field__optional {
  font-weight: 400;
  color: var(--muted-foreground);
}

.field input,
.field textarea {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--input);
  border-radius: calc(var(--radius) - 2px);
  padding: 0.65rem 0.9rem;
  font-size: 0.875rem;
  color: var(--foreground);
}

.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted-foreground);
}

.field input:focus,
.field textarea:focus {
  border-color: var(--ring);
  outline: 2px solid rgba(64, 50, 143, 0.3);
  outline-offset: 1px;
}

.field textarea {
  resize: none;
}

.field-row {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

.btn--submit {
  height: 52px;
  padding-inline: 32px;
  font-size: 1rem;
  margin-top: 4px;
}

.contact-form__status {
  font-size: 0.875rem;
  font-weight: 600;
  min-height: 1.25em;
}

.contact-form__status.is-success {
  color: #16828a;
}

.contact-form__status.is-error {
  color: #b04c45;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid rgba(64, 50, 143, 0.25);
  background: var(--primary);
  color: var(--primary-foreground);
  padding: 48px 0 0;
}

/* "Volver arriba": en el cuerpo de la página, 10px sobre la línea divisora */
.footer__back {
  display: flex;
  justify-content: center;
  padding-inline: 20px;
  margin-bottom: 10px;
}

.footer__link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 2px;
}

.footer__link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: 0;
  transition: transform 0.25s;
}

.footer__link:hover::after {
  transform: scaleX(1);
}

.footer__inner {
  margin-inline: auto;
  display: grid;
  max-width: 80rem;
  gap: 40px;
  padding-inline: 20px;
  grid-template-columns: 1fr 1fr auto;
  align-items: start;
}

.footer__col {
  display: flex;
  flex-direction: column;
}

.footer__title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-foreground);
}

.footer__contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(247, 246, 252, 0.85);
  width: fit-content;
}

.footer__contact:hover {
  color: var(--sea-highlight);
}

.footer__contact-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: rgba(247, 246, 252, 0.85);
}

.footer__contact:hover .footer__contact-icon {
  color: var(--sea-highlight);
}

.footer__whatsapp-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(247, 246, 252, 0.85);
  width: fit-content;
}

.footer__whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  transition: transform 0.3s;
}

.footer__whatsapp:hover {
  transform: scale(1.08);
}

.footer__whatsapp svg {
  width: 16px;
  height: 16px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(247, 246, 252, 0.85);
  transition: color 0.25s;
}

.footer__links a:hover {
  color: var(--sea-highlight);
}

.footer__col--logo {
  align-items: flex-end;
  justify-content: flex-start;
}

.footer__col--logo img {
  width: 135px;
  height: 135px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0.375rem;
  background: rgba(251, 252, 254, 0.95);
  padding: 8px;
  box-shadow: 0 8px 24px rgba(31, 33, 56, 0.18);
}

.footer__text {
  text-align: center;
  font-size: 0.99rem;
  line-height: 1.7;
  color: rgba(247, 246, 252, 0.85);
  margin-top: 48px;
  padding-inline: 20px;
}

.footer__bottom {
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 20px;
  margin-top: 24px;
  padding-top: 20px;
  padding-bottom: 20px;
  border-top: 1px solid rgba(247, 246, 252, 0.25);
  text-align: center;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--primary-foreground);
}

@media (max-width: 768px) {
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__col--logo {
    align-items: flex-start;
    order: -1;
  }
}

/* =========================================================
   Galería de imágenes (carrusel + lightbox)
   Estilo "del mar a tus manos": fondo oscuro, textura y adornos
   ========================================================= */
.gallery-carousel {
  position: relative;
  padding: 96px 20px;
  background: #ffffff;
  color: var(--foreground);
  text-align: left;
  overflow: hidden;
}

.gallery-carousel__head {
  position: relative;
  z-index: 1;
  margin-inline: auto;
  max-width: 80rem;
  padding-inline: 20px;
  display: grid;
  gap: 16px;
  align-items: start;
  margin-bottom: 40px;
}

.gallery-carousel .section-kicker {
  color: var(--primary);
}

.gallery-carousel .section-title {
  color: var(--foreground);
}

.gallery-carousel__note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  border-left: 2px solid var(--teal);
  padding-left: 18px;
}

.gallery-carousel__note svg,
.gallery-carousel__note .icon {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  color: var(--teal);
}

.gallery-carousel__note p {
  font-size: 0.95rem;
  color: var(--muted-foreground);
}

.carousel-container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 60px;
  box-sizing: border-box;
}

.carousel-track-container {
  overflow: hidden;
  border-radius: 18px;
}

.carousel-track {
  display: flex;
  counter-reset: galeria;
  transition: transform 0.5s ease;
  will-change: transform;
}

.carousel-item {
  position: relative;
  counter-increment: galeria;
  flex: 0 0 calc(25% - 10px);
  margin-right: 10px;
  box-sizing: border-box;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(22, 130, 138, 0.14);
  box-shadow: 0 4px 12px rgba(4, 16, 20, 0.16);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.carousel-item:hover {
  transform: translateY(-6px);
  border-color: var(--sea-highlight);
  box-shadow: 0 10px 22px rgba(4, 16, 20, 0.24), 0 0 0 1px rgba(130, 211, 203, 0.28);
}

/* Numeración decorativa tipo etiqueta, arriba a la izquierda de cada foto */
.carousel-item::before {
  content: counter(galeria, decimal-leading-zero);
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--sea-foreground);
  background: rgba(18, 63, 74, 0.6);
  border: 1px solid rgba(130, 211, 203, 0.4);
  backdrop-filter: blur(4px);
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
}

/* Degradado inferior muy sutil, para dar un poco de profundidad */
.carousel-item::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 72%, rgba(8, 26, 31, 0.22) 100%);
  pointer-events: none;
}

.carousel-item img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 210px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
  cursor: pointer;
}

.carousel-item:hover img {
  transform: scale(1.08);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(18, 63, 74, 0.12);
  border: 1px solid rgba(22, 130, 138, 0.35);
  color: var(--teal);
  backdrop-filter: blur(6px);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  cursor: pointer;
  border-radius: 50%;
  z-index: 2;
  transition: background 0.3s, color 0.3s, transform 0.3s, border-color 0.3s;
}

.carousel-btn:hover {
  background: var(--teal);
  color: #ffffff;
  border-color: var(--teal);
  transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

/* Responsive carrusel */
@media (max-width: 768px) {
  .carousel-item {
    min-width: 50%;
  }
}

@media (max-width: 480px) {
  .carousel-item {
    min-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-btn {
    font-size: 1.3rem;
    width: 40px;
    height: 40px;
  }

  .carousel-btn.prev { left: 0; }
  .carousel-btn.next { right: 0; }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.lightbox.show {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: 90%;
  max-height: 80%;
  display: block;
  margin: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.lightbox .close {
  position: absolute;
  top: 5px;
  right: 35px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s ease;
}

.lightbox .close:hover {
  color: #babbb7;
}

.lightbox-btn.prev,
.lightbox-btn.next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  font-size: 4rem;
  font-weight: bold;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  z-index: 10000;
  transition: background 0.3s, transform 0.3s;
}

.lightbox-btn.prev { left: 50px; }
.lightbox-btn.next { right: 50px; }

.lightbox-btn.prev:hover,
.lightbox-btn.next:hover {
  background: #181818;
  color: #babbb7;
  transform: translateY(-50%) scale(1.15);
  cursor: pointer;
}

/* =========================================================
   Pestaña lateral de WhatsApp (réplica de econit, 1 pestaña)
   ========================================================= */
#whatsapp-container {
  position: fixed;
  top: 74%;
  right: 0;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.whatsapp-tab {
  background-color: #26e851;
  padding: 5px 10px;
  border-radius: 10px 0 0 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
  text-align: center;
  min-width: 60px;
  position: relative;
}

.whatsapp-tab:hover {
  background-color: #26e851;
  transform: translateX(-10px);
}

.whatsapp-icon {
  display: inline-block;
  width: 26px;
  height: 26px;
  background-color: #ffffff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 0 1-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 0 1-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 0 1 2.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0 0 12.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 0 0 5.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893a11.821 11.821 0 0 0-3.48-8.413Z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.3s ease;
}

.whatsapp-label {
  display: block;
  font-size: 12px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 4px;
  transition: transform 0.3s ease;
}

.whatsapp-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.whatsapp-link::after {
  content: attr(data-tooltip);
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #ffffff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.whatsapp-link:hover::after {
  opacity: 1;
}

/* Responsive móviles */
@media (max-width: 768px) {
  #whatsapp-container {
    top: 25%;
    transform: translateY(-50%);
  }

  .whatsapp-icon {
    width: 22px;
    height: 22px;
  }

  .whatsapp-label {
    font-size: 10px;
  }

  .whatsapp-tab:hover {
    transform: none;
  }
}

/* Responsive tablets */
@media (min-width: 769px) and (max-width: 1024px) {
  #whatsapp-container {
    top: 35%;
    bottom: auto;
    right: 0;
    transform: translateY(-50%);
  }

  .whatsapp-icon {
    width: 24px;
    height: 24px;
  }

  .whatsapp-label {
    font-size: 11px;
  }

  .whatsapp-tab:hover {
    transform: translateX(-10px);
  }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (min-width: 40rem) {
  .features__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contact-form {
    padding: 32px;
  }

  .field-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 48rem) {
  .header__nav {
    display: flex;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__menu-btn {
    display: none;
  }

  .section-title {
    font-size: 3.75rem;
  }
}

/* ---------- Móviles: ajustes puntuales del hero ---------- */
@media (max-width: 768px) {
  .hero__title {
    font-size: 2.35rem;
    line-height: 1.02;
  }

  .hero__actions .btn {
    height: 48px;
    padding-inline: 22px;
    font-size: 0.875rem;
  }
}

@media (max-width: 400px) {
  .hero__title {
    font-size: 2rem;
  }

  .hero__actions .btn {
    height: 45px;
    padding-inline: 18px;
    font-size: 0.8125rem;
  }
}

@media (min-width: 64rem) {
  .header__inner {
    padding-inline: 48px;
  }

  .hero {
    min-height: 820px;
  }

  .hero__content {
    min-height: 820px;
    padding-inline: 48px;
  }

  .hero__stats {
    display: grid;
  }

  .features__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature {
    border-bottom: 0;
    border-right: 1px solid rgba(247, 246, 252, 0.15);
  }

  .feature:last-child {
    border-right: 0;
  }

  .catalog {
    padding: 128px 0;
  }

  .catalog__head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .catalog__filters {
    grid-column: 1 / -1;
  }

  .catalog__head,
  .catalog__grid {
    padding-inline: 48px;
  }

  .catalog__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .process {
    padding: 128px 0;
  }

  .process__inner {
    grid-template-columns: 0.8fr 1.2fr;
  }

  .process__inner,
  .contact__inner,
  .footer__inner {
    padding-inline: 48px;
  }

  .process__title {
    font-size: 3rem;
  }

  .contact {
    padding: 128px 0;
  }

  .contact__inner {
    padding-block: 80px;
  }

  .contact__grid {
    grid-template-columns: 1.2fr 1fr;
  }
}