/* Infini Comunicación Creativa — landing page
   Identity derived from the logo: orange #F5841F + warm black #1A1512 on warm white #FAF7F2.
   Bricolage Grotesque (headings) + Hanken Grotesk (body). */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FAF7F2;
  color: #1A1512;
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  margin: 0;
  letter-spacing: -0.02em;
}

a {
  color: #1A1512;
  text-decoration: none;
  transition: color .18s ease;
}
a:hover { color: #F5841F; }

::selection { background: #F5841F; color: #FFF; }

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

button { font-family: inherit; }

@keyframes infiniPop {
  0% { transform: scale(.9); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- Layout helpers ---------- */

.section { padding: clamp(80px, 10vw, 140px) clamp(20px, 6vw, 80px); }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-inner--narrow { max-width: 1080px; }
.section-inner--contact { max-width: 1160px; }

.eyebrow {
  font: 600 12px/1 "Hanken Grotesk";
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #F5841F;
  margin-bottom: 18px;
}

.section-head { max-width: 640px; margin-bottom: clamp(44px, 5vw, 64px); }
.section-head--wide { max-width: 680px; }

.section-title {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.02;
  font-weight: 800;
}

.section-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: #5E554D;
  margin: 20px 0 0;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  padding: 24px clamp(20px, 6vw, 80px);
  background: rgba(250, 247, 242, .85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(26, 21, 18, .08);
}

.nav__logo { display: flex; align-items: center; }
.nav__logo img { height: 72px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(16px, 2vw, 36px);
}

.nav__link {
  font: 500 15px/1 "Hanken Grotesk";
  color: #5E554D;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 15px/1 "Hanken Grotesk";
  color: #1A1512;
  background: transparent;
  padding: 11px 20px;
  border-radius: 999px;
  border: 1.5px solid rgba(26, 21, 18, .22);
  transition: border-color .18s ease, color .18s ease;
}
.nav__cta:hover { border-color: #F5841F; color: #F5841F; }

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

.hero {
  position: relative;
  padding: clamp(72px, 10vw, 140px) clamp(20px, 6vw, 80px);
  background: #1A1512;
  color: #FAF7F2;
  overflow: hidden;
}

.hero__ring {
  position: absolute;
  top: -140px;
  right: -120px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  border: 2px solid rgba(245, 132, 31, .18);
  pointer-events: none;
}

.hero__infinity {
  position: absolute;
  top: 40px;
  right: 60px;
  font: 800 clamp(180px, 26vw, 360px)/.8 "Bricolage Grotesque";
  color: rgba(245, 132, 31, .10);
  pointer-events: none;
  user-select: none;
}

.hero__content { position: relative; max-width: 1080px; margin: 0 auto; }

.hero__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 "Hanken Grotesk";
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #F5841F;
  margin-bottom: 32px;
}
.hero__kicker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #F5841F;
  display: inline-block;
}

.hero__title {
  font-size: clamp(46px, 7.5vw, 104px);
  line-height: .94;
  font-weight: 800;
  color: #FAF7F2;
  max-width: 15ch;
}
.hero__title em { color: #F5841F; font-style: normal; }

.hero__subtitle {
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.55;
  color: #B8AFA5;
  margin: 34px 0 0;
  max-width: 560px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 42px 0 0; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 700 16px/1 "Hanken Grotesk";
  border-radius: 999px;
  cursor: pointer;
  border: none;
}

.btn--primary {
  color: #1A1512;
  background: #F5841F;
  padding: 17px 26px;
  transition: background .18s ease;
}
.btn--primary:hover { background: #FFF; color: #1A1512; }

.btn--outline-light {
  color: #FAF7F2;
  background: transparent;
  padding: 16px 24px;
  border: 1.5px solid rgba(250, 247, 242, .28);
  transition: border-color .18s ease;
}
.btn--outline-light:hover { border-color: #FAF7F2; color: #FAF7F2; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(32px, 5vw, 72px);
  margin: 64px 0 0;
  padding-top: 40px;
  border-top: 1px solid rgba(250, 247, 242, .14);
}
.hero__stat-num {
  font: 800 clamp(42px, 5vw, 64px)/1 "Bricolage Grotesque";
  color: #F5841F;
}
.hero__stat-label {
  font: 600 12px/1.3 "Hanken Grotesk";
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #B8AFA5;
  margin-top: 8px;
}

/* ---------- Servicios ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.service-card {
  background: #FFF;
  border: 1px solid rgba(26, 21, 18, .08);
  border-radius: 20px;
  padding: 32px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 21, 18, .09);
}

.service-card__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #FDEEDD;
  color: #F5841F;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.service-card__title { font-size: 21px; font-weight: 700; }
.service-card__text { font-size: 15px; line-height: 1.55; color: #6B6259; margin: 10px 0 0; }

/* ---------- Productos ---------- */

.products { background: #F1ECE4; }

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #FFF;
  border: 1px solid rgba(26, 21, 18, .08);
  border-radius: 22px;
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.product-card:hover { transform: translateY(-6px); }
.product-card--salud:hover { box-shadow: 0 26px 54px rgba(22, 50, 79, .18); }
.product-card--alimentos:hover { box-shadow: 0 26px 54px rgba(23, 135, 107, .18); }
.product-card--edu:hover { box-shadow: 0 26px 54px rgba(91, 76, 219, .18); }

.product-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.product-card--salud .product-card__media { background: #16324F; }
.product-card--alimentos .product-card__media { background: #0E6B52; }
.product-card--edu .product-card__media { background: #4B3FBF; }

.product-card__body {
  padding: 26px 26px 28px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-card__tag {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.product-card__tag-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.product-card__tag-label {
  font: 700 11px/1 "Hanken Grotesk";
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-card--salud .product-card__tag-icon { background: #16324F; color: #FF6B5B; }
.product-card--salud .product-card__tag-label { color: #16324F; }
.product-card--alimentos .product-card__tag-icon { background: #0E6B52; color: #FFD166; }
.product-card--alimentos .product-card__tag-label { color: #0E6B52; }
.product-card--edu .product-card__tag-icon { background: #4B3FBF; color: #9FE870; }
.product-card--edu .product-card__tag-label { color: #4B3FBF; }

.product-card__title { font-size: 24px; font-weight: 800; }
.product-card__text { font-size: 15px; line-height: 1.55; color: #6B6259; margin: 9px 0 22px; flex: 1; }
.product-card__text--provisional { color: #9A9088; font-style: italic; }

.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 700 15px/1 "Hanken Grotesk";
}
.product-card--salud .product-card__link { color: #16324F; }
.product-card--alimentos .product-card__link { color: #0E6B52; }
.product-card--edu .product-card__link { color: #4B3FBF; }

/* Próximamente card */

.product-card--soon {
  position: relative;
  background: #FBFAF7;
  border: 1.5px dashed rgba(44, 122, 123, .4);
}

.product-card__badge {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 11px/1 "Hanken Grotesk";
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #1F5E63;
  background: #CDECE8;
  padding: 7px 12px;
  border-radius: 999px;
}
.product-card__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2C7A7B;
  display: inline-block;
}

.product-card--soon .product-card__media {
  background: linear-gradient(135deg, #1F5E63 0%, #2C7A7B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-card__media-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(205, 236, 232, .22);
}
.product-card__media-ring--1 { top: -40px; left: -30px; width: 180px; height: 180px; }
.product-card__media-ring--2 { bottom: -60px; right: -20px; width: 200px; height: 200px; border-color: rgba(205, 236, 232, .16); }
.product-card__media-glyph { position: relative; color: rgba(205, 236, 232, .9); }

.product-card--soon .product-card__tag-icon { background: #1F5E63; color: #9FE8DF; }
.product-card--soon .product-card__tag-label { color: #1F5E63; }

.product-card__link--soon {
  color: #9A9088;
}

/* ---------- Por qué Infini ---------- */

.why { background: #1A1512; color: #FAF7F2; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2px;
  background: rgba(250, 247, 242, .10);
  border: 1px solid rgba(250, 247, 242, .10);
  border-radius: 20px;
  overflow: hidden;
}

.why-card { background: #1A1512; padding: 36px 30px; }

.why-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.why-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1.5px solid rgba(245, 132, 31, .4);
  color: #F5841F;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-card__number {
  font: 800 20px/1 "Bricolage Grotesque";
  color: rgba(250, 247, 242, .28);
}

.why-card__title { font-size: 19px; font-weight: 700; }
.why-card__text { font-size: 14.5px; line-height: 1.55; color: #B8AFA5; margin: 9px 0 0; }

/* ---------- Contacto ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}

.contact-lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: #5E554D;
  margin: 22px 0 34px;
  max-width: 460px;
}

.contact-list { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  font: 600 16px/1 "Hanken Grotesk";
  color: #1A1512;
}
.contact-item--muted { color: #8A8079; margin-top: 6px; }

.contact-item__icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #FDEEDD;
  color: #F5841F;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-item--muted .contact-item__icon { background: #F1ECE4; color: #8A8079; }

.contact-item__lines { display: flex; flex-direction: column; gap: 2px; }
.contact-item__sub { font: 500 13px/1 "Hanken Grotesk"; color: #8A8079; }

/* Form */

.contact-form-card {
  background: #FFF;
  border: 1px solid rgba(26, 21, 18, .08);
  border-radius: 24px;
  padding: clamp(26px, 3vw, 40px);
  box-shadow: 0 20px 50px rgba(26, 21, 18, .07);
}

.form-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 36px 12px;
  animation: infiniPop .4s ease;
}
.form-success[hidden] { display: none; }
.form-success__badge {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #F5841F;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 40px/1 "Bricolage Grotesque";
  margin-bottom: 24px;
}
.form-success__title { font-size: 26px; font-weight: 800; }
.form-success__text { font-size: 16px; line-height: 1.55; color: #6B6259; margin: 12px 0 26px; max-width: 340px; }

.btn--ghost {
  font: 700 15px/1 "Hanken Grotesk";
  color: #1A1512;
  background: transparent;
  border: 1.5px solid rgba(26, 21, 18, .22);
  padding: 14px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .18s ease;
}
.btn--ghost:hover { border-color: #1A1512; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form[hidden] { display: none; }

.contact-form__note {
  font: 600 12px/1 "Hanken Grotesk";
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8A8079;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) {
  .form-row { grid-template-columns: 1fr; }
}

.field { display: flex; flex-direction: column; gap: 7px; }
.field__label { font: 600 13px/1 "Hanken Grotesk"; color: #3E3730; }

.field__input,
.field__select,
.field__textarea {
  font: 500 15px/1.3 "Hanken Grotesk";
  color: #1A1512;
  background: #FAF7F2;
  border: 1.5px solid rgba(26, 21, 18, .14);
  border-radius: 12px;
  padding: 13px 15px;
  outline: none;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
.field__textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

.field__input.is-error,
.field__textarea.is-error {
  background: #FDF0EC;
  border-color: #E5533D;
}

.field--checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.field--checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #F5841F;
  flex: none;
}
.field--checkbox span {
  font: 400 13px/1.5 "Hanken Grotesk";
  color: #6B6259;
}
.field--checkbox span.is-error { color: #E5533D; }

.btn--submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font: 700 16px/1 "Hanken Grotesk";
  color: #FFF;
  background: #F5841F;
  padding: 17px 26px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 4px;
  transition: background .18s ease;
}
.btn--submit:hover { background: #D96C0A; }

/* ---------- Footer ---------- */

.footer {
  padding: 44px clamp(20px, 6vw, 80px);
  background: #1A1512;
  color: #B8AFA5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand { display: flex; align-items: center; gap: 12px; }
.footer__mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F5841F;
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font: 800 18px/1 "Bricolage Grotesque";
}
.footer__name { font: 700 15px/1 "Hanken Grotesk"; color: #FAF7F2; }
.footer__copy { font: 500 13px/1 "Hanken Grotesk"; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { font: 600 14px/1 "Hanken Grotesk"; color: #B8AFA5; }
