@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap");

.ia-portfolio-wrapper {
  --purple: #6c3cb8;
  --purple-mid: #6c3cb8;
  --purple-light: #9b5ce0;
  --purple-pale: #f3eeff;
  --purple-border: #e0d0f8;
  --black: #0a0a0f;
  --dark: #100d1a;
  --gray-700: #666666; /* Subtitles */
  --gray-500: #505050; /* Paragraphs */
  --gray-300: #c8c4d8;
  --gray-100: #f6f4fb;
  --white: #ffffff;
  --bg-gray: #eaeaea;
  --fd: "Montserrat", sans-serif;
  --fb: "Montserrat", sans-serif;
  --r: 16px;
}

.ia-portfolio-wrapper {
  font-family: var(--fb);
  background: var(--white);
  color: var(--gray-500);
  line-height: 1.6;
  overflow-x: hidden;
}

.ia-portfolio-wrapper .content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.ia-portfolio-wrapper * {
  font-family: inherit;
}

.ia-portfolio-wrapper section {
  width: 100%;
  max-width: 1100px;
  background: var(--white);
  margin: 0;
  padding: 30px 20px;
  border-radius: 0;
}

@media (max-width: 768px) {
  .ia-portfolio-wrapper section {
    padding: 60px 20px;
  }
}

.ia-portfolio-wrapper .hero {
  width: 100%;
  margin: 0;
  height: auto;
  padding-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ia-portfolio-wrapper .hero img {
  width: 100%;
  max-width: 1100px;
  height: auto;
}

.introduction {
  text-align: center;
}

.introduction .title,
h1 {
  font-family: var(--fd);
  color: var(--purple-mid);
  font-size: 38px;
  font-weight: 600;
  margin-top: 0px;
  margin-bottom: 35px;
  text-transform: none;
}

.introduction h2,
h2 {
  font-family: var(--fb);
  color: var(--gray-700);
  font-size: 28px;
  font-weight: 500;
  max-width: 750px;
  margin: 0 auto 30px;
  line-height: 1.2;
}

.introduction .text,
p {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  text-align: justify;
  padding: 10px 0px 20px 0px;
}

.ia-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.ia-card {
  text-align: center;
  background: transparent;
}

.ia-card .card-icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.ia-card .card-icon img {
  max-width: 100px;
  height: auto;
  object-fit: contain;
}

.ia-card .card-content h3,
h3 {
  font-family: var(--fb);
  color: var(--purple-mid);
  font-size: 32px;
  font-weight: 600;
  margin: 0 0 5px;
}

.ia-card .card-content p {
  color: var(--dark);
  font-weight: 500;
  font-size: 16px;
  margin: 0;
  text-align: center;
}

@media (max-width: 992px) {
  .ia-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .introduction .title {
    font-size: 32px;
  }

  .introduction h2 {
    font-size: 24px;
  }
}

@media (max-width: 600px) {
  .ia-card .card-icon {
    height: 100px;
  }
}

.green-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .green-cards-grid {
    grid-template-columns: 1fr;
  }
}

.green-card {
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.green-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.green-card-header .icon {
  font-size: 24px;
}

.green-card-header h3 {
  font-family: var(--fb);
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.green-card p {
  font-family: var(--fb);
  color: var(--white);
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
  opacity: 0.95;
  text-align: left;
}

.catalog {
  background: transparent;
  padding: 0;
}

.catalog-container {
  width: 100%;
  background: var(--white);
}

.catalog .title {
  font-family: var(--fd);
  color: var(--purple-mid);
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 35px;
  text-align: center;
}

.catalog .text {
  color: var(--gray-500);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto 30px;
}

.ia-tabs {
  display: flex;
  border-bottom: 1px solid var(--gray-300);
  margin-bottom: 30px;
}

.ia-tab {
  flex: 1;
  padding: 20px;
  cursor: pointer;
  border: 1px solid var(--gray-300);
  border-bottom: none;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border-radius: 12px 12px 0 0;
  margin-right: 5px;
}

.ia-tab:last-child {
  margin-right: 0;
}

.ia-tab img {
  height: 40px;
  max-width: 80%;
  object-fit: contain;
  opacity: 0.6;
  filter: grayscale(1);
}

.ia-tab.active {
  background: var(--white);
  border-bottom: 2px solid var(--white);
  margin-bottom: -1px;
}

.ia-tab.active img {
  opacity: 1;
  filter: grayscale(0);
}

.ia-tab-content {
  display: none;
  animation: fadeIn 0.5s ease;
  padding: 40px;
}

.ia-tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.content-header {
  margin-bottom: 30px;
}

.badge {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
  background: var(--purple-pale);
  color: var(--purple-mid);
  text-align: left !important;
}

.badge.purple {
  background: var(--purple-mid);
  color: var(--white);
}

.description {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 20px;
  line-height: 1.5;
  text-align: justify;
}

.ideal-for {
  display: flex;
  align-items: center;
  gap: 15px;
}

.tags {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  color: var(--white);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: 0.3s;
}

.tag.active {
  transform: scale(1.1);
  font-weight: 700;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#chatgpt .tag {
  background: #108575;
}

#claude .tag {
  background: #d97757;
}

#grammarly .tag {
  background: #027e6f;
}

