/* =========================
   PALETA CORPORATIVA
   ========================= */

:root {
  --green-middle: #568864;        /* Middle Green - RGB(86, 136, 100) */
  --green-jet-stream: #bfd6bd;    /* Jet Stream - RGB(191, 214, 189) */
  --gray-bright: #efefef;         /* Bright Gray - RGB(239, 239, 239) */
  --green-graphite: #32494b;      /* Graphite Black Green - RGB(50, 73, 75) */

  --bg-body: #f7f8f7;
  --white: #ffffff;

  --font-heading: "Clash Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Cannon", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius-soft: 16px;
  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.08);
  --transition-base: 0.25s ease;
}

/* =========================
   RESET BÁSICO
   ========================= */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--green-graphite);
  background-color: var(--bg-body);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

button,
input,
textarea {
  font-family: inherit;
}

/* =========================
   LAYOUT GENERAL
   ========================= */

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 7rem 0;
}

.section--light {
  background-color: var(--white);
}

.section__head {
  margin-bottom: 3rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section__head--center {
  text-align: center;
}

.section__logo {
  width: 50px;
  height: 50px;
  margin-bottom: 1.2rem;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.section__head:hover .section__logo {
  opacity: 1;
}

.section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  margin: 0 0 0.75rem;
  letter-spacing: 0.02em;
}

.section__subtitle {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(50, 73, 75, 0.8);
}

.section__subtitle--mobile-only {
  display: none;
}

/* =========================
   HEADER
   ========================= */

.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(191, 214, 189, 0.35);
  transition: background-color var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
}

.header--scrolled {
  background-color: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 2rem;
}

.header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.header__logo {
  height: 40px;
  width: auto;
}

.header__brand-text {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-graphite);
}

/* NAV */

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.92rem;
}

.nav__link {
  position: relative;
  padding-bottom: 0.15rem;
  font-weight: 500;
  transition: color var(--transition-base);
}

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green-middle), var(--green-jet-stream));
  transition: width var(--transition-base);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link--cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(86, 136, 100, 0.5);
  background-color: rgba(191, 214, 189, 0.4);
  transition:
    background-color var(--transition-base),
    border-color var(--transition-base),
    color var(--transition-base);
}

.nav__link--cta:hover {
  background-color: var(--green-middle);
  color: #ffffff;
  border-color: var(--green-middle);
}

/* =========================
   HERO
   ========================= */

.hero {
  position: relative;
  height: 90vh;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1);
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.40);
}

.hero__content {
  position: relative;
  max-width: 560px;
  padding-top: 5rem; /* espacio por header fijo */
  padding-bottom: 5rem;
}

.hero__eyebrow {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 0.75rem;
  opacity: 0.85;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.2rem, 3.1vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
}

.hero__subtitle {
  margin: 0 0 1.75rem;
  font-size: 0.98rem;
  line-height: 1.8;
  max-width: 32rem;
  opacity: 0.9;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* =========================
   BOTONES
   ========================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.6rem;
  font-size: 0.92rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  outline: none;
  transition:
    background-color var(--transition-base),
    color var(--transition-base),
    box-shadow var(--transition-base),
    transform var(--transition-base),
    border-color var(--transition-base);
}

.btn--primary {
  background: linear-gradient(135deg, var(--green-middle), var(--green-graphite));
  color: #ffffff;
  box-shadow: 0 14px 35px rgba(50, 73, 75, 0.35);
  border: 2px solid transparent;
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(50, 73, 75, 0.5);
  color: #ffffff;
}

.btn--ghost {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid var(--white);
  font-weight: 600;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.btn--ghost:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
  color: var(--white);
}

.btn--full {
  width: 100%;
}

/* =========================
   CARDS
   ========================= */

.cards {
  display: grid;
  gap: 2.5rem;
}

.cards--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background-color: var(--gray-bright);
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  min-height: 400px;
  aspect-ratio: 1 / 1;
}

.card__image-wrapper {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--transition-base);
  pointer-events: none;
  width: 100%;
  height: 100%;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-base), opacity var(--transition-base);
  opacity: 0;
}

.card__body {
  padding: 1.5rem 1.75rem;
  transition: opacity var(--transition-base);
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(86, 136, 100, 0.15);
  border-radius: 14px;
  color: var(--green-middle);
  margin-bottom: 1.2rem;
  transition: opacity var(--transition-base);
  flex-shrink: 0;
}

.card__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.card__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(50, 73, 75, 0.86);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

.card:hover .card__body {
  opacity: 0;
}

.card:hover .card__image-wrapper {
  opacity: 1;
}

.card:hover .card__image {
  opacity: 1;
}

/* Clase para activación táctil en mobile */
.card--active {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.12);
}

.card--active .card__body {
  opacity: 0;
}

.card--active .card__image-wrapper {
  opacity: 1;
}

.card--active .card__image {
  opacity: 1;
}

/* =========================
   EXPERIENCIA / GALERÍA
   ========================= */

.experiencia {
  background-color: var(--white);
  padding: 7rem 0;
}

.experiencia__wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: stretch;
}

