/* ==========================================================
   SOLTERRA HOMES · styles.css
   Paleta: terracota #C4522A | crema #FAF7F2 | oscuro #2C2218
   Tipografía: Cormorant Garamond (serif, títulos) + Inter (sans, cuerpo)
   ========================================================== */


/* ──────────────────────────────────────────────────────────
   1. RESET & VARIABLES
   ────────────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Colores principales */
  --terracota:       #C4522A;
  --terracota-hover: #A83A1A;
  --terracota-alpha: rgba(196, 82, 42, 0.12);

  /* Fondos */
  --cream:      #FAF7F2;
  --cream-dark: #EDE7DC;

  /* Texto */
  --dark:   #2C2218;
  --mid:    #7A5C4A;
  --border: #E0D8CF;
  --white:  #ffffff;

  /* Sombras */
  --shadow:    0 4px 24px rgba(44, 34, 24, 0.09);
  --shadow-lg: 0 10px 40px rgba(44, 34, 24, 0.15);

  /* Bordes */
  --radius:    12px;
  --radius-sm: 6px;

  /* Transiciones */
  --t: 0.25s ease;

  /* Tipografía */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Secciones: margen superior para no quedar tapadas por el nav fijo */
section[id] {
  scroll-margin-top: 80px;
}


/* ──────────────────────────────────────────────────────────
   2. TIPOGRAFÍA
   ────────────────────────────────────────────────────────── */
h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.45rem); }

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 64px;
}

.section-title {
  margin-bottom: 20px;
}

.section-lead {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.75;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}


/* ──────────────────────────────────────────────────────────
   3. BOTONES
   ────────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--terracota);
  color: var(--white);
  padding: 14px 28px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: var(--terracota-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(196, 82, 42, 0.32);
}

.btn-primary.btn-block {
  width: 100%;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--terracota);
  padding: 13px 24px;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  border: 1.5px solid var(--terracota);
  cursor: pointer;
  transition: background var(--t), color var(--t);
  white-space: nowrap;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: var(--terracota-alpha);
}


/* ──────────────────────────────────────────────────────────
   4. HEADER / NAV
   ────────────────────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t);
}

.header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* Logo */
.logo {
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-shrink: 0;
}

.logo-mark {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--terracota);
  letter-spacing: 0.12em;
  line-height: 1;
}

.logo-sub {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--dark);
  letter-spacing: 0.2em;
  line-height: 1;
}

/* Nav links */
.nav-links {
  display: flex;
  gap: 36px;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dark);
  padding: 4px 0;
  position: relative;
  transition: color var(--t);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--terracota);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t);
}

.nav-link:hover,
.nav-link.active {
  color: var(--terracota);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 10;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--t), opacity var(--t);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* ──────────────────────────────────────────────────────────
   5. HERO
   ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('https://picsum.photos/seed/solterra-hero/1920/1080');
  background-size: cover;
  background-position: center;
}

.hero-bg-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #8a6652 0%, #5a3d2b 45%, #2c1e14 100%);
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 28px 36px;
}

.hero-bg-placeholder span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-family: monospace;
  background: rgba(0, 0, 0, 0.3);
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  max-width: 480px;
  line-height: 1.5;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(30, 20, 12, 0.40) 0%,
    rgba(30, 20, 12, 0.60) 55%,
    rgba(30, 20, 12, 0.78) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  max-width: 780px;
  padding: 20px 0;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 20px;
  font-family: var(--font-sans);
}

.hero-title {
  color: var(--white);
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 42px;
  line-height: 1.75;
}

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-mouse {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  display: flex;
  justify-content: center;
  padding-top: 7px;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 2px;
  animation: scrollAnim 2.2s ease infinite;
}

@keyframes scrollAnim {
  0%, 100% { transform: translateY(0); opacity: 1; }
  80%       { transform: translateY(9px); opacity: 0; }
}


/* ──────────────────────────────────────────────────────────
   6. ABOUT (NOSOTROS)
   ────────────────────────────────────────────────────────── */
