/* Fuente en <head>: Montserrat 400/700 */
/* Variables de color se inyectan desde header.php via :root */

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

body {
  margin: 0;
  font-family: 'Montserrat', Arial, sans-serif;
  background: var(--white);
  color: var(--brand-blue);
}

/* Header */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--grey);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.logo { max-width: 160px; height: auto; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
  flex-wrap: wrap;
}
.main-nav a {
  color: var(--brand-blue);
  text-decoration: none;
  font-weight: 700;
  padding: 6px 8px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--brand-green); background: rgba(0,0,0,0.03); }

.btn-oficina {
  margin-left: auto;
  display: inline-block;
  background: var(--brand-green);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 9999px;
  transition: background .2s;
  white-space: nowrap;
}
.btn-oficina:hover { background: var(--brand-cyan); }

/* Hero */
.hero {
  padding: 60px 20px;
  text-align: center;
  background: linear-gradient(120deg, var(--brand-blue) 0%, var(--brand-cyan) 100%);
  color: #fff;
}
.hero h1 { font-size: 2.4rem; margin-bottom: 12px; }
.hero p  { font-size: 1.1rem; margin-bottom: 24px; color: rgba(255,255,255,0.9); }
.cta-btn {
  background: var(--brand-green);
  color: #fff;
  padding: 12px 32px;
  font-size: 1.05rem;
  border: 0;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 700;
  transition: background .2s;
  box-shadow: 0 4px 12px var(--shadow);
}
.cta-btn:hover { background: var(--brand-cyan); }

/* Secciones */
.section { padding: 50px 20px; }
.section-title {
  text-align: center;
  color: var(--brand-blue);
  margin-bottom: 30px;
  font-size: 1.7rem;
}

/* Servicios */
.services {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--grey);
  border-radius: 12px;
  padding: 26px 22px;
  width: 260px;
  text-align: center;
  box-shadow: 0 2px 8px var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 6px 16px var(--shadow); }
.service-card svg { width: 48px; height: 48px; color: var(--brand-green); margin-bottom: 12px; }
.service-card h3 { font-size: 1.12rem; margin: 8px 0; }
.service-card p  { font-size: .98rem; color: var(--brand-blue); }

/* Ventajas */
.features {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
}
.feature {
  background: var(--white);
  border-left: 6px solid var(--brand-green);
  padding: 18px 22px;
  width: 220px;
  border-radius: 8px;
  font-size: 1rem;
  color: var(--brand-blue);
  box-shadow: 0 2px 8px var(--shadow);
}

/* ¿Por qué? */
.porque { text-align: center; max-width: 700px; margin: 0 auto; }
.porque h2 { font-size: 1.5rem; margin-bottom: 12px; color: var(--brand-green); }

/* CTA final */
.home-cta { text-align: center; padding: 30px 0; }

/* Footer */
.site-footer {
  background: var(--white);
  text-align: center;
  color: var(--brand-blue);
  padding: 30px 20px 20px;
  font-size: .9rem;
  border-top: 1px solid var(--grey);
}
.footer-social { margin-bottom: 14px; }
.footer-social a {
  color: var(--brand-blue);
  margin: 0 10px;
  font-size: 1.3rem;
  transition: color .2s;
}
.footer-social a:hover { color: var(--brand-green); }

/* Responsive */
@media (max-width: 900px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { order: 3; width: 100%; justify-content: center; }
  .btn-oficina { order: 2; margin-left: 0; }
}
@media (max-width: 768px) {
  .service-card, .feature { width: 90%; max-width: 520px; }
  .hero h1 { font-size: 2rem; }
}
