:root {
  --verde-oscuro:  #2D5A27;
  --verde-medio:   #3D6E32;
  --verde-oliva:   #5C7A2A;
  --crema:         #F5F5DC;
  --crema-oscuro:  #E8E8C4;
  --texto:         #2A3E1A;
  --texto-suave:   #5A6E4A;
  --sombra:        rgba(45,90,39,0.14);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Jost', sans-serif;
  background: var(--crema);
  color: var(--texto);
  overflow: hidden;
}

.split-layout {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.left-panel {
  width: 42%;
  position: relative;
  overflow: hidden;
  background: var(--verde-oscuro);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 36px;
}

.carousel {
  position: absolute;
  inset: 0;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 0.8s cubic-bezier(0.77,0,0.18,1);
  will-change: transform;
}

.carousel-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.left-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 55%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
  z-index: 1;
}

.btn-ver-mas {
  position: relative;
  z-index: 2;
  background: rgba(255,255,255,0.14);
  border: 1.5px solid rgba(255,255,255,0.55);
  color: white;
  font-family: 'Jost', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  padding: 10px 28px;
  border-radius: 40px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background 0.3s;
}
.btn-ver-mas:hover {
  background: rgba(255,255,255,0.28);
}

.carousel-dots {
  position: absolute;
  bottom: 76px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 7px;
}
.cdot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none; cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}
.cdot.active {
  background: white;
  transform: scale(1.35);
}

.right-panel {
  width: 58%;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 64px;
  background: var(--crema);
}

.form-wrapper {
  width: 100%;
  max-width: 500px;
}

.form-logo {
  width: 190px;
  display: block;
  margin: 0 auto 28px;
}

.form-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 2.6vw, 2.4rem);
  font-weight: 600;
  color: var(--verde-oscuro);
  text-align: center;
  margin-bottom: 10px;
}

.form-subtitle {
  font-size: 0.95rem;
  color: var(--texto-suave);
  text-align: center;
  line-height: 1.7;
  margin-bottom: 28px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #d4d4a8;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  background: white;
  color: var(--texto);
  outline: none;
  transition: border-color 0.25s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--verde-medio);
}
.contact-form textarea {
  resize: none;
}

.phone-row {
  display: flex;
}
.prefix {
  background: var(--crema-oscuro);
  border: 1.5px solid #d4d4a8;
  border-right: none;
  border-radius: 6px 0 0 6px;
  padding: 12px 13px;
  font-size: 0.92rem;
  color: var(--texto-suave);
}
.phone-row input {
  border-radius: 0 6px 6px 0;
}

.btn-submit {
  background: var(--verde-oscuro);
  color: white;
  border: none;
  padding: 14px;
  font-family: 'Jost', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 2px;
}
.btn-submit:hover { background: var(--verde-medio); }

.form-success {
  display: none;
  text-align: center;
  color: var(--verde-medio);
  font-size: 0.9rem;
}

.social-row {
  margin-top: 20px;
  text-align: center;
}
.ig-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--verde-oscuro);
  text-decoration: none;
  font-size: 0.88rem;
  border: 1.5px solid var(--verde-oliva);
  border-radius: 40px;
  padding: 8px 18px;
  transition: background 0.25s;
}
.ig-link:hover { background: var(--crema-oscuro); }

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  z-index: 100;
  display: none;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 24px 16px 40px;
}
.gallery-modal.open {
  display: flex;
}

.gallery-modal-inner {
  width: 100%;
  max-width: 960px;
  position: relative;
}

.gallery-close {
  position: sticky;
  top: 0;
  float: right;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  width: 38px; height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
  margin-bottom: 16px;
  z-index: 10;
}
.gallery-close:hover { background: rgba(255,255,255,0.25); }

.gallery-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  color: white;
  text-align: center;
  margin-bottom: 20px;
  clear: both;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-grid img {
  width: 100%; aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.gallery-grid img:hover {
  opacity: 0.88;
  transform: scale(1.02);
}

.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.94);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox #lb-img {
  max-width: 88vw;
  max-height: 88vh;
  border-radius: 6px;
  object-fit: contain;
}

.lb-close {
  position: absolute; top: 18px; right: 24px;
  color: white; font-size: 1.6rem;
  background: none; border: none; cursor: pointer; opacity: 0.75;
  transition: opacity 0.2s;
}
.lb-close:hover { opacity: 1; }

.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.3);
  color: white; width: 44px; height: 44px;
  border-radius: 50%; font-size: 26px;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.lb-nav:hover { background: rgba(255,255,255,0.25); }
.lb-nav.prev { left: 18px; }
.lb-nav.next { right: 18px; }

@media (max-width: 700px) {
  html, body { overflow: hidden; }

  .split-layout {
    flex-direction: column;
    height: 100dvh;
  }

  .left-panel {
    width: 100%;
    height: 42dvh;
    flex-shrink: 0;
    padding-bottom: 28px;
  }

  .right-panel {
    width: 100%;
    flex: 1;
    overflow-y: auto;
    padding: 20px 24px 24px;
    align-items: flex-start;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .form-logo   { width: 110px; margin-bottom: 12px; }
  .form-title  { font-size: 1.3rem; margin-bottom: 6px; }
  .form-subtitle { font-size: 0.82rem; margin-bottom: 16px; }

  .contact-form { gap: 9px; }
  .contact-form input,
  .contact-form textarea { padding: 10px 14px; font-size: 0.88rem; }

  .btn-submit { padding: 12px; }

  .social-row { margin-top: 14px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }

  .carousel-dots { bottom: 62px; }
}