:root {
  --ast-global-color-0: #e4348b;
  --ast-global-color-1: #f6ee86;
  --ast-global-color-3: #4b4f58;
  --ast-global-color-5: #ffffff;
  --line: #e8e8e8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Josefin Slab', serif;
  color: var(--ast-global-color-3);
  background: var(--ast-global-color-5);
  font-size: 17px;
  line-height: 1.7;
}

a { color: var(--ast-global-color-0); }
a:hover { color: #c62573; }

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.flags {
  display: flex;
  align-items: center;
  gap: 8px;
}
.flags img {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}

.main-strip {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: relative;
  z-index: 20;
}
.main-strip-inner {
  min-height: 80px;
  display: grid;
  grid-template-columns: 90px 1fr auto;
  align-items: center;
  gap: 14px;
}
.brand img {
  width: 80px;
  height: 78px;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.main-nav a {
  text-decoration: none;
  color: var(--ast-global-color-3);
  font-weight: 600;
  letter-spacing: .02em;
}
.main-nav a:hover {
  color: var(--ast-global-color-0);
}
.main-nav a.active {
  color: var(--ast-global-color-0);
}

.flags-large img {
  width: 28px;
  height: 28px;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border: 1px solid #d7dce2;
  border-radius: 999px;
  background: #fff;
  color: #334e68;
  cursor: pointer;
}
.lang-btn.active {
  border-color: var(--ast-global-color-0);
  box-shadow: 0 0 0 2px rgba(228, 52, 139, 0.1);
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ast-global-color-0);
  font-size: 26px;
}

.hero {
  background: #fff;
}
.carousel {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  border-radius: 0;
}
.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}
.carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.65);
  color: #333;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
  z-index: 5;
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.carousel-dots button {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}
.carousel-dots button.active { background: #fff; }

.section { padding: 34px 0; }
.cta-strip {
  background: linear-gradient(90deg, #fff0f7 0%, #fff 100%);
  border-top: 1px solid #f3dbe8;
  border-bottom: 1px solid #f3dbe8;
}
.cta-strip-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}
.cta-strip h2 {
  margin: 0 0 6px;
  font-size: 34px;
  color: var(--ast-global-color-0);
}
.cta-strip p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.btn-whatsapp-cta {
  background: #1ebd5c;
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(30, 189, 92, 0.25);
}
.btn-whatsapp-cta:hover {
  background: #169a49;
  color: #fff;
}
.products-cta {
  padding-top: 6px;
}
.products-cta-box {
  text-align: center;
  border: 1px solid #f0d7e6;
  border-radius: 14px;
  padding: 24px 18px;
  background: #fff;
}
.products-cta-box h3 {
  margin: 0 0 8px;
  color: var(--ast-global-color-0);
}
.products-cta-box p {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}
.history-section {
  background: #fff;
}
.history-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 26px;
  align-items: center;
}
.history-copy p {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
  text-align: left;
}
.history-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.history-gallery img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #f2e6ed;
  padding: 6px;
}
.history-gallery img:first-child {
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
}
.history-copy .btn {
  margin-top: 8px;
}
.history-gallery-wide {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.history-gallery-wide img:first-child {
  grid-column: span 2;
}
.long-text p {
  font-size: 21px;
  line-height: 1.75;
}
.timeline {
  margin-top: 24px;
  display: grid;
  gap: 14px;
}
.timeline-item {
  border-left: 4px solid var(--ast-global-color-0);
  padding: 10px 14px;
  background: #fff8fb;
}
.timeline-item h3 {
  font-size: 28px;
  margin-bottom: 8px;
}
.timeline-item p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.thanks-title {
  text-align: center;
  margin: 0 0 14px;
  font-size: 28px;
  color: var(--ast-global-color-0);
}
.thanks-copy {
  text-align: center;
  margin: 12px auto 0;
  font-size: 22px;
  font-weight: 600;
  max-width: 760px;
}
.section-company {
  text-align: center;
  background: #fff;
  position: relative;
  overflow: hidden;
}
.section-company::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/uploads/_keep/2022/11/mapa-mundi.png");
  background-position: 320px 144px;
  background-repeat: no-repeat;
  background-size: 50% auto;
  opacity: 0.2;
  pointer-events: none;
}
.section-company .container {
  position: relative;
  z-index: 1;
}
h2, h3, h4 { line-height: 1.3; margin: 0 0 10px; }
h2 { font-size: 38px; }
h3 { font-size: 30px; }
h4 { font-size: 22px; }

.divider {
  width: 220px;
  margin: 12px auto 18px;
  border-top: 6px solid var(--ast-global-color-1);
}

.section-company p {
  font-size: 23px;
  font-weight: 600;
  text-align: justify;
}

