  :root {
    --cream: #F5F1EB;
    --warm-white: #FAF8F5;
    --charcoal: #1C1C1A;
    --charcoal-soft: #2E2E2C;
    --mid: #6B6960;
    --accent: #B8955A;
    --accent-light: #D4B07A;
    --accent-pale: #F0E6D3;
    --border: rgba(28,28,26,0.12);
    --border-strong: rgba(28,28,26,0.25);
    font-size: 16px;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--warm-white);
    color: var(--charcoal);
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* TYPOGRAPHY */
  .display {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
  }
  .display-italic {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    line-height: 1.05;
  }

  /* NAV */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    transition: background 0.4s, padding 0.4s;
  }
  nav.scrolled {
    background: #ffffff;
    padding: 1rem 4rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-logo img {
   height: 80px; /* Ajusta este valor si lo quieres más grande o pequeño */
   width: auto;
   display: block;
  }
  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }
  .nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    text-decoration: none;
    transition: color 0.2s;
  }
  .nav-links a:hover { color: var(--charcoal); }
  .nav-cta {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.65rem 1.5rem;
    border: 1px solid var(--charcoal);
    color: var(--charcoal);
    text-decoration: none;
    transition: background 0.25s, color 0.25s;
  }
  .nav-cta:hover {
    background: var(--charcoal);
    color: var(--warm-white);
  }

  /* HERO */
  .hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
  }
  .hero-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 10rem 5rem 6rem;
    background: var(--warm-white);
    position: relative;
    z-index: 2;
  }
  .hero-eyebrow {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
  }
  .hero-title {
    font-size: clamp(3.5rem, 5vw, 5.5rem);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
  }
  .hero-sub {
    font-size: 1rem;
    color: var(--mid);
    max-width: 360px;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
  }
  .hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.9s forwards;
  }
  .btn-primary {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    background: var(--charcoal);
    color: var(--warm-white);
    text-decoration: none;
    border: 1px solid var(--charcoal);
    transition: background 0.25s, color 0.25s, transform 0.2s;
  }
  .btn-primary:hover {
    background: transparent;
    color: var(--charcoal);
    transform: translateY(-1px);
  }
  .btn-secondary {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 1rem 2.5rem;
    background: transparent;
    color: var(--charcoal);
    text-decoration: none;
    border: 1px solid var(--border-strong);
    transition: border-color 0.25s, transform 0.2s;
  }
  .btn-secondary:hover {
    border-color: var(--charcoal);
    transform: translateY(-1px);
  }
  .hero-right {
    position: relative;
    overflow: hidden;
  }
  .hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.88) contrast(1.05);
    opacity: 0;
    animation: fadeIn 1.2s ease 0.4s forwards;
    transform: scale(1.04);
    transition: transform 8s ease;
  }
  .hero-img.loaded { transform: scale(1); }
  .hero-quote {
    position: absolute;
    bottom: 3rem;
    left: -2rem;
    background: var(--warm-white);
    padding: 1.5rem 2rem;
    max-width: 320px;
    border-left: 3px solid var(--accent);
    opacity: 0;
    animation: fadeUp 0.8s ease 1.1s forwards;
  }
  .hero-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: 1.15rem;
    color: var(--charcoal-soft);
    line-height: 1.5;
  }

  /* STRIP */
  .strip {
    background: var(--charcoal);
    padding: 1.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    overflow: hidden;
  }
  .strip-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(250,248,245,0.7);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .strip-dot {
    width: 5px; height: 5px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* SECTION BASE */
  section { position: relative; }
  .section-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4rem;
  }
  .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
  }

  /* PROBLEMA */
  .problema {
    padding: 8rem 0;
    background: var(--cream);
  }
  .problema .section-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
  }
  .problema-title {
    font-size: clamp(2.5rem, 3.5vw, 3.8rem);
    margin-bottom: 2rem;
    line-height: 1.1;
  }
  .problema-text {
    font-size: 1.05rem;
    color: var(--mid);
    line-height: 1.9;
    margin-bottom: 3rem;
  }
  .problema-stats {
    display: flex;
    flex-direction: column;
    gap: 2rem;
  }
  .stat-quote {
    padding: 2rem;
    border: 1px solid var(--border-strong);
    position: relative;
  }
  .stat-quote::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 3px; height: 100%;
    background: var(--accent);
  }
  .stat-quote p {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.35rem;
    font-style: italic;
    color: var(--charcoal-soft);
    line-height: 1.5;
  }

  /* SOLUCION */
  .solucion {
    padding: 8rem 0;
    background: var(--warm-white);
  }
  .solucion-header {
    text-align: center;
    margin-bottom: 5rem;
  }
  .solucion-title {
    font-size: clamp(2.8rem, 4vw, 4.5rem);
    margin-bottom: 1.5rem;
  }
  .solucion-body {
    font-size: 1.05rem;
    color: var(--mid);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.9;
  }
  .features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-top: 5rem;
    border: 1px solid var(--border);
  }
  .feature-cell {
    background: var(--warm-white);
    padding: 3rem 2.5rem;
    transition: background 0.3s;
  }
  .feature-cell:hover { background: var(--accent-pale); }
  .feature-check {
    width: 36px; height: 36px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    flex-shrink: 0;
  }
  .feature-check svg {
    width: 16px; height: 16px;
    stroke: white;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .feature-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--charcoal);
  }
  .feature-desc {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.7;
  }

  /* PROCESO */
  .proceso {
    padding: 8rem 0;
    background: var(--charcoal);
    overflow: hidden;
  }
  .proceso .section-label { color: var(--accent-light); }
  .proceso-headline {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-size: clamp(2.5rem, 4vw, 4rem);
    color: var(--warm-white);
    text-align: center;
    margin-bottom: 5rem;
    font-weight: 300;
    opacity: 0.9;
  }
  .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }
  .steps::before {
    content: '';
    position: absolute;
    top: 2rem;
    left: calc(12.5% + 1rem);
    right: calc(12.5% + 1rem);
    height: 1px;
    background: rgba(255,255,255,0.15);
  }
  .step {
    padding: 0 2rem;
    text-align: center;
  }
  .step-num {
    width: 4rem; height: 4rem;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.2rem;
    color: var(--accent-light);
    position: relative;
    background: var(--charcoal);
    z-index: 1;
  }
  .step-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.4rem;
    color: var(--warm-white);
    margin-bottom: 0.75rem;
    font-weight: 400;
  }
  .step-desc {
    font-size: 0.85rem;
    color: rgba(250,248,245,0.55);
    line-height: 1.7;
  }

  /* COMPARATIVA */
  .comparativa {
    padding: 8rem 0;
    background: var(--cream);
  }
  .comparativa-header {
    text-align: center;
    margin-bottom: 4rem;
  }
  .comparativa-title {
    font-size: clamp(2.5rem, 3.5vw, 3.8rem);
    margin-bottom: 1rem;
  }
  .table-wrap {
    border: 1px solid var(--border-strong);
    overflow: hidden;
  }
  .comp-table {
    width: 100%;
    border-collapse: collapse;
  }
  .comp-table thead tr {
    background: var(--charcoal);
  }
  .comp-table thead th {
    padding: 1.5rem 2rem;
    text-align: left;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 400;
    color: rgba(250,248,245,0.6);
  }
  .comp-table thead th:last-child {
    color: var(--accent-light);
  }
  .comp-table tbody tr {
    border-bottom: 1px solid var(--border);
  }
  .comp-table tbody tr:last-child { border-bottom: none; }
  .comp-table tbody tr:hover { background: rgba(184,149,90,0.04); }
  .comp-table td {
    padding: 1.25rem 2rem;
    font-size: 0.95rem;
    color: var(--charcoal-soft);
  }
  .comp-table td:first-child {
    font-weight: 500;
  }
  .badge-no {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(28,28,26,0.06);
    color: var(--mid);
    font-size: 0.8rem;
    border-radius: 2px;
  }
  .badge-si {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(184,149,90,0.15);
    color: #8B6B30;
    font-size: 0.8rem;
    border-radius: 2px;
    font-weight: 500;
  }

  /* GALERIA SLIDESHOW */
  .galeria {
    position: relative;
    height: 80vh;
    min-height: 520px;
    overflow: hidden;
    background: var(--charcoal);
  }
  .galeria-slides {
    display: flex;
    height: 100%;
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.175, 1);
  }
  .galeria-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
  }
  .galeria-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.5) contrast(1.1);
  }
  .galeria-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(28,28,26,0.75) 45%, rgba(28,28,26,0.2));
    display: flex;
    align-items: center;
  }
  .galeria-content {
    padding: 0 6rem;
    max-width: 640px;
  }
  .galeria-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 1.5rem;
  }
  .galeria-title {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    font-size: clamp(2.2rem, 3.5vw, 3.5rem);
    color: var(--warm-white);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
  }
  .galeria-text {
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1rem;
    color: rgba(250,248,245,0.75);
    line-height: 1.8;
    max-width: 480px;
  }
  .galeria-divider {
    width: 50px; height: 2px;
    background: var(--accent);
    margin-bottom: 1.5rem;
  }
  .galeria-nav {
    position: absolute;
    bottom: 2.5rem;
    left: 6rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    z-index: 10;
  }
  .galeria-btn {
    width: 44px; height: 44px;
    border: 1px solid rgba(250,248,245,0.35);
    background: transparent;
    color: var(--warm-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, border-color 0.25s;
    flex-shrink: 0;
  }
  .galeria-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
  }
  .galeria-btn svg {
    width: 18px; height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .galeria-dots {
    display: flex;
    gap: 0.5rem;
    align-items: center;
  }
  .galeria-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(250,248,245,0.3);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
    border: none;
    padding: 0;
  }
  .galeria-dot.active {
    background: var(--accent);
    transform: scale(1.4);
  }
  .galeria-counter {
    position: absolute;
    bottom: 2.5rem;
    right: 4rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    color: rgba(250,248,245,0.4);
    letter-spacing: 0.1em;
  }

  /* CTA FINAL */
  .cta-final {
    padding: 4rem 0;
    background: var(--warm-white);
    text-align: center;
  }
  .cta-title {
    font-size: clamp(2.5rem, 4vw, 4rem);
    margin-bottom: 1.5rem;
  }
  .cta-sub {
    font-size: 1rem;
    color: var(--mid);
    max-width: 500px;
    margin: 0 auto 3rem;
    line-height: 1.8;
  }
  .cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
  }

  /* FORMULARIO */
  .form-section {
    padding: 6rem 0;
    background: var(--cream);
  }
  .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: start;
  }
  .form-headline {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1.5rem;
  }
  .form-body {
    font-size: 1rem;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 2rem;
  }
  .contact-points {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .contact-point {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--charcoal-soft);
  }
  .cp-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
  }
  .form-card {
    background: var(--warm-white);
    padding: 3rem;
    border: 1px solid var(--border-strong);
  }
  .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
  }
  .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
  }
  label {
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid);
  }
  input, select, textarea {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-strong);
    background: var(--warm-white);
    color: var(--charcoal);
    outline: none;
    transition: border-color 0.2s;
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
  }
  input:focus, select:focus, textarea:focus {
    border-color: var(--accent);
  }
  textarea { resize: vertical; min-height: 120px; }
  .form-submit {
    width: 100%;
    padding: 1rem;
    background: var(--charcoal);
    color: var(--warm-white);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border: 1px solid var(--charcoal);
    cursor: pointer;
    transition: background 0.25s, color 0.25s;
    margin-top: 0.5rem;
  }
  .form-submit:hover {
    background: transparent;
    color: var(--charcoal);
  }
  .form-note {
    font-size: 0.75rem;
    color: var(--mid);
    text-align: center;
    margin-top: 1rem;
  }

  /* FOOTER */
  footer {
    background: var(--charcoal);
    padding: 4rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: end;
    gap: 2rem;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .footer-logo img {
    height: 45px; /* Un poco más grande para el pie de página */
    width: auto;
    display: block;
     /* Si tu logo es oscuro, esta línea lo vuelve blanco para que se vea en el fondo negro: */
    filter: brightness(0) invert(1); 
  }
  .footer-tagline {
    font-size: 0.85rem;
    color: rgba(250,248,245,0.4);
    letter-spacing: 0.05em;
  }
  .footer-copy {
    font-size: 0.75rem;
    color: rgba(250,248,245,0.3);
    text-align: right;
  }

  /* SCROLL REVEAL */
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-delay-1 { transition-delay: 0.1s; }
  .reveal-delay-2 { transition-delay: 0.2s; }
  .reveal-delay-3 { transition-delay: 0.3s; }
  .reveal-delay-4 { transition-delay: 0.4s; }

  /* ANIMATIONS */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* SUCCESS STATE */
  .form-success {
    display: none;
    text-align: center;
    padding: 3rem;
  }
  .form-success.show { display: block; }
  .form-success h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
  }
  .form-success p {
    color: var(--mid);
    font-size: 0.95rem;
  }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    nav { padding: 1.25rem 2rem; }
    nav.scrolled { padding: 0.9rem 2rem; }
    
    .hero { grid-template-columns: 1fr; }
    .hero-left { padding: 8rem 2rem 4rem; min-height: 70vh; }
    .hero-right { height: 50vh; }
    .hero-quote { left: 1rem; bottom: 1.5rem; }
    .strip { gap: 2rem; padding: 1.5rem 2rem; flex-wrap: wrap; }
    .problema .section-inner { grid-template-columns: 1fr; gap: 3rem; }
    .features-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr; gap: 3rem; }
    .steps::before { display: none; }
    .form-grid { grid-template-columns: 1fr; gap: 3rem; }
    .footer { grid-template-columns: 1fr; }
    .footer-copy { text-align: left; }
    .section-inner { padding: 0 2rem; }
  }

  @media (max-width: 640px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .comp-table thead th:nth-child(2),
    .comp-table td:nth-child(2) { display: none; }
    .hero-title { font-size: 3rem; }
    footer { padding: 3rem 2rem; }
  }
