/* =========================
   TARJETAS GENERALES
========================= */
.monitors_article,
.bombs_article_info,
.bombs_types_1,
.article_foam_card {
  background: var(--bgc-card);
  border-radius: var(--border-r);
  padding: 2rem;
  margin: 5rem auto;
}

/* =========================
   TEXTOS GENERALES
========================= */
.monitors_article h2,
.bombs_info h2 {
  margin-bottom: 2rem;
  text-align: center;
}

.youtube_link {
  margin-left: 2rem;
}

.youtube_link svg {
  width: 3.2rem;
  height: 3.2rem;
  transition: transform 0.2s ease;
}

.youtube_link:hover svg {
  transform: scale(1.1);
}

/* =========================
   FLEX GENERALES
========================= */
.monitors_article_group,
.bombs_article_info,
.bombs_types,
.bombs_types_1 div {
  display: flex;
  justify-content: space-between;
}

/* =========================
   IMAGENES
========================= */
.monitors_article_group img,
.bombs_types_1 div img {
  width: clamp(12rem, 30%, 18rem);
  height: clamp(12rem, 30%, 18rem);
  align-self: center;
}

.sprinkler_card img,
.grid_card img,
.article_group_text img {
  width: 16rem;
  object-fit: contain;
}

/* =========================
   TEXTOS DE BLOQUES
========================= */
.monitors_article_group_text {
  width: 40%;
}

.monitors_article_group_text h3,
.bombs_article_info h3,
.bombs_types_1 h3,
.article_foam_card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 1rem;
}

.monitors_article_group_text p,
.bombs_article_info p,
.bombs_types_1 p {
  font-size: var(--fs-text);
  text-align: justify;
}

.monitors_article_group_text ul li {
  font-size: var(--fs-text);
  list-style: none;
  color: white;
  line-height: 3.2rem;
}

/* =========================
   BOMBAS
========================= */
.bombs_article_info div {
  width: 50%;
}

/* =========================
   GRID GENERALES
========================= */
.grid,
.grid_2 {
  width: fit-content;
  margin: auto;
  margin-bottom: 5rem;
  display: grid;
  row-gap: 2rem;
}

.grid {
  grid-template-columns: 1fr;
}

.grid_2 {
  width: 80%;
  grid-template-columns: 50% 50%;
  column-gap: 2rem;
}

/* =========================
   CARDS
========================= */
.sprinkler_card,
.grid_card {
  display: flex;
  gap: 5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  background: var(--bgc-card);
}

.grid_card {
  align-items: center;
}

.sprinkler_card_text,
.grid_card_text {
  width: fit-content;
}

.sprinkler_card_text h3,
.sprinkler_card_text a,
.grid_card_text h3 {
  font-size: var(--fs-subtitle);
  margin-bottom: 1rem;
}

.sprinkler_card_text a {
  text-decoration: none;
  color: rgb(255, 59, 59);
  font-weight: bold;
  transition: 0.15s ease;
}

.sprinkler_card_text a:hover {
  color: red;
}

.sprinkler_card_text ul {
  margin-top: 1rem;
  list-style: none;
}

.sprinkler_card_text ul li,
.grid_card_text p {
  font-size: var(--fs-text);
  line-height: 3.2rem;
  color: white;
}

/* =========================
   ARTICLE GROUP
========================= */
.article_group_text {
  display: flex;
  gap: clamp(1.5rem, 4vw, 5rem);
  align-items: center;
}

.article_group_text p {
  font-size: var(--fs-text);
  text-align: justify;
}

