/* =========================================================
   VOQUI CONSULTORES — HOJA DE ESTILOS
   -----------------------------------------------------------
   Está organizada en bloques, de arriba hacia abajo:
   1. Variables (colores, tipografía) — CAMBIA AQUÍ para
      modificar la paleta o las fuentes en todo el sitio.
   2. Reset básico
   3. Utilidades (container, botones)
   4. Header / nav
   5. Hero
   6. Divisores de curvas de nivel
   7. Servicios
   7b. Sectores
   8. Nosotros
   9. Contacto
   10. Footer
   11. Responsive (celular)
   ========================================================= */

/* ---------- 1. VARIABLES ---------- */
:root {
  /* Paleta oficial Voqui, en tonos pastel */
  --color-bg:        #F1FBF7;  /* fondo general, blanco con tinte menta */
  --color-surface:   #FFFFFF;  /* tarjetas y formulario */
  --color-ink:       #105157;  /* verde-azulado oscuro Voqui — texto principal, topbar */
  --color-ink-soft:  #4F787C;  /* variante suave del ink, para texto secundario */

  --color-sage:      #92F5BA;  /* menta pastel Voqui — decorativo, fondos suaves */
  --color-sage-dark: #36BB84;  /* verde Voqui — botones, links, acentos activos */
  --color-slate:     #88E5C3;  /* menta pastel alterna Voqui — acentos secundarios */

  --color-border:    #D8EFE6;

  /* Tipografía: Arial para todo lo formal/estructural, Times New Roman como acompañamiento */
  --font-display: Arial, Helvetica, sans-serif;
  --font-body:    'Times New Roman', Times, serif;

  --container-width: 1120px;
  --radius: 14px;
}

/* ---------- 2. RESET BÁSICO ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .logo, .btn, .eyebrow, .stat-number, nav a {
  font-family: var(--font-display);
}

h1, h2, h3 { line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--color-slate);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- 3. UTILIDADES ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-sage-dark);
  margin-bottom: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-sage-dark);
  color: #fff;
}
.btn-primary:hover { background: var(--color-ink); }

.btn-ghost {
  background: transparent;
  border-color: var(--color-sage-dark);
  color: var(--color-sage-dark);
}
.btn-ghost:hover { background: var(--color-sage-dark); color: #fff; }

/* ---------- 4. HEADER / NAV ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 245, 240, 0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
}
.logo-dot { color: var(--color-sage-dark); }

.main-nav { display: flex; gap: 32px; }
.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--color-sage-dark);
  transition: width 0.2s ease;
}
.main-nav a:hover::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-ink);
}

/* ---------- 5. HERO ---------- */
.hero {
  padding: 90px 0 40px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 24px;
}

.hero-lead {
  font-size: 1.15rem;
  color: var(--color-ink-soft);
  max-width: 560px;
  margin: 0 auto 36px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ---------- 5b. CARRUSEL (reutilizado por el hero y por el blog compacto) ---------- */
.hero-carousel { padding: 10px 0 50px; }

.carousel { position: relative; }
.carousel-track {
  display: flex;
  overflow: hidden;
  border-radius: var(--radius);
  scroll-behavior: smooth;
}
.carousel-slide {
  flex: 0 0 100%;
  position: relative;
  color: inherit;
  display: block;
}
.carousel-slide .photo-placeholder {
  aspect-ratio: 21/9;
  border-radius: 0;
  opacity: 0.55;
}
.carousel-caption {
  position: absolute;
  left: 24px;
  bottom: 20px;
  background: var(--color-ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 8px;
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: var(--color-ink);
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 81, 87, 0.2);
}
.carousel-prev { left: 12px; }
.carousel-next { right: 12px; }
.carousel-arrow:hover { background: var(--color-sage-dark); color: #fff; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--color-border);
  cursor: pointer;
  padding: 0;
}
.carousel-dots button.active { background: var(--color-sage-dark); }

/* ---------- 6. DIVISORES DE CURVAS DE NIVEL ---------- */
.section-divider { line-height: 0; }
.section-divider svg { width: 100%; height: 40px; }
.section-divider path { fill: var(--color-surface); }
.section-divider.flip { transform: rotate(180deg); }

/* ---------- 7. SERVICIOS ---------- */
.services {
  background: var(--color-surface);
  padding: 40px 0 100px;
}

.services h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  max-width: 600px;
  margin-bottom: 48px;
}

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

