/* ============================================
   TRANSVIAL LTDA. — DESIGN SYSTEM
   Industrial • Heavy • Authoritative
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --black: #111111;
  --charcoal: #1a1a1a;
  --charcoal-light: #222222;
  --charcoal-mid: #2a2a2a;
  --gray-dark: #333333;
  --gray: #555555;
  --gray-light: #888888;
  --gray-lighter: #aaaaaa;
  --white: #f5f5f5;
  --white-pure: #ffffff;
  --yellow: #F0B400;
  --yellow-dark: #d49f00;
  --yellow-light: #f5c732;
  --green-dark: #0d2818;
  --green-mid: #132e1c;
  --green-accent: #2a7a3f;
  --green-light: #3d8b50;

  --font-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --container-max: 1200px;
  --container-wide: 1400px;
  --section-padding: 100px 0;
  --card-radius: 2px;
  --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

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

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.container--wide {
  max-width: var(--container-wide);
}

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.2rem); }

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--yellow);
  margin-bottom: 12px;
  font-weight: 600;
}

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

.section-desc {
  color: var(--gray-lighter);
  max-width: 650px;
  font-size: 1.05rem;
  line-height: 1.7;
}

/* --- Navbar --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--transition);
  background: transparent;
}

.navbar.scrolled {
  background: rgba(17, 17, 17, 0.97);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo {
  display: flex;
  align-items: center;
}

.navbar__logo-img {
  height: 36px;
  width: auto;
  transition: height var(--transition);
}

.navbar.scrolled .navbar__logo-img {
  height: 30px;
}

.navbar__links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.navbar__links a {
  font-family: var(--font-display);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-lighter);
  transition: color var(--transition);
  position: relative;
  font-weight: 500;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--yellow);
  transition: width var(--transition);
}

.navbar__links a:hover,
.navbar__links a.active {
  color: var(--yellow);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__cta {
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 10px 24px;
  background: var(--yellow);
  color: #000000;
  font-weight: 700;
  transition: all var(--transition);
}

.navbar__cta:hover {
  background: var(--yellow-light);
  transform: translateY(-1px);
}

/* Mobile menu toggle */
.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}

.navbar__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--white-pure);
  transition: all var(--transition);
}

.navbar__toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar__toggle.active span:nth-child(2) {
  opacity: 0;
}

.navbar__toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background: var(--black);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(240, 180, 0, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(240, 180, 0, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 1;
}

.hero__slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero__slider-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  background-size: cover;
  background-position: center;
}

.hero__slider-img.active {
  opacity: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-top: 120px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 180, 0, 0.1);
  border: 1px solid rgba(240, 180, 0, 0.25);
  padding: 8px 18px;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--yellow);
  display: block;
}

.hero h1 {
  color: var(--white-pure);
  margin-bottom: 24px;
  max-width: 800px;
}

.hero h1 em {
  color: var(--yellow);
  font-style: normal;
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--gray-lighter);
  max-width: 600px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  padding: 16px 36px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn--primary {
  background: var(--yellow);
  color: var(--black);
}

.btn--primary:hover {
  background: var(--yellow-light);
}

.btn--outline {
  background: transparent;
  color: var(--white-pure);
  border: 2px solid var(--yellow);
}

.btn--outline:hover {
  background: rgba(240, 180, 0, 0.05);
  color: var(--yellow);
}

/* Stats Bar */
.stats-bar {
  background: var(--yellow);
  padding: 0;
  position: relative;
  z-index: 3;
}

.stats-bar__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats-bar__item {
  padding: 30px 24px;
  text-align: center;
  border-right: 1px solid rgba(17, 17, 17, 0.15);
  transition: background var(--transition);
}

.stats-bar__item:last-child {
  border-right: none;
}

.stats-bar__item:hover {
  background: var(--yellow-dark);
}

.stats-bar__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1;
  margin-bottom: 6px;
}

.stats-bar__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(17, 17, 17, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Servicios Section --- */
.servicios {
  padding: var(--section-padding);
  background: var(--charcoal);
}

.servicios__header {
  margin-bottom: 60px;
}

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

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 36px 30px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.service-card:hover {
  border-color: rgba(240, 180, 0, 0.3);
  background: rgba(255, 255, 255, 0.02);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: rgba(240, 180, 0, 0.12);
  position: absolute;
  top: 16px;
  right: 20px;
  line-height: 1;
}

.service-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 20px;
  color: var(--yellow);
}

