/* ============================================
   JEVO Solutions - Stylesheet
   Variables de diseño y estilos base
   ============================================ */

:root {
  --primary: #1A4F86;
  --accent: #1F5B4A;
  --muted: #505968;
  --card: #fff;
}

/* ============================================
   Reset y Base
   ============================================ */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Helvetica, Arial, sans-serif;
  color: #0f1724;
  background: linear-gradient(180deg, #f6f8fb, #ffffff);
  line-height: 1.6;
}

/* ============================================
   Enlaces y Estados de Foco
   ============================================ */

a {
  color: var(--primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ============================================
   Tipografía
   ============================================ */

h1 {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h2 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

.subtitle {
  color: var(--muted);
  margin-top: 12px;
  font-size: 17px;
  line-height: 1.5;
}

.lead {
  color: var(--muted);
  margin-top: 6px;
}

/* ============================================
   Header
   ============================================ */

header.site {
  max-width: 1100px;
  margin: 18px auto 0;
  padding: 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding-bottom: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  height: 54px;
}

.nav a {
  color: var(--muted);
  margin-left: 18px;
  font-size: 14px;
}

/* ============================================
   Hero Section
   Full-bleed background con card overlay
   ============================================ */

.hero-wrap {
  position: relative;
  overflow: visible;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  padding: 40px 0;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: contrast(1.10) saturate(1.03);
  z-index: 0;
}

/* Overlay para mejorar legibilidad */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(26, 79, 134, 0.28) 0%,
    rgba(26, 79, 134, 0.15) 100%
  );
  pointer-events: none;
}

.hero-card {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: calc(100% - 36px);
  margin: 0 22px 0 auto;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(3px);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 20px 70px rgba(15, 23, 36, 0.14);
}

/* ============================================
   Botones y CTA
   ============================================ */

.cta {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 12px 20px;
}

.btn-primary:hover {
  background: #164270;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(26, 79, 134, 0.3);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(31, 91, 74, 0.2);
  padding: 10px 16px;
}

.btn-ghost:hover {
  background: rgba(31, 91, 74, 0.08);
  border-color: var(--accent);
}

/* ============================================
   Layout y Container
   ============================================ */

.container {
  max-width: 1100px;
  margin: 0px auto;
  padding: 0 22px;
}

.section {
  margin-top: 48px;
}

/* ============================================
   Cards de Servicios (con íconos circulares)
   ============================================ */

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

.card {
  background: var(--card);
  padding: 32px 24px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 36, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(15, 23, 36, 0.12);
}

.icon-circle {
  width: 70px;
  height: 70px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: white;
  transition: transform .2s ease;
}

.card:hover .icon-circle {
  transform: scale(1.08);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ============================================
   Sección de Enfoque (con números grandes)
   ============================================ */

.approach-section {
  position: relative;
  background: linear-gradient(135deg, var(--accent) 0%, var(--primary) 100%);
  padding: 70px 0;
  margin-top: 60px;
  overflow: hidden;
}

.decorative-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  top: -100px;
  left: -100px;
  pointer-events: none;
}

.approach {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.approach-item {
  background: rgba(255, 255, 255, 0.12);
  padding: 32px 24px;
  border-radius: 12px;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease, background 0.2s ease;
}

.approach-item:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}

.approach-number {
  font-size: 48px;
  font-weight: 700;
  color: white;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.5;
}

.approach-item h2 {
  color: white;
  font-size: 25px;
  font-weight: 700;
  margin: 0 0 12px;
}

.approach-item p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  line-height: 1.6;
  font-size: 15px;
}

/* ============================================
   Sección Oscura (CTA)
   ============================================ */

.dark-section {
  background: #1a2332;
  padding: 70px 0;
  margin-top: 0;
}

.dark-section h2 {
  color: white;
  font-size: 32px;
  margin-bottom: 16px;
}

