/* ══════════════════════════════════════
   RESET
══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; }

/* ══════════════════════════════════════
   VARIABLES
══════════════════════════════════════ */
:root {
  --bg:          #f5f3ef;
  --bg-alt:      #edeae4;
  --fg:          #1a1916;
  --fg-muted:    #6b6760;
  --primary:     #2563a8;
  --primary-10:  rgba(37, 99, 168, 0.1);
  --primary-fg:  #ffffff;
  --card:        #ffffff;
  --border:      #ddd9d0;
  --radius:      14px;
  --wa:          #25D366;
  --font-title:  'DM Serif Display', Georgia, serif;
  --font-body:   'Outfit', system-ui, sans-serif;
}

/* ══════════════════════════════════════
   BASE
══════════════════════════════════════ */
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ══════════════════════════════════════
   UTILIDADES
══════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  background: var(--primary-10);
  color: var(--primary);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: 96px 32px;
}

.s-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  margin-bottom: 60px;
}

.s-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--fg);
  line-height: 1.15;
}

.s-desc {
  max-width: 500px;
  color: var(--fg-muted);
  font-size: 1rem;
  line-height: 1.7;
}

/* ══════════════════════════════════════
   BOTONES
══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  border-radius: 10px;
  padding: 12px 26px;
  box-shadow: 0 4px 16px rgba(37, 99, 168, 0.25);
}
.btn--primary:hover {
  background: #1a4f94;
  transform: translateY(-1px);
}

.btn--outline {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 26px;
}
.btn--outline:hover {
  background: var(--bg-alt);
  transform: translateY(-1px);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  border-radius: 12px;
  padding: 16px 32px;
  font-size: 16px;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}
.btn--wa:hover {
  background: #22c55e;
  transform: translateY(-2px);
}

/* ══════════════════════════════════════
   NAVBAR
══════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(245, 243, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__logo svg {
  height: 40px;
  width: auto;
  display: block;
}

.navbar__links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.navbar__links a:hover {
  color: var(--primary);
}

.navbar__cta {
  font-size: 14px;
  padding: 10px 22px;
}

.navbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg);
  padding: 4px;
}
.navbar__hamburger svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

.navbar__mobile {
  display: none;
  flex-direction: column;
  gap: 16px;
  padding: 20px 32px 24px;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.navbar__mobile.open {
  display: flex;
}
.navbar__mobile a {
  font-size: 16px;
  font-weight: 500;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.navbar__mobile a:hover {
  color: var(--primary);
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
#inicio {
  min-height: 100vh;
  padding: 140px 32px 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#inicio::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 168, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

#inicio::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -200px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 168, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.hero__logo {
  height: 80px;
  width: auto;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  line-height: 1.1;
  max-width: 850px;
  color: var(--fg);
}

.hero__title .accent {
  color: var(--primary);
}

.hero__desc {
  max-width: 520px;
  color: var(--fg-muted);
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 8px;
}

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--fg-muted);
  animation: bob 2s ease-in-out infinite;
}
.hero__scroll svg {
  width: 22px; height: 22px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

@keyframes bob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(7px); }
}

/* ══════════════════════════════════════
   TRABAJOS
══════════════════════════════════════ */
#trabajos {
  background: var(--bg-alt);
}

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

.work-card {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
  background: var(--bg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
  transition: transform 0.35s, box-shadow 0.35s;
}
.work-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(37, 99, 168, 0.13);
}

.work-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s;
}
.work-card:hover img {
  transform: scale(1.06);
}

.work-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20, 20, 18, 0.75) 0%, transparent 55%);
  opacity: 0;
  transition: opacity 0.35s;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.work-card:hover .work-card__overlay {
  opacity: 1;
}

.work-card__overlay h3 {
  font-family: var(--font-title);
  color: #fff;
  font-size: 1.15rem;
  margin-bottom: 4px;
}
.work-card__overlay p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ══════════════════════════════════════
   SERVICIOS
══════════════════════════════════════ */
#servicios {
  background: var(--bg);
}

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

.service-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(37, 99, 168, 0.09);
}

.service-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--primary-10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, color 0.3s;
}
.service-icon svg {
  width: 24px; height: 24px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.service-card:hover .service-icon {
  background: var(--primary);
  color: #fff;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--fg);
}
.service-card p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   CONTACTO
══════════════════════════════════════ */
#contacto {
  background: var(--bg-alt);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.wa-circle {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: var(--wa);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wa-circle svg {
  width: 38px; height: 38px;
  stroke: currentColor; fill: none;
  stroke-width: 1.8; stroke-linecap: round;
}

.contact-card h3 {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--fg);
}
.contact-card p {
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 340px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  align-content: start;
}

.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-card.full {
  grid-column: 1 / -1;
}

.info-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--primary-10);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg {
  width: 20px; height: 20px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.info-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--fg);
}
.info-card p {
  font-size: 0.85rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* ══════════════════════════════════════
   FOOTER
══════════════════════════════════════ */
footer {
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding: 40px 32px;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.footer__logo {
  height: 28px;
  width: auto;
  opacity: 0.5;
}

footer p {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

/* ══════════════════════════════════════
   WHATSAPP FAB
══════════════════════════════════════ */
.wa-fab {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 1000;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  transition: background 0.2s, transform 0.2s;
}
.wa-fab:hover {
  background: #22c55e;
  transform: scale(1.1);
}
.wa-fab svg {
  width: 28px; height: 28px;
  stroke: currentColor; fill: none;
  stroke-width: 2; stroke-linecap: round;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 960px) {
  .works-grid    { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid  { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  section { padding: 72px 20px; }

  .navbar__inner       { padding: 14px 20px; }
  .navbar__links       { display: none !important; }
  .navbar__cta         { display: none !important; }
  .navbar__hamburger   { display: block; }

  .works-grid          { grid-template-columns: 1fr; }
  .services-grid       { grid-template-columns: 1fr; }
  .info-grid           { grid-template-columns: 1fr; }
  .info-card.full      { grid-column: auto; }

  .hero__ctas          { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn     { justify-content: center; }

  .footer__inner       { flex-direction: column; text-align: center; }
}