.service-card__icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  margin-bottom: 14px;
  color: var(--white-pure);
  font-size: 1.15rem;
}

.service-card__desc {
  color: var(--gray-lighter);
  font-size: 0.92rem;
  margin-bottom: 18px;
  line-height: 1.6;
}

.service-card__list {
  list-style: none;
}

.service-card__list li {
  font-size: 0.85rem;
  color: var(--gray-light);
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}

.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 6px;
  height: 2px;
  background: var(--yellow);
}

.service-card__btn {
  display: block;
  margin-top: auto;
  padding: 12px 16px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white-pure);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  transition: all var(--transition);
  width: 100%;
}

.service-card__btn:hover {
  background: var(--yellow);
  color: var(--black);
  border-color: var(--yellow);
}

/* --- Gestión de Residuos --- */
.residuos {
  padding: var(--section-padding);
  background: linear-gradient(170deg, var(--green-dark) 0%, #0a1f13 100%);
  position: relative;
}

/* Background removed for minimalism */

.residuos .container {
  position: relative;
  z-index: 2;
}

.residuos__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.residuos__text p {
  color: var(--gray-lighter);
  margin-bottom: 20px;
  line-height: 1.8;
}

.residuos__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.residuos__feature {
  background: rgba(42, 122, 63, 0.15);
  border: 1px solid rgba(42, 122, 63, 0.25);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.residuos__feature-icon {
  color: var(--green-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.residuos__feature h4 {
  font-size: 0.95rem;
  margin-bottom: 4px;
  color: var(--white-pure);
}

.residuos__feature p {
  font-size: 0.82rem;
  color: var(--gray-lighter);
  margin-bottom: 0;
}

.residuos__sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.residuos__badge {
  background: rgba(42, 122, 63, 0.15);
  border: 1px solid rgba(42, 122, 63, 0.25);
  padding: 24px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.residuos__badge-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--green-accent);
  margin-top: 2px;
}

.residuos__badge p {
  font-size: 0.85rem;
  color: var(--gray-lighter);
  line-height: 1.6;
  margin-bottom: 0;
}

.residuos__badge strong {
  display: block;
  font-size: 1rem;
  color: var(--white-pure);
  margin-bottom: 6px;
  font-weight: 600;
}

.residuos__project {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 28px;
}

.residuos__project-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--green-accent);
  margin-bottom: 10px;
}

.residuos__project h4 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.residuos__project p {
  font-size: 0.9rem;
  color: var(--gray-lighter);
  margin-bottom: 0;
  line-height: 1.6;
}

.residuos__cdr {
  background: rgba(240, 180, 0, 0.08);
  border: 1px solid rgba(240, 180, 0, 0.2);
  padding: 24px;
}

.residuos__cdr-label {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.residuos__cdr h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--yellow-light);
}

.residuos__cdr p {
  font-size: 0.85rem;
  color: var(--gray-lighter);
  margin-bottom: 0;
  line-height: 1.6;
}

/* --- Construcción Section --- */
.construccion {
  padding: var(--section-padding);
  background: var(--black);
}

.construccion__header {
  margin-bottom: 50px;
}

/* Featured project */
.featured-project {
  background: var(--charcoal);
  border: 1px solid rgba(240, 180, 0, 0.15);
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
}

.featured-project__image {
  background: var(--charcoal-mid);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.featured-project__image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(240, 180, 0, 0.05) 0%, transparent 60%);
}

.image-placeholder {
  text-align: center;
  color: var(--gray);
  padding: 40px;
}

.image-placeholder svg {
  width: 60px;
  height: 60px;
  margin-bottom: 12px;
  opacity: 0.4;
}

.image-placeholder p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.featured-project__info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-project__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(240, 180, 0, 0.1);
  border: 1px solid rgba(240, 180, 0, 0.3);
  padding: 6px 16px;
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--yellow);
  width: fit-content;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  position: relative;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--yellow);
  animation: pulse-ring 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.8); opacity: 0; }
}

.featured-project__info h3 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  color: var(--white-pure);
}

.featured-project__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
}

.featured-project__meta-item {
  font-size: 0.85rem;
  color: var(--gray-lighter);
}

.featured-project__meta-item strong {
  color: var(--yellow);
  display: block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

.featured-project__desc {
  color: var(--gray-lighter);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Secondary projects grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.project-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 28px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  cursor: pointer;
}

.project-card--has-bg {
  background-color: transparent;
  border: none;
}

.project-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1;
  transition: background var(--transition);
}