/* =========================================
   PÁGINA: MODELOS DE CASA
   ========================================= */

/* HERO DE MODELOS */
.page-hero {
  position: relative;
  padding: 12rem 4rem 6rem;
  background: var(--charcoal);
  color: var(--warm-white);
  text-align: center;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?q=80&w=2000') center/cover;
  opacity: 0.25;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--charcoal) 0%, transparent 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}
.page-hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(3.5rem, 5vw, 5rem);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.page-hero-sub {
  font-size: 1.1rem;
  color: rgba(250,248,245,0.8);
  line-height: 1.8;
}

/* SERVICIOS ASOCIADOS */
.servicios-strip {
  background: var(--cream);
  padding: 1.5rem 4rem;
  border-bottom: 1px solid var(--border);
}
.servicios-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
}
.servicios-label {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--charcoal);
}
.servicios-list {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
}
.servicio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--mid);
}
.servicio-check {
  width: 16px;
  height: 16px;
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
}

/* INTRO MODELOS */
.intro-modelos {
  padding: 8rem 0;
  background: var(--warm-white);
}
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}
.intro-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 1.5rem;
}
.intro-body {
  font-size: 1.05rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2.5rem;
}
.modelos-stats {
  display: flex;
  gap: 3rem;
}
.modelo-stat {
  border-left: 2px solid var(--accent);
  padding-left: 1.5rem;
}
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-num span {
  color: var(--accent);
  font-size: 2rem;
}
.stat-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}

