:root {
  --bg: #fff;
  --card: #2066701c;
  --text: #222;
  --muted: #6b7280;
  --brand: #0d5c63;
  --brand-2: #38646e;
  --border: #e5e7eb;
  --accent: #e85d2a;
  --green-1: #2dad8a;
  --header-height: 124px;
}

* {
  box-sizing: border-box;
  font-family: "Roboto";
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, "Roboto",
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: #cbcccdd6;
  border-radius: 0px 0px 50px 50px;
  padding: 10px 10px;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  max-width: 220px;
}

.header-brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.nav-toggle {
  display: none;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
  background: rgba(13, 92, 99, 0.08);
  border-color: var(--brand);
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 3px 0;
  transition: transform 0.2s ease;
}

.site-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  display: flex;
}

.nav-item.has-dropdown {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 30px;
}

.nav-link:hover {
  background: var(--green-1);
  color: #fff;
}

.dropdown-toggle {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  gap: 8px;
}

.dropdown-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
}

.dropdown-icon::before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  transition: transform 0.2s ease;
  transform-origin: 50% 45%;
}

.has-dropdown.is-open > .dropdown-toggle {
  background: var(--green-1);
  color: #fff;
}

.has-dropdown.is-open > .dropdown-toggle .dropdown-icon::before {
  border-top-color: currentColor;
  transform: rotate(180deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  border-radius: 32px;
  background: #cbcccdd6;
  padding: 16px 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  z-index: 30;
  backdrop-filter: blur(6px);
}

.dropdown-panel[hidden] {
  display: none;
}

.dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 8px 12px;
}

.dropdown-grid.dropdown-grid-services {
  grid-template-columns: 1fr;
  grid-auto-flow: row;
  grid-auto-rows: minmax(0, auto);
  width: min(320px, 100%);
  justify-content: stretch;
}

.dropdown-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  margin: 4px 0;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.dropdown-link:hover,
.dropdown-link:focus-visible {
  background: var(--green-1);
  color: #fff;
  border-color: var(--green-1);
  outline: none;
}

@media (max-width: 900px) {
  :root {
    --header-height: 108px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .site-nav.is-open {
    display: block;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    gap: 8px;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: flex-start;
    border-radius: 12px;
  }

  .nav-item.has-dropdown {
    flex-direction: column;
    align-items: stretch;
  }

  .dropdown-panel {
    position: static;
    margin-top: 8px;
    padding: 16px;
    min-width: auto;
    border-radius: 12px;
    box-shadow: none;
  }

  .dropdown-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
  }

  .dropdown-grid.dropdown-grid-services,
  .dropdown-grid.dropdown-grid-industries {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-rows: none;
    grid-template-columns: 1fr;
  }

  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 8px 0;
  }
}

.nav-link.is-active {
  background: var(--brand);
  color: var(--green-1);
  border-color: var(--brand);
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.08);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.benefits {
  padding: 28px 32px;
  margin-bottom: 24px;
}

.benefits-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: start;
}

.benefit {
  text-align: center;
  color: var(--text);
  height: 100%;
}

.benefit-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 12px;
}

.benefit-icon img {
  max-width: 48%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.benefit h3 {
  height: 18%;
  font-size: 24px;
  margin: 0 0 10px;
  color: var(--accent);
  font-weight: 600;
  font-family: "Roboto";
}

.benefit p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.service-cards {
  padding: 32px 0;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  padding: 22px;
  text-align: center;
  justify-items: center;
}

.service-card {
  display: flex;
  /* width: 90%; */
  height: auto;
  flex-direction: column;
  align-items: center;
  background: transparent;
  border: 1px solid var(--brand-2);
  border-radius: 16px;
  padding: 2px;
  min-height: 100%;
}

.service-card-image {
  width: 100%;
  height: 324px;
  display: flex;
  align-items: center;
  flex-direction: column;
}

.service-card-image img {
  width: auto;
  height: 100%;
  display: flex;
  object-fit: cover;
  flex-direction: column;
  align-content: center;
  align-items: stretch;
  justify-content: space-between;
}

.service-card-title {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 400;
  color: var(--brand-2);
  display: inline-flex;
  justify-content: center;
  text-align: center;
}

.service-card-description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
  text-align: center;
}

