/*
 * Revisión visual aprobada de IDDI.
 * Este archivo se carga al final para mantener una sola capa clara de ajustes.
 */

/* INICIO: los tres textos secundarios deben leerse con verdadera presencia. */
.proof {
  gap: 16px;
  color: #a7b8d3;
  font-size: clamp(14px, 1.05vw, 17px);
  font-weight: 760;
  letter-spacing: .1em;
}

.logo-stage small {
  bottom: 15px;
  width: min(100%, 520px);
  color: #b1c0d7;
  font-size: clamp(14px, 1.02vw, 17px);
  font-weight: 680;
  line-height: 1.55;
  letter-spacing: .08em;
  text-align: center;
}

.signature {
  color: #a8b5c9;
  font-size: clamp(15px, 1.05vw, 17px);
  font-weight: 580;
}

.signature b {
  color: #67a8ff;
  font-size: 1.12em;
  font-weight: 800;
}

/* SOLUCIONES: cuatro rótulos grandes, uniformes y sin numeración. */
.solution {
  min-height: 370px;
}

.solution > div {
  left: 18px;
  right: 18px;
  bottom: 18px;
}

.solution small {
  width: 100%;
  min-height: 52px;
  margin: 0 0 15px;
  padding: 0 14px;
  border: 1px solid #1686ff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(2, 13, 31, .93);
  box-shadow: 0 0 25px rgba(26, 130, 255, .24), inset 0 1px rgba(255,255,255,.04);
  color: #2491ff;
  font-size: clamp(14px, 1vw, 17px);
  font-weight: 840;
  letter-spacing: .025em;
  text-align: center;
}

.solution small svg {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  stroke-width: 2.2;
}

.solution h3 {
  margin: 0 0 10px;
  font-size: clamp(21px, 1.6vw, 27px);
  line-height: 1.12;
}

.solution p {
  font-size: 13px;
  line-height: 1.52;
}

.solution em {
  margin-top: 15px;
  color: #3095ff;
  font-size: 12px;
  font-weight: 790;
}

/* Bloque inferior fiel a la maqueta: ocho etiquetas idénticas y herramientas legibles. */
.solution-detail {
  margin-top: 20px;
  padding: 29px 30px 24px;
  border: 1px solid #258fff;
  border-radius: 22px;
  grid-template-columns: minmax(0, 1.25fr) minmax(430px, .95fr);
  gap: 30px 38px;
  background: linear-gradient(135deg, rgba(7, 24, 51, .98), rgba(3, 12, 29, .98));
  box-shadow: 0 0 30px rgba(37, 143, 255, .18), inset 0 1px rgba(255,255,255,.04);
}

.solution-detail > div:nth-child(2) {
  padding-left: 34px;
  border-left: 1px solid rgba(142, 177, 231, .28);
}

.solution-detail small {
  margin-bottom: 20px;
  color: #f1f6ff;
  font-size: clamp(17px, 1.2vw, 20px);
  font-weight: 780;
  line-height: 1.3;
  letter-spacing: .1em;
}