.service-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -12px rgba(35, 48, 42, 0.25);
}

.service-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-sage-dark);
  background: rgba(54, 187, 132, 0.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-ink-soft);
}

/* ---------- 9. CONTACTO ---------- */
.contact {
  background: var(--color-surface);
  padding: 40px 0 110px;
}

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

.contact-info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 16px;
}

.contact-lead { color: var(--color-ink-soft); margin-bottom: 28px; }

.contact-details { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.contact-details li { display: flex; flex-direction: column; font-size: 1rem; }
.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-sage-dark);
  font-weight: 600;
  margin-bottom: 2px;
}
.contact-details a:hover { color: var(--color-sage-dark); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
}

.contact-form label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 12px;
}

.contact-form input,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: #fff;
  color: var(--color-ink);
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--color-sage-dark);
}

.contact-form .btn { margin-top: 18px; align-self: flex-start; }

.form-note { font-size: 0.85rem; color: var(--color-sage-dark); min-height: 1.2em; margin-top: 8px; }

/* ---------- 10. FOOTER ---------- */
.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--color-ink-soft);
}

/* ---------- 11b. NAV ACTIVA (página actual) ---------- */
.main-nav a.active {
  color: var(--color-sage-dark);
}
.main-nav a.active::after {
  width: 100%;
}

/* ---------- 12. PAGE HERO (encabezado de páginas internas) ---------- */
.page-hero {
  padding: 70px 0 50px;
}
.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 16px;
  max-width: 700px;
}
.page-lead {
  font-size: 1.1rem;
  color: var(--color-ink-soft);
  max-width: 640px;
}

/* ---------- 13. TARJETAS DE SERVICIO COMO LINKS (home + servicios.html) ---------- */
.service-card-link {
  display: block;
  color: inherit;
}
.service-more {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-sage-dark);
}
.see-all {
  margin-top: 36px;
}

/* ---------- 14. CTA BANNER (franja de llamada a la acción) ---------- */
.cta-banner {
  background: var(--color-sage-dark);
  color: #fff;
  padding: 64px 0;
}
.cta-banner-inner {
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
}
.cta-banner h2 { color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.cta-banner .btn-primary {
  background: #fff;
  color: var(--color-sage-dark);
}
.cta-banner .btn-primary:hover { background: var(--color-bg); }

/* ---------- 15. PÁGINA DE DETALLE DE SERVICIO ---------- */
.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-ink-soft);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--color-sage-dark); }
.breadcrumb a:hover { text-decoration: underline; }

.service-tag-lg {
  font-size: 1rem;
  margin-bottom: 16px;
}

.service-detail { padding: 20px 0 80px; background: var(--color-surface); }

.service-detail-inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 56px;
  align-items: start;
}

.service-detail-text p {
  margin-bottom: 18px;
  color: var(--color-ink-soft);
}

.service-detail-side {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 100px;
}
.service-detail-side h3 { font-size: 1rem; margin-bottom: 16px; }

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}
.service-bullets li {
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--color-ink-soft);
}
.service-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-sage);
}

.service-nav { padding: 20px 0 80px; }
.service-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--color-border);
  padding-top: 28px;
}
.service-nav-link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-sage-dark);
}
.service-nav-link:hover { text-decoration: underline; }
.service-nav-center { color: var(--color-ink-soft); }

/* ---------- 12. BARRA SUPERIOR ---------- */
.topbar {
  background: var(--color-ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.82rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 24px;
  flex-wrap: wrap;
  gap: 6px;
}
.topbar-contact { display: flex; gap: 20px; }
.topbar-contact a:hover { color: var(--color-slate); }

/* ---------- 13. PHOTO PLACEHOLDER (reutilizado por el carrusel y por Proyectos) ---------- */
.photo-placeholder {
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-slate) 100%);
  opacity: 0.4;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-placeholder span {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  opacity: 0;
}

/* ---------- 15. EQUIPO (4 por fila, círculos chicos) ---------- */
.team-section { padding: 40px 0 90px; background: var(--color-surface); }
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}
.team-card { text-align: center; color: inherit; display: block; }
a.team-card { transition: transform 0.15s ease; }
a.team-card:hover { transform: translateY(-3px); }
.team-photo {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-slate) 100%);
  opacity: 0.5;
}
.team-card h3 { font-size: 0.92rem; margin-bottom: 2px; }
.team-role { font-size: 0.78rem; color: var(--color-ink-soft); }