.card {
  display: flex;
  /* border: 1px solid var(--border); */
  border-radius: 12px;
  /* box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03); */
  flex-direction: row;
  justify-content: center;
  align-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
}

.empty {
  padding: 32px;
  color: var(--muted);
  text-align: center;
}

.accordion {
  margin: 0;
  padding: 0;
}

.accordion details + details {
  border-top: 1px dashed var(--border);
}

.accordion details summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px 10px 10px;
  font-weight: 600;
  color: var(--green-1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  background-color: #fff;
  border-radius: 10px;
  border: 1px solid #d9d9d9;
}

.accordion details.is-open > summary {
  color: var(--green-1);
}

.accordion details summary::-webkit-details-marker {
  display: none;
}

.accordion details summary .label {
  width: 300px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.accordion summary .accordion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: transform 0.2s ease;
  font-size: 16px;
  line-height: 1;
}

.accordion summary .accordion-icon::before {
  content: "⌄";
  display: inline-block;
  line-height: 1;
  color: currentColor;
}

.accordion details.is-open > summary .accordion-icon {
  transform: rotate(180deg);
}

.panel-solucion {
  /* width: 350px; */
  height: auto;
}
.panel {
  /* padding: 0 20px 18px 0px; */
  color: #2f2f2f;
}

.panel ul {
  margin: 6px 0 0 0;
  padding: 0 0 0 16px;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 12px;
}