.tags {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.tags span {
  width: 100%;
  min-width: 0;
  min-height: 82px;
  padding: 12px 13px;
  border: 1px solid #1388ff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(145deg, rgba(17, 53, 104, .76), rgba(3, 17, 40, .96));
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 0 18px rgba(25, 132, 255, .12);
  color: #f5f8ff;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 1.22;
}

.tags span svg {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  stroke: #258fff;
  stroke-width: 2;
}

.tags span b {
  min-width: 0;
  font-weight: 700;
}

/* Evita que rótulos extensos, como “Profesionales independientes”, salgan del marco. */
.tags span.long-label {
  padding-inline: 9px;
  gap: 8px;
  font-size: 13px;
}

.tags span.long-label svg {
  flex-basis: 27px;
  width: 27px;
  height: 27px;
}

.tags span.long-label b {
  letter-spacing: -.015em;
}

.solution-detail ul {
  grid-template-columns: 1fr 1fr;
  gap: 20px 22px;
}

.solution-detail li {
  gap: 11px;
  color: #edf3fc;
  font-size: clamp(14px, .98vw, 16px);
  line-height: 1.38;
}

.solution-detail li svg {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  stroke: #258fff;
  stroke-width: 2;
}

.solution-detail > .pill {
  width: min(100%, 420px);
  min-height: 55px;
  border-color: #1686ff;
  font-size: 16px;
  font-weight: 650;
}

.solution-detail .selected-solution-label {
  display: none;
}

/* CONTACTO: fotografía completa, sin aumento ni recorte. */
.contact {
  grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
  gap: clamp(38px, 4.6vw, 76px);
}

.contact-image {
  min-height: 0;
  aspect-ratio: 870 / 716;
  border-color: rgba(79, 151, 255, .42);
  border-radius: 24px;
  background: #071226;
  box-shadow: 0 30px 80px rgba(0,0,0,.38), 0 0 28px rgba(42, 127, 255, .10);
}

.contact-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.contact-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.company-trust {
  margin: 20px 0 22px;
  padding: 16px 18px;
  border: 1px solid rgba(66, 149, 255, .38);
  border-radius: 15px;
  background: rgba(7, 25, 52, .72);
  box-shadow: inset 0 1px rgba(255,255,255,.04);
}

.company-trust strong {
  display: block;
  margin-bottom: 7px;
  color: #f4f8ff;
  font-size: 15px;
}

.company-trust p {
  margin: 0 0 7px;
  color: #b9c8dd;
  font-size: 13px;
  line-height: 1.55;
}

.company-trust a {
  color: #66adff;
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
}

.company-trust a:hover,
.company-trust a:focus-visible {
  text-decoration: underline;
}

.contact-actions a,
.contact-actions button {
  min-height: 82px;
  padding: 14px 22px;
  flex-direction: row;
  justify-content: flex-start;
  gap: 15px;
  border-color: rgba(82, 152, 255, .48);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(14, 33, 66, .96), rgba(5, 15, 33, .96));
  color: #edf4ff;
}

.contact-actions svg {
  flex: 0 0 31px;
  width: 31px;
  height: 31px;
  stroke: #90c5ff;
  stroke-width: 1.8;
}

.contact-actions span {
  font-size: 14px;
  font-weight: 750;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  fill: currentColor;
  stroke: none;
}

/* EXPERIENCIAS: cuatro casos y detalle comercial del restaurante. */
#experiencias .experience-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#experiencias .experience {
  min-width: 0;
}

#experiencias .experience.restaurant {
  color: #fff;
}

#experiencias .experience.restaurant p {
  min-height: 66px;
}

.restaurant-features-toggle {
  margin-top: 14px;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(83, 154, 255, .58);
  border-radius: 999px;
  background: rgba(26, 83, 171, .24);
  color: #e5f0ff;
  font-size: 11px;
  font-weight: 750;
  cursor: pointer;
}

.restaurant-features-toggle:hover,
.restaurant-features-toggle:focus-visible {
  border-color: #69adff;
  background: rgba(38, 105, 211, .4);
}

.restaurant-features {
  grid-column: 1 / -1;
  padding: 28px 30px;
  border: 1px solid rgba(37, 143, 255, .72);
  border-radius: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  background: linear-gradient(135deg, rgba(8, 27, 57, .98), rgba(3, 12, 29, .98));
  box-shadow: 0 0 30px rgba(37, 143, 255, .14), inset 0 1px rgba(255,255,255,.04);
}

.restaurant-features[hidden] {
  display: none;
}

.restaurant-features small {
  color: #67a8ff;
  font-size: 10px;
  font-weight: 760;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.restaurant-features h3 {
  max-width: 780px;
  margin: 9px 0 18px;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.15;
}

.restaurant-features ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  list-style: none;
}

.restaurant-features li {
  position: relative;
  padding-left: 18px;
  color: #b8c7dc;
  font-size: 13px;
  line-height: 1.45;
}