/* FILTROS */
.filtros {
  background: var(--warm-white);
  padding: 0 4rem 4rem;
  text-align: center;
}
.filtros-inner {
  display: inline-flex;
  gap: 1rem;
  background: var(--cream);
  padding: 0.5rem;
  border-radius: 40px;
}
.filtro-btn {
  background: transparent;
  border: none;
  padding: 0.75rem 2rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s;
}
.filtro-btn.active, .filtro-btn:hover {
  background: var(--charcoal);
  color: var(--warm-white);
}

/* LISTA DE MODELOS */
.modelos-section {
  background: var(--warm-white);
}
.modelo-row {
  border-top: 1px solid var(--border);
}
.modelo-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.modelo-row.reverse .modelo-inner {
  /* Si necesitas invertir el orden en escritorio, lo controlas aquí o en el HTML */
}
.modelo-plano {
  position: relative;
  padding: 4rem;
  background: rgba(245,241,235,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}
.plano-img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}
.plano-tag {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: var(--charcoal);
  color: var(--warm-white);
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.modelo-info {
  padding: 6rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.modelo-tipo {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.modelo-nombre {
  font-family: 'Cormorant Garamond', serif;
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}
.modelo-subtipo {
  font-size: 1rem;
  color: var(--charcoal);
  margin-bottom: 2.5rem;
}
.modelo-specs {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.spec-item {
  display: flex;
  flex-direction: column;
}
.spec-val {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--charcoal);
}
.spec-key {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--mid);
}
.modelo-desc {
  font-size: 1rem;
  color: var(--mid);
  line-height: 1.8;
  margin-bottom: 2rem;
}
.modelo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}
.tag {
  font-size: 0.75rem;
  padding: 0.4rem 1rem;
  background: var(--cream);
  color: var(--charcoal-soft);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.modelo-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--charcoal);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}
