:root {
  --negro: #111111;
  --gris-oscuro: #1f1f1f;
  --gris: #5b5b5b;
  --gris-claro: #f4f4f4;
  --blanco: #ffffff;
  --dorado: #c89b3c;
  --naranja: #d9742a;
  --max-width: 1100px;
  --sombra: 0 15px 35px rgba(0,0,0,0.12);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
}

html, body {
  overflow-x: hidden;
}

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

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

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

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid #e8e8e8;
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand strong {
  font-size: 1.4rem;
  letter-spacing: 2px;
  color: var(--negro);
}

.brand span {
  font-size: 0.85rem;
  color: var(--gris);
}

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

nav a {
  font-weight: 600;
  transition: 0.25s ease;
  position: relative;
  padding-bottom: 4px;
}

nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--naranja);
  transition: width 0.25s ease;
}

nav a:hover::after {
  width: 100%;
}

nav a:hover {
  color: var(--naranja);
}

.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: bold;
  transition: 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, #d4a437, #ff8c2a);
  color: var(--blanco);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  opacity: 0.95;
}

.btn-secondary {
  border: 2px solid white;
  color: white;
  background: transparent;
  backdrop-filter: blur(6px);
}

.btn-secondary:hover {
  background: white;
  color: var(--negro);
}

.hero {
  background: linear-gradient(135deg, #0f0f0f 0%, #1f1f1f 50%, #4b3217 100%);
  color: var(--blanco);
  padding: 110px 0 90px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: 18px;
}

.hero p {
  color: #ececec;
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(243, 198, 106, 0.25);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.hero-card h3 {
  margin-bottom: 14px;
  color: #f3c66a;
}

section {
  padding: 72px 0;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 12px;
  text-align: center;
}

.section-subtitle {
  text-align: center;
  color: var(--gris);
  max-width: 720px;
  margin: 0 auto 40px;
}

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

.card {
  background: var(--blanco);
  border-radius: 18px;
  padding: 26px;
  box-shadow: var(--sombra);
  border: 1px solid #ececec;
}

.card h3 {
  margin-bottom: 12px;
  color: var(--negro);
}

.about {
  background: var(--gris-claro);
}

.about-grid,
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.about-box,
.contact-box {
  background: var(--blanco);
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--sombra);
}

.project-list {
  display: grid;
  gap: 18px;
}

.project-item {
  padding: 20px;
  border-left: 5px solid var(--naranja);
  background: #fffaf2;
  border-radius: 12px;
}

footer {
  background: var(--negro);
  color: #d8d8d8;
  padding: 28px 0;
  text-align: center;
  font-size: 0.95rem;
}

.highlight {
  color: #f3c66a;
}

@media (max-width: 900px) {
  .hero-grid,
  .cards,
  .about-grid,
  .contact-grid,
  .why-grid,
  .project-grid,
  .gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    min-width: 0;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
  }

  .brand {
    min-width: 0;
    max-width: 100%;
  }

  .brand-text {
    line-height: 1.1;
  }

  .brand strong {
    font-size: 1.05rem;
    letter-spacing: 1px;
  }

  .brand span {
    font-size: 0.76rem;
  }

  .logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  nav {
    grid-column: 1 / -1;
    width: 100%;
    display: none;
  }

  nav.active {
    display: block;
  }

  nav ul {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0 4px;
  }

  nav li {
    width: 100%;
  }

  nav a {
    display: block;
    width: 100%;
    font-size: 0.98rem;
    padding: 6px 0;
  }

  .hero {
    padding: 70px 0 55px;
  }

  .hero h1 {
    font-size: 2.3rem;
    line-height: 1.08;
    margin-bottom: 16px;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .hero-note {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 20px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-card {
    width: 100%;
    max-width: 100%;
    padding: 22px 20px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
    margin: 0 auto;
  }

  .cards,
  .why-grid,
  .project-grid,
  .about-grid,
  .contact-grid,
  .gallery-grid,
  .hero-grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .card,
  .why-card,
  .project-card,
  .about-box,
  .contact-box {
    width: 100%;
    max-width: 100%;
    padding: 18px 16px;
  }

  .section-title {
    font-size: 1.9rem;
  }

  .section-subtitle {
    font-size: 1rem;
    max-width: 100%;
  }
}

@media (max-width: 576px) {
  body {
    line-height: 1.5;
  }

  .container {
    width: min(94%, var(--max-width));
  }

  .card,
  .why-card,
  .project-card,
  .about-box,
  .contact-box {
    padding: 20px 18px;
  }

  .gallery-item img {
    height: 220px;
  }

  .contact-box p {
    margin-bottom: 8px;
  }

  .about-box p,
  .card p,
  .why-card p,
  .project-card p {
    margin-bottom: 8px;
  }

  .btn {
    padding: 11px 18px;
    font-size: 0.95rem;
  }

  .btn-top {
    width: 42px;
    height: 42px;
    bottom: 82px;
    right: 16px;
  }

  .whatsapp-btn {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 18px;
    font-size: 22px;
  }
}

.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  font-size: 24px;
  width: 58px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  z-index: 999;
  transition: 0.3s;
}

.whatsapp-btn:hover {
  transform: scale(1.08);
}

.why-us {
  background: #fffdf9;
}

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

.why-card {
  background: var(--blanco);
  border: 1px solid #eee4d3;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--sombra);
  transition: 0.25s ease;
}

.card:hover,
.why-card:hover,
.project-card:hover {
  transform: translateY(-6px) scale(1.02);
}

.why-card h3 {
  margin-bottom: 10px;
  color: var(--naranja);
  font-size: 1.1rem;
}

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

.project-card {
  background: var(--blanco);
  border: 1px solid #ececec;
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--sombra);
  transition: 0.25s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

.project-card h3 {
  margin-bottom: 12px;
  color: var(--naranja);
}

.hero-note {
  font-size: 1rem;
  color: #f3d9a0;
  margin-top: -8px;
  margin-bottom: 24px;
}

.gallery-section {
  background: #fffdf9;
}

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

.gallery-item {
  background: var(--blanco);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sombra);
  border: 1px solid #ececec;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.fade-in.show {
  opacity: 1;
  transform: translateY(0);
}

.btn-top {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: var(--negro);
  color: white;
  font-size: 20px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.btn-top:hover {
  transform: scale(1.1);
}

.menu-toggle {
  border: 2px solid #444;
  color: #222;
  background: white;
  font-size: 1.4rem;
  padding: 6px 12px;
  border-radius: 10px;
  cursor: pointer;
  line-height: 1;
}