.inline-form {
  margin: 20px auto 12px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.inline-form label {
  display: flex;
  flex-direction: column;
  text-align: left;
  min-width: 320px;
  font-size: 20px;
  font-weight: 900;
}
.inline-form input, .advisor-form input, .advisor-form select,
.contact-form input, .contact-form textarea {
  border: 1px solid #d8d8dd;
  border-radius: 4px;
  padding: 10px;
  font: inherit;
}
.inline-form input {
  background: var(--ast-global-color-1);
  width: 270px;
}
.inline-form button, .advisor-form button, .contact-form button, .btn {
  background: var(--ast-global-color-0);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 10px 20px;
  text-decoration: none;
  cursor: pointer;
  display: inline-block;
  font-family: 'Josefin Slab', serif;
  font-size: 20px;
  font-weight: 900;
  text-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  text-align: left;
  margin-top: 12px;
}
.two-col > div {
  border: 10px dashed var(--ast-global-color-1);
  padding: 15px;
}
.two-col h3,
.copy h3 {
  text-align: center;
  font-size: 36px;
  font-weight: 900;
  color: var(--ast-global-color-0);
}

.product-row { background: #fff; }
.row-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}
.media img {
  width: 100%;
  height: auto;
  border-radius: 2px;
}
.copy h3 { margin-bottom: 8px; }
.copy p {
  margin: 0 0 12px;
  font-size: 25px;
  font-weight: 600;
  text-align: left;
}
.product-text .more {
  display: none;
}
.product-text.expanded .more {
  display: block;
}

.mini-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  width: min(225px, 100%);
  margin: 0 auto;
  background: #fff;
  border: 1px solid #f1f1f1;
}
.mini-carousel-track {
  display: flex;
  transition: transform .45s ease;
}
.mini-carousel-track img {
  width: 100%;
  flex: 0 0 100%;
  aspect-ratio: 2 / 3;
  object-fit: contain;
  object-position: center;
  background: #fff;
}
.mini-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.82);
  color: #364152;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.mini-carousel-btn.prev { left: 10px; }
.mini-carousel-btn.next { right: 10px; }

.thanks-wrap .mini-carousel {
  width: min(240px, 100%);
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.advisor-section {
  background: #fff;
  padding-top: 8px;
}
.advisor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.advisor-form {
  display: grid;
  gap: 12px;
  max-width: 520px;
  margin-left: 40px;
  padding: 24px;
  border: 2px solid var(--ast-global-color-0);
}
.advisor-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 900;
}
.advisor-form input,
.advisor-form select {
  background: #7a7a7a21;
  width: 205px;
  height: 46px;
}

.counters-wrap {
  position: relative;
  background-image: url("assets/uploads/_keep/2022/11/WhatsApp-Image-2022-11-29-at-09.23.23.jpeg");
  background-position: center;
  background-size: cover;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
}
.counters-wrap .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.counters {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: center;
}
.counter-card {
  padding: 16px 10px;
}
.counter-title {
  margin-bottom: 6px;
  color: #fff;
  font-family: "Nerko One", cursive;
  font-size: 22px;
  font-weight: 400;
}
.counter-number {
  font-size: 34px;
  font-weight: 700;
  color: var(--ast-global-color-1);
  font-family: "Roboto", sans-serif;
}

.site-footer {
  background: #1b281d;
  padding: 28px 0 42px;
  color: #f2f5f7;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.footer-brand {
  text-align: center;
}
.footer-brand img {
  width: min(230px, 100%);
  height: auto;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.social-links a {
  font-size: 14px;
  color: #f2f5f7;
}
.social-links-icons a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  font-size: 0;
}
.social-links-icons a svg {
  width: 18px;
  height: 18px;
}
.policy-list {
  margin: 0;
  padding-left: 20px;
}
.site-footer h2,
.site-footer h3 {
  color: var(--ast-global-color-0);
  text-align: center;
  font-size: 25px;
  font-weight: 900;
}
.site-footer h4 {
  color: #f2f5f7;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
}
.site-footer p,
.site-footer li,
.site-footer label {
  color: #f2f5f7;
  font-size: 20px;
  font-weight: 600;
}
.contact-form {
  display: grid;
  gap: 8px;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-form input,
.contact-form textarea {
  border: none;
}

.floating-wa {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: #1ebd5c;
  color: #fff;
  text-decoration: none;
  padding: 14px;
  border-radius: 999px;
  font-weight: 600;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  box-shadow: 0 14px 30px rgba(18, 118, 57, 0.35);
  animation: wa-pulse 1.8s infinite;
}
.wa-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
}
@keyframes wa-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.wa-icon svg {
  width: 100%;
  height: 100%;
}

