/*
Theme Name: Blocksy Child
Template: blocksy
Version: 1.0
*/

/* =========================
   REXETAS - FICHA PRINCIPIO
========================= */

.rex-ficha {
  max-width: 1180px;
  margin: 0 auto;
  padding: 70px 24px;
  color: #0b2545;
}

/* HERO */

.rex-hero-ficha {
  background: linear-gradient(135deg, #f4f8fb, #ffffff);
  border-radius: 28px;
  padding: 50px;
  margin-bottom: 35px;
  box-shadow: 0 18px 45px rgba(15, 35, 65, 0.08);
}

.rex-hero-content {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 42px;
  align-items: center;
}

.rex-label {
  color: #2563eb;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  margin-bottom: 14px;
}

.rex-hero-ficha h1 {
  font-size: 52px;
  line-height: 1.05;
  margin: 0 0 22px;
  color: #0b2545;
}

.rex-descripcion {
  font-size: 18px;
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 0;
}

.rex-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.rex-tags span {
  background: #eaf1ff;
  color: #2563eb;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.rex-image {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rex-image img {
  width: 100%;
  max-width: 340px;
  height: 320px;
  object-fit: cover;
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(15, 35, 65, 0.08);
}

.rex-image-placeholder {
  width: 100%;
  height: 320px;
  border-radius: 24px;
  background: linear-gradient(135deg, #eaf1ff, #ffffff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-size: 64px;
  font-weight: 800;
}

/* INFO QUICK CARDS */

.rex-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 55px;
}

.rex-info-grid div,
.rex-card,
.rex-cta {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 12px 30px rgba(15, 35, 65, 0.06);
}

.rex-info-grid strong {
  color: #2563eb;
  display: block;
  margin-bottom: 10px;
  font-weight: 800;
}

.rex-info-grid p {
  margin: 0;
  line-height: 1.6;
}

/* CLINICAL SECTION */

.rex-clinical {
  margin-top: 20px;
}

.rex-section-header {
  margin-bottom: 28px;
}

.rex-section-header h2 {
  font-size: 38px;
  line-height: 1.1;
  margin: 8px 0 0;
  color: #0b2545;
}

.rex-clinical-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 22px !important;
  align-items: stretch;
}

.rex-clinical-grid > .rex-card {
  width: auto !important;
  margin: 0 !important;
  min-height: 240px;
}

.rex-card h3 {
  color: #0b2545;
  font-size: 24px;
  line-height: 1.2;
  margin: 0 0 14px;
}

.rex-card p {
  color: #16324f;
  font-size: 16px;
  line-height: 1.75;
  margin: 0;
}

.rex-alert {
  background: #f8fbff;
  border-color: #bfdbfe;
}

/* CTA */

.rex-cta {
  text-align: center;
  margin-top: 45px;
  background: linear-gradient(135deg, #0b2545, #2563eb);
  color: #ffffff;
}

.rex-cta h2 {
  color: #ffffff;
  margin: 0 0 12px;
}

.rex-cta p {
  color: #ffffff;
  margin: 0;
}

.rex-button {
  display: inline-block;
  margin-top: 22px;
  background: #ffffff;
  color: #2563eb;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

/* RESPONSIVE */

@media (max-width: 600px) {
  .rex-hero-content,
  .rex-info-grid,
  .rex-clinical-grid {
    grid-template-columns: 1fr !important;
  }

  .rex-hero-ficha {
    padding: 34px;
  }

  .rex-hero-ficha h1 {
    font-size: 38px;
  }

  .rex-image img,
  .rex-image-placeholder {
    height: 260px;
  }
}
@media (min-width: 601px) {
  .rex-ficha .rex-clinical .rex-clinical-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 22px !important;
  }

  .rex-ficha .rex-clinical .rex-clinical-grid > .rex-card {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
  }
}