.experiencia__steps {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.steps {
  display: grid;
  gap: 1.5rem;
}

.steps--vertical {
  grid-template-columns: minmax(0, 1fr);
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: flex-start;
}

.step--accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
  grid-template-columns: unset;
}

.step__trigger {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem 1.5rem;
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 1rem;
  border-radius: 12px;
  transition: all var(--transition-base);
  background-color: var(--gray-bright);
  width: 100%;
}

.step__trigger:hover {
  background-color: rgba(86, 136, 100, 0.08);
}

.step--accordion.is-open .step__trigger {
  background-color: rgba(86, 136, 100, 0.12);
}

.step__number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.3rem;
  background-color: var(--gray-bright);
  color: var(--green-graphite);
  flex-shrink: 0;
  border: 2px solid var(--green-middle);
}

.step__number--soft {
  background: rgba(191, 214, 189, 0.5);
  color: var(--green-graphite);
}

.step__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--green-graphite);
  transition: color var(--transition-base);
}

.step__trigger:hover .step__title {
  color: var(--green-middle);
}

.step__content {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base), padding var(--transition-base);
  padding: 0 1rem 0 calc(50px + 2.5rem);
}

.step--accordion.is-open .step__content {
  max-height: 500px;
  padding: 1rem 1rem 1rem calc(50px + 2.5rem);
}

.step__text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.7;
  color: rgba(50, 73, 75, 0.86);
}

.step--card {
  background-color: var(--gray-bright);
  border-radius: var(--radius-soft);
  padding: 1.3rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

/* Gallery */
.experiencia__gallery {
  position: relative;
  height: 100%;
  min-height: 500px;
}

.gallery-container {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-soft);
  overflow: hidden;
  background-color: var(--gray-bright);
  box-shadow: var(--shadow-soft);
}

.gallery-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--transition-base);
  display: flex;
  align-items: flex-end;
}

.gallery-slide.active {
  opacity: 1;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-label {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background-color: rgba(50, 73, 75, 0.7);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  backdrop-filter: blur(10px);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.gallery-nav:hover {
  background: linear-gradient(135deg, #3a6e4d 0%, #2d5a3d 100%);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.gallery-nav--prev {
  left: 1.5rem;
}

.gallery-nav--next {
  right: 1.5rem;
}

.gallery-nav svg {
  width: 20px;
  height: 20px;
}

.gallery-dots {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 10;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(50, 73, 75, 0.3);
  border: none;
  cursor: pointer;
  transition: background-color var(--transition-base);
}

.dot.active {
  background-color: var(--green-middle);
  width: 24px;
  border-radius: 4px;
}

/* =========================
   ICON GRID (CARACTERÍSTICAS)
   ========================= */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

.icon-item {
  text-align: center;
  font-size: 0.94rem;
  line-height: 1.6;
}

.caracteristicas-carousel {
  display: none;
}

.icon-item__circle {
  width: 68px;
  height: 68px;
  border-radius: 999px;
  margin: 0 auto 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 20%, rgba(191, 214, 189, 0.8), rgba(86, 136, 100, 0.65));
  color: var(--white);
}

.icon-item__circle img {
  width: 32px;
  height: 32px;
}

.icon-item__circle svg {
  width: 32px;
  height: 32px;
  color: var(--white);
  stroke: currentColor;
}

/* =========================
   ACCESO / CÓMO ACCEDER
   ========================= */

/* ACCESO / CÓMO ACCEDER
   ========================= */

.acceso__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.acceso__step {
  background-color: var(--white);
  border: 1px solid var(--green-jet-stream);
  border-radius: var(--radius-soft);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.acceso__step:hover {
  border-color: var(--green-middle);
  box-shadow: 0 8px 24px rgba(86, 136, 100, 0.12);
  transform: translateY(-2px);
}

.acceso__step-number {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--green-middle);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  flex-shrink: 0;
}

.acceso__step-content {
  display: flex;
  flex-direction: column;
}

.acceso__step-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-graphite);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.acceso__step-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(50, 73, 75, 0.8);
  margin: 0 0 1rem;
}

.acceso__step-highlight {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--green-middle);
  font-weight: 500;
  margin: 0;
  padding: 0.75rem;
  background-color: rgba(86, 136, 100, 0.08);
  border-radius: 8px;
}

/* =========================
   INVERSIÓN
   ========================= */

/* INVERSIÓN SECTION */
.inversion {
  background: var(--white);
  padding: 7rem 0 !important;
  color: var(--green-graphite);
  position: relative;
  overflow: hidden;
}

.inversion::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(191, 214, 189, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.inversion::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(86, 136, 100, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.inversion .container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--section-padding-horizontal);
}

.inversion .section__title {
  color: var(--green-graphite);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.inversion .section__subtitle {
  color: var(--green-graphite);
  opacity: 0.75;
  font-size: 1.125rem;
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

.inv-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  margin: 3rem auto 2rem;
  max-width: 1100px;
}

.inv-card {
  position: relative;
  background: linear-gradient(145deg, #5d8a6e 0%, var(--green-middle) 50%, #4d7a5e 100%);
  border: none;
  border-radius: 16px;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 
    0 4px 16px rgba(86, 136, 100, 0.15),
    0 1px 3px rgba(0, 0, 0, 0.05);
  min-height: 220px;
}

.inv-card:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.inv-card:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
}

.inv-card:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / 3;
  min-height: auto;
}