.restaurant-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4b96ff;
  box-shadow: 0 0 9px rgba(75, 150, 255, .7);
}

.restaurant-features-actions {
  min-width: 245px;
  display: grid;
  gap: 10px;
}

.restaurant-features-actions a {
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(91, 157, 255, .48);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e7f1ff;
  font-size: 12px;
  font-weight: 760;
  text-align: center;
}

.restaurant-features-actions a.restaurant-primary {
  border-color: transparent;
  background: linear-gradient(130deg, #286ce7, #4d98ff);
  box-shadow: 0 12px 28px rgba(42,109,235,.25);
  color: #fff;
}

@media (max-width: 1250px) {
  .solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solution-detail {
    grid-template-columns: 1fr;
  }

  .solution-detail > div:nth-child(2) {
    padding: 25px 0 0;
    border-top: 1px solid rgba(142, 177, 231, .28);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .proof {
    font-size: 15px;
  }

  .logo-stage small {
    bottom: 8px;
    font-size: 14px;
  }

  .signature {
    font-size: 15px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-image {
    width: min(100%, 760px);
    margin: 0 auto;
  }

  #experiencias .experience-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-features {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 700px) {
  .proof {
    gap: 10px;
    font-size: 13px;
    letter-spacing: .06em;
  }

  .logo-stage small {
    width: 100%;
    padding: 0 12px;
    font-size: 13px;
  }

  .signature {
    font-size: 14px;
    line-height: 1.5;
  }

  .solution-grid {
    grid-template-columns: 1fr;
  }

  .restaurant-features {
    padding: 23px 18px;
    gap: 24px;
  }

  .restaurant-features ul {
    grid-template-columns: 1fr;
  }

  .restaurant-features-actions {
    min-width: 0;
  }

  .solution {
    min-height: 390px;
  }

  .solution small {
    min-height: 54px;
    font-size: 15px;
  }

  .solution-detail {
    padding: 22px 17px;
  }

  .solution-detail.mobile-inline {
    margin: 2px 0 12px;
    grid-column: 1 / -1;
    scroll-margin-top: 82px;
    animation: solution-detail-in .3s ease both;
  }

  .solution-detail .selected-solution-label {
    margin: 0 0 8px;
    display: block;
    color: #52a4ff;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .06em;
    text-transform: uppercase;
  }

  .solution-detail small {
    font-size: 17px;
  }

  .tags {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tags span {
    min-height: 68px;
    font-size: 16px;
  }

  .tags span.long-label {
    padding: 12px 13px;
    gap: 11px;
    font-size: 16px;
  }

  .tags span.long-label svg {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }

  .solution-detail ul {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .solution-detail li {
    font-size: 15px;
  }

  .contact-actions {
    grid-template-columns: 1fr;
  }

  .contact-actions a,
  .contact-actions button {
    min-height: 74px;
  }
}

@keyframes solution-detail-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: none; }
}

/* Cierre definitivo de la cascada para Experiencias IDDI. */
@media (min-width: 901px) {
  #experiencias .experience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  #experiencias .experience-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

#experiencias .restaurant-features-toggle {
  appearance: none;
  -webkit-appearance: none;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #4f9dff;
  border-radius: 999px;
  background-color: #123a72;
  background-image: linear-gradient(135deg, #123a72, #1d5cac);
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .12), 0 8px 20px rgba(0, 45, 112, .24);
  font-weight: 750;
  line-height: 1;
  text-align: center;
}

#experiencias .restaurant-features-toggle:hover {
  border-color: #8ac3ff;
  background-color: #1b579f;
  background-image: linear-gradient(135deg, #174985, #2876cf);
}

#experiencias .restaurant-features-toggle:focus-visible {
  border-color: #b8dcff;
  outline: 3px solid rgba(86, 163, 255, .48);
  outline-offset: 3px;
}

#experiencias .restaurant-features-toggle[aria-expanded="true"] {
  border-color: #86c1ff;
  background-color: #245f9f;
  background-image: linear-gradient(135deg, #1d4f89, #2d7bd0);
}

@media (max-width: 900px) {
  #experiencias {
    padding-bottom: 170px;
  }

  #experiencias .restaurant-features {
    min-width: 0;
    padding-bottom: 34px;
  }

  #experiencias .restaurant-features h3 {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  #experiencias .restaurant-features-actions {
    padding-bottom: 20px;
  }
}

