/* =========================================================
   INGFRAMEX — Plantilla de página de industria
   Sigue el patrón visual existente del sitio:
   hero .hero-section + tarjetas .product-card (imagen + texto)
   Paleta: #5b1c64 principal · #4a1753 hover · #f5f0f6 suave
   ========================================================= */

:root {
  --ing-morado: #5b1c64;
  --ing-morado-osc: #4a1753;
  --ing-morado-claro: #f5f0f6;
  --ing-texto: #333;
  --ing-texto-suave: #666;
  --ing-borde: #e6e0e8;
  --ing-gris: #f8f9fa;
}

/* ---------- Encabezado de sección ---------- */

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 300;
  color: #333;
  margin-bottom: 1rem;
}

/* ---------- Intro ---------- */

.intro-section {
  padding: 80px 0;
  background: #fff;
}

.intro-section .intro-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.intro-section h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--ing-morado);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.intro-section p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.2rem;
}

.intro-section p:last-child {
  margin-bottom: 0;
}

/* ---------- Soluciones (tarjetas imagen + texto) ---------- */

.products-section {
  padding: 80px 0;
  background: var(--ing-gris);
}

.products-section .row {
  width: 90%;
  margin: 0 auto;
}

.product-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 40px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.product-row {
  display: flex;
  align-items: stretch;
  min-height: 190px;
}

.product-image {
  width: 40%;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f4f4f4;
}

.product-content {
  width: 60%;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.product-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--ing-morado);
  margin-bottom: 15px;
  line-height: 1.3;
}

.product-content p {
  color: var(--ing-texto-suave);
  line-height: 1.7;
  margin-bottom: 12px;
  font-size: 0.97rem;
}

.product-content p:last-child {
  margin-bottom: 0;
}

.product-content ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.product-content li {
  color: var(--ing-texto-suave);
  font-size: 0.97rem;
  line-height: 1.7;
}

/* Etiqueta "Aplicaciones" dentro de una tarjeta */
.aplicaciones-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ing-morado);
  margin: 4px 0 8px;
}

/* Tarjeta sin fotografía: el texto ocupa todo el ancho */
.product-card--sin-imagen .product-content {
  width: 100%;
}

/* ---------- Equipos recomendados ---------- */

.equipos-section {
  padding: 80px 0;
  background: #fff;
}

.equipos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.equipo-group {
  background: var(--ing-gris);
  border-radius: 12px;
  padding: 30px 28px;
  border-left: 4px solid var(--ing-morado);
}

.equipo-group h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ing-morado);
  margin: 0 0 16px;
}

.equipo-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.equipo-group li {
  font-size: 0.98rem;
  line-height: 1.6;
  color: #444;
  padding: 9px 0 9px 22px;
  position: relative;
  border-bottom: 1px solid var(--ing-borde);
}

.equipo-group li:last-child {
  border-bottom: 0;
}

.equipo-group li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--ing-morado);
  font-weight: 700;
}

.equipo-group a {
  color: #444;
  text-decoration: none;
  transition: color 0.25s ease;
}

.equipo-group a:hover {
  color: var(--ing-morado);
  text-decoration: underline;
}

/* ---------- Caso de éxito ---------- */

.caso-section {
  padding: 80px 0;
  background: linear-gradient(135deg, var(--ing-morado) 0%, var(--ing-morado-osc) 100%);
  color: #fff;
}

.caso-section .section-header h2 {
  color: #fff;
}

.caso-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: center;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.caso-grid h3 {
  font-size: clamp(1.3rem, 2.8vw, 1.7rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.35;
}

.caso-grid p {
  font-size: 1rem;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1rem;
}

.caso-fuente {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.caso-metricas {
  display: grid;
  gap: 16px;
}

.caso-metrica {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 22px 24px;
}

.caso-metrica strong {
  display: block;
  font-size: clamp(1.5rem, 3.2vw, 2rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 6px;
}

.caso-metrica span {
  font-size: 0.9rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.85);
}

/* Variante: varios casos de éxito en tarjetas */
.casos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.caso-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}

.caso-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1.4;
}

.caso-card p {
  font-size: 0.97rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 14px;
}

.caso-card .caso-fuente {
  margin: auto 0 0;
  padding-top: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
}

.caso-card .caso-fuente a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
}

/* ---------- Preguntas frecuentes ---------- */

.faq-section {
  padding: 80px 0;
  background: var(--ing-gris);
}

.faq-lista {
  width: 90%;
  max-width: 880px;
  margin: 0 auto;
}

.faq-lista details {
  background: #fff;
  border: 1px solid var(--ing-borde);
  border-radius: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-lista details[open] {
  border-color: var(--ing-morado);
  box-shadow: 0 8px 26px rgba(91, 28, 100, 0.1);
}

.faq-lista summary {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ing-morado);
  line-height: 1.45;
  list-style: none;
  transition: background 0.2s ease;
}

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

.faq-lista summary:hover {
  background: var(--ing-morado-claro);
}

.faq-lista summary::after {
  content: "+";
  flex-shrink: 0;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--ing-morado);
}

.faq-lista details[open] summary::after {
  content: "−";
}

.faq-respuesta {
  padding: 0 24px 22px;
}

.faq-respuesta p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--ing-texto-suave);
  margin: 0;
}

/* ---------- CTA final ---------- */

.cta-section {
  padding: 80px 0;
  background: #fff;
}

.cta-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.cta-content h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--ing-morado);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.cta-content p {
  font-size: 1.08rem;
  line-height: 1.9;
  color: #444;
  margin-bottom: 1.2rem;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 1200px) {
  .product-content {
    padding: 25px;
  }

  .product-content h3 {
    font-size: 1.35rem;
  }
}

@media (max-width: 992px) {
  .equipos-grid,
  .caso-grid,
  .casos-grid {
    grid-template-columns: 1fr;
  }

  .product-content h3 {
    font-size: 1.25rem;
  }
}

@media (max-width: 768px) {
  .intro-section,
  .products-section,
  .equipos-section,
  .caso-section,
  .faq-section,
  .cta-section {
    padding: 55px 0;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .product-row {
    flex-direction: column;
  }

  .product-image {
    width: 100%;
    height: 200px;
  }

  .product-content {
    width: 100%;
    padding: 22px;
  }

  .product-content h3 {
    font-size: 1.2rem;
  }

  .equipo-group {
    padding: 24px 22px;
  }

  .faq-lista summary {
    padding: 16px 18px;
    font-size: 0.97rem;
  }

  .faq-respuesta {
    padding: 0 18px 18px;
  }
}
