@import url("variables.css");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--fuente);
  color: var(--tinta);
  background: var(--gris-fondo);
  line-height: 1.6;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

p {
  text-align: justify;
  hyphens: auto;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 200;
  background: var(--azul);
  color: var(--blanco);
  padding: 0.6rem 1rem;
  border-radius: var(--radio-sm);
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: min(calc(100% - 2.5rem), var(--ancho));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--blanco);
  box-shadow: 0 10px 28px rgba(26, 28, 34, 0.08);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  overflow: hidden;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 36px rgba(26, 28, 34, 0.12);
}

.header-franja {
  background: var(--lima);
  color: var(--tinta);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

.header-franja-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 38px;
  font-size: 0.82rem;
  font-weight: 600;
}

.header-franja p {
  text-align: left;
}

.header-franja a {
  color: var(--tinta);
  text-decoration: none;
}

.header-franja a:hover {
  color: var(--azul);
}

.header-main {
  border-bottom: 3px solid var(--lima);
}

.header-inner {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--azul);
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand img {
  width: 36px;
  height: 36px;
}

.site-header .brand {
  gap: 0.85rem;
  font-size: 1.25rem;
}

.site-header .brand img {
  width: 46px;
  height: 46px;
}

.brand:hover {
  color: var(--azul-oscuro);
}

.site-footer .brand {
  color: var(--azul);
}

.site-footer .brand:hover {
  color: var(--azul-oscuro);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}

.site-nav a:not(.btn) {
  color: var(--azul);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  position: relative;
}

.site-nav a:not(.btn):hover,
.site-nav a:not(.btn)[aria-current="page"] {
  color: var(--azul-oscuro);
}

.site-nav a:not(.btn)[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 4px;
  background: var(--lima);
  border-radius: 99px;
}

.site-nav .btn {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--gris-linea);
  background: transparent;
  border-radius: var(--radio-sm);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--tinta);
  position: relative;
  margin: 0 auto;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border-radius: 99px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--azul);
  color: var(--blanco);
  box-shadow: var(--sombra-azul);
}

.btn-primary:hover {
  background: var(--azul-oscuro);
}

.btn-dark {
  background: var(--negro);
  color: var(--blanco);
}

.btn-dark:hover {
  background: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost-dark {
  background: var(--blanco);
  color: var(--azul);
  border-color: var(--gris-linea);
}

.hero-carousel {
  padding: 1.25rem 0 2.5rem;
}

.carousel {
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--radio-xl);
  box-shadow: 0 18px 50px rgba(26, 28, 34, 0.12);
}

.carousel-track {
  display: flex;
  transition: transform 0.55s ease;
}

.slide {
  flex: 0 0 100%;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
}

.slide-copy {
  padding: clamp(2rem, 5vw, 4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.slide-copy h1 {
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 14ch;
  margin-bottom: 1rem;
}

.slide-copy p.lead {
  font-size: 1.08rem;
  max-width: 34rem;
  margin-bottom: 1.8rem;
  font-weight: 400;
}

.slide-visual {
  position: relative;
  overflow: hidden;
  min-height: 280px;
}

.slide-visual img,
.slide-visual svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.slide-lima {
  background: var(--lima);
  color: var(--tinta);
}

.slide-lima .lead {
  color: #3d4a22;
}

.slide-azul {
  background: var(--azul);
  color: var(--blanco);
}

.slide-azul .lead,
.slide-oscuro .lead {
  color: rgba(255, 255, 255, 0.82);
}

.slide-oscuro {
  background: var(--negro);
  color: var(--blanco);
}

.slide-menta {
  background: #d8ead2;
  color: var(--tinta);
}

.slide-menta .lead {
  color: #3d5340;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  margin-bottom: 1.1rem;
  padding: 0.35rem 0.8rem;
  border-radius: 99px;
  background: rgba(26, 28, 34, 0.08);
  color: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-soft {
  background: var(--verde-suave);
  color: var(--verde-profundo);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--blanco);
  color: var(--tinta);
  box-shadow: 0 8px 22px rgba(26, 28, 34, 0.16);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

.carousel-btn:hover {
  background: var(--lima);
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.1rem;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 99px;
  background: #c5ccd4;
  cursor: pointer;
  padding: 0;
}

.carousel-dots button[aria-current="true"] {
  width: 28px;
  background: var(--azul);
}

.hero-page {
  padding: 3.2rem 0 2.6rem;
  background:
    radial-gradient(circle at 90% 0%, rgba(197, 222, 58, 0.28), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, var(--gris-fondo) 100%);
  color: var(--tinta);
}

.page-title {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
  max-width: 16ch;
  margin-bottom: 1.1rem;
}

.page-lead {
  color: var(--gris);
  font-size: 1.1rem;
  max-width: 38rem;
  font-weight: 400;
}

.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

.section-head h2,
.block-title {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  margin: 0.4rem 0 0.75rem;
  color: var(--tinta);
}

.section-head p,
.muted {
  color: var(--gris);
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--blanco);
  border: 1px solid rgba(0, 85, 165, 0.06);
  border-left: 4px solid var(--lima);
  border-radius: var(--radio);
  padding: 1.7rem;
  box-shadow: var(--sombra);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 28, 34, 0.1);
}

.card-with-photo {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  padding: 0;
  overflow: hidden;
}

.card-body {
  padding: 1.5rem 1.4rem 1.5rem 1.5rem;
}

.card-photo {
  min-height: 100%;
}

.card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--verde-suave);
  color: var(--azul);
  font-weight: 700;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.55rem;
  color: var(--azul);
}

