/* 
  TALLER ARMEX - ESTILO MK27
  Fondo gris oscuro, tipografía elegante minimalista, blanco y grises.
*/

:root {
  --bg-dark: #242424;
  --bg-card: #1e1e1e;
  --bg-hover: #262626;
  --text-white: #ffffff;
  --text-muted: #a0a0a0;
  --text-dim: #666666;
  --accent-gold: #c5a059;
  --accent-green: #92CE5E;
  --font-main: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.3s ease;
  --transition-smooth: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  --header-height: 80px;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: var(--font-main);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

p {
  text-align: justify;
}

/* Títulos globales en verde */
h1, h2, h3, h4, h5, h6 {
  color: var(--accent-green);
}

/* ==========================================================================
   HEADER & MENU MINIMALISTA (ESTILO MK27)
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 40px;
  background: rgba(36, 36, 36, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: background var(--transition-fast), padding var(--transition-fast);
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: opacity var(--transition-fast);
}

.brand-logo:hover img {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  gap: 20px;
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: 'Cute Font', cursive, sans-serif;
  font-size: 1.6rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  position: relative;
  padding: 8px 18px;
  border-radius: 4px;
  background-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  line-height: 1;
}

.nav-link:hover,
.nav-link.active {
  background-color: #ffffff;
  color: #000000 !important;
  opacity: 1 !important;
}

/* Removido el subrayado */
.nav-link::after {
  display: none;
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ==========================================================================
   INDEX - 4 FRANJAS HORIZONTALES (ESTILO MK27)
   ========================================================================== */
.index-container {
  width: 100vw;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.strip-item {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.strip-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
  filter: brightness(0.75) saturate(50%);
}

.strip-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(36,36,36,0.3) 0%, rgba(36,36,36,0.7) 100%);
  transition: background var(--transition-fast);
}

.strip-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-smooth);
}

.strip-title {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent-green);
  transition: letter-spacing var(--transition-smooth), color var(--transition-fast);
}

.strip-subtitle {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: var(--text-white);
  text-transform: uppercase;
  margin-top: 8px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

/* ROLLOVER / HOVER EFFECTS ON INDEX STRIPS */
.strip-item:hover .strip-bg {
  transform: scale(1.05);
  filter: brightness(0.95) saturate(100%);
}

.strip-item:hover .strip-overlay {
  background: rgba(36, 36, 36, 0.2);
}

.strip-item:hover .strip-title {
  letter-spacing: 9px;
}

.strip-item:hover .strip-subtitle {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   PAGE LAYOUT & SECTIONS (INTERIOR PAGES)
   ========================================================================== */
.page-wrapper {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  flex-direction: column;
}

.hero-banner {
  height: 50vh;
  min-height: 350px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.65);
}

.hero-title {
  position: relative;
  z-index: 2;
  font-size: 3rem;
  font-weight: 300;
  letter-spacing: 8px;
  text-transform: uppercase;
  text-align: center;
  padding: 0 20px;
  color: var(--accent-green);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px;
  width: 100%;
}

.section-header {
  margin-bottom: 60px;
  text-align: center;
}

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--accent-green);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ==========================================================================
   SERVICIOS PAGE
   ========================================================================== */
.services-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-bottom: 80px;
  padding: 80px 24px 0;
}

.services-intro-photo {
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
  height: 100%;
  max-height: 480px;
}

.services-intro-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.services-intro-photo:hover img {
  transform: scale(1.03);
}

.services-intro-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.services-intro-title {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.services-intro-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 18px;
}

.services-intro-text p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .services-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 40px 16px 0;
  }

  .services-grid {
    padding: 0 16px 50px;
    grid-template-columns: 1fr;
  }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  padding: 0 24px 80px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-img {
  height: 220px;
  overflow: hidden;
}

.service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.service-card:hover .service-img img {
  transform: scale(1.08);
}

.service-content {
  padding: 30px 24px;
}

.service-title {
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 2px;
  margin-bottom: 14px;
  color: var(--accent-green);
}

.service-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* METRICS BAR */
.metrics-section {
  background: var(--accent-green);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 60px 0;
  margin: 40px 0;
}