#meshy .tag {
  background: #c81c64;
}

.main-feature {
  margin-top: 30px;
}

.feature-image-container {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  height: 600px;
  background-size: cover;
  background-position: center;
  transition: background-image 0.5s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.feature-img {
  display: none;
}

.btn-ver-mas {
  position: absolute;
  top: 20px;
  right: 20px;
  color: var(--white);
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

#chatgpt .btn-ver-mas {
  background: #108575;
}
#chatgpt .btn-ver-mas:hover {
  background: #4be8d3;
}

#claude .btn-ver-mas {
  background: #d97757;
}
#claude .btn-ver-mas:hover {
  background: #f09476;
}

#grammarly .btn-ver-mas {
  background: #027e6f;
}
#grammarly .btn-ver-mas:hover {
  background: #04b39d;
}

#meshy .btn-ver-mas {
  background: #c5f955;
  color: var(--black);
}
#meshy .btn-ver-mas:hover {
  background: #d4ff7a;
}

.feature-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.699) 0%, rgba(0, 0, 0, 0.584) 80%, transparent 100%);
  padding: 40px 30px 50px 30px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.overlay-text {
  max-width: 60%;
  color: var(--white);
}

.overlay-text h4 {
  font-size: 24px;
  margin-bottom: 10px;
}

.overlay-text p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  color: #f6f6f6;
}

.overlay-carousel {
  display: flex;
  gap: 10px;
}

.mini-img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.6;
}

.mini-img.active {
  border-color: var(--white);
  opacity: 1;
}

@media (max-width: 768px) {
  .ia-tabs {
    flex-wrap: wrap;
    gap: 5px;
  }

  .ia-tab {
    flex: 1 1 45%;
    margin-right: 0;
    padding: 15px;
    border-radius: 8px;
  }

  .feature-image-container {
    height: auto;
    background-image: none !important; /* Hide on container, show on pseudo */
  }

  .feature-image-container::before {
    content: "";
    display: block;
    width: 100%;
    height: 300px;
    background-image: var(--bg-img, url("/images/portafolios/ia/Recurso 10.png"));
    background-size: cover;
    background-position: center;
  }

  .feature-overlay {
    position: static;
    width: 100%;
    background: #1a1a1a;
    padding: 30px 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .overlay-text {
    max-width: 100%;
    margin-bottom: 25px;
  }

  .overlay-text h4 {
    font-size: 20px;
  }

  .overlay-carousel {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 10px;
  }

  .mini-img {
    width: 70px;
    height: 50px;
    flex-shrink: 0;
  }

  .btn-ver-mas {
    position: relative;
    top: 0;
    right: 0;
    display: inline-block;
    margin: 20px 0;
    width: fit-content;
  }
}

@media (max-width: 480px) {
  .ia-tab {
    flex: 1 1 100%;
  }
}

/* QUIZ / RECOMENDADOR */
.quiz {
  text-align: center;
}

.quiz .label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.quiz .h2 {
  font-family: var(--fd);
  font-size: 42px;
  color: var(--purple-mid);
  line-height: 1.1;
  margin-bottom: 16px;
  font-weight: 500;
}

.quiz .lead {
  font-size: 18px;
  color: var(--gray-500);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 400;
}

.qbox {
  max-width: 660px;
  margin: 52px auto 0;
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
  border-radius: 16px;
  padding: 44px;
  text-align: left;
}

.qprog {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.qpd {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--gray-300);
  transition: background 0.3s;
}

.qpd.on {
  background: var(--purple-mid);
}

.qstep {
  display: none;
}

.qstep.active {
  display: block;
}

.qq {
  font-family: var(--fd);
  font-size: 21px;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 24px;
  line-height: 1.3;
}

.qopts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.qopt {
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  color: var(--gray-700);
  font-size: 14px;
  font-family: var(--fb);
  cursor: pointer;
  transition: 0.2s;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--white);
  text-align: left;
  width: 100%;
}

