:root {
  --red: #e4002b;
  --red-dark: #c2001f;
  --blue: #16407a;
  --blue-dark: #0f2c56;
  --yellow: #f2a900;
  --yellow-dark: #d99400;
  --navy-text: #182338;
  --gray-text: #5b6472;
  --page-bg: #f5f8fc;
  --accent-blue: #184895;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--page-bg);
  color: var(--navy-text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

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

/* ---------- Topbar ---------- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 40px;
  background-color: #ffffff;
  border-bottom: 1px solid #e7ecf3;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand-logo {
  height: 56px;
  width: auto;
}

.topbar-divider {
  width: 1px;
  height: 40px;
  background-color: #e0e6ee;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.welcome-text strong {
  color: var(--blue);
  font-size: 1.05rem;
}

.welcome-text span {
  color: var(--gray-text);
  font-size: 0.9rem;
}

.btn-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  background-color: #eaf1fb;
  color: var(--blue);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-pill:hover {
  background-color: #dbe8fa;
}

.btn-pill svg {
  width: 18px;
  height: 18px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 48px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 72px 40px 48px;
}

.hero-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
}

.blob-1 {
  width: 480px;
  height: 480px;
  left: -220px;
  top: -140px;
  background: radial-gradient(circle, rgba(210, 228, 250, 0.85), rgba(210, 228, 250, 0) 65%);
}

.blob-2 {
  width: 380px;
  height: 380px;
  left: -160px;
  bottom: -180px;
  background: radial-gradient(circle, rgba(222, 235, 252, 0.85), rgba(222, 235, 252, 0) 65%);
}

.dots {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 220px;
  height: 180px;
  background-image: radial-gradient(#c7d5ea 1.5px, transparent 1.5px);
  background-size: 14px 14px;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 100px 80px at 30% 70%, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100px 80px at 30% 70%, black 40%, transparent 75%);
}

.hero-left {
  position: relative;
  z-index: 1;
  flex: 1.3 1 460px;
  max-width: 600px;
}

.badge {
  display: inline-block;
  border: 1px solid #b9d0f2;
  color: var(--blue);
  background-color: #eef4fd;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero-left h1 {
  font-size: 2.6rem;
  line-height: 1.2;
  margin: 0 0 20px;
  color: var(--navy-text);
}

.text-red {
  color: var(--red);
}

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

.hero-subtitle {
  margin: 0 0 20px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-text);
}

.hero-note {
  margin: 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent-blue);
  color: var(--gray-text);
  font-size: 1rem;
  line-height: 1.6;
}

/* ---------- Division cards ---------- */

.cards {
  position: relative;
  z-index: 1;
  flex: 1.7 1 640px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

.division-card {
  flex: 1 1 200px;
  max-width: 240px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(20, 40, 80, 0.08);
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.division-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(20, 40, 80, 0.14);
}

.card-red { border-bottom-color: var(--red); }
.card-blue { border-bottom-color: var(--blue); }
.card-yellow { border-bottom-color: var(--yellow); }

.card-photo {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.card-photo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.card-photo-red {
  background-image: url('logos/almacenesfondo.jpeg');
  background-size: cover;
  background-position: center;
}

.card-photo-red img {
  transform: scale(1.05);
}

.card-photo-blue {
  background-image: url('logos/empacadorafondo.jpeg');
  background-size: cover;
  background-position: center;
}

.card-photo-blue img {
  transform: scale(1.5);
}

.card-photo-yellow {
  background-image: linear-gradient(rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.4)), url('logos/fondopiopio.png');
  background-size: cover;
  background-position: center;
}

.card-photo-yellow img {
  transform: scale(1.35);
}

.card-body {
  padding: 20px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.card-body h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--navy-text);
}

.card-body p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--gray-text);
  line-height: 1.4;
}

.arrow-circle {
  margin-top: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid;
  display: flex;
  align-items: center;
  justify-content: center;
}

.arrow-circle svg {
  width: 18px;
  height: 18px;
}

.arrow-red { border-color: var(--red); color: var(--red); }
.arrow-blue { border-color: var(--blue); color: var(--blue); }
.arrow-yellow { border-color: var(--yellow); color: var(--yellow); }

/* ---------- Features bar ---------- */

.features {
  max-width: 1200px;
  margin: 24px auto 0;
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(20, 40, 80, 0.06);
  padding: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.feature {
  flex: 1 1 220px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.icon-red { background-color: #fde4e8; color: var(--red); }
.icon-blue { background-color: #e4ecf9; color: var(--blue); }
.icon-yellow { background-color: #fdf0d9; color: var(--yellow-dark); }

.feature h4 {
  margin: 0 0 4px;
  font-size: 1rem;
  color: var(--navy-text);
}

.feature p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--gray-text);
  line-height: 1.4;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  max-width: 1200px;
  margin: 24px auto 60px;
  background: linear-gradient(90deg, #eef4fd, #e7effb);
  border-radius: 20px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

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

.cta-icon {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cta-icon svg,
.cta-icon img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.cta-info h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--navy-text);
}

.cta-info p {
  margin: 2px 0 0;
  font-weight: 700;
}

.cta-divider {
  width: 1px;
  align-self: stretch;
  background-color: #c9d7ec;
}

.cta-text {
  flex: 1 1 260px;
  margin: 0;
  color: var(--gray-text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.btn-dark {
  display: flex;
  align-items: center;
  gap: 10px;
  border: none;
  background-color: var(--blue-dark);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.btn-dark:hover {
  background-color: #0a1f42;
}

.btn-dark svg {
  width: 18px;
  height: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    align-items: stretch;
    gap: 32px;
  }

  .hero-left {
    flex: none;
    max-width: none;
    text-align: center;
  }

  .cards {
    flex: none;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .topbar {
    padding: 16px 20px;
    flex-wrap: wrap;
  }

  .hero {
    padding: 48px 20px 32px;
  }

  .hero-left h1 {
    font-size: 2.1rem;
  }

  .cards {
    flex-direction: column;
    align-items: center;
  }

  .division-card {
    max-width: 320px;
    width: 100%;
  }

  .features {
    padding: 24px;
  }

  .cta-banner {
    justify-content: center;
    text-align: center;
    padding: 24px;
  }

  .cta-info {
    flex-direction: column;
    text-align: center;
  }

  .cta-divider {
    display: none;
  }
}

@media (max-width: 480px) {
  .welcome-text span {
    display: none;
  }

  .btn-pill span {
    display: none;
  }
}
