/* ══════════════════════════════════════
   PROYECTO - HERO
   ══════════════════════════════════════ */
.proy-hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

.proy-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.proy-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.05) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
}

.proy-hero__content {
  position: absolute;
  bottom: 8%;
  left: 0;
  right: 0;
  padding: 0 var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.proy-hero__name {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  color: var(--color-white);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.proy-hero__sub {
  font-size: clamp(1rem, 2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
  margin-bottom: 1.5rem;
}

.proy-hero__details {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.proy-hero__detail {
  font-size: 1rem;
  color: var(--color-white);
  font-weight: 400;
}

/* ══════════════════════════════════════
   PROYECTO - SOBRE (About)
   ══════════════════════════════════════ */
.proy-about {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.proy-about__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.proy-about__title {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-weight: 500;
}

.proy-about__highlight {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--space-lg);
}

.proy-about__text {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  text-align: left;
}

.proy-about__text + .proy-about__text {
  margin-top: var(--space-md);
}

/* ══════════════════════════════════════
   PROYECTO - SHOWCASE (imagen + nombre)
   ══════════════════════════════════════ */
.proy-showcase {
  padding: var(--space-lg) 0;
  background: var(--color-bg);
}

.proy-showcase__img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.proy-showcase__info {
  max-width: 700px;
}

.proy-showcase__name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  font-weight: 400;
  margin-bottom: 0.25rem;
}

.proy-showcase__tagline {
  font-size: 1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.proy-showcase__desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ══════════════════════════════════════
   PROYECTO - UBICACIÓN
   ══════════════════════════════════════ */
.proy-location {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.proy-location__title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--color-primary);
  text-align: center;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.proy-location__grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr 1fr;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.proy-location__img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: var(--radius-lg);
}

.proy-location__map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  border: 0;
}

.proy-location__text {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

.proy-location__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem var(--space-lg);
  max-width: 500px;
  margin: 0 auto;
}

.proy-location__list-item {
  font-size: 0.9rem;
  color: var(--color-text);
}

/* ══════════════════════════════════════
   PROYECTO - INFO CARD (datos del proyecto)
   ══════════════════════════════════════ */
.proy-info {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.proy-info__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.proy-info__card {
  background: #b5b8a3;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--color-white);
}

.proy-info__card-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

.proy-info__card-detail {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

.proy-info__img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* ══════════════════════════════════════
   PROYECTO - AMENIDADES (Gallery Slider)
   ══════════════════════════════════════ */
.proy-amenities {
  position: relative;
  height: 90vh;
  min-height: 500px;
  overflow: hidden;
}

.proy-amenities__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.proy-amenities__slide.active {
  opacity: 1;
}

.proy-amenities__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 40%
  );
}

.proy-amenities__label {
  position: absolute;
  bottom: var(--space-lg);
  left: var(--space-lg);
}

.proy-amenities__name {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-white);
  font-weight: 400;
}

.proy-amenities__ref {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.proy-amenities__nav {
  position: absolute;
  bottom: var(--space-lg);
  right: var(--space-lg);
  display: flex;
  gap: var(--space-sm);
}

.proy-amenities__btn {
  width: 48px;
  height: 48px;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.25rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  background: transparent;
}

.proy-amenities__btn:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

/* ══════════════════════════════════════
   PROYECTO - TIPOLOGÍAS (Flats)
   ══════════════════════════════════════ */
.proy-flats {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.proy-flats__tabs {
  display: flex;
  gap: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.proy-flats__tab {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  color: var(--color-text);
}

.proy-flats__tab--active {
  background: var(--color-primary);
  color: var(--color-white);
}

.proy-flats__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  align-items: start;
}

.proy-flats__gallery {
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 450px;
}

.proy-flats__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proy-flats__plan-section {
  display: flex;
  flex-direction: column;
}

.proy-flats__plan-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.proy-flats__plan-tabs {
  display: flex;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

.proy-flats__plan-tab {
  font-size: 0.9rem;
  color: var(--color-text-light);
  cursor: pointer;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
}

.proy-flats__plan-tab--active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 600;
}

.proy-flats__plan-img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  margin-bottom: var(--space-md);
  border: 1px solid #e5e5e5;
  border-radius: var(--radius-md);
  padding: var(--space-sm);
}

.proy-flats__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.proy-flats__spec-label {
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.proy-flats__spec-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary);
}

.proy-flats__miniplan {
  width: 100px;
  height: auto;
  opacity: 0.6;
}

.proy-flats__disclaimer {
  font-size: 0.75rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin-top: var(--space-sm);
}

/* ══════════════════════════════════════
   PROYECTO - CONTACTO
   ══════════════════════════════════════ */
.proy-contact {
  padding: var(--space-xl) 0;
  background: var(--color-bg);
}

.proy-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  min-height: 500px;
}

