/* assets/css/index.css */

/* --- Hero Section --- */
.home-hero {
  background: #091929;
  overflow: hidden;
  position: relative;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(
    ellipse 80% 80% at 20% 0%,
    black 40%,
    transparent 100%
  );
  -webkit-mask-image: radial-gradient(
    ellipse 80% 80% at 20% 0%,
    black 40%,
    transparent 100%
  );
  z-index: 0;
}
.hero-bg-glow {
  position: absolute;
  top: -120px;
  right: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(13, 181, 165, 0.1) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}
.home-hero-layout {
  position: relative;
  z-index: 1;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}
.hero-pill span {
  color: rgba(255, 255, 255, 0.5);
}
.hero-title {
  color: #fff;
  font-size: 3.25rem;
}
.hero-title span {
  color: rgba(255, 255, 255, 0.35);
}
.home-hero-sub {
  color: rgba(255, 255, 255, 0.45);
}
.hero-trust {
  border-top-color: rgba(255, 255, 255, 0.07);
}
.hero-trust-label {
  color: rgba(255, 255, 255, 0.3);
}
.trust-item {
  color: rgba(255, 255, 255, 0.4);
}

/* --- Hero Visual Mini-Dashboards --- */
.hero-visual-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.hc-card-dark {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 1.25rem;
}
.hc-card-dark-mb {
  margin-bottom: 0.75rem;
}
.hc-card-teal {
  background: rgba(10, 143, 130, 0.15);
  border: 1px solid rgba(10, 143, 130, 0.3);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hc-eyebrow {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.85rem;
}
.hc-eyebrow-teal {
  color: rgba(255, 255, 255, 0.28);
}
.hc-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}
.hc-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.9rem;
}
.hc-progress-bg {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 100px;
  height: 5px;
  overflow: hidden;
}
.hc-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #0a8f82, #0db5a5);
  border-radius: 100px;
}
.hc-progress-text {
  font-size: 0.68rem;
  color: #0db5a5;
  margin-top: 0.5rem;
}
.hc-score-num {
  font-family: "DM Serif Display", serif;
  font-size: 2.2rem;
  color: #fff;
  line-height: 1;
}
.hc-score-label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.2rem;
}
.hc-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  color: #0db5a5;
}
.hc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0db5a5;
}
.hc-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}
.hc-badge {
  font-size: 0.68rem;
  color: #0db5a5;
  background: rgba(13, 181, 165, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 100px;
}
.hc-bars {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.hc-bar {
  flex: 1;
  border-radius: 3px 3px 0 0;
  min-height: 4px;
}
.hc-times {
  display: flex;
  justify-content: space-between;
  margin-top: 0.6rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
}
.hc-footer-text {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.6rem;
}
.hero-visual-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.hc-card-sm {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.1rem;
}
.hc-list-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.35rem;
}
.hc-list-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0db5a5;
  flex-shrink: 0;
}
.hc-sm-footer {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.2);
  margin-top: 0.5rem;
}
.hc-sm-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.2rem;
}
.hc-sm-subtitle {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.6rem;
}
.hc-sm-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: #0db5a5;
  background: rgba(13, 181, 165, 0.1);
  border: 1px solid rgba(13, 181, 165, 0.2);
  border-radius: 100px;
  padding: 0.15rem 0.55rem;
}

/* --- Trust Section --- */
.trust-band-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
  letter-spacing: 0.03em;
  padding: 20px 0;
}
.trust-band-list li {
  display: flex;
  align-items: center;
  text-align: center;
}

.trust-band-list li:not(:last-child)::after {
  content: "·";
  margin-left: 1.5rem;
  opacity: 0.4;
}

/* --- Popular Services --- */
.sec-popular {
  background: #fff;
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}
.sec-head-mb {
  margin-bottom: 3rem;
}
.sec-desc-center {
  max-width: 540px;
  margin: 0 auto;
}
.popular-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: stretch;
}

@media screen {
}

.pop-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.pop-card-navy {
  background: var(--navy);
}
.pop-card-navy-dark {
  background: var(--navy-dark);
}
.pop-card-highlight {
  box-shadow: 0 0 0 2px var(--teal);
}

.pop-card-top-bar {
  background: var(--teal);
  padding: 0.5rem 1.25rem;
  text-align: center;
}
.pop-card-top-bar span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.pop-card-inner {
  padding: 2.25rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.pop-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.pop-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pop-icon-blue {
  background: rgba(59, 130, 246, 0.18);
}
.pop-icon-purple {
  background: rgba(124, 58, 237, 0.18);
}
.pop-icon-red {
  background: rgba(239, 68, 68, 0.15);
}

.pop-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}
.pop-badge-blue {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
}
.pop-badge-teal {
  background: rgba(13, 181, 165, 0.15);
  color: var(--teal-lt);
}
.pop-badge-red {
  background: rgba(239, 68, 68, 0.12);
  color: #fca5a5;
}

.pop-title {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}
.pop-desc {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  flex: 1;
}
.pop-features {
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pop-feature {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.6);
}
.pop-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pop-price-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.2rem;
}
.pop-price-val {
  font-family: var(--fd);
  font-size: 1.8rem;
  color: #fff;
  line-height: 1;
}
.pop-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1.35rem;
  border-radius: var(--r-sm);
  transition: background 0.2s;
}
.pop-btn:hover {
  background: #0db5a5;
}
.pop-more-link {
  text-align: center;
  margin-top: 2.5rem;
}
.pop-more-link a {
  font-size: 0.9rem;
  color: var(--teal);
  font-weight: 500;
}

