
html, body {
  font-family: 'Poppins', sans-serif !important;
}

html, body {
  height: 100%;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("../img/pattern-lego.png");
  background-repeat: repeat;
  background-size: 512px 512px; /* tamaño REAL del patrón */
  opacity: 0.10; /* controla la transparencia */
  pointer-events: none;
  z-index: 0;
}

.hero {
  padding-top: 60px;
  background-color: #f27324 !important; /* fondo naranja */
  padding-bottom: 60px;
}

.caja {
  border-radius: 5px;
  border: 2px solid #000;
  padding: 40px;
  font-size: 24px;
  line-height: 1.4;
}

.titulo-box {
    position: relative;
    display: grid;
    border: 2px solid #000;
    padding: 20px 120px;
    border-radius: 5px;
    width: 65%;
}

.titulo-texto {
    font-weight: 800;
    font-size: 2.3rem;
    margin: 0;
    color: #fff;
}

.titulo-icon {
    width: 59px;
    position: absolute;
    left: -35px;
    top: 6px;
}

.terapeuta-img {
  width: 400px;
  height: 400px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #000;
  position: relative;
  z-index: 10;
}

.titulo-box.amarillo::before , .titulo-box.verde::before, .titulo-box.azulcat::before, .titulo-box.azul::before  {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern-lego-2.png');
  background-repeat: repeat;
  background-size: 450px;
  opacity: 0.25; /* Ajusta intensidad aquí */

  background-position: center center;


  
  /* Esto es la clave para que se vea el amarillo */
  mix-blend-mode: multiply;
  
  pointer-events: none;
  z-index: 0;
}

.titulo-box h1,
.titulo-box h2 {
  position: relative;
  z-index: 2;
}
.titulo-box h2 {
    font-weight: 700;
    text-align: center;
    font-size: 35px;
    margin-bottom: 0px;
}



.titulo-texto {
  font-size: 43px;
  font-weight: 900;
  color: #000;
  margin: 0;
}
.titulo-icon {
    width: 59px;
    position: absolute;
    left: -35px;
    top: 12px;
}

/* ================================
   TARJETAS CRACKS
================================= */

.cracks-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-items: center;
  align-items: start;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  position: relative;
}

.cracks .card {
  width: 200px;
  background-color: #ffeb3b;
  border: 2px solid #000;
  border-radius: 5px;
  overflow: hidden;
  text-align: center;
  font-family: "Poppins", sans-serif;
  box-shadow: 0 5px 10px rgba(0,0,0,.2);
  position: relative;
  z-index: 1; /* por encima de las líneas decorativas */
  padding: 10px;
}

/* Fila inferior centrada */
.cracks-bottom {
  display: flex;
  justify-content: center;
  gap: 16rem;
  margin-top: -80px; /* solapa un poco hacia arriba */
  position: relative;
}

.crack-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-bottom: 4px solid #000;
}

.card h3 {
  font-size: 20px;
  font-weight: 700;
  color: #000;
  margin: 18px 0 5px;
}

.card p {
  font-size: 15px;
  color: #000;
  margin: 0;
  font-weight: 500;
  line-height: 1.3;
}

/* Líneas curvas de conexión */
.cracks {
  position: relative;
}

.linea-1 {
    position: absolute;
    top: 248px;
    left: 140px;
}

.linea-2 {
    position: absolute;
    top: 34px;
    left: 379px;
}

.linea-3 {
    position: absolute;
    top: 350px;
    left: 499px;
}

.linea-4 {
    position: absolute;
    top: 282px;
    left: 627px;
}

.linea-5 {
    position: absolute;
    top: 76px;
    right: 249px;
}

.azul-claro {
    background-color: #4faee1;
}

/* ===================================
   RESPONSIVE
=================================== */

@media (max-width: 1200px) {
    .cracks-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

    .crack-card {
        width: 90%;
    }
}


/* =========================================
   TÍTULOS DE CATEGORÍA (PSICÓLOGA CLÍNICA, ETC.)
========================================= */

.titulo-categoria {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 12px 28px;
    border: 5px solid #000;
    border-radius: 10px;
    margin-bottom: 20px;
    font-weight: 800;
    font-size: 1.4rem;
    text-transform: uppercase;

    /* patrón Lego */
    background-image: url('assets/img/pattern-lego-yellow.png');
    background-size: 180px;
}

/* COLORES DE LAS CATEGORÍAS */
.verde { background-color: #4ebb83; }
.azulcat { background-color: #2b388f; }
.amarillo { background-color: #ffe413; }

/* =========================================
   SECCIONES INDIVIDUALES
========================================= */

.crack-section {
    padding: 60px 0;
}

.crack-text-box {
    border: 5px solid #000;
    border-radius: 10px;
    padding: 25px;
    background: #f37424;
    color: #fff;
}

.crack-text-box h3 {
    font-weight: 800;
    margin-bottom: 10px;
    color: #fff;
}



/* =========================================
   BLOQUES DE COLORES SEGÚN PROFESIONAL
========================================= */
.bg {
padding-top: 60px; padding-bottom: 60px; position: relative;
}
.bg-naranja { background: #f79630; }
.bg-ocre { background: #d87c0f; }
.bg-salmon { background: #ff8e51; }
.bg-amarillo { background: #ffd034; }
.bg-mostaza { background: #e1b505; }

.caja-azul {
  background-color: #4faee1;
  color: #fff;
}
.caja-beige {
  background-color: #fcd0b0;
}

.texto {
  text-align: center;
}
 .cedula {
  text-transform: uppercase;
  text-align: center;
 }
.nombre {
  font-weight: 800;
  text-align: center;
}
/* =========================================
   RESPONSIVE
========================================= */

@media (max-width: 992px) {
    .crack-img {
        width: 220px;
        height: 220px;
    }
}

@media (max-width: 768px) {
    .titulo-texto {
        font-size: 1.8rem;
    }

    .crack-mini-card {
        width: 120px;
    }

    .crack-section {
        padding: 40px 0;
    }

    .crack-text-box {
        margin-bottom: 20px;
    }

    .titulo-categoria {
        font-size: 1.1rem;
    }

   .cracks-container {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 2.5rem !important;
    width: 100%;
  }

  /* 2) Quitar el width fijo de 200px SOLO en móvil */
  .cracks-container .card {
    width: 90% !important;
    max-width: 320px !important;
  }

  /* 3) Ocultar líneas decorativas que estorban */
  .linea-1, .linea-2, .linea-3, .linea-4, .linea-5 {
    display: none !important;
  }

  .cracks-bottom {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
  }

  .cracks-bottom .card {
    width: 90% !important;
    max-width: 320px !important;
  }

  .titulo-box {
    padding: 20px 60px;
    border-radius: 5px;
    width: 90%;
  }

  .titulo-icon {
    width: 59px;
    position: absolute;
    left: -20px;
    top: 6px;
}
.terapeuta-img {
    width: 300px;
    height: 300px;
    margin-bottom: -25px;
}
.titulo-box h2 {
    font-weight: 700;
    text-align: center;
    font-size: 20px;
    margin-bottom: 0px;
}
}