.inv-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.06) 0%, transparent 65%);
  border-radius: 0 16px 0 100%;
}

.inv-card--interactive {
  cursor: pointer;
}

.inv-card__icon {
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 1.25rem;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.inv-card__icon svg {
  width: 24px;
  height: 24px;
}

.inv-card__title {
  font-family: "Clash Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 0.875rem;
  letter-spacing: -0.01em;
  line-height: 1.2;
  position: relative;
  z-index: 2;
}

.inv-card__value {
  font-size: 1.15rem;
  color: var(--green-graphite);
  font-weight: 500;
  margin-bottom: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.75rem 1.125rem;
  border-radius: 10px;
  text-align: center;
  box-shadow: 
    0 2px 8px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  position: relative;
  z-index: 2;
  letter-spacing: -0.005em;
}

.inv-card__image-wrapper {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-soft);
  overflow: hidden;
  opacity: 0;
  transition: opacity var(--transition-base);
}

.inv-card__image-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
  pointer-events: none;
}

.inv-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.inv-card--interactive:hover {
  transform: translateY(-6px) scale(1.01);
  box-shadow: 
    0 12px 32px rgba(86, 136, 100, 0.25),
    0 4px 12px rgba(0, 0, 0, 0.08);
}

.inv-card--interactive:hover .inv-card__icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1) rotate(5deg);
}

.inv-card--interactive:hover .inv-card__image-wrapper {
  opacity: 0.5;
}

.inv-card__financing {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  margin-top: 1rem;
  position: relative;
  z-index: 2;
}

.financing-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: center;
  padding: 0.625rem 0.875rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  border-left: 3px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(8px);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 3px solid rgba(255, 255, 255, 0.45);
}

.financing-step:hover {
  background: rgba(255, 255, 255, 0.18);
  border-left-color: var(--white);
  transform: translateX(4px);
}

.step-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.step-value {
  font-size: 0.9rem;
  color: var(--white);
  font-weight: 500;
  text-align: right;
  letter-spacing: -0.005em;
}

.inversion__cta {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
}

.inversion__layout {
  margin-top: 3rem;
  border-radius: var(--radius-soft);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.inversion__layout-header {
  background: linear-gradient(135deg, rgba(86, 136, 100, 0.1) 0%, rgba(86, 136, 100, 0.05) 100%);
  padding: 2rem 1.5rem;
  border-bottom: 2px solid var(--green-middle);
  text-align: center;
}

.inversion__layout-title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--green-middle);
  margin: 0;
  letter-spacing: 0.02em;
}

.inversion__layout-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--white);
  border-bottom: 1px solid rgba(86, 136, 100, 0.1);
}

.inversion__layout-text {
  font-size: 0.95rem;
  color: var(--green-graphite);
  margin: 0;
  font-weight: 500;
  line-height: 1.6;
}

.inversion__layout-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--green-middle);
  color: var(--white);
  text-decoration: none;
  border: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  flex-shrink: 0;
  cursor: pointer;
}

.inversion__layout-arrow:hover {
  background-color: var(--green-graphite);
  transform: translateX(4px) scale(1.1);
  box-shadow: 0 4px 16px rgba(86, 136, 100, 0.3);
}

.inversion__layout-arrow svg {
  width: 20px;
  height: 20px;
}

.inversion__layout-container {
  position: relative;
}

.inversion__layout-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-soft);
  cursor: pointer;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.inversion__layout-image:hover {
  transform: scale(1.02);
  filter: brightness(1.05);
}

.inversion__layout-zoom {
  display: none;
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--green-middle);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(86, 136, 100, 0.3);
  transition: all 0.3s ease;
  z-index: 10;
}

.inversion__layout-zoom:hover {
  background-color: var(--green-graphite);
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(86, 136, 100, 0.4);
}

/* MODAL LAYOUT */
.layout-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.layout-modal.active {
  display: flex;
}

.layout-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.layout-modal__content {
  position: relative;
  z-index: 1001;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.layout-modal__image {
  width: 100%;
  height: auto;
  max-width: 600px;
  max-height: 95vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.layout-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 1002;
}

.layout-modal__close:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.1);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* =========================
   MODAL LOTES
   ========================= */

.lotes-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.lotes-modal.active {
  display: flex;
}

.lotes-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.lotes-modal__container {
  position: relative;
  z-index: 2001;
  width: 90vw;
  max-width: 1200px;
  max-height: 90vh;
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.lotes-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--green-graphite);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 2002;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.lotes-modal__close:hover {
  background-color: var(--white);
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.lotes-modal__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  max-height: 90vh;
}

/* Lado izquierdo - Info */
.lotes-modal__info {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
  background: linear-gradient(135deg, rgba(86, 136, 100, 0.02) 0%, rgba(255, 255, 255, 1) 100%);
}

.lotes-modal__pricing {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(86, 136, 100, 0.1) 0%, rgba(86, 136, 100, 0.05) 100%);
  border-radius: 12px;
  border: 2px solid var(--green-middle);
}