.post-main {
  background: #fff;
  padding: 26px 0 50px;
}
.history-main,
.about-main {
  background: linear-gradient(180deg, #fff 0%, #fff8fc 100%);
}
.history-hero h1,
.about-hero h1 {
  margin-bottom: 10px;
}
.history-kicker {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #7b8794;
}
.history-poster-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  align-items: start;
}
.history-poster-wrap img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(73, 37, 63, 0.18);
}
.history-summary p {
  font-size: 23px;
  font-weight: 600;
  margin: 0 0 14px;
}
.history-mini-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
}
.history-mini-gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  border-radius: 10px;
  object-fit: contain;
  object-position: top center;
}
.history-timeline-section .container {
  display: grid;
  gap: 16px;
}
.history-milestone {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid #f1ddea;
  border-radius: 12px;
  background: #fff;
}
.history-milestone img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 10px;
}
.history-milestone h2 {
  margin: 0 0 8px;
  color: var(--ast-global-color-0);
  font-size: 32px;
}
.history-milestone p {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}
.about-lead {
  max-width: 980px;
  font-size: 23px;
  font-weight: 600;
  margin: 0;
}
.about-team h2 {
  margin-bottom: 14px;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.team-card {
  background: #fff;
  border: 1px solid #f0d7e6;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 10px 26px rgba(87, 50, 74, 0.08);
}
.team-card h3 {
  margin: 0 0 6px;
  font-size: 26px;
  color: #253b56;
}
.team-role {
  margin: 0 0 8px;
  color: var(--ast-global-color-0);
  font-size: 21px;
  font-weight: 900;
}
.team-card p {
  margin: 0;
  font-size: 20px;
  color: #334e68;
}
.team-links {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.team-links a {
  text-decoration: none;
  border: 1px solid #e6cadb;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 0;
  color: #7b2956;
  background: #fff8fc;
}
.team-links a:hover {
  border-color: #d46aa6;
  color: #e4348b;
}
.team-links a svg {
  width: 19px;
  height: 19px;
}
.about-values .two-col {
  align-items: start;
}
.about-values p {
  font-size: 22px;
  font-weight: 600;
}
.about-quote-section {
  padding-top: 8px;
}
.about-quote {
  margin: 0;
  border-left: 6px solid var(--ast-global-color-0);
  padding: 16px 18px;
  background: #fff;
  font-size: 25px;
  font-weight: 600;
  font-style: italic;
}
.about-quote-author {
  margin: 10px 0 0;
  font-size: 19px;
  font-weight: 700;
  color: #486581;
}
.social-invite {
  padding-top: 8px;
}
.social-invite-box {
  text-align: center;
  border: 1px solid #f0d7e6;
  border-radius: 14px;
  padding: 24px 18px;
  background: #fff;
}
.social-invite-box h3 {
  margin: 0 0 8px;
  color: var(--ast-global-color-0);
}
.social-invite-box p {
  margin: 0 0 14px;
  font-size: 22px;
  font-weight: 600;
}
.social-cta-row {
  display: grid;
  gap: 12px;
  justify-items: center;
}
.social-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.social-chips a {
  text-decoration: none;
  border: 1px solid #e6cadb;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 15px;
  color: #7b2956;
  background: #fff8fc;
}
.social-chips a:hover {
  border-color: #d46aa6;
  color: #e4348b;
}
.social-chips-icons a {
  width: 48px;
  height: 48px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0;
}
.social-chips-icons a svg {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 22px;
  max-width: 22px;
  max-height: 22px;
}
.social-invite-mini .social-invite-box {
  padding: 18px 14px;
}
.social-invite-mini .social-invite-box p {
  font-size: 20px;
}
.post-article {
  max-width: 860px;
}
.post-back a {
  text-decoration: none;
  font-weight: 700;
}
.post-article h1 {
  margin: 0 0 8px;
  color: var(--ast-global-color-0);
  font-size: 42px;
  line-height: 1.2;
}
.post-date {
  margin: 0 0 16px;
  color: #7b8794;
  font-size: 15px;
}
.post-content {
  font-size: 21px;
  line-height: 1.75;
  color: #334e68;
}
.post-content p {
  margin: 0 0 14px;
}
.post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.post-content figure {
  margin: 18px 0;
}
.post-content h2,
.post-content h3,
.post-content h4 {
  color: #243b53;
}

#home,
#historia,
#nosotros,
#productos,
#contacto,
#comunidad {
  scroll-margin-top: 120px;
}

@media (max-width: 1024px) {
  .main-strip-inner {
    grid-template-columns: 90px auto 1fr;
  }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 80px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 12px;
    gap: 10px;
  }
  .main-nav.show { display: flex; }
  .history-grid {
    grid-template-columns: 1fr;
  }
  .history-copy p {
    font-size: 20px;
  }
  .flags-large { margin-left: auto; }
  .row-grid, .two-col, .counters, .footer-grid, .advisor-grid {
    grid-template-columns: 1fr;
  }
  .cta-strip-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .history-poster-grid,
  .history-milestone,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .history-milestone img {
    height: 230px;
  }
  .advisor-form {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .section-company::before {
    background-position: 15px 360px;
    background-size: contain;
  }
}

@media (max-width: 640px) {
  h2 { font-size: 32px; }
  h3 { font-size: 26px; }
  .flags-large {
    display: flex;
    gap: 6px;
  }
  .flags-large img {
    width: 24px;
    height: 24px;
  }
  .lang-btn {
    padding: 4px;
  }
  .carousel-btn { width: 34px; height: 34px; font-size: 24px; }
  .history-milestone h2 { font-size: 25px; }
  .history-milestone p,
  .about-lead,
  .history-summary p,
  .products-cta-box p,
  .cta-strip p { font-size: 19px; }
  .team-card h3 { font-size: 22px; }
  .team-card p { font-size: 18px; }
}

