/* ============================================================
   PERSIANAS LOZANO — Page-Specific Responsive Layouts
   ============================================================ */

/* ---- GLOBAL: Nav spacing for fixed nav ---- */
main {
  padding-top: 96px;
}

@media (max-width: 768px) {
  main { padding-top: 72px; }
}

/* ---- HOME: Hero ---- */
#hero {
  padding-left: var(--margin-desktop);
  padding-right: var(--margin-desktop);
  height: calc(100vh - 96px);
  min-height: 560px;
  max-height: 900px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding-bottom: 64px;
}

@media (max-width: 1024px) {
  #hero {
    padding-left: var(--margin-tablet);
    padding-right: var(--margin-tablet);
    height: auto;
    min-height: calc(100vh - 80px);
    padding-bottom: 48px;
  }
}

@media (max-width: 768px) {
  #hero {
    padding-left: var(--margin-mobile);
    padding-right: var(--margin-mobile);
    height: auto;
    min-height: calc(100vh - 72px);
    padding-bottom: 32px;
  }
  #hero .text-display-lg {
    font-size: 36px;
    line-height: 44px;
    margin-bottom: 16px !important;
  }
  #hero .text-body-lg {
    font-size: 16px;
    line-height: 24px;
    margin-bottom: 32px !important;
  }
  #hero .btn-primary,
  #hero .btn-secondary {
    width: 100%;
    padding: 14px 24px;
  }
}

/* ---- HOME: Sheer Elegance ---- */
@media (max-width: 768px) {
  .sheer-text-col {
    grid-column: 1 / -1 !important;
    order: 2;
    margin-top: 32px;
  }
  .sheer-text-col .text-display-lg {
    font-size: 36px !important;
    line-height: 1.15 !important;
  }
  .sheer-text-col .text-editorial-italic {
    font-size: 22px !important;
  }
  .sheer-img-col {
    grid-column: 1 / -1 !important;
    order: 1;
  }
  .sheer-img-col .img-zoom-container {
    height: 50vh !important;
    max-height: 400px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .sheer-text-col {
    grid-column: span 6 !important;
  }
  .sheer-img-col {
    grid-column: span 6 !important;
  }
}

/* ---- HOME: Solutions ---- */
@media (max-width: 768px) {
  .sol-img-col,
  .sol-img-col-r {
    grid-column: 1 / -1 !important;
  }
  .sol-text-col,
  .sol-text-col-r {
    grid-column: 1 / -1 !important;
    order: 2 !important;
    margin-top: 24px;
  }
  .sol-img-col-r {
    order: 1 !important;
  }
}

/* ---- HOME: Nuestra Historia ---- */
@media (max-width: 768px) {
  .historia-img-col {
    grid-column: 1 / -1 !important;
  }
  .historia-img-col .aspect-4-5 {
    aspect-ratio: 3/4;
    max-height: 450px;
  }
  .historia-text-col {
    grid-column: 1 / -1 !important;
    margin-top: 32px;
  }
}

/* ---- HOME: Motorización ---- */
@media (max-width: 768px) {
  .motor-text-col {
    grid-column: 1 / -1 !important;
    padding-top: 0 !important;
    margin-bottom: 32px;
  }
  .motor-video-col {
    grid-column: 1 / -1 !important;
  }
  .motor-benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .motor-text-col {
    grid-column: span 5 !important;
  }
  .motor-video-col {
    grid-column: span 7 !important;
  }
  .motor-benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* ---- HOME: CTA Form ---- */
@media (max-width: 768px) {
  .form-grid-2 {
    grid-template-columns: 1fr !important;
  }
  #cotizar form {
    padding: 32px 24px !important;
  }
  #cotizar .text-display-lg {
    font-size: 32px !important;
    line-height: 1.2 !important;
  }
}

/* ---- HOME: Cobertura ---- */
@media (max-width: 768px) {
  .cobertura-zone-card {
    grid-column: 1 / -1 !important;
  }
}

/* ---- PERSIANAS: Product cards ---- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--gutter);
  align-items: center;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.product-img-col {
  grid-column: span 8;
}

.product-text-col {
  grid-column: span 4;
  position: relative;
  z-index: 10;
}

.product-text-card {
  background: var(--color-surface);
  padding: 48px 64px;
  border: 1px solid rgba(198, 198, 203, 0.1);
  box-shadow: 0 4px 40px -10px rgba(0, 0, 0, 0.05);
}

@media (min-width: 769px) and (max-width: 1280px) {
  .product-text-card {
    padding: 36px 40px;
    margin-left: -32px !important;
    margin-right: -32px !important;
    margin-top: 48px !important;
  }
  .product-img-col {
    grid-column: span 7 !important;
  }
  .product-text-col {
    grid-column: span 5 !important;
  }
}

@media (max-width: 768px) {
  .product-img-col,
  .product-text-col {
    grid-column: 1 / -1 !important;
  }
  .product-text-card {
    padding: 32px 24px;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: -24px;
  }
}

/* ---- PERSIANAS: Reversed layout ---- */
.product-grid--reversed .product-text-col {
  order: 1;
}
.product-grid--reversed .product-img-col {
  order: 2;
}

