
:root {
  --color-primary: #cda87a;
  --color-primary-dark: #b48b54;
  --color-dark: #223243;
  --color-bg: #f5f3ec;
  --color-text: #1f2933;
  --color-muted: #6b7280;
  --radius-lg: 16px;
  --shadow-soft: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

/* Loader */
.loader-overlay {
  position: fixed;
  inset: 0;
  background-color: #0b1220;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; }
.loader-logo-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.loader-logo {
  width: 90%;
  border-radius: 26px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.loader-ring {
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  border: 3px solid rgba(205, 168, 122, 0.25);
  border-top-color: #cda87a;
  animation: spin 1.1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Genérico */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.2rem;
}
.section { padding: 4.5rem 0; }
.section-alt { background-color: #e9edf1; }
.section-title {
  font-size: 2rem;
  margin: 0 0 0.5rem;
  color: var(--color-dark);
}
.section-subtitle {
  margin: 0 0 2.5rem;
  color: var(--color-muted);
  max-width: 620px;
}

/* WhatsApp flotante */
.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 2rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  z-index: 60;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}
.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
  background-color: #1ebe57;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 80;
  background-color: rgba(245, 243, 236, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-dark);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.logo img {
  height: 40px;
  border-radius: 10px;
}
.nav {
  display: flex;
  gap: 1.3rem;
  font-size: 0.95rem;
}
.nav a {
  text-decoration: none;
  color: var(--color-muted);
  font-weight: 500;
}
.nav a:hover { color: var(--color-primary-dark); }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
}

/* Hero */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: #ffffff;
  overflow: hidden;
  background-color: #111827;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(34, 50, 67, 0.85));
  z-index: -1;
}
.hero-content {
  position: relative;
  padding: 5rem 1.2rem 4rem;
}
.hero-tagline {
  font-size: 0.95rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}
.hero h1 {
  font-size: 2.4rem;
  max-width: 720px;
  margin: 0 0 1rem;
}
.hero-text {
  max-width: 600px;
  margin: 0 0 2rem;
  color: #e5e7eb;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.hero-mini {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: #d1d5db;
}

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease, color 0.12s ease;
}
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-outline:hover {
  background-color: #ffffff;
  color: var(--color-dark);
}
.btn-full { width: 100%; }

/* Servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.8rem;
}
.service-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.04);
}
.service-icon {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(205, 168, 122, 0.15);
  color: var(--color-primary-dark);
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
}
.service-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  color: var(--color-dark);
}
.service-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-muted);
}

/* Proyectos */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.project-item {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.project-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}
.project-item figcaption {
  padding: 0.9rem 1rem 1.1rem;
}
.project-item h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  color: var(--color-dark);
}
.project-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* Cotizador */
.cotizador-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.cotizador-form {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.cotizador-resultado {
  background-color: #111827;
  color: #e5e7eb;
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem 1.8rem;
  box-shadow: var(--shadow-soft);
}
.cotizador-resultado h3 { margin: 0 0 0.5rem; }
.cotizador-resultado p { margin: 0.15rem 0; font-size: 0.95rem; }

/* Nosotros */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.about-highlights { display: grid; gap: 1.1rem; }
.highlight-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem 1rem;
  align-items: start;
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1rem 1rem;
  box-shadow: var(--shadow-soft);
}
.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(34, 50, 67, 0.08);
  color: var(--color-dark);
}
.highlight-item h3 { margin: 0 0 0.2rem; font-size: 1rem; }
.highlight-item p { margin: 0; font-size: 0.9rem; color: var(--color-muted); }

/* Clientes */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}
.client-card {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem;
  box-shadow: var(--shadow-soft);
}
.client-header {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 0.7rem;
}
.client-logo {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  object-fit: cover;
}
.client-industry {
  margin: 0;
  font-size: 0.85rem;
  color: var(--color-muted);
}
.client-quote {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text);
}

/* Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
  color: var(--color-text);
}
.contact-list i { color: var(--color-primary-dark); }
.contact-list a {
  color: inherit;
  text-decoration: none;
}
.contact-list a:hover { text-decoration: underline; }
.contact-form {
  background-color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: var(--shadow-soft);
}

/* Formularios */
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-dark);
}
.form-group input,
.form-group select,
.form-group textarea {
  border-radius: 12px;
  border: 1px solid #d1d5db;
  padding: 0.7rem 0.75rem;
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.1s ease, box-shadow 0.1s ease;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 1px rgba(205, 168, 122, 0.35);
}
.form-note {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--color-muted);
}

/* Footer */
.footer {
  padding: 1.8rem 0 2rem;
  background-color: #111827;
  color: #9ca3af;
  font-size: 0.85rem;
}
.footer-content { text-align: center; }
.footer-mini {
  margin-top: 0.3rem;
  font-size: 0.78rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .services-grid,
  .projects-grid,
  .clients-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .about-grid,
  .contact-grid,
  .cotizador-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .header-content { padding: 0.6rem 0; }

  .nav {
    position: absolute;
    top: 60px;
    right: 1.2rem;
    left: 1.2rem;
    flex-direction: column;
    background-color: #ffffff;
    padding: 0.8rem 1rem 1rem;
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
    display: none;
    z-index: 90;
  }
  .nav.show { display: flex; }
  .nav-toggle {
    display: inline-flex;
    color: var(--color-dark);
  }

  .hero { min-height: 70vh; }
  .hero h1 { font-size: 2rem; }

  .services-grid,
  .projects-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }
  .form-row { grid-template-columns: 1fr; }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
}