.metrics-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 40px;
  text-align: center;
  padding: 0 24px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.metric-number {
  display: block;
  font-size: 3rem;
  font-weight: 400;
  color: #ffffff;
  letter-spacing: 2px;
}

.metric-label {
  font-size: 0.85rem;
  letter-spacing: 3px;
  color: #ffffff;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .metrics-section {
    padding: 40px 0;
  }

  .metrics-container {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    padding: 0 20px;
  }

  .metric-item {
    width: 100%;
  }

  .metric-number {
    font-size: 2.8rem;
    letter-spacing: 2px;
  }

  .metric-label {
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-top: 4px;
  }
}

/* ==========================================================================
   NOSOTROS PAGE
   ========================================================================== */
.about-grid-container {
  width: 100vw;
  min-height: calc(100vh - var(--header-height));
  padding: 4px;
  background-color: var(--bg-dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  width: 100%;
  min-height: calc(100vh - var(--header-height) - 8px);
}

.about-title {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 24px;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 40px;
  background-color: #161616;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-img {
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
}

.about-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.about-img:hover img {
  transform: scale(1.03);
}

/* ==========================================================================
   PORTAFOLIO (8 TILES GRID 4x2) & EN PROCESO (4 TILES GRID 2x2)
   ========================================================================== */
.portfolio-screen-container {
  width: 100vw;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  overflow: hidden;
  background-color: var(--bg-dark);
  padding: 4px;
}

.portfolio-12-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  height: 100%;
  gap: 4px;
}

.portfolio-8-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  gap: 4px;
}

.proceso-4-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  gap: 4px;
}

.proceso-6-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  width: 100%;
  height: 100%;
  gap: 4px;
}

.portfolio-tile {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.tile-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: brightness(0.75) saturate(50%);
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.tile-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(36, 36, 36, 0.4);
  transition: background var(--transition-fast);
}

.tile-content {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tile-title {
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 4px;
  color: var(--accent-green);
  text-transform: uppercase;
  transition: letter-spacing var(--transition-smooth), color var(--transition-fast);
}

.tile-subtitle {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: #ffffff;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--transition-smooth), transform var(--transition-smooth);
}

/* ROLLOVER EN TILES */
.portfolio-tile:hover .tile-bg {
  transform: scale(1.08);
  filter: brightness(0.95) saturate(100%);
}

.portfolio-tile:hover .tile-overlay {
  background: rgba(36, 36, 36, 0.15);
}

.portfolio-tile:hover .tile-title {
  letter-spacing: 6px;
  color: var(--accent-green);
}

.portfolio-tile:hover .tile-subtitle {
  opacity: 1;
  transform: translateY(0);
}

.tile-special .tile-title {
  color: var(--accent-green);
}

/* ==========================================================================
   LAYOUT DETALLE DE PROYECTO (2 COLUMNAS)
   ========================================================================== */
.project-detail-layout {
  display: flex;
  width: 100vw;
  height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
  background-color: var(--bg-dark);
  padding: 4px;
  gap: 4px;
  overflow: hidden;
}

/* Columna de 4 Fotografías (Ancha ~65-70%) - 2x2 Rejilla Responsiva */
.project-photos-col {
  flex: 7;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
  height: 100%;
  width: 100%;
}

.project-photos-col.grid-6 {
  grid-template-rows: repeat(3, 1fr);
}

.project-photo-item {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.project-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.project-photo-item:hover img {
  transform: scale(1.03);
}

/* Columna de Información (Centrada Verticalmente ~30-35%) */
.project-info-col {
  flex: 3.5;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background-color: #161616;
}

.project-info-box {
  width: 100%;
  max-width: 400px;
}

.project-title {
  font-size: 2.2rem;
  font-weight: 400;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--accent-green);
  margin-bottom: 15px;
}

.project-divider {
  width: 50px;
  height: 2px;
  background-color: var(--accent-green);
  margin-bottom: 25px;
}

.project-meta p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
}

.project-meta strong {
  color: var(--text-white);
  font-weight: 400;
}

.project-description {
  margin-top: 25px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text-muted);
}

.project-description p {
  margin-bottom: 15px;
}