.qopt:hover {
  border-color: var(--purple-mid);
  background: var(--purple-pale);
  color: var(--purple-mid);
}

.qopt.sel {
  border-color: var(--purple-mid);
  background: var(--purple-pale);
  color: var(--purple-mid);
}

.qi {
  font-size: 18px;
}

.qnav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.btnqp {
  background: var(--purple-mid);
  color: var(--white);
  border: none;
  padding: 11px 24px;
  border-radius: 6px;
  font-family: var(--fb);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}

.btnqp:hover {
  background: var(--purple-mid);
  opacity: 0.9;
}

.btnqb {
  background: transparent;
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  padding: 11px 18px;
  border-radius: 6px;
  font-family: var(--fb);
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s;
}

.btnqb:hover {
  color: var(--gray-700);
  border-color: var(--gray-500);
}

.qres {
  display: none;
}

.qres.active {
  display: block;
}

.qr-ey {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple-mid);
  margin-bottom: 10px;
}

.qr-hl {
  font-family: var(--fd);
  font-size: 24px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 18px;
}

.qr-chips {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.qr-chip {
  background: var(--purple-pale);
  border: 1px solid var(--purple-border);
  color: var(--purple-mid);
  font-size: 14px;
  font-weight: 500;
  padding: 7px 16px;
  border-radius: 6px;
}

.qr-why {
  font-size: 14px;
  color: var(--gray-500);
  line-height: 1.7;
  margin-bottom: 26px;
}

.qr-acts {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-p {
  background: var(--purple);
  color: var(--white);
  padding: 12px 25px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  transition: 0.2s;
}

.btn-p:hover {
  background: var(--purple-mid);
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .quiz {
    padding: 60px 20px;
  }

  .quiz .h2 {
    font-size: 32px;
  }

  .qbox {
    padding: 24px;
  }

  .qr-acts {
    flex-direction: column;
  }
}

/* HOW IT WORKS */
.how-it-works {
  text-align: center;
}

.how-it-works .section-title {
  color: var(--purple-mid);
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 60px;
}

.steps-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.step-line {
  position: absolute;
  top: 40px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--purple-mid);
  z-index: 1;
}

.steps-grid {
  display: flex;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  gap: 30px;
}

.step {
  flex: 1;
  padding: 0 20px;
}

.step img {
  width: 80px;
  height: 80px;
  margin-bottom: 25px;
  background: var(--white);
  border-radius: 50%;
}

.step h3 {
  color: var(--purple-mid);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
}

.step p {
  font-size: 16px;
  color: var(--gray-700);
  line-height: 1.4;
  text-align: center;
}

@media (max-width: 768px) {
  .how-it-works .section-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .step-line {
    display: none;
  }

  .steps-grid {
    flex-direction: column;
    gap: 50px;
  }

  .step {
    padding: 0;
  }
}

/* LATAM COVERAGE */
.latam-coverage {
  padding-bottom: 100px !important;
}

.coverage-container {
  display: flex;
  gap: 60px;
  align-items: center;
  padding: 0px 20px;
}

.coverage-left {
  flex: 1;
}

.coverage-left .section-title {
  color: var(--purple-mid);
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 30px;
  text-align: left;
}

.coverage-text {
  font-size: 18px;
  color: var(--gray-700);
  margin-bottom: 30px;
  line-height: 1.5;
  text-align: left;
}

.coverage-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.coverage-list li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-500);
}

.coverage-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--purple-mid);
  font-size: 24px;
  line-height: 1;
}

.coverage-right {
  flex: 1.2;
}

.flags-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.flag-card {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  color: var(--gray-700);
}

.flag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  background: #f5f5f5;
  border-radius: 50%;
  font-size: 40px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.flag-card img {
  display: block;
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 992px) {
  .coverage-container {
    flex-direction: column;
    gap: 40px;
    text-align: center;
  }

  .coverage-left .section-title {
    text-align: center;
  }

  .coverage-text {
    text-align: center;
  }

  .coverage-list {
    display: inline-block;
  }
}

@media (max-width: 600px) {
  .flags-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .coverage-left .section-title {
    font-size: 28px;
  }
}