.lotes-modal__price-normal {
  font-size: 0.95rem;
  color: rgba(50, 73, 75, 0.7);
  margin: 0;
  font-weight: 500;
}

.lotes-modal__price-normal span {
  text-decoration: line-through;
  font-weight: 600;
  color: rgba(50, 73, 75, 0.5);
}

.lotes-modal__price-promo {
  text-align: center;
}

.lotes-modal__price-promo h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--green-middle);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: inline-block;
}

.lotes-modal__price-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--green-graphite);
  background-color: #F9E79F;
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  display: inline-block;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.lotes-modal__description {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lotes-modal__description h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--green-middle);
  margin: 0;
  line-height: 1.4;
}

.lotes-modal__description p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: rgba(50, 73, 75, 0.85);
  margin: 0;
}

.lotes-modal__buttons {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.8rem;
  margin-top: auto;
}

.lotes-modal__buttons-row {
  display: contents;
}

.lotes-modal__btn {
  padding: 1rem 0.8rem;
  background: var(--white);
  color: var(--green-middle);
  border: 2px solid var(--green-middle);
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  line-height: 1.2;
}

.lotes-modal__btn-label {
  display: block;
  font-weight: 700;
  font-size: 0.95rem;
}

.lotes-modal__btn-size {
  display: block;
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.8;
}

.lotes-modal__btn:hover {
  background: var(--green-middle);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(86, 136, 100, 0.3);
}

.lotes-modal__btn:hover .lotes-modal__btn-size {
  opacity: 1;
}

/* Calculadora de cuotas - Mejorada e interactiva */
.lotes-modal__calculator {
  padding: 2rem;
  max-height: 600px;
  overflow-y: auto;
}

.lotes-modal__selection {
  transition: opacity 0.3s ease;
}

.calculator__back {
  background: rgba(255, 255, 255, 0.95);
  border: none;
  color: var(--green-middle);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding: 0.7rem 1rem;
  transition: all 0.3s ease;
  position: sticky;
  top: 0;
  z-index: 100;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
}

.calculator__back:hover {
  color: var(--green-dark);
  background: var(--white);
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.calculator__back svg {
  stroke-width: 2.5;
}

.calculator__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 2px solid var(--gray-light);
  margin-bottom: 2rem;
}

.calculator__lote-badge {
  text-align: left;
}

.calculator__lote-badge h3 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green-dark);
  margin-bottom: 0.3rem;
}

.calculator__lote-badge #calculatorMetros {
  font-size: 1rem;
  color: var(--green-middle);
  font-weight: 600;
}

.calculator__price-box {
  background: linear-gradient(135deg, rgba(86, 136, 100, 0.1) 0%, rgba(86, 136, 100, 0.05) 100%);
  border: 2px solid var(--green-middle);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  text-align: center;
  min-width: 200px;
}

.calculator__price-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.3rem;
}

.calculator__price-amount {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.3rem;
}

.calculator__price-note {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
}

.calculator__payments {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.calculator__payment {
  background: var(--white);
  border: 2px solid var(--gray-light);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.calculator__payment:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(86, 136, 100, 0.15);
  border-color: var(--green-middle);
}

.calculator__payment--primary {
  border-color: #4CAF50;
}

.calculator__payment--secondary {
  border-color: #2196F3;
}

.calculator__payment--tertiary {
  border-color: #FF9800;
  flex-direction: column;
  align-items: stretch;
}

.calculator__payment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.calculator__payment-header h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green-dark);
  margin: 0;
}

.calculator__percentage {
  background: var(--green-middle);
  color: var(--white);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
}

.calculator__payment-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green-primary);
  text-align: center;
  margin-top: 0.5rem;
}

.calculator__payment-total {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green-primary);
  text-align: center;
  margin-bottom: 1rem;
}

.calculator__payment-installment {
  background: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calculator__payment-installment span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calculator__payment-installment strong {
  font-size: 1.1rem;
  color: var(--green-primary);
}

.calculator__years-selector {
  margin: 1rem 0 0.8rem;
}

.calculator__years-selector label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.6rem;
}

.calculator__years-options {
  display: flex;
  gap: 0.5rem;
}

.calculator__year-btn {
  flex: 1;
  padding: 0.6rem;
  background: var(--white);
  border: 2px solid var(--green-middle);
  color: var(--green-middle);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.calculator__year-btn:hover {
  background: rgba(86, 136, 100, 0.1);
}

.calculator__year-btn.active {
  background: var(--green-middle);
  color: var(--white);
}

.calculator__payment-installments {
  margin-top: 0.8rem;
}

.calculator__installment-option {
  background: var(--white);
  padding: 0.8rem 1rem;
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.calculator__installment-option span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.calculator__installment-option strong {
  font-size: 1.2rem;
  color: var(--green-primary);
}

/* Círculos de progreso SVG */
.calculator__payment-icon {
  flex-shrink: 0;
}

.progress-ring__bg {
  fill: none;
  stroke: #e0e0e0;
  stroke-width: 4;
}

.progress-ring__circle {
  fill: none;
  stroke: var(--green-primary);
  stroke-width: 4;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.calculator__payment--secondary .progress-ring__circle {
  stroke: #2196F3;
}

.calculator__payment--tertiary .progress-ring__circle {
  stroke: #FF9800;
}

.progress-ring__text {
  font-size: 14px;
  font-weight: 700;
  fill: var(--green-dark);
  text-anchor: middle;
  dominant-baseline: middle;
}

.calculator__payment-info {
  flex: 1;
}

.calculator__payment-info h4 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--green-dark);
  margin: 0 0 0.5rem 0;
  cursor: help;
}

.calculator__payment-amount,
.calculator__payment-total-small {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green-primary);
  margin-bottom: 0.5rem;
}