footer {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.mt16 {
  margin-top: 16px;
}

/*ESTO ES LA ANIMACION------------------------------------------------*/
.stats-section {
  width: 100%;
  background: linear-gradient(90deg, #2ccaa0 0%, #2a5b70 100%);
  color: #ffffff;
}
.stats-grid {
  /* max-width: 1200px; */
  margin: 0 auto;
  padding: 36px 20px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}
.stat-card {
  text-align: center;
}

.stat-value {
  margin: 0;
  line-height: 1;
  font-weight: 800;
  font-size: clamp(32px, 6vw, 56px);
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}
.stat-label {
  display: block;
  margin-top: 10px;
  font-size: 24px;
  font-weight: 300;
  opacity: 0.95;
}

.animating {
  color: #aaaaaa;
}
.finished {
  color: #ffffff;
}
/*FIN LA ANIMACION------------------------------------------------*/

/* ESTILOS DE FORMULARIO------------------------------------------------*/
.contacto-section {
  width: 100%;
  /* Fondo degradé como el screenshot */
  background: linear-gradient(90deg, #2ccaa0 0%, #2a5b70 100%);
  /* Variables para animar el color (se cambian con JS) */
  --accent: #aaaaaa; /* color de borde de inputs mientras anima */
  --title: #aaaaaa; /* color del título mientras anima */
  padding: 48px 16px;
  box-sizing: border-box;
}
.contacto-section.finished {
  --accent: #00b894; /* verde final */
  --title: #29c8ae; /* verde/teal del título */
}

.contacto-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
  /* Animación de aparición */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}
.contacto-card.in-view {
  opacity: 1;
  transform: translateY(0);
}

.contacto-hero {
  position: relative;
  background: #f5f5f5;
}
.contacto-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
}

.contacto-form-wrap {
  padding: 22px 22px 26px 22px;
}

.contacto-title {
  margin: 6px 0 4px;
  font-weight: 800;
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
  letter-spacing: 0.2px;
  color: var(--title);
  transition: color 0.6s ease;
  text-transform: uppercase;
}
.contacto-sub {
  margin: 8px 0 14px;
  font-size: 14px;
  color: #333;
}

/* ======= Form ======= */
.form-group {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
.form-group input {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  outline: none;
  background: #fff;
  transition: border-color 0.45s ease, box-shadow 0.2s ease;
}
textarea {
  width: 100%;
  padding: 10px;
  border: 2px solid var(--accent);
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 14px;
  resize: none;
  outline: none;
  background: #fff;
  transition: border-color 0.45s ease, box-shadow 0.2s ease;
}

/* Estado final + focus */
.contacto-section.finished .form-group input,
.contacto-section.finished textarea {
  border-color: var(--accent);
}
.form-group input:focus,
textarea:focus {
  box-shadow: 0 0 0 3px rgba(0, 184, 148, 0.12);
}

.submit-btn {
  width: 150px;
  padding: 8px;
  background: #ff5722;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.3s ease;
  display: block;
  margin-left: auto;
}
.submit-btn:hover {
  background: #e64a19;
}
.submit-btn:active {
  transform: translateY(1px);
}

/*FINNNN ESTILOS DE FORMULARIO------------------------------------------------*/

/* ======= Footer ======= */
.site-footer {
  background: #231f1f;
  color: #fff;
  padding: 10px 0;
}

.site-footer a {
  color: inherit;
}

.footer-inner {
  padding: 0 16px;
}

.footer-upper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px;
  flex-wrap: nowrap;
}

.footer-upper img {
  width: auto;
  height: auto;
}

.footer-logo img,
.footer-partner img {
  max-width: 50%;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-link {
  display: inline-flex;
  transition: transform 0.2s ease;
  width: 20%;
  align-items: center;
}

.footer-social-links img {
  max-width: 72%;
  height: auto;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  flex-direction: row;
}

.footer-social-link:hover {
  transform: scale(1.05);
}

.footer-lower {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.footer-logo,
.footer-partner,
.footer-social-links {
  min-width: 33%;
  height: auto;
}

.solutions-section .card {
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 32px;
}

.solucion-icon {
  flex: 0 0 430px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  align-self: flex-start;
  max-width: 430px;
}

.solucion-icon img {
  width: 430px;
  height: auto;
  object-fit: contain;
}

.accordion-style {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: wrap;
  align-content: flex-start;
  max-width: min-content;
}

.solutions-section .accordion-style {
  flex: 1 1 0%;
  min-width: 0;
  justify-content: flex-start;
}

.solutions-section .accordion-style .panel {
  width: 100%;
}

.imagen-principal {
  width: 100%;
}

.imagen-principal img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 550px;
  object-fit: cover;
}

.imagen-principal .img-title {
  position: absolute;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 55px;
}
/* Variante: título abajo-izquierda
*/
.imagen-principal .img-title {
  left: 4rem;
  bottom: 28rem;
}

.imagen-pie {
  width: 100%;
}

.imagen-pie img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 292px;
  object-fit: cover;
}

.imagen-pie .img-title {
  position: absolute;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-weight: 300;
  font-size: 30px;
  padding: 20px 200px;
}

.imagen-pie .img-title {
  bottom: 8rem;
}

.solutions-section {
  background: var(--card);
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  align-items: center;
  align-content: space-around;
  flex-wrap: wrap;
}

.solutions-section .section-title {
  color: var(--green-1);
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

.accordion summary.sub-summary {
  padding: 12px 16px;
  font-size: 15px;
  color: var(--green-1);
  background-color: transparent;
  border: none;
}

.accordion summary.sub-summary .sub-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  background-color: transparent;
}

.accordion summary.sub-summary .accordion-icon {
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
}

/* .solutions-section .accordion details summary {
  padding-left: 0;
  padding-right: 0;
} */

/* .solutions-section .accordion details summary .label {
  flex: 1;
  min-width: 0;
  width: auto;
} */

/* .solutions-section .accordion summary.sub-summary {
  padding-left: 0;
  padding-right: 0;
}

.solutions-section .panel {
  padding-left: 0;
  padding-right: 0;
} */

.solutions-section .panel ul {
  list-style-position: inside;
  padding-left: 0;
  margin: 6px 0 0 0;
}

.solutions-section .panel li {
  margin: 4px 0;
  margin-left: 15px;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

@media (max-width: 992px) {
  .solutions-section .card {
    flex-wrap: wrap;
    gap: 20px;
  }

  .solucion-icon {
    justify-content: center;
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  .solucion-icon img {
    width: 100%;
    max-width: 360px;
  }

  .solutions-section .accordion-style {
    width: 100%;
  }
}
