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

  :root {
    --color-primary: #1a365d;
    --color-accent: #c9a227;
    --color-bg: #f8f9fa;
    --color-text: #2d3748;
    --color-muted: #718096;
    --header-height: 72px;
  }

  html {
    scroll-behavior: smooth;
  }

  body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
  }

  /* Header & Navigation */
  header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    z-index: 1000;
  }

  nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .logo {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--color-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
  }

  .logo span {
    color: var(--color-accent);
  }

  .nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
  }

  .nav-links a {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
  }

  .nav-links a:hover,
  .nav-links a.active {
    color: var(--color-primary);
    background: rgba(26, 54, 93, 0.06);
  }

  .menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
  }

  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
  }

  /* Componente de imagen reutilizable */
  .img-block {
    position: relative;
    overflow: hidden;
    margin: 0;
    background: #e2e8f0;
  }

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

  .img-block--hero {
    position: absolute;
    inset: 0;
  }

  .img-block--hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(26, 54, 93, 0.85) 0%, rgba(44, 82, 130, 0.75) 100%);
  }

  .img-block--about {
    border-radius: 12px;
    aspect-ratio: 4 / 3;
    min-height: 280px;
  }

  .img-block--service {
    border-radius: 12px 12px 0 0;
    aspect-ratio: 16 / 9;
  }

  .img-block--work {
    aspect-ratio: 16 / 10;
  }

  /* Hero */
  .hero {
    position: relative;
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    padding: 4rem 1.5rem;
    overflow: hidden;
  }

  .hero-content {
    position: relative;
    z-index: 1;
  }

  .hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
  }

  .hero p {
    font-size: 1.15rem;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 2rem;
  }

  .hero .btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    background: var(--color-accent);
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
  }

  .hero .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(201, 162, 39, 0.35);
  }

  /* Sections */
  section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 5rem 1.5rem;
  }

  section h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
  }

  section .subtitle {
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
  }

  /* Nosotros */
  .about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
  }

  .about-grid p {
    color: var(--color-muted);
    margin-bottom: 1rem;
  }

  /* Servicios */
  #servicios {
    background: #fff;
    max-width: none;
  }

  #servicios .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .services-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
  }

  .service-item {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 2rem;
    align-items: start;
    background: var(--color-bg);
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: box-shadow 0.2s;
  }

  .service-item:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .service-item .img-block--service {
    height: 100%;
    min-height: 220px;
    border-radius: 0;
    aspect-ratio: auto;
  }

  .service-item-body {
    padding: 2rem 2rem 2rem 0;
  }

  .service-item-body h3 {
    color: var(--color-primary);
    margin-bottom: 1rem;
    font-size: 1.35rem;
  }

  .service-item-body p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 1rem;
  }

  .service-item-body p:last-child {
    margin-bottom: 0;
  }

  /* Clientes */
  #clientes {
    background: #fff;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  #clientes h2,
  #clientes .subtitle,
  #clientes .clients-grid {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  #clientes .subtitle {
    margin-bottom: 2.5rem;
  }

  .clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1.5rem;
    align-items: center;
  }

  .client-logo {
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    min-height: 100px;
    transition: box-shadow 0.2s, border-color 0.2s;
  }

  .client-logo img {
    max-width: 100%;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
  }

  /* Obras */
  .works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }

  .work-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  }

  .work-card .info {
    padding: 1.25rem;
  }

  .work-card h3 {
    font-size: 1.05rem;
    color: var(--color-primary);
    margin-bottom: 0.35rem;
  }

  .work-card p {
    font-size: 0.9rem;
    color: var(--color-muted);
  }

  /* Contacto */
  #contacto {
    background: var(--color-primary);
    color: #fff;
    max-width: none;
  }

  #contacto .inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  #contacto h2 {
    color: #fff;
  }

  #contacto .subtitle {
    color: rgba(255, 255, 255, 0.75);
  }

  .contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .contact-info p {
    margin-bottom: 1rem;
    opacity: 0.9;
  }

  .contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .contact-form input,
  .contact-form textarea {
    padding: 0.85rem 1rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
  }

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

  .contact-form button {
    padding: 0.85rem;
    background: var(--color-accent);
    color: var(--color-primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s;
  }

  .contact-form button:hover {
    transform: translateY(-2px);
  }

  /* Footer */
  footer {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-muted);
    font-size: 0.85rem;
    background: #fff;
    border-top: 1px solid #e2e8f0;
  }

  /* Responsive */
  @media (max-width: 768px) {
    .menu-toggle {
      display: block;
    }

    .nav-links {
      position: fixed;
      top: var(--header-height);
      left: 0;
      right: 0;
      background: #fff;
      flex-direction: column;
      padding: 1rem;
      box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
      transform: translateY(-120%);
      opacity: 0;
      transition: transform 0.3s, opacity 0.3s;
      pointer-events: none;
    }

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

    .about-grid,
    .contact-grid {
      grid-template-columns: 1fr;
    }

    .service-item {
      grid-template-columns: 1fr;
    }

    .service-item-body {
      padding: 0 1.5rem 1.5rem;
    }

    .service-item .img-block--service {
      min-height: 200px;
    }
  }