/* Red Star Technologies — Design System */
:root {
  --navy: #0c1d4a;
  --navy-light: #152a5e;
  --teal: #1aabb8;
  --teal-dark: #148a94;
  --green: #6bc92e;
  --green-dark: #56a824;
  --grey: #a8b4c0;
  --grey-light: #e8ecf0;
  --white: #ffffff;
  --text: #1a2332;
  --text-muted: #5a6578;
  --shadow: 0 4px 24px rgba(12, 29, 74, 0.12);
  --shadow-lg: 0 12px 48px rgba(12, 29, 74, 0.18);
  --radius: 12px;
  --radius-lg: 20px;
  --font-display: 'Exo 2', sans-serif;
  --font-body: 'Inter', sans-serif;
  --toolbar-h: 38px;
  --header-bar-h: 80px;
  --header-h: calc(var(--toolbar-h) + var(--header-bar-h));
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1140px, 92%);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: box-shadow 0.3s;
}

.header--scrolled {
  box-shadow: var(--shadow);
}

.toolbar {
  height: var(--toolbar-h);
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.toolbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.toolbar__left,
.toolbar__right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.toolbar__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s;
}

.toolbar__item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.toolbar__item:hover {
  color: var(--teal);
}

.toolbar__item--text {
  cursor: default;
}

.toolbar__item--text:hover {
  color: rgba(255, 255, 255, 0.85);
}

.toolbar__item--whatsapp:hover {
  color: #25d366;
}

