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

:root {
  --gold: #D4A017;
  --gold-light: #F0C040;
  --dark: #1a1a1a;
  --dark2: #2c2c2c;
  --gray: #888;
  --light-gray: #e8e8e8;
  --mid-gray: #c0bfbf;
  --white: #ffffff;
  --text: #333;
}

html { scroll-behavior: smooth; }
body { font-family: 'Lato', sans-serif; color: var(--text); overflow-x: hidden; }

/* ── NAVBAR ── */
nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(20,20,20,0.95);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%;
  height: 58px;
  border-bottom: 2px solid var(--gold);
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 1.2rem;
  color: var(--gold); text-transform: uppercase; letter-spacing: 2px;
}
.nav-logo span { color: var(--white); }
.nav-logo .helmet { font-size: 1.4rem; }
nav ul { list-style: none; display: flex; gap: 30px; }
nav ul li a {
  color: #ccc; text-decoration: none;
  font-family: 'Lato', sans-serif; font-size: 0.78rem;
  letter-spacing: 1.5px; text-transform: uppercase;
  transition: color 0.2s;
}
nav ul li a:hover { color: var(--gold); }
.nav-flag { font-size: 1.2rem; }

/* ── HERO ── */
#hero {
  position: relative; width: 100%; height: 100vh; min-height: 600px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a3020 50%, #1a1a1a 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.7) 100%),
    url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?w=1600&q=80') center/cover no-repeat;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; padding: 0 20px;
  animation: fadeUp 1s ease both;
}
.hero-eyebrow {
  font-family: 'Lato', sans-serif; font-size: 0.75rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.hero-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 700; color: var(--white);
  line-height: 1.05; text-transform: uppercase;
  letter-spacing: 2px;
}
.hero-title .highlight { color: var(--gold); }
.hero-sub {
  font-size: 0.9rem; color: #ccc; margin-top: 20px;
  max-width: 480px; margin-left: auto; margin-right: auto;
  line-height: 1.7;
}
.hero-bar {
  width: 60px; height: 3px;
  background: var(--gold); margin: 24px auto 0;
}
.hero-accent {
  position: absolute; right: 0; bottom: 0;
  width: 35%; height: 70%;
  background: rgba(212,160,23,0.12);
  clip-path: polygon(20% 0%, 100% 0%, 100% 100%, 0% 100%);
  pointer-events: none;
}

/* ── SECTION COMMON ── */
section { padding: 80px 5%; }
.section-tag {
  font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 8px; display: block;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600; text-transform: uppercase;
  color: var(--dark); margin-bottom: 12px;
}
.title-bar {
  width: 50px; height: 3px; background: var(--gold);
  margin: 0 auto 20px;
}
.section-desc {
  max-width: 600px; margin: 0 auto 50px;
  font-size: 0.92rem; color: #666; line-height: 1.8; text-align: center;
}

/* ── ABOUT ── */
#about { background: var(--white); text-align: center; }
.about-cards {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  margin-top: 40px;
}
.about-card {
  background: var(--light-gray);
  padding: 30px 24px;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}
.about-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}
.about-card.featured { background: var(--gold); }
.about-card.featured .card-title,
.about-card.featured .card-text,
.about-card.featured .read-more { color: var(--white); }
.about-card.featured .card-icon { filter: brightness(0) invert(1); }
.card-title {
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--dark);
  margin-bottom: 12px;
}
.card-text {
  font-size: 0.82rem; color: #666; line-height: 1.7; margin-bottom: 20px;
}
.card-footer {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(0,0,0,0.1); padding-top: 14px;
  margin-top: auto;
}
.read-more {
  font-size: 0.72rem; letter-spacing: 2px; text-transform: uppercase;
  color: var(--dark); text-decoration: none; font-weight: 700;
  transition: color 0.2s;
}
.read-more:hover { color: var(--gold); }
.card-icon { font-size: 1.4rem; opacity: 0.6; }

/* ── SERVICES ── */
#services {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  position: relative; overflow: hidden;
}
#services::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1600&q=60') center/cover no-repeat;
  opacity: 0.15;
}
#services .section-title { color: var(--white); }
.services-intro { position: relative; z-index: 1; }
.detail-btn {
  display: inline-block;
  background: var(--gold); color: var(--dark);
  font-family: 'Oswald', sans-serif; font-size: 0.8rem;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 12px 36px; text-decoration: none;
  font-weight: 600; transition: background 0.2s;
  margin-bottom: 50px;
}
.detail-btn:hover { background: var(--gold-light); }
.services-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1px;
  background: rgba(255,255,255,0.1);
  position: relative; z-index: 1;
}
.service-item {
  padding: 40px 24px;
  text-align: center;
  background: rgba(20,20,20,0.7);
  transition: background 0.3s;
  cursor: pointer;
}
.service-item:hover { background: rgba(212,160,23,0.2); }
.service-number {
  font-family: 'Oswald', sans-serif; font-size: 2rem;
  color: var(--gold); opacity: 0.5; margin-bottom: 10px;
}
.service-name {
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  text-transform: uppercase; letter-spacing: 3px;
  color: var(--white);
}