/* --- Problems Section --- */
.sec-problems {
  background: #fff;
  padding: 4.5rem 0;
  border-top: 1px solid var(--border);
}
.sec-head-mb-sm {
  margin-bottom: 2.5rem;
}
.problems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}
.problem-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: #fff;
  transition: all 200ms ease;
  -webkit-transition: all 200ms ease;
  -moz-transition: all 200ms ease;
  -ms-transition: all 200ms ease;
  -o-transition: all 200ms ease;
}
.problem-card:hover {
  box-shadow: var(--sh);
}
.problem-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.problem-title {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
  line-height: 1.3;
}
.problem-desc {
  font-size: 0.8rem;
  color: var(--slate);
  margin: 0;
  line-height: 1.55;
}
.problems-cta {
  text-align: center;
  margin-top: 2rem;
}

/* --- All Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}
.srv-card {
  text-decoration: none;
  padding: 2rem;
  background: #fff;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  transition:
    box-shadow 0.25s,
    transform 0.25s;
}
.srv-card:hover {
  box-shadow: var(--sh-hover);
  transform: translateY(-3px);
}
.srv-card-navy {
  background: var(--navy);
  border-color: rgba(255, 255, 255, 0.05);
}
.srv-card-navy-dark {
  background: var(--navy-dark);
  border-color: rgba(255, 255, 255, 0.04);
}
.srv-card-gradient {
  background: linear-gradient(
    135deg,
    rgba(10, 143, 130, 0.08),
    rgba(13, 181, 165, 0.04)
  );
  border-color: rgba(10, 143, 130, 0.2);
}
.srv-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.srv-tag-wrap {
  margin-bottom: 0.75rem;
  width: fit-content;
}
.srv-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: var(--navy);
}
.srv-title-light {
  color: #fff;
}
.srv-desc {
  font-size: 0.875rem;
  flex: 1;
  color: var(--slate);
}
.srv-desc-light {
  color: rgba(255, 255, 255, 0.5);
}
.srv-link {
  font-size: 0.82rem;
  color: var(--teal);
  font-weight: 600;
  margin-top: 1rem;
}
.srv-link-light {
  color: var(--teal-lt);
}

/* --- Process Section --- */
.process-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.process-title {
  margin: 0.75rem 0 1.25rem;
}
.process-desc {
  margin-top: 1rem;
  color: var(--slate);
}

/* --- Work Section (Home View) --- */
.work-title {
  color: #fff;
}
.work-subtitle {
  color: rgba(255, 255, 255, 0.5);
  max-width: 520px;
  margin: 0.75rem auto 0;
}
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
}
.work-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s;
  min-width: 0;
}
.work-card:hover {
  transform: translateY(-4px);
}
.work-img-wrap {
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-content {
  padding: 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.work-tag {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-lt);
  margin-bottom: 0.4rem;
  display: block;
}
.work-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.3rem;
}
.work-stack {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-bottom: 0.75rem;
}
.work-desc {
  font-size: 0.83rem;
  color: rgba(255, 255, 255, 0.45);
  flex: 1;
  margin-bottom: 1rem;
  line-height: 1.6;
}
.work-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-lt);
}
.work-link-disabled {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.25);
}
.work-cta {
  text-align: center;
}
.work-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.75rem 1.5rem;
  border-radius: var(--r-sm);
  transition: all 0.2s;
}
.work-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* ── FAQ STYLES (ACORDEÓN) ───────────────────────────────────────────────── */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
  background: transparent; /* Hereda el color de la sección */
}

.faq-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  cursor: pointer;
  text-align: left;
  gap: 1.5rem;
  outline: none;
}

.faq-question {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  transition: color 0.3s ease;
}

.faq-icon-wrap {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  background: rgba(10, 143, 130, 0.1);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.faq-arrow {
  transition: transform 0.3s ease;
}

.faq-body {
  max-height: 0px;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-answer {
  margin: 0;
  padding-bottom: 1.5rem;
  padding-right: 2.5rem;
  color: var(--slate);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* ── ESTADOS ACTIVOS (Cuando el panel está abierto) ── */
.faq-item.open .faq-body {
  max-height: 800px; /* Pon un valor alto que cubra tu respuesta más larga */
}

/* 2. Cambiamos 'is-open' por 'open' para que coincida con el JavaScript */
.faq-item.open .faq-question {
  color: var(--teal);
}

.faq-item.open .faq-icon-wrap {
  background: var(--teal);
  color: #fff;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

/* Adaptación para fondos oscuros (si usas la clase sec-dark) */
.sec-dark .faq-question {
  color: #fff;
}
.sec-dark .faq-answer {
  color: rgba(255, 255, 255, 0.7);
}
.sec-dark .faq-container,
.sec-dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
}

/* --- Formulario de Contacto Home (CTA Split) --- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  text-align: left;
}
.cta-split-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
}
.cta-split-form {
  background: #fff;
  padding: 2.5rem;
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
}
.cta-split-form .form-group label {
  color: var(--navy);
}
.cta-split-form .form-check label {
  color: var(--slate);
}
.w-full {
  width: 100%;
  justify-content: center;
}

/* Responsive para móvil */
@media (max-width: 900px) {
  .cta-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .cta-split-form {
    padding: 2rem 1.5rem;
  }
}

/* --- Responsive Adjustments --- */
@media (max-width: 900px) {
  .popular-grid,
  .problems-grid,
  .services-grid,
  .process-layout,
  .work-grid {
    grid-template-columns: repeat(1, 1fr);
  }

  .hero-title {
    font-size: 2.5rem;
  }
}