.about {
  padding: 100px 0;
  background: var(--cream);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px 36px;
  text-align: center;
  transition: box-shadow var(--t), transform var(--t);
}

.value-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.value-icon {
  font-size: 1.5rem;
  color: var(--terracota);
  margin-bottom: 18px;
  display: block;
}

.value-card h3 {
  margin-bottom: 12px;
}

.value-card p {
  font-size: 0.9rem;
  color: var(--mid);
  line-height: 1.7;
}


/* ──────────────────────────────────────────────────────────
   7. CATÁLOGO DE PROMOCIONES
   ────────────────────────────────────────────────────────── */
.catalog {
  padding: 100px 0;
  background: var(--white);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* Tarjeta de promoción */
.promo-card {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--white);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}

.promo-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

/* Imagen / galería trigger */
.promo-gallery-trigger {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  display: block;
}

.promo-gallery-trigger:focus-visible {
  outline: 3px solid var(--terracota);
  outline-offset: 2px;
}

.promo-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.promo-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.promo-gallery-trigger:hover .promo-img img {
  transform: scale(1.05);
}

/* Placeholder imagen */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 220px;
  background: linear-gradient(135deg, #ede0d4 0%, #d4b49a 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--mid);
}

.img-ph-icon {
  font-size: 2.6rem;
  opacity: 0.4;
  line-height: 1;
}

.img-placeholder span:last-child {
  font-size: 11px;
  text-align: center;
  padding: 0 20px;
  line-height: 1.55;
  opacity: 0.65;
}

/* Badge de estado */
.promo-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 5px 14px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.promo-badge.en-venta     { background: #1e6b40; color: #fff; }
.promo-badge.ultimas      { background: var(--terracota); color: #fff; }
.promo-badge.proximamente { background: #504d82; color: #fff; }

/* Hint "Ver galería" al hacer hover */
.promo-gallery-hint {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 32px 16px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.58) 0%, transparent 100%);
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity var(--t);
}

.promo-gallery-trigger:hover .promo-gallery-hint,
.promo-gallery-trigger:focus-visible .promo-gallery-hint {
  opacity: 1;
}

.promo-gallery-hint span {
  font-size: 0.8rem;
  color: #fff;
  font-weight: 500;
}

/* Cuerpo de la tarjeta */
.promo-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.promo-name {
  font-size: 1.3rem;
}

.promo-location {
  font-size: 0.84rem;
  color: var(--mid);
}

.promo-specs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.spec {
  font-size: 0.8rem;
  color: var(--mid);
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 50px;
  border: 1px solid var(--border);
}

.promo-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.promo-price-label {
  font-size: 0.76rem;
  color: var(--mid);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.promo-price {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  color: var(--terracota);
  font-weight: 600;
  line-height: 1;
}

.promo-desc {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
  flex: 1;
}

.promo-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}

.promo-actions .btn-ghost,
.promo-actions .btn-primary {
  flex: 1;
  justify-content: center;
  font-size: 0.85rem;
  padding: 10px 14px;
}

/* Tarjeta "añadir" */
.promo-card--add {
  border-style: dashed;
  border-color: var(--cream-dark);
  background: var(--cream);
  cursor: default;
  min-height: 320px;
}

.promo-card--add:hover {
  box-shadow: none;
  transform: none;
}

.promo-add-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 40px 28px;
  height: 100%;
}

.promo-add-icon {
  font-size: 2.5rem;
  color: var(--border);
  line-height: 1;
}

.promo-add-inner h3 {
  color: var(--mid);
  font-size: 1.1rem;
}

.promo-add-inner p {
  font-size: 0.82rem;
  color: var(--mid);
  line-height: 1.65;
  opacity: 0.75;
}


/* ──────────────────────────────────────────────────────────
   8. CONTACTO
   ────────────────────────────────────────────────────────── */
.contact {
  padding: 100px 0;
  background: var(--cream);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 72px;
  align-items: start;
}

.contact-info .section-title {
  text-align: left;
  margin-bottom: 18px;
}