.team-card-empty { opacity: 0.55; }
.team-photo-empty {
  background: none;
  border: 2px dashed var(--color-border);
  opacity: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-sage-dark);
}

/* Página individual de cada persona del equipo */
.member-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 8px;
}
.member-photo {
  width: 100px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-slate) 100%);
  opacity: 0.5;
}
.member-detail { padding: 10px 0 90px; }
.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.member-detail-grid h3 {
  font-size: 1rem;
  color: var(--color-sage-dark);
  margin-bottom: 12px;
}
.member-detail-grid p { color: var(--color-ink-soft); }

/* ---------- 16. MISIÓN Y VISIÓN ---------- */
.mission-vision { padding: 40px 0 90px; }
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 28px;
}
.mv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 32px;
}
.mv-card h3 {
  font-size: 1.1rem;
  color: var(--color-sage-dark);
  margin-bottom: 14px;
}
.mv-card p { color: var(--color-ink-soft); }

/* ---------- 17. PROYECTOS: IMAGEN + LISTA + SATISFACCIÓN (misma sección) ---------- */
.projects { padding: 40px 0 90px; }
.projects-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 28px;
}
.map-image-placeholder {
  height: 280px;
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  background: linear-gradient(135deg, var(--color-sage) 0%, var(--color-slate) 100%);
  opacity: 0.5;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.5;
}
.map-image-placeholder span { font-weight: 400; font-size: 0.8rem; font-family: var(--font-body); }

.projects-list {
  list-style: none;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.projects-list li {
  font-size: 0.92rem;
  color: var(--color-ink-soft);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 10px;
}
.projects-list strong { color: var(--color-ink); }

.testimonial-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 8px;
}
.stars { color: var(--color-sage-dark); font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card p { font-style: italic; color: var(--color-ink-soft); margin-bottom: 12px; }
.testimonial-author { font-size: 0.85rem; font-weight: 600; color: var(--color-sage-dark); }

/* ---------- 19. MAPA DE CONTACTO (placeholder) ---------- */
.map-placeholder {
  margin-top: 24px;
  height: 160px;
  border-radius: var(--radius);
  border: 1px dashed var(--color-border);
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--color-ink-soft);
  line-height: 1.5;
}
.map-placeholder span { font-weight: 400; font-size: 0.8rem; font-family: var(--font-body); }

/* ---------- 20. BLOG — archivo completo (blog.html) ---------- */
.blog { padding: 30px 0 90px; }
.blog-grid { display: flex; flex-direction: column; gap: 16px; }
.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 22px 26px;
  scroll-margin-top: 140px;
}
.blog-meta {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-sage-dark);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.blog-card h2 { font-size: 1.2rem; margin: 8px 0 10px; }
.blog-excerpt { color: var(--color-ink-soft); margin-bottom: 10px; }
.blog-card summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-sage-dark);
}
.blog-full { margin-top: 14px; }
.blog-full p { margin-bottom: 12px; color: var(--color-ink-soft); }

/* ---------- 20b. BLOG COMPACTO (carrusel, en index.html) ---------- */
.blog-compact { padding: 40px 0 90px; }
.blog-compact-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.blog-compact-head h2 { font-size: 1.4rem; }
.blog-slide {
  flex: 0 0 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 26px 30px;
}
.blog-slide h3 { font-size: 1.15rem; margin: 8px 0 10px; }

/* ---------- 11. RESPONSIVE ---------- */
@media (max-width: 860px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; }
  .service-detail-inner { grid-template-columns: 1fr; }
  .service-detail-side { position: static; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mv-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .member-detail-grid { grid-template-columns: 1fr; }
  .topbar-inner { justify-content: center; text-align: center; }
}

@media (max-width: 640px) {
  .main-nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-bg);
    flex-direction: column;
    padding: 16px 24px 24px;
    display: none;
    border-bottom: 1px solid var(--color-border);
  }
  .main-nav.open { display: flex; }
  .nav-toggle { display: flex; }

  .services-grid { grid-template-columns: 1fr; }
  .hero { padding: 90px 0 70px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .member-header { flex-direction: column; text-align: center; }
}
