/* ===================================================
   HGP S.A. — style.css — Versión visual Qwen (premium)
   =================================================== */

/* --- Variables --- */
:root {
  --green:        #22c55e;
  --green-dark:   #16a34a;
  --green-soft:   rgba(34, 197, 94, 0.12);
  --green-border: rgba(34, 197, 94, 0.25);
  --dark-950:     #0a0f0a;
  --dark-900:     #111713;
  --dark-800:     #1a2218;
  --dark-700:     #243020;
  --gray-50:      #f8faf8;
  --gray-100:     #f1f5f1;
  --gray-200:     #e2e8e2;
  --gray-600:     #6b7a6b;
  --gray-800:     #2d3a2d;
  --white:        #ffffff;
  --text-dark:    #111713;
  --text-body:    #374937;
  --text-muted:   #6b7a6b;
  --text-light:   #e8f0e8;

  --header-h:     72px;
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,.12);
  --shadow-md:    0 4px 20px rgba(0,0,0,.18);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.3);

  --transition:   0.22s ease;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; border: none; cursor: pointer; }

/* --- Container --- */
.container {
  width: min(90%, 1180px);
  margin: 0 auto;
}

/* --- Utility --- */
.green { color: var(--green); }

/* ===================================================
   BUTTONS
   =================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--green);
  color: var(--dark-950);
}
.btn-primary:hover {
  background: var(--green-dark);
  box-shadow: 0 6px 24px rgba(34,197,94,.35);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,.35);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-lg { padding: 14px 30px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-wa {
  background: #25d366;
  color: var(--white);
}
.btn-wa:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 24px rgba(37,211,102,.4);
}

/* ===================================================
   HEADER
   =================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 15, 10, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(34,197,94,.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 24px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.01em;
}
.brand-sub {
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--green);
  letter-spacing: 0.12em;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav a {
  color: rgba(255,255,255,.75);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.site-nav a:hover { color: var(--green); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ===================================================
   HERO
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--dark-900);
  background-image:
    radial-gradient(ellipse 80% 60% at 50% 100%, rgba(34,197,94,.08) 0%, transparent 70%),
    repeating-linear-gradient(
      0deg, transparent, transparent 60px,
      rgba(34,197,94,.025) 60px, rgba(34,197,94,.025) 61px
    ),
    repeating-linear-gradient(
      90deg, transparent, transparent 60px,
      rgba(34,197,94,.025) 60px, rgba(34,197,94,.025) 61px
    );
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,15,10,.85) 0%, rgba(10,15,10,.4) 100%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}
.hero-content { max-width: 560px; }
.hero-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.hero-body {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  line-height: 1.7;
  margin-bottom: 32px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.hero-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.6);
  font-size: 0.9rem;
}
.hero-phone svg { color: var(--green); flex-shrink: 0; }
.hero-phone a { color: rgba(255,255,255,.85); font-weight: 600; }
.hero-phone a:hover { color: var(--green); }

/* Hero visual */
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.hero-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: rgba(10,15,10,.88);
  backdrop-filter: blur(8px);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
}
.hero-badge svg { color: var(--green); flex-shrink: 0; }

/* ===================================================
   SECTIONS
   =================================================== */
.section { padding: 88px 0; }
.section-light { background: var(--gray-50); }
.section-dark  { background: var(--dark-900); }

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--green);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px; height: 2px;
  background: var(--green);
  border-radius: 2px;
}
.section-eyebrow.light { color: var(--green); }

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-dark);
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}
.section-title.light { color: var(--white); }

/* ===================================================
   SERVICIOS
   =================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.service-card:hover {
  border-color: var(--green);
  box-shadow: 0 8px 32px rgba(34,197,94,.12);
  transform: translateY(-3px);
}
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
}
.service-icon svg { width: 24px; height: 24px; }
.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
}
.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===================================================
   POR QUÉ ELEGIRNOS
   =================================================== */
.why-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.why-text .section-title { color: var(--white); margin-bottom: 32px; }
.benefits-list { display: flex; flex-direction: column; gap: 16px; }
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,.8);
  font-size: 0.95rem;
  line-height: 1.6;
}
.benefits-list li strong { color: var(--white); }
.benefit-icon {
  width: 22px; height: 22px;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 2px;
}
.why-img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ===================================================
   EXPERIENCIA DESTACADA
   =================================================== */