.calculator__payment-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0;
}

.calculator__payment-breakdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: linear-gradient(135deg, rgba(86, 136, 100, 0.08) 0%, rgba(86, 136, 100, 0.03) 100%);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-top: 0.5rem;
}

.breakdown-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breakdown-value {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green-primary);
}

/* Slider interactivo */
.calculator__slider-container {
  margin: 1.5rem 0;
}

.slider-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--green-dark);
  margin-bottom: 1rem;
}

.slider-label svg {
  color: var(--green-middle);
}

.slider-wrapper {
  position: relative;
  padding: 1rem 0;
}

.slider-track {
  position: relative;
  height: 8px;
  background: #e0e0e0;
  border-radius: 4px;
  overflow: visible;
}

.slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--green-primary), var(--green-middle));
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

.slider-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  background: var(--white);
  border: 4px solid var(--green-primary);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-thumb:hover {
  transform: translate(-50%, -50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(86, 136, 100, 0.3);
}

.slider-thumb-value {
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green-primary);
  color: var(--white);
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.slider-thumb-value::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid var(--green-primary);
}

.slider-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 10;
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.8rem;
  padding: 0 0.5rem;
}

.slider-marks span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* Card de resultado */
.calculator__result-card {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.1) 0%, rgba(255, 152, 0, 0.05) 100%);
  border: 2px solid #FF9800;
  border-radius: 12px;
  padding: 1.2rem;
  margin-top: 1rem;
  text-align: center;
}

.result-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
}

.result-card-header svg {
  color: #FF9800;
}

.result-card-amount {
  font-size: 2.2rem;
  font-weight: 700;
  color: #FF9800;
  margin-bottom: 0.5rem;
}

.result-card-details {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.result-card-details span {
  font-weight: 600;
  color: var(--green-dark);
}

/* Tooltips */
.calculator-tooltip {
  position: fixed;
  background: var(--green-dark);
  color: var(--white);
  padding: 0.5rem 0.8rem;
  border-radius: 6px;
  font-size: 0.8rem;
  z-index: 10000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  max-width: 200px;
  text-align: center;
}

.calculator-tooltip.show {
  opacity: 1;
}

.calculator__footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--gray-light);
  text-align: center;
}

.calculator__contact-btn {
  width: 100%;
  padding: 1.1rem;
  background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.calculator__contact-btn svg {
  flex-shrink: 0;
}

.calculator__contact-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  background: linear-gradient(135deg, #3a6e4d 0%, #2d5a3d 100%);
}

/* Lado derecho - Imagen */
.lotes-modal__image-container {
  background: var(--gray-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lotes-modal__image {
  width: 100%;
  height: 100%;
  max-width: 500px;
  object-fit: contain;
  border-radius: 8px;
}

.btn--primary {
  background: transparent;
  color: var(--green-middle);
  padding: 0.875rem 2.25rem;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  letter-spacing: -0.01em;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  border: 2px solid var(--green-middle);
  cursor: pointer;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-middle) 0%, #4a7a5e 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.btn--primary:hover {
  background: transparent;
  border-color: var(--green-graphite);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(86, 136, 100, 0.2);
}

.btn--primary:hover::before {
  opacity: 1;
}

/* =========================
   CONTACTO
   ========================= */

.contacto {
  background: #ffffff;
}

.contacto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 3rem;
  align-items: flex-start;
}

.contacto__info h2 {
  margin-bottom: 0.7rem;
}

.contacto__block {
  margin-top: 1.75rem;
}

.contacto__block h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-heading);
  font-size: 1.02rem;
}

.contacto__block p {
  margin: 0.15rem 0;
  font-size: 0.95rem;
  line-height: 1.7;
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.social__link {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--white);
  transition: all var(--transition-base);
  border: 1.5px solid var(--white);
}

.social__link svg {
  width: 22px;
  height: 22px;
  color: var(--white);
  fill: var(--white);
}

.social__link img {
  width: 18px;
  height: 18px;
  filter: brightness(0) invert(1);
}

.social__link:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.3);
}

/* FORMULARIO */

.form {
  background: linear-gradient(145deg, #ffffff, #f3f6f3);
  border-radius: 20px;
  padding: 1.9rem 1.9rem 2.1rem;
  box-shadow: var(--shadow-soft);
}

.form__title {
  margin: 0 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
}

.form__group {
  margin-bottom: 1.1rem;
}

.form__group label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(50, 73, 75, 0.9);
}

.form__group input,
.form__group textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(86, 136, 100, 0.3);
  font-size: 0.9rem;
  outline: none;
  background-color: #ffffff;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background-color var(--transition-base);
}

