
:root {
  --red:       #e42f2c;
  --blue:      #2c3e5f;
  --blue-dark: #1a1f3a;
  --navy:      #242e5d;
  --gray:      #d8d7d7;
  --gray-soft: #f2f2f2;
  --text:      #333333;
  --white:     #ffffff;
  --radius:    6px;
  --transition: 0.45s cubic-bezier(0.77, 0, 0.18, 1);
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:  "Futura ND Medium", sans-serif;;
  color: var(--text-color);
  line-height: 1.6;
}

.header-e {
  background-color: var(--light-gray);
}

/* Espaciado para header fijo */
.content-wrapper {
  padding-top: 80px;
}

.hero {
  background-color: #f5f4f2;
  min-height: 200px;
}

/* Hero Section - franja gris pequeña */
.hero-project {
  background: var(--light-gray);
  padding: 60px 0 40px;
  position: relative;
}

.hero-title {
  color: var(--text-color);
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

/* Imagen grande sobrepuesta */
.hero-image-container {
  max-width: 1200px;
  margin: auto auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}


.hero-image-wrapper-move-bottom {
  object-position: center -80px;
}

.hero-image-wrapper {
  position: relative;
  width: 907px;
  height: 350px;
}

.hero-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 🔥 OVERLAY */
.hero-image-wrapper::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.0.1); /* oscurece la imagen */
  z-index: 1;
}

/* Overlay del título */
.hero-title-overlay {
  position: absolute;
  bottom: 5%;
  left: 5%;
  text-align: center;
  padding: 20px 20px;
  border-radius: 6px;
}

.hero-title-overlay h1 {
  margin: 0;
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  text-shadow:
    0 2px 6px rgba(0, 0, 0, 0.8),
    0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Breadcrumb */
.breadcrumb-section {
  background: white;
  padding: 20px 0;
  margin-top: 30px;
}

.breadcrumb {
  margin: 0;
  background: transparent;
  padding: 0;
}

.breadcrumb-item {
  font-size: 0.9rem;
}

.breadcrumb-item a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: var(--primary-color);
}

.breadcrumb-item.active {
  color: var(--text-color);
  font-weight: 600;
}