@media (max-width: 768px) {
  .product-grid--reversed .product-text-col { order: 2; }
  .product-grid--reversed .product-img-col { order: 1; }
}

/* ---- PROYECTOS: Editorial gallery ---- */
.project-block {
  margin-bottom: 128px;
}

@media (max-width: 768px) {
  .project-block { margin-bottom: 64px; }
}

.project-main-img {
  grid-column: span 8;
}

.project-sidebar {
  grid-column: 10 / span 3;
  border-left: 1px solid rgba(198, 198, 203, 0.5);
  padding-left: 24px;
}

.project-secondary-img {
  grid-column: 2 / span 5;
}

@media (max-width: 768px) {
  .project-main-img,
  .project-sidebar,
  .project-secondary-img {
    grid-column: 1 / -1 !important;
    border-left: none;
    padding-left: 0;
  }
  .project-sidebar {
    border-top: 1px solid rgba(198, 198, 203, 0.5);
    padding-top: 24px;
    margin-top: 16px;
  }
}

/* Reversed project */
.project-grid--reversed .project-sidebar-r {
  grid-column: 1 / span 4;
  border-right: none;
  border-top: 1px solid rgba(198, 198, 203, 0.5);
  padding-top: 24px;
  text-align: right;
}

.project-grid--reversed .project-main-img-r {
  grid-column: 6 / span 7;
}

.project-grid--reversed .project-secondary-img-r {
  grid-column: 6 / span 6;
}

@media (max-width: 768px) {
  .project-grid--reversed .project-sidebar-r,
  .project-grid--reversed .project-main-img-r,
  .project-grid--reversed .project-secondary-img-r {
    grid-column: 1 / -1 !important;
    text-align: left;
  }
  .project-grid--reversed .project-sidebar-r {
    order: 2;
  }
  .project-grid--reversed .project-main-img-r {
    order: 1;
  }
}

/* ---- NOSOTROS: Hero ---- */
.nosotros-hero-text {
  grid-column: 2 / span 5;
}

.nosotros-hero-img {
  grid-column: span 6;
  position: relative;
}

@media (max-width: 768px) {
  .nosotros-hero-text,
  .nosotros-hero-img {
    grid-column: 1 / -1 !important;
  }
}

/* ---- NOSOTROS: Values grid ---- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px;
}

@media (max-width: 768px) {
  .values-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- NOSOTROS: Process grid ---- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

@media (max-width: 768px) {
  .process-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ---- CONTACTO: Main grid ---- */
.contacto-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: calc(var(--gutter) * 2);
}

@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

.contacto-form-card {
  background: var(--color-surface-container-lowest);
  padding: 48px 64px;
  border: 1px solid var(--color-ghost-border);
}

@media (max-width: 768px) {
  .contacto-form-card {
    padding: 32px 24px;
  }
}

.contacto-info-block {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-ghost-border);
}

.contacto-info-block:last-of-type {
  border-bottom: none;
}

/* ---- FOOTER: Responsive ---- */
@media (max-width: 768px) {
  .footer-grid {
    gap: 40px !important;
  }
  .footer-brand-col,
  .footer-legal-col,
  .footer-connect-col {
    grid-column: 1 / -1 !important;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .footer-brand-col {
    grid-column: span 12 !important;
    margin-bottom: 24px;
  }
  .footer-legal-col {
    grid-column: span 6 !important;
  }
  .footer-connect-col {
    grid-column: span 6 !important;
  }
}

/* ---- PERSIANAS: Hero text responsive ---- */
@media (max-width: 768px) {
  .persianas-hero-text {
    max-width: 100% !important;
  }
}

/* ---- NOSOTROS: Values columns ---- */
@media (max-width: 768px) {
  .valores-text-col {
    grid-column: 1 / -1 !important;
    margin-bottom: 32px;
  }
  .valores-grid-col {
    grid-column: 1 / -1 !important;
  }
  .proceso-header {
    margin-left: 0 !important;
  }
  .proceso-card {
    grid-column: 1 / -1 !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(198, 198, 203, 0.3);
    padding: 0 0 32px 0 !important;
    margin-bottom: 16px;
  }
  .proceso-card:last-child {
    border-bottom: none;
  }
}

/* ---- CONTACTO: Header text responsive ---- */
@media (max-width: 768px) {
  .contacto-header-text {
    max-width: 100% !important;
  }
}

/* ---- CONTACTO: Atmospheric image responsive ---- */
@media (min-width: 769px) and (max-width: 1200px) {
  .contacto-atm-img {
    margin-left: 0 !important;
  }
}