.project-card--has-bg:hover .project-card__overlay {
  background: rgba(0, 0, 0, 0.45);
}

.project-card__content {
  position: relative;
  z-index: 2;
}

.project-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform var(--transition);
  z-index: 3;
}

.project-card:hover {
  border-color: rgba(240, 180, 0, 0.2);
}

.project-card:hover::after {
  transform: scaleX(1);
}

.project-card__year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 14px;
}

.project-card h4 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: var(--white-pure);
}

.project-card p {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
}

.project-card--has-bg p {
  color: rgba(255, 255, 255, 0.85);
}

.project-card__client {
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 14px;
  font-style: italic;
}

.project-card--has-bg .project-card__client {
  color: rgba(255, 255, 255, 0.6);
}

.project-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.project-card__tag {
  font-family: var(--font-display);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  background: rgba(240, 180, 0, 0.12);
  border: 1px solid rgba(240, 180, 0, 0.3);
  color: var(--yellow);
  white-space: nowrap;
}

.project-card--has-bg .project-card__tag {
  background: rgba(240, 180, 0, 0.15);
  border-color: rgba(240, 180, 0, 0.4);
}

/* Project Detail Modal */
.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.project-modal__content {
  background: var(--gray-dark, #1a1a1a);
  border: 1px solid rgba(255, 255, 255, 0.1);
  width: 90%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.project-modal.active .project-modal__content {
  transform: translateY(0);
}

.project-modal__content::-webkit-scrollbar {
  width: 6px;
}
.project-modal__content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.03);
}
.project-modal__content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 3px;
}

.project-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--white-pure);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s;
}

.project-modal__close:hover {
  background: rgba(240, 180, 0, 0.2);
  border-color: var(--yellow);
  color: var(--yellow);
}

.project-modal__image {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.project-modal__image-placeholder {
  width: 100%;
  height: 160px;
  background: var(--charcoal, #2a2a2a);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-modal__body {
  padding: 36px 32px;
}

.project-modal__year {
  font-family: var(--font-display);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 10px;
}

.project-modal__title {
  font-size: 1.6rem;
  color: var(--white-pure);
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.project-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.project-modal__meta-item {
  font-size: 0.88rem;
  color: var(--gray-lighter);
}

.project-modal__meta-item strong {
  color: var(--yellow);
  display: block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
  font-weight: 600;
}

.project-modal__desc {
  font-size: 0.95rem;
  color: var(--gray-lighter);
  line-height: 1.75;
  margin-bottom: 24px;
}

.project-modal__services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-modal__service-tag {
  font-family: var(--font-display);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 12px;
  background: rgba(240, 180, 0, 0.1);
  border: 1px solid rgba(240, 180, 0, 0.3);
  color: var(--yellow);
}

/* --- Flota de Equipos --- */
.flota {
  padding: var(--section-padding);
  background: var(--charcoal);
}

.flota__header {
  margin-bottom: 60px;
}

.flota__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.equip-card {
  background: var(--charcoal-light);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 30px 24px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center; /* Centered vertically */
  align-items: center;     /* Centered horizontally */
  min-height: 250px;
}

.equip-card--has-bg {
  background-color: transparent;
  border: none;
}

.equip-card__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
  transition: background var(--transition);
}

.equip-card--has-bg:hover .equip-card__overlay {
  background: rgba(0, 0, 0, 0.55);
}

.equip-card__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.equip-card:hover {
  border-color: rgba(240, 180, 0, 0.3);
}

.equip-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  color: var(--yellow);
}

.equip-card__icon svg {
  width: 100%;
  height: 100%;
}

.equip-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--white-pure);
}

.equip-card p {
  font-size: 0.82rem;
  color: var(--gray-light);
  margin-bottom: 16px;
  line-height: 1.5;
}

.equip-card--has-bg p {
  color: rgba(255, 255, 255, 0.85);
}

/* =========================================
   MAQUINARIA MODAL (Frontend)
   ========================================= */
