/*
  ENCA Services — Estilos complementarios a Tailwind CSS (cargado vía CDN en index.html).
  Este archivo cubre lo que las utilidades de Tailwind no resuelven directamente:
  tipografía base, header dinámico al hacer scroll, fondos con gradiente/patrón,
  animaciones de entrada y componentes repetidos (pills, tarjetas de valores/equipo/servicios).

  Paleta de marca:
    --color-primary  #2A3B4C  Azul Pizarra Profundo — menú, títulos, secciones de autoridad
    --color-accent   #006D77  Verde Petróleo — botones CTA y detalles dinámicos
    --color-smoke    #F5F5F5  Blanco Humo — fondo neutro del sitio
*/

:root {
  --color-primary: #2A3B4C;
  --color-primary-rgb: 42, 59, 76;
  --color-accent: #006D77;
  --color-smoke: #F5F5F5;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
}

/* ===================== HEADER ===================== */
#site-header {
  background: transparent;
}

#site-header.is-scrolled {
  background: var(--color-primary);
  box-shadow: 0 4px 24px rgba(var(--color-primary-rgb), 0.35);
}

.nav-link {
  position: relative;
  padding-bottom: 4px;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--color-accent);
  transition: width 0.25s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ===================== HERO ===================== */
.hero-gradient {
  background: linear-gradient(160deg, #141c25 0%, #202e3c 45%, #2A3B4C 100%);
}

.hero-pattern {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.06) 0, transparent 45%),
    radial-gradient(circle at 85% 0%, rgba(0, 109, 119, 0.12) 0, transparent 50%),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  pointer-events: none;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.7s ease forwards;
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pill-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  font-size: 0.9rem;
  font-weight: 500;
  color: #eef1f4;
}

.pill-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.65rem;
  background: rgba(0, 109, 119, 0.35);
  flex-shrink: 0;
}

/* ===================== SECTION HEADINGS ===================== */
.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.2;
  color: var(--color-primary);
}

@media (min-width: 640px) {
  .section-title {
    font-size: 2.5rem;
  }
}

/* ===================== VALUES ===================== */
.value-card {
  padding: 1.75rem 1.4rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #dbe2e7;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.1);
  border-color: #b7c3cd;
}

.value-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  background: #e6f3f4;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.value-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--color-primary);
}

.value-text {
  margin-top: 0.35rem;
  font-size: 0.875rem;
  color: #435566;
  line-height: 1.5;
}

/* ===================== TEAM ===================== */
.team-card {
  padding: 1.75rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #dbe2e7;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(var(--color-primary-rgb), 0.1);
}

.team-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--color-primary), #566b7d);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

/* ===================== SERVICES ===================== */
.service-card {
  padding: 2rem 1.75rem;
  border-radius: 1.25rem;
  background: var(--color-smoke);
  border: 1px solid #dbe2e7;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(var(--color-primary-rgb), 0.12);
}

.service-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.25rem;
  height: 3.25rem;
  border-radius: 0.9rem;
  background: var(--color-primary);
  color: #fff;
  margin-bottom: 1.25rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #dbe2e7;
  color: var(--color-primary);
  font-size: 0.72rem;
  font-weight: 600;
}

.check-item {
  position: relative;
  padding-left: 1.5rem;
}

.check-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 999px;
  background: var(--color-accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 70% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 70% no-repeat;
}

.service-cta {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #dbe2e7;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
  transition: color 0.2s ease;
}

.service-cta:hover {
  color: #005861;
}

/* ===================== CONTACT ===================== */
.contact-card {
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.25s ease, border-color 0.25s ease;
}

.contact-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(0, 109, 119, 0.35);
  color: #fff;
  margin-bottom: 0.9rem;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.social-icon:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-smoke);
}

::-webkit-scrollbar-thumb {
  background: #93a5b2;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-accent);
}