.back-link {
  display: inline-block;
  margin-top: 30px;
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent-green);
  padding: 10px 20px;
  border: 1px solid var(--accent-green);
  transition: all var(--transition-fast);
}

.back-link:hover {
  background-color: var(--accent-green);
  color: #000000;
}

/* RESPONSIVE PROYECTOS Y PORTAFOLIO */
@media (max-width: 1024px) {
  .portfolio-screen-container {
    height: auto;
    overflow: visible;
  }

  .portfolio-12-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  .portfolio-8-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  .proceso-6-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  /* Tiles en tablet: altura fija visible */
  .portfolio-tile {
    height: 28vh;
    min-height: 180px;
  }

  .project-detail-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
  }

  .project-photos-col {
    height: 70vh;
    min-height: 450px;
  }

  .project-info-col {
    height: auto;
    padding: 50px 20px;
  }
}

@media (max-width: 600px) {
  .portfolio-12-grid,
  .portfolio-8-grid,
  .proceso-4-grid,
  .proceso-6-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .portfolio-tile {
    height: 24vh;
    min-height: 150px;
  }

  .project-photos-col,
  .project-photos-col.grid-6,
  .project-photos-col.grid-3x2,
  .project-photos-col.grid-3x3,
  .project-photos-col.grid-2x1,
  .project-photos-col.grid-1x2 {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .project-photo-item {
    height: 220px;
  }

  .tile-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }
}

/* LIGHTBOX MODAL */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(10, 10, 10, 0.92);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: var(--text-white);
  font-size: 2.5rem;
  cursor: pointer;
  font-weight: 200;
}

/* ==========================================================================
   CONTACTO PAGE (LAYOUT 2 COLUMNAS)
   ========================================================================== */
.contact-page-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100vw;
  min-height: calc(100vh - var(--header-height));
  margin-top: var(--header-height);
}

.contact-image-col {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  background-color: #1a1a1a;
}

.contact-large-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.contact-content-col {
  padding: 40px 50px;
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 30px;
  height: 100%;
}