.experience-groups {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.exp-group {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 28px 24px;
}
.exp-group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--green-dark);
}
.exp-group-header svg { flex-shrink: 0; }
.exp-group-header h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
}
.exp-list { display: flex; flex-direction: column; gap: 10px; }
.exp-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-body);
  font-size: 0.9rem;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--gray-100);
}
.exp-list li:last-child { border-bottom: none; padding-bottom: 0; }
.exp-list li::before {
  content: '';
  display: block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}

/* ===================================================
   TRABAJOS REALIZADOS
   =================================================== */
.works-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}
.work-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}
.work-item img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.75));
  color: var(--white);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 20px 16px 14px;
}

/* ===================================================
   COTIZACIÓN
   =================================================== */
.cotizacion-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.cotizacion-text .section-title { color: var(--text-dark); margin-bottom: 16px; }
.cotizacion-body {
  color: var(--text-muted);
  margin-bottom: 32px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.cotizacion-steps { display: flex; flex-direction: column; gap: 20px; }
.cotizacion-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
}
.cotizacion-steps li strong { color: var(--text-dark); }
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green);
  color: var(--dark-950);
  font-weight: 800;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Form card */
.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.form-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-dark);
}
.form-sub { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 24px; }

.form-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-field:last-child { margin-bottom: 0; }
.form-field label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.form-field input,
.form-field select,
.form-field textarea {
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.93rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(34,197,94,.15);
}
.form-field textarea { resize: vertical; min-height: 88px; }
.form-notice {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 10px;
}

/* ===================================================
   CONTACTO
   =================================================== */
.contacto-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contacto-inner .section-title { margin-bottom: 24px; }
.contact-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.75);
  font-size: 0.93rem;
}
.contact-list li svg { color: var(--green); flex-shrink: 0; }
.contact-list a { color: rgba(255,255,255,.75); transition: color var(--transition); }
.contact-list a:hover { color: var(--green); }
.contact-director {
  font-size: 0.85rem;
  color: rgba(255,255,255,.45);
  margin-top: 8px;
}

/* Credential card */
.credential-card {
  background: var(--dark-800);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow var(--transition);
}
.credential-card:hover {
  box-shadow: 0 8px 40px rgba(34,197,94,.15);
}
.credential-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.credential-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--green-border);
}
.credential-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--green);
}
.credential-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.credential-body {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  line-height: 1.65;
  margin-bottom: 20px;
}
.credential-cta { width: 100%; justify-content: center; }

/* ===================================================
   FOOTER
   =================================================== */
.site-footer {
  background: var(--dark-950);
  border-top: 1px solid rgba(34,197,94,.1);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding: 56px 0 40px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.footer-logo {
  width: 36px; height: 36px;
  border-radius: 6px;
  object-fit: cover;
}
.footer-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
}
.footer-sub {
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 500;
}
.footer-nav, .footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,.4);
  margin-bottom: 4px;
}
.footer-nav a, .footer-contact a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-nav a:hover, .footer-contact a:hover { color: var(--green); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255,255,255,.35);
}
.footer-bottom a { color: var(--green); font-weight: 500; }
.footer-bottom a:hover { color: var(--green-dark); }

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-height: 320px; overflow: hidden; }
  .hero-img { aspect-ratio: 16/9; }
  .hero h1 { font-size: 1.9rem; }

  .why-inner { grid-template-columns: 1fr; gap: 40px; }
  .why-visual { order: -1; }

  .cotizacion-inner { grid-template-columns: 1fr; gap: 40px; }
  .contacto-inner { grid-template-columns: 1fr; gap: 40px; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  .site-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .section { padding: 60px 0; }

  .form-row-2col { grid-template-columns: 1fr; gap: 0; }
  .services-grid { grid-template-columns: 1fr; }
  .experience-groups { grid-template-columns: 1fr; }
  .works-gallery { grid-template-columns: 1fr; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  /* Mobile nav open state */
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--dark-950);
    padding: 32px 24px;
    gap: 24px;
    z-index: 99;
  }
  .site-nav.open a {
    font-size: 1.2rem;
    color: var(--white);
  }
}