.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--green-middle);
  box-shadow: 0 0 0 1px rgba(86, 136, 100, 0.3);
  background-color: #ffffff;
}

.form__note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: rgba(50, 73, 75, 0.7);
}

.form__message {
  padding: 1rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  animation: slideDown 0.3s ease-out;
}

.form__message--success {
  background-color: rgba(86, 136, 100, 0.1);
  color: #2d5a42;
  border-left: 4px solid var(--green-middle);
}

.form__message--error {
  background-color: rgba(220, 53, 69, 0.1);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

.form__error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #dc3545;
  animation: slideDown 0.2s ease-out;
}

.form__input--error {
  border-color: #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.05);
}

.form__input--error:focus {
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   FOOTER
   ========================= */

.footer {
  background-color: var(--green-graphite);
  color: rgba(255, 255, 255, 0.88);
  padding: 1.9rem 0 1.4rem;
}

.footer__content {
  text-align: center;
}

.footer__text {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
}

.footer__text--small {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.7);
}

/* =========================
   ANIMACIONES REVEAL
   ========================= */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   RESPONSIVE
   ========================= */

/* tablets y pantallas medianas */
@media (max-width: 992px) {
  .header__content {
    flex-wrap: wrap;
  }

  .nav__list {
    gap: 1rem;
    font-size: 0.88rem;
  }

  .cards--three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .inv-cards {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .inv-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .inv-card:nth-child(2) {
    grid-column: 1;
    grid-row: 2;
  }

  .inv-card:nth-child(3) {
    grid-column: 2;
    grid-row: 1 / 3;
  }

  .contacto__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    height: auto;
    padding: 6.5rem 0 4.5rem;
  }

  .hero__content {
    padding-top: 3.2rem;
  }
}

/* =========================
   MENÚ HAMBURGUESA
   ========================= */

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
}

.menu-toggle__bar {
  width: 100%;
  height: 3px;
  background-color: var(--green-middle);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: center;
}