.contact-top-half {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-bottom-half {
  width: 100%;
  height: 100%;
  min-height: 250px;
}

.contact-bottom-half .map-wrapper {
  height: 100%;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.contact-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.contact-icon {
  font-size: 1.3rem;
  color: var(--accent-green);
  margin-top: 4px;
}

.contact-label {
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: none;
}

.contact-value {
  font-size: 1.1rem;
  color: var(--accent-green);
}

.map-wrapper {
  width: 100%;
  height: 400px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ==========================================================================
   FOOTER MINIMALISTA
   ========================================================================== */
.main-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
  background-color: var(--bg-dark);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-social {
  display: flex;
  gap: 24px;
}

.footer-social a {
  color: var(--text-muted);
  font-size: 1.2rem;
}

.footer-social a:hover {
  color: var(--text-white);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 1px;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 900px) {
  .nav-menu {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    height: calc(100vh - var(--header-height));
    background: var(--bg-dark);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 30px;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
    pointer-events: none;
  }

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

  .mobile-toggle {
    display: block;
  }

  .about-grid,
  .contact-grid,
  .contact-page-container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Nosotros: imagen primero, luego texto con margen */
  .about-grid {
    display: flex;
    flex-direction: column;
  }

  .about-img {
    min-height: 300px;
    max-height: 50vh;
  }

  .about-text {
    padding: 40px 20px;
  }

  /* Contacto: imagen, luego contenido con margen */
  .contact-page-container {
    display: flex;
    flex-direction: column;
    min-height: auto;
  }

  .contact-image-col {
    min-height: 280px;
    max-height: 45vh;
  }

  .contact-large-img {
    min-height: 280px;
    height: 100%;
  }

  .contact-content-col {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: auto;
    grid-template-rows: none;
  }

  .contact-top-half,
  .contact-bottom-half {
    height: auto;
  }

  /* Mapa: altura fija y clampeada en móvil */
  .map-wrapper {
    height: 280px;
  }

  .contact-bottom-half .map-wrapper {
    height: 280px;
  }

  /* Grilla de datos de contacto: 1 columna */
  .contact-info-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .contact-large-img {
    min-height: 350px;
  }

  .strip-title {
    font-size: 1.6rem;
    letter-spacing: 4px;
  }

  .hero-title {
    font-size: 2rem;
    letter-spacing: 4px;
  }

  /* Servicios intro: 1 columna */
  .services-intro-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 40px;
  }

  .services-intro-photo {
    max-height: 300px;
  }

  /* Container con márgenes laterales */
  .container {
    padding: 50px 16px;
  }
}

@media (max-width: 600px) {
  .main-header {
    padding: 0 16px;
  }

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

  .index-container {
    height: auto;
    min-height: calc(100vh - var(--header-height));
  }

  .strip-item {
    height: 22vh;
    min-height: 140px;
  }

  /* Reducir letter-spacing en rollover para que no se corte en móvil */
  .strip-item:hover .strip-title {
    letter-spacing: 5px;
  }

  .strip-title {
    font-size: 1.4rem;
    letter-spacing: 3px;
  }

  .strip-subtitle {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    padding: 0 12px;
    text-align: center;
    word-break: break-word;
  }

  /* Tiles: texto más pequeño y letter-spacing reducido en hover */
  .tile-title {
    font-size: 1.1rem;
    letter-spacing: 2px;
  }

  .portfolio-tile:hover .tile-title {
    letter-spacing: 3px;
  }

  .tile-subtitle {
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 0 8px;
    word-break: break-word;
  }

  /* Proyectos main grid: 1 columna en móvil */
  .proyectos-5-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .proyectos-5-grid .portfolio-tile:nth-child(1),
  .proyectos-5-grid .portfolio-tile:nth-child(2),
  .proyectos-5-grid .portfolio-tile:nth-child(3),
  .proyectos-5-grid .portfolio-tile:nth-child(4),
  .proyectos-5-grid .portfolio-tile:nth-child(5) {
    grid-column: span 1;
  }

  /* Tiles de proyectos: altura generosa para ver título + subtítulo */
  .proyectos-main-grid .portfolio-tile {
    height: 160px;
    min-height: 160px;
  }

  /* Título: visible completo, sin corte */
  .proyectos-main-grid .tile-title {
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 3px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    color: var(--accent-green);
  }

  /* Subtítulo: siempre visible en móvil (sin hover requerido) */
  .proyectos-main-grid .tile-subtitle {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    padding: 0;
    margin-top: 6px;
    color: #ffffff;
  }

  /* Página de detalle de proyecto */
  .project-detail-layout {
    flex-direction: column;
    height: auto;
    overflow: visible;
    padding: 4px;
    gap: 4px;
  }

  .project-photos-col {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  .project-photo-item {
    height: 220px;
  }

  .project-info-col {
    height: auto;
    padding: 30px 20px;
  }

  .project-title {
    font-size: 1.6rem;
    letter-spacing: 3px;
  }

  /* Hero banner en páginas interiores */
  .hero-title {
    font-size: 1.5rem;
    letter-spacing: 3px;
  }

  /* Metrics: texto más pequeño */
  .metric-number {
    font-size: 2.2rem;
  }

  .metrics-container {
    gap: 24px;
  }

  /* Márgenes en sección nosotros */
  .about-text {
    padding: 30px 16px;
  }

  .about-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  /* Servicios */
  .services-intro-title {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Footer */
  .main-footer {
    padding: 30px 16px;
  }

  /* Mapa en contacto */
  .map-wrapper {
    height: 240px;
  }
}

/* Textos grandes en rollover de Proyectos — solo escritorio */
@media (min-width: 901px) {
  .proyectos-main-grid .tile-title {
    font-size: 2.2rem;
  }
  .proyectos-main-grid .tile-subtitle {
    font-size: 1.1rem;
  }
}

/* Tablet (≤900px): 2 columnas */
@media (max-width: 900px) {
  .proyectos-5-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    height: auto;
  }

  .proyectos-5-grid .portfolio-tile:nth-child(1),
  .proyectos-5-grid .portfolio-tile:nth-child(2),
  .proyectos-5-grid .portfolio-tile:nth-child(3),
  .proyectos-5-grid .portfolio-tile:nth-child(4),
  .proyectos-5-grid .portfolio-tile:nth-child(5) {
    grid-column: span 1;
  }

  .proyectos-main-grid .portfolio-tile {
    height: 180px;
    min-height: 180px;
  }

  .proyectos-main-grid .tile-title {
    font-size: 1.6rem;
    letter-spacing: 3px;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .proyectos-main-grid .tile-subtitle {
    opacity: 1;
    transform: translateY(0);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    white-space: normal;
  }
}

/* Grid de 5 tiles para la sección Proyectos - Solo Desktop */
@media (min-width: 901px) {
  .proyectos-5-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 1fr 1fr;
    width: 100%;
    height: 100%;
    gap: 4px;
  }

  /* Fila superior: 3 tiles de 2 columnas cada uno */
  .proyectos-5-grid .portfolio-tile:nth-child(1),
  .proyectos-5-grid .portfolio-tile:nth-child(2),
  .proyectos-5-grid .portfolio-tile:nth-child(3) {
    grid-column: span 2;
  }

  /* Fila inferior: 2 tiles de 3 columnas cada uno, centrados */
  .proyectos-5-grid .portfolio-tile:nth-child(4),
  .proyectos-5-grid .portfolio-tile:nth-child(5) {
    grid-column: span 3;
  }
}



/* Retícula 2x1 para 2 proyectos */
.proceso-2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr;
  width: 100%;
  height: 100%;
  gap: 4px;
}

@media (max-width: 600px) {
  .proceso-2-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }
}

@media (min-width: 601px) {
  .project-photos-col.grid-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .project-photos-col.grid-1x2 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }
  .project-photos-col.grid-2x1 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }

  .project-photos-col.grid-3x2 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }
  .project-photos-col.grid-3x3 {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
  }
}