.modelo-cta:hover { color: var(--accent); }
.modelo-cta svg {
  width: 20px; height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform 0.3s;
}
.modelo-cta:hover svg { transform: translateX(5px); }

/* DIVISOR TEXTO */
.texto-divider {
  padding: 6rem 0;
  background: var(--charcoal);
  text-align: center;
}
.texto-divider-inner p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3vw, 3rem);
  color: var(--warm-white);
}
.texto-divider-inner em {
  color: var(--accent);
  font-style: italic;
}

/* CTA FINAL MODELOS */
.cta-modelos {
  padding: 3rem 0;
  background: var(--cream);
  text-align: center;
}
.cta-modelos-title {
  font-size: clamp(2.5rem, 4vw, 4rem);
  margin-bottom: 1.5rem;
}
.cta-modelos-sub {
  font-size: 1rem;
  color: var(--mid);
  max-width: 500px;
  margin: 0 auto 3rem;
  line-height: 1.8;
}

/* MODAL COTIZACIÓN (Ventana Emergente) */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28,28,26,0.8);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.modal {
  background: var(--warm-white);
  padding: 4rem;
  width: 100%;
  max-width: 500px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.4s;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--mid);
}
.modal-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  line-height: 1.1;
  margin-bottom: 2rem;
}
.modal-form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.modal-submit {
  width: 100%;
  padding: 1rem;
  background: var(--charcoal);
  color: var(--warm-white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: background 0.3s;
  margin-top: 1rem;
}
.modal-submit:hover { background: var(--accent); }
.modal-note {
  font-size: 0.75rem;
  color: var(--mid);
  text-align: center;
  margin-top: 1rem;
}

/* RESPONSIVE MODELOS */
@media (max-width: 1024px) {
  .intro-grid { grid-template-columns: 1fr; gap: 3rem; }
  .modelo-inner, .modelo-row.reverse .modelo-inner { grid-template-columns: 1fr; }
  .servicios-inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
}
@media (max-width: 640px) {
  .modelos-stats { flex-direction: column; gap: 1.5rem; }
  .modelo-info { padding: 4rem 2rem; }
  .modelo-plano { padding: 2rem; }
  .filtros-inner { flex-direction: column; border-radius: 10px; }
  .filtro-btn { border-radius: 5px; }
  .modal { padding: 3rem 2rem; }
}  
/* =========================================
   NUEVA SECCIÓN: FEED ESTILO INSTAGRAM
   ========================================= */
.instagram-carousel {
  padding: 6rem 0;
  background: var(--warm-white);
  border-top: 1px solid var(--border);
  overflow: hidden;
}

.ig-track-container {
  width: 100%;
  position: relative;
}

.ig-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.5rem 0 1.5rem;
  /* Ocultamos la barra de scroll por estética en todos los navegadores */
  scrollbar-width: none; 
}