/* =========================
   ACORDEON
========================= */
.toggle {
  padding: 1.5rem;
  background: var(--bgc-card);
  border: none;
  border-radius: 24px 24px 0 0;
  font-size: var(--fs-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 0 auto;
  color: white;
  transition: 0.3s;
}

.toggle:hover {
  background: #e9e9e9;
  color: black;
}

.toggle_tarjet_content {
  padding: 1.5rem;
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  width: 100%;
  margin: 0 auto;
}

.toggle_tarjet_group {
  background: var(--bgc-card);
  padding: 1.5rem;
  border-radius: var(--border-r);
}

.toggle_tarjet_group h4 {
  margin-bottom: 1rem;
}

.toggle_tarjet_group ul {
  padding-left: 1.5rem;
  font-size: var(--fs-small);
}

.toggle_tarjet_group li {
  margin-bottom: 1rem;
  color: white;
  line-height: var(--line-text);
}

/* =========================
   MINI CAROUSEL
========================= */
.mini-carousel {
  position: relative;
  width: 100%;
  overflow: hidden;
  height: 20rem;
}

.mini-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.mini-carousel img.active {
  opacity: 1;
}

/* =========================
   COMPARACION
========================= */
.comparison {
  margin: 0 auto;
}

.comparison h2 {
  text-align: center;
  margin-bottom: 5rem;
  font-size: var(--fs-subtitle);
}

.comparison-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  border: 1px solid #5f5f5f;
  border-radius: var(--border-r);
  overflow: hidden;
  color: var(--color-text);
}

.comparison-grid div {
  padding: 1rem;
  border-bottom: 1px solid #5f5f5f;
  border-right: 1px solid #5f5f5f;
}

.comparison-grid .header {
  background: var(--bgc-card);
  font-weight: bold;
  text-align: center;
  font-size: var(--fs-small);
  color: red;
}

.comparison-grid {
  font-size: var(--fs-small);
  background: var(--bgc-card);
}

.label {
  background-color: var(--bgc-card);
  font-weight: bold;
}

.comparison-grid div:nth-child(4n) {
  border-right: none;
}

.comparison-grid div:nth-last-child(-n + 4) {
  border-bottom: none;
}

/* =========================
   KITCHEN
========================= */
.kitchen-system {
  margin: 0 auto;
}

.kitchen-header {
  display: flex;
  justify-content: center;
  text-align: center;
}

.kitchen-text h1 {
  font-size: var(--fs-title);
  line-height: var(--line-text);
  color: darkred;
  margin-bottom: 5rem;
}

.kitchen-text p {
  font-size: var(--fs-text);
  line-height: var(--line-text);
  max-width: 70%;
  margin: 0 auto;
}