.card p {
  color: var(--gris);
  font-size: 0.96rem;
  text-align: justify;
  hyphens: auto;
}

.card-link {
  display: inline-block;
  margin-top: 1rem;
  color: var(--azul);
  font-weight: 600;
  font-size: 0.9rem;
}

.alt {
  background: var(--blanco);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.step {
  padding: 1.6rem;
  border-radius: var(--radio);
  background: var(--blanco);
  border: 1px solid rgba(0, 85, 165, 0.06);
  border-left: 4px solid var(--lima);
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 28, 34, 0.1);
}

.step-num {
  color: var(--verde-profundo);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

.step h3 {
  margin: 0.45rem 0 0.5rem;
}

.step p {
  color: var(--gris);
}

.cta-band {
  background: linear-gradient(135deg, var(--azul) 0%, #00325f 100%);
  color: var(--blanco);
}

.cta-band .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta-band h2 {
  letter-spacing: -0.03em;
  margin-bottom: 0.5rem;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  background: #f3f4f0;
  color: #3d4650;
  padding: 0;
}

.footer-franja {
  position: relative;
  background: var(--lima);
  color: var(--tinta);
}

.footer-notch {
  position: absolute;
  left: 50%;
  top: 0;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #e8d62a;
  color: var(--tinta);
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(26, 28, 34, 0.12);
  pointer-events: none;
}

.footer-franja-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  min-height: 64px;
  padding: 0.85rem 0;
}

.footer-franja-links,
.footer-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.4rem;
}

.footer-franja a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: var(--tinta);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.footer-franja a:hover {
  color: var(--azul);
}

.footer-social a {
  width: 34px;
  height: 34px;
  justify-content: center;
  border: 1.5px solid rgba(26, 28, 34, 0.28);
  border-radius: 50%;
}

.footer-social svg {
  width: 15px;
  height: 15px;
}

.footer-main {
  padding: 2.8rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1.15fr;
  gap: 2rem;
}

.site-footer h3 {
  color: #2b3238;
  font-size: 0.95rem;
  margin-bottom: 0.9rem;
}

.site-footer a {
  display: block;
  text-decoration: none;
  margin-bottom: 0.45rem;
  color: #4a5560;
  font-size: 0.92rem;
}

.site-footer a:hover,
.footer-link-azul {
  color: var(--azul);
}

.footer-link-azul {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-main p {
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
}

.footer-legal {
  border-top: 1px solid #d9dee4;
  background: #eceee8;
  padding: 1.1rem 0;
}

.footer-legal-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.legal {
  padding: 0;
  font-size: 0.8rem;
  color: #5c6b7b;
  max-width: 36rem;
}

.product-catalog {
  background:
    radial-gradient(circle at 92% 8%, rgba(197, 222, 58, 0.16), transparent 28%),
    var(--gris-fondo);
}

.product-catalog .container {
  display: grid;
  gap: 1.15rem;
}

.product-detail {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  padding: 1.7rem 1.8rem;
  background: var(--blanco);
  border: 1px solid rgba(0, 85, 165, 0.06);
  border-radius: var(--radio);
  border-left: 4px solid var(--lima);
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-detail:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(26, 28, 34, 0.1);
}

.feature-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0;
  padding: 1.1rem 1.2rem;
  background: var(--gris-fondo);
  border-radius: 12px;
}

.feature-list li {
  list-style: none;
  padding-left: 1.3rem;
  position: relative;
  color: var(--gris);
}

.feature-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--verde);
  position: absolute;
  left: 0;
  top: 0.5rem;
}

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.contact-wrap {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
}

.contact-card,
.form-card {
  background: var(--blanco);
  border: 1px solid rgba(0, 85, 165, 0.06);
  border-left: 4px solid var(--lima);
  border-radius: var(--radio);
  padding: 1.8rem;
  box-shadow: var(--sombra);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card:hover,
.form-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(26, 28, 34, 0.1);
}

label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  margin-bottom: 1rem;
  border: 1px solid var(--gris-linea);
  border-radius: var(--radio-sm);
  padding: 0.8rem 0.9rem;
  font: inherit;
  background: var(--blanco);
  color: var(--tinta);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.btn:focus-visible,
.site-nav a:focus-visible,
.brand:focus-visible,
.carousel-btn:focus-visible,
.carousel-dots button:focus-visible {
  outline: 2px solid var(--azul);
  outline-offset: 2px;
}

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radio-sm);
  background: #eef8d8;
  color: #3d5c10;
  font-weight: 500;
}

@media (max-width: 900px) {
  .slide,
  .cards,
  .card-with-photo,
  .steps,
  .footer-grid,
  .product-detail,
  .values,
  .contact-wrap,
  .cta-band .container,
  .footer-franja-inner,
  .footer-legal-inner {
    grid-template-columns: 1fr;
  }

  .footer-franja-inner,
  .footer-legal-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .slide {
    min-height: 0;
  }

  .slide-visual {
    min-height: 220px;
  }

  .card-photo {
    min-height: 160px;
    order: -1;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blanco);
    padding: 1.2rem 1.25rem 1.5rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 3px solid var(--lima);
    box-shadow: var(--sombra);
  }

  .site-nav .btn {
    width: 100%;
  }

  .header-franja-inner {
    font-size: 0.75rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a[aria-current="page"]::after {
    display: none;
  }

  .section {
    padding: 3.5rem 0;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track {
    transition: none;
  }
}
