:root {
  --primary: #d97706;
  --primary-dark: #b45309;
  --dark: #1f2937;
  --dark-2: #111827;
  --accent: #f59e0b;
  --light: #f9fafb;
  --text: #374151;
  --muted: #6b7280;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--light);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1100px, 92%); margin: 0 auto; }

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark-2);
  color: #fff;
  padding: 12px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.2rem; }
.logo {
  width: 42px; height: 42px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: inline-block; flex-shrink: 0;
  overflow: hidden;
}
.logo img { width: 100%; height: 100%; object-fit: cover; }
.logo::before { content: ""; }

.nav { display: flex; gap: 20px; margin-left: auto; }
.nav a { color: #e5e7eb; font-weight: 500; padding: 6px 2px; border-bottom: 2px solid transparent; transition: .2s; }
.nav a:hover { color: #fff; border-color: var(--accent); }

.header-actions { display: flex; align-items: center; }
.btn-phone {
  background: var(--primary); color: #fff; padding: 10px 16px;
  border-radius: 999px; font-weight: 600; white-space: nowrap;
}
.btn-phone:hover { background: var(--primary-dark); }

.menu-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 999px;
  font-weight: 600; transition: .25s; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost:hover { background: rgba(255,255,255,.15); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; min-height: 92vh; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg.loading { background: linear-gradient(135deg, #1f2937, #374151); }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,24,39,.55), rgba(17,24,39,.8)); }
.hero-content { position: relative; z-index: 2; padding: 80px 0; max-width: 720px; }
.hero-badge {
  background: rgba(217,119,6,.2); color: #fcd34d; border: 1px solid rgba(217,119,6,.4);
  padding: 6px 14px; border-radius: 999px; font-size: .85rem; font-weight: 600;
  display: inline-block; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1.15; margin-bottom: 18px; text-shadow: 0 2px 20px rgba(0,0,0,.3); }
.hero p { font-size: 1.15rem; margin-bottom: 30px; max-width: 600px; color: #e5e7eb; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 50px; }
.hero-stats { display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats strong { display: block; font-size: 1.9rem; color: #fcd34d; }
.hero-stats span { color: #e5e7eb; font-size: .9rem; }

/* ===== Sections ===== */
.section { padding: 70px 0; }
.section-alt { background: #fff; }
.section-accent { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; }
.section-title { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--dark); margin-bottom: 10px; text-align: center; }
.section-title.left { text-align: left; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; font-size: 1.05rem; }
.section-accent .section-title { color: #fff; }
.section-accent .section-sub { color: #fde68a; }

/* ===== Cards ===== */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.card {
  background: #fff; border-radius: var(--radius); padding: 26px;
  box-shadow: var(--shadow); text-align: center; transition: .3s;
  border: 1px solid #f0f0f0;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(0,0,0,.15); }
.card-icon { font-size: 2.4rem; display: block; margin-bottom: 12px; }
.card h3 { color: var(--dark); margin-bottom: 8px; font-size: 1.15rem; }
.card p { font-size: .95rem; color: var(--muted); }
.card .muted { color: var(--muted); margin-top: 4px; }
.card a { color: var(--primary); font-weight: 600; }

/* ===== Gallery ===== */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden;
  aspect-ratio: 4/3; background: #e5e7eb; cursor: pointer;
}
.gallery-item.big { aspect-ratio: auto; min-height: 280px; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .caption {
  position: absolute; bottom: 0; left: 0; right: 0; background: rgba(17,24,39,.7);
  color: #fff; padding: 8px 12px; font-size: .85rem; opacity: 0; transition: .3s;
}
.gallery-item:hover .caption { opacity: 1; }
.gallery-item .ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .9rem; text-align: center; padding: 10px;
}

/* ===== Nosotros ===== */
.nosotros { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.nosotros-image { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.nosotros-p { margin-bottom: 20px; }
.checklist { list-style: none; margin-bottom: 28px; }
.checklist li { padding: 8px 0 8px 30px; position: relative; }
.checklist li::before { content: "✔"; color: var(--primary); position: absolute; left: 0; font-weight: 700; }
.logos-row { display: flex; gap: 14px; flex-wrap: wrap; }
.mini-card {
  width: 120px; height: 88px; border-radius: 10px; overflow: hidden;
  background: #e5e7eb; border: 1px solid #e5e7eb; display: block; position: relative;
}
.mini-card img { width: 100%; height: 100%; object-fit: cover; }
.mini-card .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .75rem; text-align: center; padding: 4px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 50px; }
.contact-card { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); box-shadow: none; }
.contact-card:hover { background: rgba(255,255,255,.18); }
.contact-card h3 { color: #fff; }
.contact-card p { color: #fde68a; }
.contact-card .muted { color: #fef3c7; }
.contact-card a { color: #fff; }

.socials { text-align: center; }
.social-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.social-btn {
  background: rgba(255,255,255,.15); color: #fff; padding: 11px 20px;
  border-radius: 999px; transition: .25s; font-weight: 600;
}
.social-btn:hover { background: #fff; color: var(--primary-dark); }

/* ===== Footer ===== */
.footer { background: var(--dark-2); color: #d1d5db; padding: 30px 0; text-align: center; }
.footer .muted { color: #9ca3af; font-size: .85rem; margin-top: 6px; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,.9); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 8px; }
.lightbox-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; line-height: 1;
}

/* ===== Responsive ===== */
@media (max-width: 820px) {
  .nosotros { grid-template-columns: 1fr; }
  .menu-toggle { display: block; margin-left: auto; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--dark-2); flex-direction: column; padding: 12px 20px; gap: 6px;
  }
  .nav.open { display: flex; }
  .header-actions { display: none; }
  .hero-stats { gap: 24px; }
}