/* Container principal */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  margin-bottom: 120px; /* Mayor espacio después de la sección historia */
}
    /* ══ SWITCHER ══ */
    .switcher-section {
      position: sticky; top: 0; z-index: 50;
      background: var(--white); border-bottom: 2px solid var(--gray);
      padding: 0 48px; box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    }
    .switcher-inner { display: flex; align-items: center; max-width: 1200px; margin: 0 auto; }
    .switcher-label {
      font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
      color: #999; margin-right: 24px; white-space: nowrap;
    }
    .switch-btn {
      position: relative; padding: 18px 28px;
      font-weight: 600; font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase;
      background: none; border: none; cursor: pointer; color: #999;
      transition: color 0.3s; white-space: nowrap;
    }
    .switch-btn::after {
      content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px;
      background: var(--red); transform: scaleX(0); transition: transform var(--transition);
    }
    .switch-btn.active { color: var(--blue-dark); }
    .switch-btn.active::after { transform: scaleX(1); }
    .switch-btn:hover:not(.active) { color: var(--blue); }

    /* ══ PANELS ══ */
    .panels-wrapper { background: var(--white); overflow: hidden; }
    .panel { display: none; animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both; }
    .panel.active { display: block; }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(24px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    /* ══ HISTORIA ══ */
    .historia-section {
      max-width: 1200px; margin: 0 auto; padding: 80px 20px;
      display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
    }
    .historia-img-wrap { position: relative; }
    .historia-img-wrap::before {
      content: ''; position: absolute; top: 18px; left: 18px; right: -18px; bottom: -18px;
      border: 2px solid rgba(228,47,44,0.25); border-radius: var(--radius); z-index: 0;
    }
    .historia-img-wrap img {
      position: relative; z-index: 1;
      width: 100%; height: 500px; object-fit: contain;
      object-position: center -5%;
      border-radius: var(--radius); display: block; 
    }
    .historia-tag {
      font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
      color: var(--red); margin-bottom: 14px;
      display: flex; align-items: center; gap: 10px;
    }
    .historia-tag::before { content: ''; width: 28px; height: 2px; background: var(--red); }
    .historia-content h2 {
      font-size: 2rem; font-weight: 700; line-height: 1.15;
      color: var(--blue-dark); margin-bottom: 20px;
    }
    .historia-content p { font-size: 15px; line-height: 1.85; color: #555; text-align: justify; }
    .historia-content strong { color: var(--blue-dark); font-weight: 600; }

    /* ══ STATS ══ */
    .stats-bar { background: var(--blue-dark); }
    .stats-inner {
      max-width: 1200px; margin: 0 auto; padding: 0 20px;
      display: grid; grid-template-columns: repeat(3,1fr);
    }
    .stat-item { padding: 44px 0 44px 40px; border-right: 1px solid rgba(255,255,255,0.1); }
    .stat-item:first-child { padding-left: 0; }
    .stat-item:last-child  { border-right: none; }
    .stat-num { font-size: 3.2rem; font-weight: 800; color: var(--red); line-height: 1; margin-bottom: 6px; }
    .stat-num span { font-size: 1.6rem; }
    .stat-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }

    /* ══ RESULTADO ══ */
    .resultado-section { background: var(--gray-soft); }
    .resultado-inner { max-width: 1200px; margin: 0 auto; padding: 80px 20px; }
    .resultado-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 48px; }
    .resultado-header h2 { font-size: 2rem; font-weight: 700; color: var(--blue-dark); white-space: nowrap; }
    .resultado-header .line { flex: 1; height: 2px; background: var(--gray); }
    .resultado-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
    .resultado-list { list-style: none; display: flex; flex-direction: column; }
    .resultado-list li {
      padding: 10px 0 10px 30px; position: relative;
      font-size: 15px; line-height: 1.65; color: #555;
    }
    .resultado-list li::before {
      content: ''; position: absolute; left: 0; top: 20px;
      width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
    }
    .resultado-text-block {
      padding: 28px 24px; background: var(--white);
      border-left: 4px solid var(--blue);
      border-radius: 0 var(--radius) var(--radius) 0;
      font-size: 15px; line-height: 1.9; color: #555; font-style: italic;
      box-shadow: 0 2px 16px rgba(44,62,95,0.07);
    }

    /* ══ GALERÍA ══ */
    .gallery-section { max-width: 1200px; margin: 0 auto; padding: 64px 20px 100px; }
    .gallery-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
    .gallery-header h3 {
      font-size: 12px; font-weight: 700; letter-spacing: 0.15em;
      text-transform: uppercase; color: var(--blue); white-space: nowrap;
    }
    .gallery-header .line { flex: 1; height: 2px; background: var(--gray); }
    .gallery-grid {
      display: grid;
      grid-template-columns: repeat(3,1fr);
      grid-template-rows: repeat(3, 180px);
      gap: 10px;
    }
    .g-item {
      overflow: hidden; border-radius: var(--radius);
      position: relative; cursor: zoom-in; background: var(--gray-soft);
      transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .g-item:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.14); }
    .g-item img {
      width: 100%; height: 100%; object-fit: cover; display: block;
      transition: transform 0.5s ease, filter 0.4s; filter: brightness(0.88);
    }
    .g-item:hover img { transform: scale(1.07); filter: brightness(1); }
    .g-item:nth-child(1) { grid-column:1; grid-row:1; }
    .g-item:nth-child(2) { grid-column:2; grid-row:1/3; }
    .g-item:nth-child(3) { grid-column:3; grid-row:1; }
    .g-item:nth-child(4) { grid-column:1; grid-row:2; }
    .g-item:nth-child(5) { grid-column:3; grid-row:2; }
    .g-item:nth-child(6) { grid-column:1/3; grid-row:3; }
    .g-item:nth-child(7) { grid-column:3; grid-row:3; }

    /* ══ LIGHTBOX ══ */
    .lightbox {
      display: none; position: fixed; inset: 0; z-index: 9999;
      background: rgba(26,31,58,0.94); align-items: center; justify-content: center;
      backdrop-filter: blur(8px);
    }
    .lightbox.open { display: flex; }
    .lightbox img { max-width: 90vw; max-height: 88vh; border-radius: var(--radius); object-fit: contain; }
    .lightbox-close {
      position: absolute; top: 24px; right: 32px;
      background: none; border: none; cursor: pointer;
      color: var(--white); font-size: 36px; opacity: 0.7; transition: opacity 0.2s;
    }
    .lightbox-close:hover { opacity: 1; }

    /* ══ FOOTER ══ */
    .footer-strip {
      background: var(--navy); color: var(--white); padding: 32px 48px;
      display: flex; align-items: center; justify-content: space-between;
    }
    .footer-brand { font-size: 20px; font-weight: 800; color: var(--white); }
    .footer-brand span { color: var(--red); }
    .footer-strip p { font-size: 12px; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; }

    /* ══ RESPONSIVE ══ */
    @media (max-width: 900px) {
      .historia-section { grid-template-columns: 1fr; padding: 48px 20px; gap: 36px; }
      .historia-img-wrap img { height: 280px; }
      .stats-inner { grid-template-columns: 1fr 1fr; }
      .stat-item:nth-child(3) { grid-column: span 2; border-right: none; }
      .resultado-inner { padding: 56px 20px; }
      .resultado-grid { grid-template-columns: 1fr; }
      .gallery-grid { grid-template-columns: repeat(2,1fr); grid-template-rows: auto; }
      .g-item { height: 200px; }
      .g-item:nth-child(n) { grid-column: auto; grid-row: auto; }
      .g-item:nth-child(2), .g-item:nth-child(6) { grid-column: span 2; }
      .footer-strip { padding: 24px; flex-direction: column; gap: 8px; text-align: center; }
      .switcher-section { padding: 0 20px; }
      .switcher-label { display: none; }
    }
    @media (max-width: 576px) {
      .hero-image-wrapper { height: 260px; }
      .hero-title-overlay h1 { font-size: 1.6rem; }
      .gallery-grid { grid-template-columns: 1fr; }
      .g-item:nth-child(n) { grid-column: auto !important; grid-row: auto !important; height: 200px; }
    }