/* ==========================================================================
   VIG Consulting — Estilos
   ========================================================================== */

:root {
  --green: #4ecca3;
  --green-light: #76d7b8;
  --green-dark: #34b38a;
  --dark: #393e46;
  --gray: #505762;
  --white: #ffffff;
  --off-white: #f7f9f9;
  --text: #393e46;
  --text-light: #6b7280;

  --font-base: "Poppins", "Segoe UI", Arial, sans-serif;
  --font-script: "Pacifico", "Brush Script MT", cursive;

  --container-width: 1200px;
  --radius: 12px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-base);
  color: var(--text);
  line-height: 1.7;
  background: var(--white);
}

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

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

ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn--primary {
  background: var(--green);
  color: var(--dark);
}

.btn--primary:hover {
  background: var(--green-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(78, 204, 163, 0.35);
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo__mark {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  display: inline-block;
  position: relative;
}

.logo__mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  background: var(--white);
  border-radius: 3px;
  opacity: 0.25;
}

.logo__text {
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--dark);
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo__text strong { font-weight: 700; }

.logo__text small {
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--green-dark);
}

.logo--light .logo__text { color: var(--white); }
.logo--light .logo__text small { color: var(--green-light); }

.nav {
  display: flex;
  gap: 32px;
  font-weight: 500;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color var(--transition);
}

.nav a:hover { color: var(--green-dark); }

.nav__cta { flex-shrink: 0; }

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0;
  background: var(--off-white);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero__content h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
}

.text-accent { color: var(--green-dark); }

.hero__content p {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 480px;
  margin-bottom: 28px;
}

.hero__image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--dark);
}

.hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shape {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green) 0%, transparent 60%);
  opacity: 0.35;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }

.section--alt { background: var(--off-white); }

.section__title {
  margin-bottom: 48px;
  position: relative;
  padding-left: 20px;
  border-left: 6px solid var(--green);
}

.section__eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  margin-bottom: 4px;
}

.section__title h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  color: var(--green-dark);
  position: relative;
  display: inline-block;
}

.section__title h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -12px;
  width: 100%;
  height: 2px;
  background: var(--green);
}

.section__title h2::before {
  content: "";
  position: absolute;
  right: -16px;
  bottom: -15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Quienes somos ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.about__icon svg {
  width: 100%;
  height: auto;
  color: var(--dark);
}

.about__text p { margin-bottom: 16px; color: var(--text); }
.about__text p:last-child { margin-bottom: 0; }

/* ---------- Tabs (Mision/Vision/Valores) ---------- */
.tabs__nav {
  display: flex;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tabs__btn {
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid var(--green);
  background: transparent;
  color: var(--dark);
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
}

.tabs__btn.is-active,
.tabs__btn:hover {
  background: var(--green);
  color: var(--dark);
}

.tabs__panel { display: none; }
.tabs__panel.is-active { display: block; animation: fadeIn 0.4s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.mvv__grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: flex-start;
}

.mvv__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.mvv__icon svg {
  width: 90px;
  height: 90px;
  color: var(--dark);
}

.mvv__label {
  font-family: var(--font-script);
  font-size: 2rem;
  color: var(--green-dark);
}

.mvv__text p { margin-bottom: 16px; color: var(--text); }
.mvv__text p:last-child { margin-bottom: 0; }

.valores__intro {
  max-width: 760px;
  color: var(--text-light);
  margin-bottom: 40px;
}

.valores__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.valor-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.05);
  transition: transform var(--transition), box-shadow var(--transition);
}

.valor-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(78, 204, 163, 0.18);
}

.valor-card__icon svg {
  width: 56px;
  height: 56px;
  color: var(--green-dark);
  margin-bottom: 16px;
}

.valor-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

.valor-card p {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* ---------- Servicios ---------- */
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(78, 204, 163, 0.18);
  border-color: var(--green);
}

.service-card--wide {
  grid-column: 1 / -1;
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.service-card__icon svg {
  width: 56px;
  height: 56px;
  color: var(--green-dark);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.service-card--wide .service-card__icon {
  margin-bottom: 0;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 12px;
}

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

.service-card__badge {
  display: inline-block;
  margin-top: 16px;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--off-white);
  border: 1px solid var(--green);
  color: var(--green-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.link-btn {
  margin-top: 12px;
  background: none;
  border: none;
  color: var(--green-dark);
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0;
}

.link-btn:hover { text-decoration: underline; }

.service-card__list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 24px;
}

.service-card__list li {
  font-size: 0.9rem;
  color: var(--text);
  padding-left: 18px;
  position: relative;
}

.service-card__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

/* ---------- Dots decoration ---------- */
.dots {
  display: flex;
  gap: 6px;
  margin-top: 56px;
}

.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.dots--light span { background: var(--green-light); }

/* ---------- Footer / Contacto ---------- */
.footer {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.footer__shape {
  position: absolute;
  top: 0;
  right: -10%;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  clip-path: polygon(30% 0%, 100% 0%, 70% 100%, 0% 100%);
  opacity: 0.15;
  pointer-events: none;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding-bottom: 64px;
}

.footer__tagline {
  font-style: italic;
  font-size: 1.1rem;
  margin: 24px 0;
  color: var(--green-light);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 32px;
}

.footer__contact a {
  font-weight: 600;
  transition: color var(--transition);
}

.footer__contact a:hover { color: var(--green-light); }

/* Form */
.footer__form {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 32px;
}

.footer__form h3 {
  margin-bottom: 20px;
  font-size: 1.3rem;
}

.form__field { margin-bottom: 16px; }

.form__field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: var(--green-light);
}

.form__field input,
.form__field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  resize: vertical;
}

.form__field input:focus,
.form__field textarea:focus {
  outline: none;
  border-color: var(--green);
}

.form__status {
  margin-top: 12px;
  font-size: 0.9rem;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__image { order: -1; }

  .about__grid,
  .mvv__grid {
    grid-template-columns: 1fr;
  }

  .about__icon { width: 80px; }
  .mvv__icon { flex-direction: row; }
  .mvv__icon svg { width: 60px; height: 60px; }

  .footer__inner { grid-template-columns: 1fr; gap: 40px; }

  .service-card--wide {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: none;
  }

  .nav.is-open { display: flex; }

  .nav__cta { display: none; }

  .nav__toggle { display: flex; }

  .section { padding: 64px 0; }

  .section__title { margin-bottom: 32px; }
}
