:root {
  --azul: #153c52;
  --verde: #3f6f45;
  --dorado: #c4a167;
  --fondo: #f4efe5;
  --texto: #1f2529;
  --blanco: #ffffff;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Manrope, sans-serif;
  color: var(--texto);
  background: radial-gradient(circle at top right, #fff8eb 0%, var(--fondo) 55%, #e8e4dc 100%);
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.15;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.wrapper {
  width: min(1100px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  min-height: 84vh;
  color: var(--blanco);
  background: linear-gradient(120deg, rgba(9, 31, 43, 0.9), rgba(26, 74, 54, 0.82)), url("../img/fondo.webp") center/cover no-repeat;
}

.internal-header {
  background: var(--azul);
  color: var(--blanco);
}

.internal-nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 0;
  flex-wrap: wrap;
}

.internal-links {
  margin-left: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.internal-links a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}

.brand img {
  width: 150px;
  height: auto;
  max-height: 42px;
  object-fit: contain;
}

.menu {
  margin-left: auto;
  display: flex;
  gap: 1rem;
}

.menu a {
  color: inherit;
  text-decoration: none;
  font-weight: 500;
}

.menu-toggle {
  display: none;
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--dorado), #e0bf8d);
  color: #23180c;
  padding: 0.7rem 1.1rem;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-wa {
  margin-left: 0.8rem;
  background: #2fb16a;
  color: #112518;
}

.hero-content {
  padding: 10vh 0;
  max-width: 720px;
}

.overline {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.4rem;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.1rem;
}

.section {
  padding: 4.4rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(21, 60, 82, 0.08), rgba(21, 60, 82, 0.02));
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.card {
  background: var(--blanco);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 12px 26px rgba(16, 28, 35, 0.12);
}

.card img {
  width: 100%;
  max-height: 160px;
  object-fit: contain;
  border-radius: 10px;
  background: #f8f4ed;
}

.table-wrap {
  overflow-x: auto;
  background: var(--blanco);
  border-radius: 14px;
  box-shadow: 0 12px 26px rgba(16, 28, 35, 0.12);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.8rem;
  border-bottom: 1px solid #e8decd;
}

.contact-form {
  display: grid;
  gap: 0.7rem;
  max-width: 640px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #d6cab8;
  border-radius: 10px;
  font: inherit;
  padding: 0.65rem 0.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  font-weight: 600;
}

.form-status.ok {
  color: #1f6e3f;
}

.form-status.error {
  color: #9b2c2c;
}

.gallery-section {
  margin-top: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.gallery-card {
  margin: 0;
  background: var(--blanco);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(16, 28, 35, 0.12);
}

.gallery-open {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
}

.gallery-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-card figcaption {
  font-size: 0.85rem;
  padding: 0.55rem 0.65rem;
  color: #42515a;
}

.gallery-lock-scroll {
  overflow: hidden;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 18, 26, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 2000;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-content {
  width: min(980px, 100%);
}

.gallery-lightbox-media {
  position: relative;
  touch-action: pan-y;
}

.gallery-lightbox-close {
  margin-left: auto;
  display: inline-flex;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5f7f8;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.gallery-lightbox-image {
  width: 100%;
  max-height: 76vh;
  object-fit: contain;
  border-radius: 10px;
  margin-top: 0.6rem;
  background: #0b1115;
}

.gallery-lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(7, 13, 18, 0.55);
  color: #f5f7f8;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.gallery-lightbox-nav.prev {
  left: 0.6rem;
}

.gallery-lightbox-nav.next {
  right: 0.6rem;
}

.gallery-lightbox-caption {
  margin: 0.65rem 0 0;
  color: #d7e2e8;
}

.gallery-lightbox-counter {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: #a8bac5;
}

.footer {
  background: var(--azul);
  color: #dce8ef;
  padding: 1.5rem 0;
}

@media (max-width: 960px) {
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 1rem;
    right: 1rem;
    background: rgba(10, 32, 45, 0.95);
    border-radius: 14px;
    padding: 0.8rem;
    flex-direction: column;
  }

  .menu.open {
    display: flex;
  }

  .btn-wa {
    display: none;
  }

  .internal-links {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-lightbox-nav {
    width: 36px;
    height: 36px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}