.menu-toggle.active .menu-toggle__bar:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.menu-toggle.active .menu-toggle__bar:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.menu-toggle.active .menu-toggle__bar:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* móviles */
@media (max-width: 768px) {
  /* HEADER & MENÚ */
  .header__content {
    justify-content: space-between;
  }

  .header__brand-text {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    padding: 80px 30px 30px;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  .nav__list li {
    border-bottom: 1px solid rgba(86, 136, 100, 0.1);
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    color: var(--green-graphite);
    font-size: 1.1rem;
    font-weight: 500;
    transition: all 0.3s ease;
  }

  .nav__link:hover {
    color: var(--green-middle);
    padding-left: 10px;
  }

  .nav__link--cta {
    margin-top: 1rem;
    background: var(--green-middle);
    color: var(--white);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    text-align: center;
    border-bottom: none;
  }

  .nav__link--cta:hover {
    background: var(--green-graphite);
    padding-left: 1.5rem;
  }

  /* HERO MOBILE - FULLSCREEN */
  .hero {
    height: 100vh;
    min-height: 100vh;
    align-items: flex-end;
  }

  .hero__image {
    height: 100vh;
    object-fit: cover;
    object-position: center center;
  }

  .hero__content {
    padding-top: 2rem;
    padding-bottom: 2.5rem;
    max-width: 90%;
  }

  .hero__eyebrow {
    display: none;
  }

  .hero__title {
    font-size: clamp(1.6rem, 4.5vw, 2.2rem);
    margin-bottom: 1rem;
  }

  .hero__subtitle {
    font-size: 0.88rem;
    line-height: 1.6;
    margin-bottom: 0;
  }

  /* SECCIONES GENERALES */
  .section {
    padding: 4.2rem 0;
  }

  /* Descripción reducida en mobile */
  .concepto .section__subtitle--desktop {
    display: none;
  }

  .concepto .section__subtitle--mobile-only {
    display: block;
  }

  .experiencia .section__subtitle--desktop {
    display: none;
  }

  .experiencia .section__subtitle--mobile-only {
    display: block;
  }

  .caracteristicas .section__subtitle--desktop {
    display: none;
  }

  .caracteristicas .section__subtitle--mobile-only {
    display: block;
  }

  .inversion .section__subtitle--desktop {
    display: none;
  }

  .inversion .section__subtitle--mobile-only {
    display: block;
  }

  /* CARDS DE CONCEPTO - Compactas para mobile */
  .cards--three {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  .card {
    aspect-ratio: auto;
    min-height: 140px;
    padding: 1rem;
  }

  .card__body {
    padding: 1rem 1.2rem;
  }

  .card__icon {
    width: 44px;
    height: 44px;
    margin-bottom: 0.8rem;
  }

  .card__icon svg {
    width: 24px;
    height: 24px;
  }

  .card__title {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .card__text {
    font-size: 0.82rem;
    line-height: 1.5;
  }

  .card__image-wrapper picture,
  .card__image-wrapper img {
    aspect-ratio: 16 / 9;
  }

  /* EXPERIENCIA - Steps arriba, galería abajo */
  .experiencia__wrapper {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .experiencia__steps {
    order: 1;
  }

  .experiencia__gallery {
    order: 2;
    min-height: 400px;
  }

  .gallery-slide img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center;
  }

  /* CARACTERÍSTICAS - Icons 2x2 */
  .caracteristicas {
    position: relative;
  }

  .icon-grid {
    display: flex;
    gap: 1rem;
    overflow-x: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    position: relative;
  }

  .icon-item {
    position: relative;
    font-size: 0.85rem;
    line-height: 1.4;
    font-weight: 500;
    min-height: 170px;
    min-width: calc(50% - 0.5rem);
    max-width: calc(50% - 0.5rem);
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.2rem 1rem;
    background: linear-gradient(135deg, rgba(86, 136, 100, 0.92) 0%, rgba(93, 138, 110, 0.88) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .icon-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.25;
    z-index: 0;
  }

  .icon-item:nth-child(1)::before {
    background-image: url('../assets/img/caracteristica-1.jpg');
  }

  .icon-item:nth-child(2)::before {
    background-image: url('../assets/img/caracteristica-2.jpg');
  }

  .icon-item:nth-child(3)::before {
    background-image: url('../assets/img/caracteristica-3.jpg');
  }

  .icon-item:nth-child(4)::before {
    background-image: url('../assets/img/caracteristica-4.jpg');
  }

  .icon-item:nth-child(5)::before {
    background-image: url('../assets/img/caracteristica-5.jpg');
  }

  .icon-item:nth-child(6)::before {
    background-image: url('../assets/img/caracteristica-6.jpg');
  }

  .icon-item__circle {
    position: relative;
    z-index: 1;
    width: 60px;
    height: 60px;
    margin: 0 auto 0.8rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    border: 2px solid rgba(86, 136, 100, 0.3);
  }

  .icon-item__circle img {
    width: 32px;
    height: 32px;
    object-fit: contain;
  }

  .icon-item p {
    position: relative;
    z-index: 1;
    padding: 0 0.5rem;
    color: var(--white);
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .caracteristicas-carousel {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .carousel-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2d5a3d 0%, #1e3d2a 100%);
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  }

  .carousel-arrow {
    color: var(--white);
    font-size: 36px;
    line-height: 1;
    font-weight: 300;
    user-select: none;
  }

  .carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, #3a6e4d 0%, #2d5a3d 100%);
  }

  .carousel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  }

  .carousel-btn:active {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  }

  /* INVERSIÓN - Cards mucho más compactas */
  .inv-cards {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 0.75rem;
  }

  .inv-card {
    padding: 0.85rem 1rem;
    min-height: auto;
    background: linear-gradient(145deg, #568864 0%, var(--green-middle) 50%, #4d7a5e 100%);
    border-radius: 12px;
  }

  .inv-card::before {
    display: none;
  }

  .inv-card:nth-child(1),
  .inv-card:nth-child(2),
  .inv-card:nth-child(3) {
    grid-column: 1;
    grid-row: auto;
    min-height: auto;
  }

  /* Eliminar imagen de fondo y hover en mobile */
  .inv-card__image-wrapper {
    display: none;
  }

  .inv-card--interactive:hover .inv-card__image-wrapper {
    display: none;
  }

  .inv-card__icon {
    width: 28px;
    height: 28px;
    margin-bottom: 0.5rem;
    padding: 0.35rem;
  }

  .inv-card__icon svg {
    width: 16px;
    height: 16px;
  }

  .inv-card__title {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
    line-height: 1.2;
  }

  .inv-card__value {
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.5rem 0.85rem;
    margin-bottom: 0;
  }

  .inv-card__financing {
    gap: 0.35rem;
    margin-top: 0.5rem;
  }

  .financing-step {
    font-size: 0.7rem;
    padding: 0.35rem 0.55rem;
    border-radius: 6px;
  }

  /* CÓMO ACCEDER - Diseño compacto sin cards */
  .acceso__steps {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-top: 2rem;
  }

  .acceso__step {
    background: linear-gradient(135deg, rgba(86, 136, 100, 0.05) 0%, rgba(86, 136, 100, 0.02) 100%);
    border-left: 4px solid var(--green-middle);
    border-radius: 8px;
    padding: 1.2rem 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 1rem;
    align-items: flex-start;
  }

  .acceso__step-number {
    width: 42px;
    height: 42px;
    font-size: 1.3rem;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .acceso__step-content {
    flex: 1;
  }

  .acceso__step-title {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    line-height: 1.25;
  }

  .acceso__step-title br {
    display: none;
  }

  .acceso__step-text {
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.55;
  }

  .acceso__step-highlight {
    font-size: 0.8rem;
    padding: 0.5rem 0.7rem;
    line-height: 1.4;
  }

  /* HERO */
  .hero__title {
    font-size: 2rem;
  }

  .hero__subtitle {
    font-size: 0.92rem;
  }

  /* FORMULARIO */
  .form {
    padding: 1.4rem 1.4rem 1.6rem;
  }

  /* CONTACTO SECTION - Rediseño mobile */
  .contacto {
    background: var(--white);
    text-align: center;
  }

  .contacto__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contacto__info {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .contacto__info h2 {
    order: 1;
    font-size: 1.4rem;
    text-align: center;
    color: var(--green-middle);
    line-height: 1.3;
  }

  .contacto__info .section__subtitle {
    order: 2;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 1.5rem;
  }

  .contacto__block:first-of-type {
    order: 3;
    text-align: center;
    margin-top: 0;
  }

  .contacto__block:first-of-type h3 {
    font-size: 1.1rem;
    color: var(--green-middle);
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .contacto__block:first-of-type p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--green-graphite);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .contacto__block:first-of-type p strong {
    display: none;
  }

  .contacto__block:first-of-type p::before {
    content: '';
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .contacto__block:first-of-type p:nth-of-type(1)::before {
    content: '📍';
  }

  .contacto__block:first-of-type p:nth-of-type(2)::before {
    content: '📞';
  }

  .contacto__block:first-of-type p:nth-of-type(3)::before {
    content: '✉️';
  }

  .contacto__form {
    order: 4;
    margin-top: 1rem;
  }

  .contacto__block:last-of-type {
    order: 5;
    text-align: center;
    margin-top: 1.5rem;
  }

  .contacto__block:last-of-type h3 {
    font-size: 1.05rem;
    color: var(--green-middle);
    font-weight: 600;
    margin-bottom: 0.8rem;
  }

  .social {
    justify-content: center;
    gap: 1rem;
  }

  .social__link {
    width: 50px;
    height: 50px;
    background-color: var(--green-middle);
    color: var(--white);
    transition: all 0.3s ease;
  }

  .social__link:hover {
    background-color: var(--green-graphite);
    transform: scale(1.1);
  }

  /* LAYOUT IMAGE - Mostrar botón zoom en mobile */
  .inversion__layout-zoom {
    display: flex;
  }

  .inversion__layout-zoom svg {
    width: 20px;
    height: 20px;
  }

  /* LAYOUT HEADER Y CTA - Estilos mobile */
  .inversion__layout-header {
    padding: 1.5rem 1rem;
  }

  .inversion__layout-title {
    font-size: 1.1rem;
  }

  .inversion__layout-cta {
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 1rem;
  }

  .inversion__layout-text {
    font-size: 0.9rem;
    text-align: center;
  }

  .inversion__layout-arrow {
    width: 40px;
    height: 40px;
  }

  /* MODAL LOTES - Mobile */
  .lotes-modal__container {
    width: 95vw;
    max-height: 95vh;
  }

  .lotes-modal__content {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }

  .lotes-modal__info {
    order: 1;
    padding: 1.5rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
  }

  .lotes-modal__description {
    order: 1;
    gap: 0.8rem;
  }

  .lotes-modal__description h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
  }

  .lotes-modal__description p {
    font-size: 0.85rem;
    line-height: 1.6;
  }

  .lotes-modal__pricing {
    order: 2;
    padding: 1rem;
  }

  .lotes-modal__price-normal {
    font-size: 0.85rem;
  }

  .lotes-modal__price-promo h3 {
    font-size: 1.1rem;
    padding: 0.4rem 0.8rem;
  }

  .lotes-modal__price-value {
    font-size: 1.4rem;
    padding: 0.5rem 1rem;
  }

  .lotes-modal__buttons {
    order: 3;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .lotes-modal__buttons-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }

  .lotes-modal__buttons-row--two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 90%;
    margin: 0 auto;
  }

  .lotes-modal__btn {
    font-size: 0.7rem;
    padding: 0.6rem 0.4rem;
    min-height: 65px;
    gap: 0.1rem;
  }

  .lotes-modal__btn-label {
    font-size: 0.8rem;
  }

  .lotes-modal__btn-size {
    font-size: 0.65rem;
  }

  .lotes-modal__image-container {
    order: 4;
    padding: 1rem;
    min-height: 250px;
  }

  /* Calculadora responsive en mobile */
  .lotes-modal__calculator {
    padding: 1.2rem;
    max-height: 550px;
  }

  .calculator__back {
    font-size: 0.85rem;
    margin-bottom: 1rem;
  }

  .calculator__header h3 {
    font-size: 1.5rem;
  }

  .calculator__header #calculatorMetros {
    font-size: 1rem;
  }

  .calculator__price-total {
    font-size: 0.85rem;
  }

  .calculator__price-total span {
    font-size: 1.1rem;
  }

  .calculator__payment {
    padding: 1rem;
  }

  .calculator__payment-header h4 {
    font-size: 1rem;
  }

  .calculator__percentage {
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
  }

  .calculator__payment-value {
    font-size: 1.5rem;
  }

  .calculator__payment-total {
    font-size: 1.2rem;
  }

  .calculator__payment-installment {
    padding: 0.7rem 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .calculator__payment-installment span {
    font-size: 0.8rem;
  }

  .calculator__payment-installment strong {
    font-size: 1rem;
  }

  .calculator__years-selector label {
    font-size: 0.85rem;
  }

  .calculator__year-btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.4rem;
  }

  .calculator__installment-option {
    padding: 0.7rem 0.8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .calculator__installment-option span {
    font-size: 0.8rem;
  }

  .calculator__installment-option strong {
    font-size: 1.1rem;
  }

  .calculator__footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
  }

  .calculator__contact-btn {
    font-size: 0.95rem;
    padding: 0.9rem;
  }
}