.proy-contact__form-wrap {
  background: #b5b8a3;
  border-radius: var(--radius-xl);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proy-contact__title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-white);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
}

.proy-contact__form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.proy-contact__select,
.proy-contact__input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.75rem 0;
  font-size: 0.95rem;
  color: var(--color-white);
  font-family: var(--font-body);
  outline: none;
  width: 100%;
  transition: border-color var(--transition-fast);
}

.proy-contact__select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='white' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
}

.proy-contact__select option {
  color: var(--color-text);
  background: var(--color-white);
}

.proy-contact__input::placeholder,
.proy-contact__select::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.proy-contact__input:focus,
.proy-contact__select:focus {
  border-bottom-color: var(--color-white);
}

.proy-contact__checks {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-sm);
}

.proy-contact__check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
}

.proy-contact__check input[type="checkbox"] {
  margin-top: 2px;
  accent-color: var(--color-white);
  flex-shrink: 0;
}

.proy-contact__submit {
  align-self: flex-end;
  padding: 0.75rem 2.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: var(--space-sm);
}

.proy-contact__submit:hover {
  background: rgba(255, 255, 255, 0.35);
}

.proy-contact__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
  min-height: 500px;
}

/* ══════════════════════════════════════
   PROYECTO - FOOTER
   ══════════════════════════════════════ */
.proy-footer {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proy-footer__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.proy-footer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.proy-footer__content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--color-white);
}

.proy-footer__logo img {
  height: 60px;
  margin-bottom: var(--space-md);
}

.proy-footer__project-name {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400;
  margin-bottom: 0.5rem;
}

.proy-footer__tagline {
  font-size: 1rem;
  opacity: 0.8;
  margin-bottom: var(--space-lg);
}

.proy-footer__contact-line {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.proy-footer__contact-line a {
  color: var(--color-white);
  transition: opacity var(--transition-fast);
}

.proy-footer__contact-line a:hover {
  opacity: 0.7;
}

/* ══════════════════════════════════════
   RESPONSIVE PROYECTO
   ══════════════════════════════════════ */
@media (max-width: 1024px) {
  .proy-location__grid {
    grid-template-columns: 1fr;
  }

  .proy-location__img,
  .proy-location__map {
    height: 300px;
  }

  .proy-info__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .proy-hero {
    min-height: 500px;
  }

  .proy-flats__grid {
    grid-template-columns: 1fr;
  }

  .proy-flats__gallery {
    height: 300px;
  }

  /* Formulario fullscreen en mobile */
  .proy-contact {
    padding: 0;
  }

  .proy-contact > .container {
    padding: 0;
    max-width: 100%;
  }

  .proy-contact__grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: auto;
  }

  .proy-contact__form-wrap {
    border-radius: 0;
    padding: var(--space-lg) var(--container-padding);
    min-height: 100vh;
    justify-content: center;
  }

  .proy-contact__img {
    display: none;
  }

  .proy-amenities {
    height: 60vh;
  }

  .proy-amenities__label {
    left: var(--space-md);
    bottom: var(--space-md);
  }

  .proy-amenities__nav {
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .proy-footer {
    height: 50vh;
  }

  .proy-flats__specs {
    grid-template-columns: 1fr;
  }
}

/* ══════════════════════════════════════
   BOTÓN FLOTANTE COTIZA
   ══════════════════════════════════════ */

/* Desktop: discreto en el borde derecho, vertical */
.fab-cotiza {
  display: flex;
  position: fixed;
  z-index: 900;
  background: var(--color-cta);
  color: var(--color-white);
  font-family: var(--font-body);
  font-weight: 600;
  text-decoration: none;
  align-items: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;

  /* Desktop: pegado al borde derecho, rotado */
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 1rem 0.6rem;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  font-size: 0.8rem;
  letter-spacing: 1px;
  gap: 0.5rem;
}

.fab-cotiza:hover {
  transform: translateY(-50%) translateX(-4px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

.fab-cotiza:active {
  transform: translateY(-50%) scale(0.97);
}

.fab-cotiza__icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* Mobile: centrado abajo, horizontal */
@media (max-width: 768px) {
  .fab-cotiza {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    right: 1.25rem;
    top: auto;
    bottom: 1.25rem;
    transform: none;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-pill);
    font-size: 0.85rem;
    letter-spacing: 0;
  }

  .fab-cotiza:hover {
    transform: none;
  }

  .fab-cotiza:active {
    transform: scale(0.95);
  }

  .fab-cotiza__icon {
    width: 18px;
    height: 18px;
  }
}