.ig-track::-webkit-scrollbar {
  display: none; 
}

.ig-item {
  /* En escritorio muestra 4 fotos exactas por vista */
  flex: 0 0 calc(25% - 1.125rem); 
  aspect-ratio: 1 / 1; /* Cuadrado perfecto estilo IG */
  position: relative;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--cream);
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(28,28,26,0.02);
}

.ig-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ig-overlay {
  position: absolute;
  inset: 0;
  background: rgba(28, 28, 26, 0.35); /* Capa oscura */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.ig-item:hover img {
  transform: scale(1.05); /* Efecto zoom sutil */
}

.ig-item:hover .ig-overlay {
  opacity: 1;
}

.ig-icon {
  font-size: 1.4rem;
  filter: brightness(0) invert(1); /* Fuerza a que el icono sea blanco puro */
}

/* RESPONSIVE PARA EL FEED */
@media (max-width: 1024px) {
  .ig-item {
    flex: 0 0 calc(33.333% - 1rem); /* 3 fotos por vista en tablets */
  }
}

@media (max-width: 640px) {
  .ig-item {
    /* Muestra 1 foto y media en celulares, esto es clave porque le avisa visualmente 
       al usuario que la sección se puede deslizar hacia el lado */
    flex: 0 0 calc(65% - 0.75rem); 
  }
  .instagram-carousel {
    padding: 4rem 0;
  }
}
/* =========================================
   MENÚ HAMBURGUESA Y NAVEGACIÓN MÓVIL
   ========================================= */

/* Botón Hamburguesa (Oculto en escritorio) */
.hamburger {
  display: none;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 0.5rem;
  z-index: 1001; /* Por encima de todo */
}

.hamburger .bar {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background-color: var(--charcoal);
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.mobile-only-cta {
  display: none;
}

/* RESPONSIVE: Tablets y Celulares */
@media (max-width: 1024px) {
  .hamburger {
    display: block;
  }
  
  .desktop-only-cta {
    display: none; 
  }

  .mobile-only-cta {
    display: block;
    margin-top: 2rem;
  }

  /* El menú lateral oculto */
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%; /* Oculto fuera de la pantalla a la derecha */
    width: 100%;
    max-width: 400px; /* En tablets no ocupa toda la pantalla */
    height: 100vh;
    background-color: var(--warm-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1000;
  }

  /* Clase que activa el deslizamiento */
  .nav-links.active {
    right: 0; 
  }

  .nav-links li {
    margin: 1.5rem 0;
  }

  .nav-links a {
    font-size: 1.5rem; /* Letra más grande para dedos */
    font-family: 'Cormorant Garamond', serif;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: var(--charcoal);
  }

  .mobile-only-cta a {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
  }

  /* Animación de Hamburguesa a 'X' */
  .hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active .bar:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

@media (max-width: 640px) {
  .nav-links {
    max-width: 100%; /* En celular ocupa toda la pantalla */
  }
}
/* =========================================
   CUADRO DE CONTACTO DIRECTO (PÁGINA CONTACTO)
   ========================================= */
.direct-contact-box {
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--warm-white);
  border: 1px solid var(--border-strong);
  max-width: 320px; /* Evita que se estire demasiado en pantallas grandes */
}

.direct-contact-box .box-title {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.direct-contact-box .box-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  font-size: 0.95rem;
}

.direct-contact-box .box-item:last-child {
  margin-bottom: 0; /* Quita el margen al último elemento */
}

.direct-contact-box .box-symbol {
  font-size: 1rem;
  opacity: 0.8;
}

.direct-contact-box .box-item a {
  color: var(--charcoal-soft);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.25s ease;
}

/* Efecto dorado elegante al pasar el mouse por encima del teléfono o correo */
.direct-contact-box .box-item a:hover {
  color: var(--accent);
}

/* Ajuste responsive para celulares */
@media (max-width: 1024px) {
  .direct-contact-box {
    max-width: 100%; /* Ocupa todo el ancho en celulares */
    margin-top: 2.5rem;
  }
}