/* ── PROJECTS ── */
#projects { background: #f5f5f5; }
#projects .section-title { text-align: left; }
#projects .section-tag { display: block; }
.projects-title-row { margin-bottom: 30px; }
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.project-card {
  position: relative; overflow: hidden;
  cursor: pointer;
}
.project-card img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; min-height: 220px;
  transition: transform 0.5s;
}
.project-card:hover img { transform: scale(1.05); }
.project-card.large { grid-row: span 2; }
.project-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 60%);
  display: flex; flex-direction: column;
  justify-content: flex-end; padding: 24px;
}
.project-label {
  font-size: 0.68rem; letter-spacing: 3px; text-transform: uppercase;
  color: var(--gold); margin-bottom: 6px;
}
.project-title-card {
  font-family: 'Oswald', sans-serif; font-size: 1.1rem;
  color: var(--white); text-transform: uppercase;
}
.project-sub { font-size: 0.78rem; color: #bbb; margin-top: 4px; }
.explore-btn {
  display: inline-block; margin-top: 12px;
  background: var(--gold); color: var(--dark);
  font-size: 0.7rem; letter-spacing: 2px;
  text-transform: uppercase; padding: 8px 20px;
  text-decoration: none; font-weight: 700;
  font-family: 'Oswald', sans-serif;
  transition: background 0.2s;
}
.explore-btn:hover { background: var(--gold-light); }

/* ── CLIENTS ── */
#clients {
  background: var(--gold);
  text-align: center; padding: 60px 5%;
}
#clients .section-title { color: var(--dark); }
.clients-label {
  font-family: 'Oswald', sans-serif; font-size: 1rem;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--dark); margin-bottom: 40px;
  opacity: 0.7;
}
.clients-row {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 40px;
}
.client-logo {
  background: var(--white);
  padding: 14px 28px; border-radius: 4px;
  display: flex; align-items: center; gap: 8px;
  font-family: 'Oswald', sans-serif; font-size: 0.95rem;
  font-weight: 600; color: var(--dark);
  min-width: 130px; justify-content: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.client-logo .logo-icon { font-size: 1.3rem; }
.client-logo.accent { background: #1565C0; color: var(--white); }
.client-logo.accent2 { background: #1a6e1a; color: var(--white); }

/* ── CONTACT ── */
#contacto {
  display: grid; grid-template-columns: 1fr 1fr;
  min-height: 380px; padding: 0;
}
.contact-left {
  background: var(--dark2);
  padding: 70px 8%;
  display: flex; flex-direction: column; justify-content: center;
}
.contact-left .section-tag { text-align: left; }
.contact-left .section-title { text-align: left; color: var(--white); margin-bottom: 24px; }
.contact-form { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.contact-form input,
.contact-form textarea {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--white); padding: 12px 16px;
  font-family: 'Lato', sans-serif; font-size: 0.85rem;
  outline: none; resize: none;
  transition: border 0.2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #888; }
.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--gold); }
.contact-form textarea { height: 90px; }
.contact-submit {
  align-self: flex-start;
  background: var(--gold); color: var(--dark);
  border: none; cursor: pointer;
  font-family: 'Oswald', sans-serif; font-size: 0.8rem;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 12px 32px; font-weight: 600;
  transition: background 0.2s;
}
.contact-submit:hover { background: var(--gold-light); }
.contact-right {
  position: relative; overflow: hidden;
}
.contact-right img {
  width: 100%; height: 100%; object-fit: cover;
  display: block; filter: brightness(0.7);
}
.contact-right::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(44,44,44,0.5) 0%, transparent 60%);
}

/* ── FOOTER ── */
footer {
  background: #111; color: #666;
  text-align: center; padding: 18px;
  font-size: 0.78rem; letter-spacing: 1px;
}
footer span { color: var(--gold); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
.fade-up { opacity:0; transform:translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity:1; transform:translateY(0); }

/* ── RESPONSIVE ── */
@media(max-width:768px) {
  nav ul { display:none; }
  .about-cards, .services-grid { grid-template-columns:1fr; }
  .projects-grid { grid-template-columns:1fr; }
  .project-card.large { grid-row:auto; }
  #contacto { grid-template-columns:1fr; }
  .contact-right { height:250px; }
}