.dark-section .btn-primary {
  background: var(--accent);
  padding: 14px 32px;
  font-size: 16px;
}

.dark-section .btn-primary:hover {
  background: #276956;
}

/* ============================================
   Sección de Contacto
   ============================================ */

.contact-single {
  max-width: 800px;
  margin: 0 auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px;
  align-items: start;
}

.box {
  color: var(--primary);
  background: var(--card);
  padding: 22px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 36, 0.06);
}

.contact-info {
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
}

.contact-info svg {
  font-weight: bolder;
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================
   Footer
   ============================================ */

footer.site {
  max-width: auto;
  margin: 36px auto;
  padding: 18px;
  border-top: 1px solid rgba(15, 23, 36, 0.06);
  color: var(--muted);
  display: flex;;
  align-items: center;
}

footer.site a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  transition: opacity 0.2s ease;
}

footer.site a:hover {
  opacity: 0.7;
}

footer.site a:not(:first-child)::before {
  content: '|';
  margin-right: 18px;
  color: var(--muted);
}

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

/* Tablets grandes y escritorios pequeños */
@media (max-width: 1024px) {
  .services {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets */
@media (max-width: 900px) {
  .approach {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .hero-card {
    margin: 0 auto 0 auto;
    max-width: 90%;
    padding: 24px;
  }
  
  .approach-section {
    padding: 50px 0;
  }
  
  .dark-section {
    padding: 50px 0;
  }
}

/* Móviles grandes */
@media (max-width: 768px) {
  header.site {
    flex-wrap: wrap;
  }
  
  .nav {
    width: 100%;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
  }
  
  .nav a {
    margin-left: 0;
    margin-right: 18px;
  }
  
  .brand img {
    height: 48px;
  }
  
  .approach-number {
    font-size: 48px;
  }
  
  .approach-item h2 {
    font-size: 18px;
  }
  
  .dark-section h2 {
    font-size: 26px;
  }
}

/* Móviles medianos */
@media (max-width: 640px) {
  .services {
    grid-template-columns: 1fr;
  }
  
  .cta {
    flex-direction: column;
  }
  
  .btn,
  .btn-primary,
  .btn-ghost {
    width: 100%;
    text-align: center;
  }
  
  h1 {
    font-size: 28px;
  }
  
  .subtitle {
    font-size: 16px;
  }
  
  .hero-bg {
    height: 48vh;
    min-height: 280px;
  }
  
  .icon-circle {
    width: 60px;
    height: 60px;
  }
  
  .icon-circle svg {
    width: 24px;
    height: 24px;
  }
  
  .approach-section {
    padding: 40px 0;
  }
  
  .dark-section {
    padding: 40px 0;
  }
  
  .decorative-circle {
    width: 200px;
    height: 200px;
  }
  
  .contact-info {
    flex-wrap: wrap;
    gap: 8px 12px;
  }
  
  footer.site > div {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
  
  footer.site > div > div:last-child {
    flex-direction: column;
    gap: 12px;
  }
}

/* Móviles pequeños */
@media (max-width: 520px) {
  h1 {
    font-size: 24px;
  }
  
  .hero-card {
    padding: 24px;
  }
  
  .hero-bg {
    height: 44vh;
  }
  
  .container {
    margin: 28px auto;
  }
  
  .approach-number {
    font-size: 40px;
  }
  
  .dark-section h2 {
    font-size: 22px;
  }
}

/* ============================================
   Páginas Legales (Privacy & Terms)
   ============================================ */

main.legal {
  max-width: 900px;
  margin: 40px auto;
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 36, 0.06);
}

main.legal h1 {
  font-size: 32px;
  margin: 0 0 8px;
}

main.legal h2 {
  font-size: 20px;
  margin: 28px 0 12px;
  color: var(--primary);
}

main.legal p,
main.legal li {
  color: var(--muted);
  line-height: 1.7;
}

main.legal ul {
  padding-left: 24px;
}