.header__bar {
  height: var(--header-bar-h);
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo__img {
  height: 64px;
  width: auto;
  border-radius: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.nav__link:hover {
  color: var(--teal);
}

.nav__link--cta {
  background: var(--teal);
  color: var(--white) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-weight: 600;
}

.nav__link--cta:hover {
  background: var(--teal-dark);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
  background: var(--navy);
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../assets/foto-hero.jpg');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(12, 29, 74, 0.93) 0%,
    rgba(12, 29, 74, 0.78) 42%,
    rgba(12, 29, 74, 0.45) 72%,
    rgba(12, 29, 74, 0.25) 100%
  );
}

.hero__content {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  padding-block: 4rem;
}

.hero__badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--teal);
  background: rgba(26, 171, 184, 0.15);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  border: 1px solid rgba(26, 171, 184, 0.3);
  margin-bottom: 1.25rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__title-accent {
  display: block;
  background: linear-gradient(90deg, var(--teal), var(--green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__desc {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 10px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(26, 171, 184, 0.4);
}

.btn--primary:hover {
  background: var(--teal-dark);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--outline:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn--full {
  width: 100%;
}

.hero__visual {
  position: relative;
  height: 380px;
}

.hero__card {
  position: absolute;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.5rem;
  color: var(--white);
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}

.hero__card strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin: 0.5rem 0 0.25rem;
}

.hero__card small {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.hero__card-icon {
  font-size: 2rem;
}

.hero__card--1 {
  top: 10%;
  left: 5%;
  animation-delay: 0s;
}

.hero__card--2 {
  top: 35%;
  right: 0;
  animation-delay: -2s;
  border-color: rgba(26, 171, 184, 0.4);
}

.hero__card--3 {
  bottom: 8%;
  left: 20%;
  animation-delay: -4s;
  border-color: rgba(107, 201, 46, 0.4);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* Stats */
.stats {
  background: var(--white);
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2rem;
}

.stat {
  text-align: center;
  padding: 0.5rem;
}

.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

.stat__label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Sections */
.section {
  padding: 6rem 0;
}

.section--dark {
  background: var(--navy);
  color: var(--white);
}

.section__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}

.section__tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section--dark .section__tag {
  color: var(--green);
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1rem;
}

.section__subtitle {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.section--dark .section__subtitle {
  color: rgba(255, 255, 255, 0.65);
}

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
}

.service-card__icon--teal {
  background: rgba(26, 171, 184, 0.12);
  color: var(--teal);
}

.service-card__icon--green {
  background: rgba(107, 201, 46, 0.12);
  color: var(--green-dark);
}

.service-card__icon--navy {
  background: rgba(12, 29, 74, 0.08);
  color: var(--navy);
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}

.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.product-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: background 0.3s, border-color 0.3s;
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(26, 171, 184, 0.4);
}

.product-card__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-card__emoji {
  font-size: 2.5rem;
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.product-card__list li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.product-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

/* Mayoreo */
.mayoreo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.mayoreo__text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.7;
}

.mayoreo__benefits {
  margin-bottom: 2rem;
}

.mayoreo__benefits li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-weight: 500;
  color: var(--navy);
}

.mayoreo__benefits svg {
  width: 20px;
  height: 20px;
  color: var(--green-dark);
  flex-shrink: 0;
}

.mayoreo__visual {
  position: relative;
  height: 320px;
}

.mayoreo__block {
  position: absolute;
  width: 200px;
  height: 200px;
  background: var(--navy);
  border-radius: 8px;
  transform: rotate(-12deg);
  top: 20%;
  left: 10%;
  box-shadow: var(--shadow-lg);
}

.mayoreo__block--green {
  width: 140px;
  height: 140px;
  background: var(--green);
  top: 5%;
  right: 15%;
  transform: rotate(8deg);
  z-index: 2;
}

.mayoreo__block--grey {
  width: 100px;
  height: 100px;
  background: var(--grey);
  bottom: 10%;
  right: 30%;
  transform: rotate(-5deg);
  z-index: 1;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact__item {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact__icon {
  width: 48px;
  height: 48px;
  background: rgba(26, 171, 184, 0.1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--teal);
}

.contact__icon svg {
  width: 22px;
  height: 22px;
}

.contact__icon--whatsapp {
  background: rgba(37, 211, 102, 0.12);
  color: #25d366;
}

.contact__item h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
}

.contact__item p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact__link {
  color: var(--teal);
  font-weight: 500;
  transition: color 0.2s;
}

.contact__link:hover {
  color: var(--teal-dark);
  text-decoration: underline;
}

.contact__form {
  background: var(--grey-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.contact__form h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 1px solid #d0d8e0;
  border-radius: 8px;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(26, 171, 184, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 3.5rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 2.5rem;
}

.footer__logo {
  height: 56px;
  width: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.footer__brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  max-width: 280px;
}

.footer__links h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: var(--teal);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
}

.footer__bottom p {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
}

/* Responsive */
@media (max-width: 992px) {
  .hero__bg {
    background-position: center;
  }

  .hero__bg::after {
    background: linear-gradient(
      180deg,
      rgba(12, 29, 74, 0.88) 0%,
      rgba(12, 29, 74, 0.75) 50%,
      rgba(12, 29, 74, 0.85) 100%
    );
  }

  .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__desc {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    height: 280px;
    max-width: 400px;
    margin: 0 auto;
  }

  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services,
  .products {
    grid-template-columns: 1fr;
  }

  .mayoreo__inner,
  .contact {
    grid-template-columns: 1fr;
  }

  .mayoreo__visual {
    height: 240px;
    order: -1;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    margin-inline: auto;
  }
}

@media (max-width: 768px) {
  .toolbar__item--hide-mobile {
    display: none;
  }

  .toolbar__left,
  .toolbar__right {
    gap: 0.75rem;
  }

  .toolbar__item {
    font-size: 0.72rem;
  }

  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.3s, opacity 0.3s;
    border-bottom: 1px solid var(--grey-light);
    box-shadow: var(--shadow);
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
  }

  .nav__link {
    padding: 0.85rem 0;
    width: 100%;
    text-align: center;
    border-bottom: 1px solid var(--grey-light);
    color: var(--navy);
  }

  .nav__link--cta {
    margin-top: 0.5rem;
  }

  .nav-toggle--active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle--active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle--active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .stats__grid {
    grid-template-columns: 1fr 1fr;
    padding: 1.5rem;
  }

  .section {
    padding: 4rem 0;
  }
}