.kitchen-info h2,
.kitchen-norms h2 {
  font-size: var(--fs-subtitle);
  margin-bottom: 5rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.info-card {
  background: var(--bgc-card);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.info-card h4 {
  font-size: var(--fs-text);
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.info-card p {
  font-size: var(--fs-small);
}

.kitchen-norms {
  background: var(--bgc-card);
  padding: 2rem;
  border-radius: 12px;
}

.kitchen-norms p {
  font-size: var(--fs-text);
  line-height: var(--line-text);
  margin-bottom: 1rem;
}

/* MEDIA */
.kitchen-media {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 5rem;
}

.kitchen-video {
  flex: 2;
}

.kitchen-video iframe {
  width: 100%;
  height: 32rem;
  border-radius: 12px;
}

.kitchen-img-bottom {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.kitchen-img-bottom {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.kitchen_mini-carousel {
  position: relative;
  width: 100%;
  max-width: 48rem;
  height: 26rem;
  overflow: hidden;
}

.kitchen_mini-carousel img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.kitchen_mini-carousel img.active {
  opacity: 1;
}

/* =========================
   KIDDE SECTION
========================= */
.kidde-section {
  width: 90%;
  margin: 5rem auto;
}

.kidde-section h2 {
  text-align: center;
  font-size: var(--fs-subtitle);
  margin-bottom: 1rem;
}

.kidde-section .intro {
  text-align: center;
  font-size: var(--fs-text);
  max-width: 700px;
  margin: 0 auto 4rem auto;
}

/* =========================
   SYSTEM CARD (MISMA ESTÉTICA)
========================= */
.system-card {
  display: flex;
  gap: 5rem;
  padding: 2rem;
  border-radius: 1rem;
  background-color: var(--bgc-card);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 4rem;
  color: white;
}

/* IMAGEN */
.system-img {
  display: flex;
  align-items: center;
  justify-content: center;
}

.system-img img {
  width: 16rem;
  object-fit: contain;
}

/* CONTENIDO */
.system-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.system-content h3 {
  font-size: var(--fs-subtitle);
  margin-bottom: 1rem;
}

.system-content p,
.system-content ul li {
  font-size: var(--fs-text);
}

.system-content ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

/* BOTONES */
.buttons {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.buttons a {
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  background: darkred;
  color: white;
  font-size: var(--fs-text);
  transition: 0.2s ease;
}

.buttons a:hover {
  background: red;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 800px) {
  .sprinklers_grid_2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .system-card {
    flex-direction: column;
    text-align: center;
  }

  .system-img img {
    width: 180px;
  }

  .kitchen-media {
    flex-direction: column;
    align-items: center;
  }

  .kitchen-video iframe {
    height: 250px;
  }

  .kitchen-img-bottom img {
    max-width: 200px;
  }
}

/* =========================
   TABLET
========================= */
@media (max-width: 1024px) {
  .kitchen-media {
    gap: 3rem;
    align-items: center;
  }

  .kitchen-video iframe {
    height: 26rem;
  }

  .kitchen_mini-carousel {
    height: 24rem;
  }
}

/* =========================
   MOBILE
========================= */
@media (max-width: 768px) {
  .kitchen-media {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .kitchen-video,
  .kitchen-img-bottom {
    width: 100%;
    flex: none;
  }

  .kitchen-video iframe {
    width: 100%;
    height: 22rem;
  }

  .kitchen-img-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .kitchen_mini-carousel {
    position: relative;
    margin: 0 auto;
  }

  .kitchen_mini-carousel img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 100%;
    object-fit: contain;

    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .kitchen_mini-carousel img.active {
    opacity: 1;
  }
}

/* =========================
   MOBILE CHICO
========================= */
@media (max-width: 480px) {
  .kitchen-video iframe {
    height: 18rem;
  }

  .kitchen_mini-carousel {
    height: 22rem;
    max-width: 100%;
  }
}

/* =========================
   ENGINEERING
========================= */

.engineering-section {
  width: 90%;
  margin: 5rem auto;
}

.engineering-header {
  text-align: center;
  margin-bottom: 3rem;
}

.engineering-header h1 {
  font-size: var(--fs-title);
  color: darkred;
  margin-bottom: 1rem;
}

.engineering-header p {
  font-size: var(--fs-text);
  max-width: 700px;
  margin: 0 auto;
}

/* SERVICIOS */
.engineering-services {
  margin-bottom: 4rem;
}

/* APROBACION DESTACADA */
.engineering-highlight {
  background: #fff;
  border-left: 5px solid darkred;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 3rem;
  font-weight: bold;
  text-align: center;
}

/* NORMAS */
.engineering-norms {
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
}

.engineering-norms h2 {
  margin-bottom: 1rem;
}

.engineering-norms ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.engineering-norms li {
  margin-bottom: 0.5rem;
  font-size: var(--fs-text);
}

/*AAWWDWDWDAWDWADAWDAWD*/

@media (max-width: 768px) {
  .title p {
    text-align: center;
    padding: 0 1rem;
  }

  /* BLOQUES CON IMAGEN + TEXTO */
  .article_group_text {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }

  .article_group_text img {
    width: 70%;
    margin: auto;
  }

  .article_group_text p {
    text-align: justify;
  }

  /* MINI CAROUSEL */
  .mini-carousel {
    height: 18rem;
    display: flex;
    justify-content: center;
  }

  .mini-carousel img {
    height: 100%;
    width: 100%;
  }

  /* ACORDEON GRID */
  .toggle_tarjet_content {
    grid-template-columns: 1fr;
  }

  .toggle_tarjet_group {
    text-align: center;
  }

  .toggle_tarjet_group ul {
    list-style: none;
    padding-left: 0;
  }

  /* CARDS GENERALES */
  .article_foam_card {
    padding: 1.2rem;
    margin: 3rem auto;
  }
}

@media (max-width: 480px) {
  .article_foam_card h3 {
    font-size: 1.5rem;
  }

  .mini-carousel {
    height: 15rem;
  }
}