.maquinaria-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.maquinaria-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.maquinaria-modal__content {
  background: var(--gray-dark);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 40px;
  width: 90%;
  max-width: 800px;
  position: relative;
  transform: translateY(20px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.maquinaria-modal.active .maquinaria-modal__content {
  transform: translateY(0);
}

.maquinaria-modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: var(--white-pure);
  font-size: 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.maquinaria-modal__close:hover {
  opacity: 1;
}

.maquinaria-modal__title {
  font-size: 1.5rem;
  color: var(--yellow);
  margin-bottom: 24px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
}

.maquinaria-modal__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 10px;
}

.maquinaria-modal__list::-webkit-scrollbar {
  width: 6px;
}
.maquinaria-modal__list::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
}
.maquinaria-modal__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.maquinaria-item {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.maquinaria-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: rgba(240, 180, 0, 0.2);
}

.maquinaria-item__media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.maquinaria-item__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.maquinaria-item__icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(240, 180, 0, 0.02);
}

.maquinaria-item__icon svg {
  width: 60px;
  height: 60px;
  color: var(--yellow);
  opacity: 0.5;
}

.maquinaria-item__footer {
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.maquinaria-item__name {
  font-size: 1rem;
  color: var(--white-pure);
  font-weight: 500;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.maquinaria-item__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  background: transparent;
  border: 1px solid var(--yellow);
  color: var(--yellow);
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: all 0.2s;
  flex-shrink: 0;
}

.maquinaria-item__btn:hover {
  background: var(--yellow);
  color: var(--black);
}

.equip-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 6px 14px;
  background: rgba(240, 180, 0, 0.1);
  border: 1px solid rgba(240, 180, 0, 0.25);
  color: var(--yellow);
}

.equip-card__tag--tech {
  background: rgba(100, 149, 237, 0.1);
  border-color: rgba(100, 149, 237, 0.25);
  color: #6495ED;
}

/* --- Nosotros Section --- */
.nosotros {
  padding: var(--section-padding);
  background: var(--black);
}

.nosotros__header {
  margin-bottom: 60px;
}

.nosotros__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--yellow), var(--gray-dark));
}

.timeline__item {
  position: relative;
  margin-bottom: 40px;
  padding-bottom: 10px;
}

.timeline__item:last-child {
  margin-bottom: 0;
}

.timeline__dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 3px solid var(--black);
}

.timeline__year {
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--yellow);
  margin-bottom: 8px;
}

.timeline__item h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--white-pure);
}

.timeline__item p {
  font-size: 0.88rem;
  color: var(--gray-light);
  line-height: 1.6;
}

/* Values */
.values-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.value-card {
  background: var(--charcoal);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 30px 24px;
  transition: all var(--transition);
}

.value-card:hover {
  border-color: rgba(240, 180, 0, 0.25);
  background: rgba(255, 255, 255, 0.02);
}

.value-card__icon {
  width: 40px;
  height: 40px;
  color: var(--yellow);
  margin-bottom: 16px;
}

.value-card__icon svg {
  width: 100%;
  height: 100%;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
  color: var(--white-pure);
}

.value-card p {
  font-size: 0.85rem;
  color: var(--gray-light);
  line-height: 1.6;
}

/* --- Clientes Section --- */
.clientes {
  padding: 80px 0;
  background: var(--charcoal);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.clientes__header {
  text-align: center;
  margin-bottom: 50px;
}

.clientes__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.client-card {
  background: transparent;
  border: none;
  padding: 28px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  transition: all var(--transition);
}

.client-card:hover {
  background: rgba(255, 255, 255, 0.02);
}

.client-card__name {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-lighter);
}

.client-card__logo {
  max-width: 100%;
  max-height: 60px;
  object-fit: contain;
  transition: all var(--transition);
}

/* --- Contacto Section --- */
.contacto {
  padding: var(--section-padding);
  background: var(--yellow);
  color: var(--black);
}

.contacto .section-label {
  color: rgba(17, 17, 17, 0.5);
}

.contacto .section-title {
  color: var(--black);
}

.contacto .section-desc {
  color: rgba(17, 17, 17, 0.7);
}

.contacto__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 50px;
}

.contacto__info-item {
  margin-bottom: 28px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.contacto__info-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--black);
  opacity: 0.6;
}

.contacto__info-item h4 {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  margin-bottom: 4px;
  color: rgba(17, 17, 17, 0.5);
}

.contacto__info-item p,
.contacto__info-item a {
  font-size: 1rem;
  color: var(--black);
  font-weight: 500;
}

.contacto__info-item a:hover {
  text-decoration: underline;
}