/* Grid 2 columnas con última fila a ancho completo */
.proceso-2x1-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 1fr 1fr;
  width: 100%;
  height: 100%;
  gap: 4px;
}

.tile-full-row {
  grid-column: 1 / -1;
}

/* ==========================================================================
   CORRECCIONES MÓVIL ADICIONALES — MÁRGENES SEGUROS EN TODAS LAS PÁGINAS
   ========================================================================== */

/* Servicios: el <main> no tiene .container, agregar padding lateral */
@media (max-width: 900px) {
  .page-wrapper > main {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  /* Excepciones: grids de portafolio y contacto van de borde a borde */
  .portfolio-screen-container,
  .contact-page-container,
  .about-grid-container,
  .project-detail-layout {
    padding-left: 0;
    padding-right: 0;
  }

  /* Márgenes en sección servicios intro */
  .services-intro-grid {
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* Mapa de Google: no desbordarse */
  .map-wrapper iframe {
    max-width: 100%;
  }
}

@media (max-width: 600px) {
  /* Portafolio screen container: scroll vertical permitido */
  .portfolio-screen-container {
    overflow-y: auto;
    overflow-x: hidden;
  }

  /* Proyectos screen container también scrollable */
  .portfolio-screen-container {
    padding: 4px;
  }

  /* proceso-2x1-grid colapsa en móvil */
  .proceso-2x1-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    height: auto;
  }

  /* Grids de proyecto: colapsar todas las variantes de columnas */
  .project-photos-col.grid-1 {
    height: auto;
  }

  .project-photos-col.grid-1 .project-photo-item {
    height: 280px;
  }

  /* Texto rollover en strips: evitar que se desborde horizontalmente */
  .strip-content {
    padding: 0 12px;
    overflow: hidden;
  }

  .strip-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Tiles en portafolio: texto con overflow controlado */
  .tile-content {
    padding: 10px 8px;
    overflow: hidden;
  }

  .tile-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  /* Mapa responsive en contacto */
  .map-wrapper {
    position: relative;
    width: 100%;
    height: 260px;
    overflow: hidden;
  }

  .map-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  /* contact-content-col: asegurar márgenes */
  .contact-content-col {
    padding: 24px 16px;
  }

  /* Sección header en nosotros/servicios con padding */
  .section-header {
    margin-bottom: 30px;
  }

  .section-header h2 {
    font-size: 1.5rem;
    letter-spacing: 2px;
  }
}