.contact-info > p {
  color: var(--mid);
  margin-bottom: 36px;
  line-height: 1.75;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-details li {
  font-size: 0.95rem;
  color: var(--dark);
}

.contact-details a {
  color: var(--terracota);
  transition: color var(--t);
}

.contact-details a:hover {
  color: var(--terracota-hover);
}

/* Formulario */
.contact-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input,
select,
textarea {
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color var(--t), box-shadow var(--t);
  outline: none;
  width: 100%;
}

input::placeholder,
textarea::placeholder {
  color: #b0a498;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--terracota);
  box-shadow: 0 0 0 3px rgba(196, 82, 42, 0.12);
}

textarea {
  resize: vertical;
  min-height: 100px;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237A5C4A' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

.form-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.form-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  accent-color: var(--terracota);
  flex-shrink: 0;
  cursor: pointer;
}

.form-check label {
  text-transform: none;
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--mid);
  letter-spacing: 0;
  cursor: pointer;
}

.link-inline {
  color: var(--terracota);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note {
  font-size: 0.85rem;
  text-align: center;
  color: var(--mid);
  min-height: 1.2em;
  transition: color var(--t);
}

.form-note.success { color: #1e6b40; font-weight: 500; }
.form-note.error   { color: var(--terracota); font-weight: 500; }


/* ──────────────────────────────────────────────────────────
   9. FOOTER
   ────────────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.75);
  padding: 68px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo-mark {
  color: var(--terracota);
}

.footer-brand .logo-sub {
  color: rgba(255, 255, 255, 0.5);
}

.footer-claim {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.7;
}

.footer-links h4,
.footer-legal h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 18px;
}

.footer-links ul,
.footer-legal ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a,
.footer-legal a {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--t);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: var(--white);
}

.footer-bottom {
  padding: 22px 24px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.28);
}


/* ──────────────────────────────────────────────────────────
   10. LIGHTBOX / GALERÍA
   ────────────────────────────────────────────────────────── */
.lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(18, 12, 8, 0.92);
  z-index: 9000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox-backdrop.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-inner {
  width: min(88vw, 960px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.lightbox-img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
}

.lightbox-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder en lightbox */
.lightbox-ph {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #3a2820, #221510);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  border-radius: var(--radius);
}

.lbph-icon {
  font-size: 3rem;
  opacity: 0.25;
  display: block;
  line-height: 1;
}

.lbph-label {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.65);
  text-align: center;
}

.lbph-todo {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 16px;
  border-radius: 4px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  text-align: center;
  max-width: 480px;
  line-height: 1.55;
}

.lightbox-caption {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
}

.lightbox-counter {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
}

/* Botones del lightbox */
.lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9002;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  transition: background var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9002;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: white;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  cursor: pointer;
  transition: background var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.22);
}


/* ──────────────────────────────────────────────────────────
   11. RESPONSIVE
   ────────────────────────────────────────────────────────── */

/* Tablet landscape y hacia abajo */
@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablet portrait */
@media (max-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .contact-info .section-title {
    text-align: center;
  }

  .contact-info > p {
    text-align: center;
  }

  .contact-details {
    align-items: center;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding: 8px 24px 24px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform var(--t), opacity var(--t);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .nav-link {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .nav-link:last-child {
    border-bottom: none;
  }

  .nav-link::after {
    display: none;
  }

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

  .contact-form {
    padding: 28px 20px;
  }
}

/* Mobile pequeño */
@media (max-width: 640px) {
  .values-grid {
    grid-template-columns: 1fr;
  }

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

  .promo-actions {
    flex-direction: column;
  }

  .about,
  .catalog,
  .contact {
    padding: 72px 0;
  }

  .section-header {
    margin-bottom: 48px;
  }

  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }

  .lightbox-inner { width: 96vw; }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


/* ──────────────────────────────────────────────────────────
   MULTI-PÁGINA: componentes compartidos
   ────────────────────────────────────────────────────────── */

/* CTA al final de la sección Nosotros en index */
.section-cta {
  text-align: center;
  margin-top: 52px;
}

/* Sección CTA de contacto en index (reemplaza el formulario completo) */
.contact-cta-section {
  padding: 100px 0;
  background: var(--cream);
}

.contact-cta-inner {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.contact-cta-inner .section-title {
  margin-bottom: 18px;
}

.contact-cta-lead {
  color: var(--mid);
  line-height: 1.75;
  margin-bottom: 36px;
}

.contact-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Hero de sección para páginas internas */
.page-hero {
  padding: 120px 0 72px;
  background: var(--dark);
  color: var(--white);
  text-align: center;
}

.page-hero .hero-eyebrow {
  color: var(--terracota);
}

.page-hero .section-title {
  color: var(--white);
  margin-bottom: 18px;
}

.page-hero .section-lead {
  color: rgba(255,255,255,0.7);
  max-width: 560px;
  margin: 0 auto;
}

/* Ficha técnica de vivienda */
.ficha-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.ficha-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
}

.ficha-item .ficha-icon {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 10px;
}

.ficha-item .ficha-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  display: block;
  margin-bottom: 6px;
}

.ficha-item .ficha-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
}