.contacto__form {
  background: rgba(17, 17, 17, 0.08);
  padding: 36px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(17, 17, 17, 0.6);
  margin-bottom: 8px;
  font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--white-pure);
  border: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--black);
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--black);
}

.form-group textarea {
  height: 120px;
  resize: vertical;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23111' d='M6 8.825L.575 3.4 1.4 2.575 6 7.175 10.6 2.575 11.425 3.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

.btn--dark {
  background: var(--black);
  color: var(--yellow);
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 18px;
}

.btn--dark:hover {
  background: var(--charcoal);
}

/* --- Footer --- */
.footer {
  background: var(--black);
  padding: 60px 0 30px;
  border-top: 3px solid var(--yellow);
}

.footer__content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer__brand h3 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.footer__brand h3 span {
  color: var(--yellow);
}

.footer__logo-img {
  height: 32px;
  width: auto;
  margin-bottom: 14px;
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 20px;
}

.footer__rut {
  font-size: 0.78rem;
  color: var(--gray);
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  color: var(--yellow);
  margin-bottom: 20px;
}

.footer__links a {
  display: block;
  font-size: 0.88rem;
  color: var(--gray-light);
  margin-bottom: 10px;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--yellow);
}

.footer__contact-item {
  font-size: 0.85rem;
  color: var(--gray-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* --- Scroll Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s 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; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
  .servicios__grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .flota__grid { grid-template-columns: repeat(2, 1fr); }
  .clientes__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__content { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nosotros__content { gap: 50px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 70px 0;
  }

  /* Navbar mobile */
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--charcoal);
    flex-direction: column;
    padding: 80px 30px 30px;
    gap: 0;
    transition: right var(--transition);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .navbar__cta {
    margin-top: 20px;
    text-align: center;
    width: 100%;
    display: block;
  }

  .navbar__toggle {
    display: flex;
  }

  .mobile-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999;
  }

  .mobile-overlay.active {
    display: block;
  }

  /* Stats Bar */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-bar__item {
    border-bottom: 1px solid rgba(17, 17, 17, 0.15);
  }

  .stats-bar__item:nth-child(2) { border-right: none; }

  /* Servicios */
  .servicios__grid { grid-template-columns: 1fr; }

  /* Residuos */
  .residuos__content { grid-template-columns: 1fr; gap: 40px; }

  /* Construcción */
  .featured-project { grid-template-columns: 1fr; }
  .featured-project__image { min-height: 200px; }
  .featured-project__info { padding: 30px 24px; }
  .projects-grid { grid-template-columns: 1fr; }

  /* Flota */
  .flota__grid { grid-template-columns: 1fr; }

  /* Nosotros */
  .nosotros__content { grid-template-columns: 1fr; gap: 50px; }

  /* Clientes */
  .clientes__grid { grid-template-columns: repeat(2, 1fr); }

  /* Contacto */
  .contacto__content { grid-template-columns: 1fr; gap: 40px; }

  /* Footer */
  .footer__content { grid-template-columns: 1fr; gap: 30px; }

  /* Modals Response */
  .project-modal__content, .maquinaria-modal__content {
    width: 95%;
    max-height: 85vh;
  }
  
  .project-modal__image { height: 200px; }
  .maquinaria-modal__image { height: 200px; }
  
  .project-modal__body, .maquinaria-modal__info {
    padding: 24px 20px;
  }
  
  .project-modal__title, .maquinaria-modal__title {
    font-size: 1.35rem;
  }
  
  .project-modal__meta { gap: 15px; }
  .project-modal__meta-item { font-size: 0.82rem; }
  .project-modal__desc, .maquinaria-modal__desc { font-size: 0.9rem; }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 50px 0;
  }

  .stats-bar__grid { grid-template-columns: 1fr; }
  .stats-bar__item { border-right: none; }
  .residuos__features { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .clientes__grid { grid-template-columns: 1fr; gap: 15px; }
  .hero h1 { font-size: 2rem; }
  
  /* Feature Projects & Cards */
  .featured-project__meta { flex-direction: column; gap: 12px; }
  .featured-project__title { font-size: 1.5rem; }
  
  .project-card { min-height: 180px; padding: 20px 16px; }
  .project-card h4 { font-size: 1.1rem; }
  
  .client-card { padding: 20px 12px; min-height: 80px; }
  .client-card__logo { max-height: 50px; }
  
  /* Section Headings */
  .section-header h2 { font-size: 1.8rem; }
}