/* EXPERIENCIAS: acordeones compactos e independientes dentro de cada tarjeta. */
#experiencias .experience-grid {
  align-items: start;
}

#experiencias .experience {
  min-height: 390px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

#experiencias .experience:has(.experience-features-toggle[aria-expanded="true"]) {
  border-color: rgba(93, 165, 255, .72);
  box-shadow: 0 18px 44px rgba(0, 35, 88, .28);
}

body:has(#experiencias.active .experience-features-toggle[aria-expanded="true"]) > .whatsapp {
  display: none;
}

#experiencias .experience-card-content {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(137, 171, 230, .16);
}

#experiencias .experience-card-content > small {
  display: block;
  min-height: 24px;
  color: #8cc0ff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.35;
}

#experiencias .experience-card-content > p {
  min-height: 0;
  margin: 0 0 12px;
}

#experiencias .experience-features-toggle {
  appearance: none;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px solid #67adff;
  border-radius: 999px;
  background: #164f99;
  color: #fff;
  box-shadow: inset 0 1px rgba(255, 255, 255, .13), 0 8px 20px rgba(0, 45, 112, .26);
  font-size: 11px;
  font-weight: 780;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

#experiencias .experience-features-toggle:hover {
  border-color: #b4d9ff;
  background: #246dbc;
}

#experiencias .experience-features-toggle:focus-visible {
  outline: 3px solid rgba(104, 178, 255, .55);
  outline-offset: 3px;
}

#experiencias .experience-features-toggle[aria-expanded="true"] {
  border-color: #b8dcff;
  background: #2877c9;
  box-shadow: inset 0 1px rgba(255, 255, 255, .16), 0 0 0 1px rgba(104, 178, 255, .22);
}

#experiencias .experience-features {
  margin-top: 14px;
  padding: 15px;
  border: 1px solid rgba(103, 173, 255, .42);
  border-radius: 14px;
  background: rgba(3, 14, 34, .92);
  box-shadow: inset 0 1px rgba(255, 255, 255, .04);
}

#experiencias .experience-features[hidden] {
  display: none;
}

#experiencias .experience-features ul {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  list-style: none;
}

#experiencias .experience-features li {
  position: relative;
  padding-left: 15px;
  color: #c2d0e3;
  font-size: 11px;
  line-height: 1.4;
}

#experiencias .experience-features li::before {
  content: "";
  position: absolute;
  top: .55em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #5ca7ff;
  box-shadow: 0 0 8px rgba(92, 167, 255, .65);
}

#experiencias .experience-features-actions {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

#experiencias .experience-features-actions a {
  min-height: 40px;
  padding: 7px 11px;
  border: 1px solid rgba(106, 174, 255, .5);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8f2ff;
  font-size: 10px;
  font-weight: 760;
  line-height: 1.25;
  text-align: center;
}

#experiencias .experience-features-actions a:hover {
  border-color: #9dcdff;
  background: rgba(57, 127, 220, .22);
}

#experiencias .experience-features-actions a:focus-visible {
  outline: 3px solid rgba(104, 178, 255, .5);
  outline-offset: 2px;
}

#experiencias .experience-features-actions .experience-primary {
  border-color: transparent;
  background: linear-gradient(130deg, #286ce7, #4d98ff);
  color: #fff;
}

@media (max-width: 900px) {
  #experiencias {
    padding-bottom: 160px;
  }

  #experiencias .experience {
    min-height: 350px;
  }
}

@media (max-width: 430px) {
  #experiencias .experience-features-actions {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  #experiencias .experience,
  #experiencias .experience-features-toggle {
    transition: none;
  }
}