/* Galería thumbnails en página de vivienda */
.vivienda-gallery {
  padding: 80px 0;
  background: var(--dark);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  margin-top: 40px;
}

.gallery-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-thumb:hover img {
  transform: scale(1.06);
}

.gallery-thumb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s;
}

.gallery-thumb:hover .gallery-thumb-overlay {
  background: rgba(0,0,0,0.35);
}

.gallery-thumb-overlay span {
  color: #fff;
  font-size: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-thumb:hover .gallery-thumb-overlay span {
  opacity: 1;
}

/* Planos */
.planos-section {
  padding: 80px 0;
  background: var(--cream);
}

.planos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.plano-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}

.plano-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dark);
}

.plano-placeholder {
  background: linear-gradient(135deg, #ede0d4 0%, #d4b49a 100%);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--mid);
  font-size: 0.82rem;
  padding: 20px;
}

.plano-placeholder svg {
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

.plano-rooms {
  padding: 16px 20px;
}

.plano-rooms ul {
  list-style: none;
  font-size: 0.82rem;
  color: var(--mid);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.plano-rooms li {
  display: flex;
  justify-content: space-between;
}

.plano-rooms li span:last-child {
  font-weight: 500;
  color: var(--dark);
}

/* Memoria de calidades */
.calidades-section {
  padding: 80px 0;
}

.calidades-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.calidad-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.calidad-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 10px;
}

.calidad-item h3::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--terracota);
  flex-shrink: 0;
}

.calidad-item p {
  font-size: 0.88rem;
  color: var(--mid);
  line-height: 1.7;
}

/* Extras opcionales */
.extras-section {
  padding: 80px 0;
  background: var(--cream);
}

.extras-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.extra-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.extra-card .extra-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.extra-card h4 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
}

/* CTA final de vivienda */
.vivienda-cta {
  padding: 80px 0;
  background: var(--dark);
  text-align: center;
  color: var(--white);
}

.vivienda-cta .section-title {
  color: var(--white);
  margin-bottom: 16px;
}

.vivienda-cta p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 36px;
  line-height: 1.7;
}

.vivienda-cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Páginas legales */
.legal-section {
  padding: 80px 0 100px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.4rem;
  margin-top: 48px;
  margin-bottom: 12px;
  color: var(--dark);
}

.legal-content p,
.legal-content li {
  font-size: 0.92rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 10px;
}

.legal-content ul {
  padding-left: 20px;
  margin-bottom: 14px;
}

/* Responsive nuevos componentes */
@media (max-width: 900px) {
  .ficha-grid        { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid      { grid-template-columns: repeat(2, 1fr); }
  .planos-grid       { grid-template-columns: 1fr; }
  .calidades-grid    { grid-template-columns: 1fr; }
  .extras-grid       { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .ficha-grid        { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid      { grid-template-columns: 1fr; }
  .extras-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-cta-actions { flex-direction: column; align-items: center; }
  .vivienda-cta-actions { flex-direction: column; align-items: center; }
  .contact-cta-section  { padding: 72px 0; }
}
