.dima-wrapper {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 15px;
  box-sizing: border-box;
  color: #333333;
}


.dima-wrapper p {
	font-size:18px !important;
}

.dima-section {
  margin-bottom: 45px;
}


.dima-section h2 {
  color: #0065a2;
  font-weight: 700;
  margin-bottom: 15px;
}


/* =========================================
   CARRUSEL
   ========================================= */

.carrusel-interno {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  max-width: 100vw;
  margin-top: 0 !important;
  height: 350px;
  overflow: hidden;
}

.carrusel-interno .carousel-inner,
.carrusel-interno .carousel-item {
  height: 350px;
}

.carrusel-interno .carousel-item img {
  height: 350px;
  object-fit: cover;
  width: 100%;
}

/* =========================================
   BUSCADOR
   ========================================= */


.dima-section-buscador {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 35px auto !important;
}


.dima-section-buscador h2 {
  color: #0065a2;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center;
}


.dima-section-buscador .dima-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
}


.dima-section-buscador p {
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 550px;
}


.buscador-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  width: 100%;
}


#buscador-carne {
  padding: 10px 16px;
  font-size: 22px !important;
  border: 1px solid #ccc;
  border-radius: 5px;
  width: 280px;
  max-width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}


#buscador-carne:focus {
  outline: none;
  border-color: #0065a2;
}


.buscador-wrapper button {
  padding: 10px 24px;
  background-color: #0065a2;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 22px !important;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}


.buscador-wrapper button:hover {
  background-color: #004b79;
}


.buscador-card {
  background-color: #f4f8fb;
  border: 1px solid #0065a2;
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 450px;
  margin: 20px auto 0 auto;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 101, 162, 0.08);
  box-sizing: border-box;
}


.buscador-card p {
  margin: 0 0 8px 0;
  font-size: 20px !important;
  color: #333;
}


.buscador-card p:last-child {
  margin-bottom: 0;
}


.buscador-error {
  color: #cc0000;
  font-size: 20px !important;
  text-align: center;
}


.buscador-loading {
  color: #555;
  font-size: 20px !important;
  text-align: center;
}




/* =========================================
   BIENVENIDA
   ========================================= */


.dima-section-bienvenida {
  margin-bottom: 15px !important;
}


.dima-section-bienvenida h2 {
  text-align: center;
  font-size: 2.6rem !important;
  margin: 25px 0 5px 0;
}




/* =========================================
   GRID PRINCIPAL
   ========================================= */


.dima-grid-50-50 {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 30px;
  align-items: stretch;
}




/* =========================================
   BOTONES / LINKS
   ========================================= */


.dima-links-group {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}


.dima-btn-link {
  display: inline-block;
  padding: 10px 20px;
  margin: 5px 10px 5px 0;
  border-radius: 5px;
  background-color: #0065a2;
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s ease;
  box-sizing: border-box;
}


.dima-btn-link:hover {
  background-color: #004b79;
  color: #ffffff !important;
  text-decoration: none;
}




/* =========================================
   COLUMNAS
   ========================================= */


.dima-col-left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}


.dima-col-left h2 {
  margin-top: 0;
}




/* =========================================
   CARDS
   ========================================= */


.dima-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  height: 100%;
  align-content: center;
}


.dima-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 24px 16px;
  text-align: center;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
}


.dima-card strong {
  display: block;
  color: #0065a2;
  margin-bottom: 6px;
}


.dima-card p {
  margin: 0;
  font-size: 1.10rem !important;
  color: #555555;
}


.dima-card strong,
.dima-card p {
  text-align: center !important;
}




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


.dima-secciones-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}


.dima-seccion-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px;
  background-color: #ffffff;
  box-sizing: border-box;
}


.dima-seccion-card strong {
  display: block;
  margin-bottom: 6px;
}


.dima-seccion-card p {
  margin: 0;
  color: #555555;
}


.dima-seccion-label {
  color: #0065a2;
  font-weight: 600;
  font-size: 19px !important;
  display: block;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}




/* =========================================
   CURSOS
   ========================================= */


.dima-cursos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 15px;
}


.dima-curso {
  border: 1px solid #0065a2;
  color: #555555;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 20px !important;
  font-weight: 500;
  box-sizing: border-box;
}




/* =========================================
   RESULTADOS
   ========================================= */


.dima-resultados-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 15px;
}


.dima-resultado-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px;
  text-align: center;
  background-color: #ffffff;
  box-sizing: border-box;
}


.dima-resultado-card p {
  margin: 0;
  color: #555555;
}


.dima-resultado-label {
  color: #0065a2;
  font-weight: 600;
  font-size: 20px !important;
  display: block;
  margin-bottom: 8px;
}




/* =========================================
   CONTACTO
   ========================================= */


.dima-section-contacto p {
  margin: 6px 0;
  font-size: 22px !important;
  color: #333333;
  line-height: 1.6;
}


.dima-section-contacto a {
  color: #0065a2;
  text-decoration: underline;
}


.dima-section-contacto a:hover {
  color: #004b79;
}




/* =========================================
   TABLETS
   ========================================= */


@media (max-width: 768px) {


  .dima-grid-50-50,
  .dima-secciones-grid,
  .dima-resultados-grid {
    grid-template-columns: 1fr;
  }


  .dima-section {
    margin-bottom: 35px;
  }


  .dima-section h2 {
    font-size: 1.92rem !important;
  }


  .dima-section-bienvenida h2 {
    font-size: 2.16rem !important;
  }


  /* Buscador */


  .buscador-wrapper {
    width: 100%;
    max-width: 500px;
  }


  /* Resultados */


  .dima-resultados-grid {
    gap: 12px;
  }
}




/* =========================================
   TELEFONOS
   ========================================= */


@media (max-width: 480px) {


  .dima-wrapper {
    padding: 0 12px;
  }


  .dima-section {
    margin-bottom: 30px;
  }


  .dima-section h2 {
    font-size: 1.68rem !important;
  }


  .dima-section-bienvenida h2 {
    font-size: 1.92rem !important;
    margin-top: 20px;
  }

  /* Buscador */


  .dima-section-buscador {
    margin-bottom: 25px !important;
  }


  .dima-section-buscador p {
    font-size: 18px !important;
    line-height: 1.5;
  }


  .buscador-wrapper {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }


  #buscador-carne {
    width: 100%;
    max-width: 350px;
  }


  .buscador-wrapper button {
    width: 100%;
    max-width: 350px;
  }


  .buscador-card {
    width: 100%;
    padding: 16px;
  }




  /* Cards */


  .dima-cards-grid {
    grid-template-columns: 1fr;
  }


  .dima-card {
    padding: 20px 15px;
  }




  /* Secciones */


  .dima-secciones-grid {
    grid-template-columns: 1fr;
  }


  .dima-seccion-card {
    padding: 16px;
  }




  /* Resultados */


  .dima-resultados-grid {
    grid-template-columns: 1fr;
  }


  .dima-resultado-card {
    padding: 16px;
  }




  /* Botones */


  .dima-links-group {
    flex-direction: column;
    gap: 8px;
  }


  .dima-btn-link {
    width: 100%;
    margin: 0;
    text-align: center;
  }




  /* Cursos */


  .dima-cursos {
    gap: 8px;
  }


  .dima-curso {
    font-size: 17px !important;
    padding: 6px 13px;
  }




  /* Contacto */


  .dima-section-contacto p {
    font-size: 18px !important;
    line-height: 1.5;
  }
}




/* =========================================
   TELEFONOS MUY PEQUEÑOS
   ========================================= */


@media (max-width: 360px) {


  .dima-wrapper {
    padding: 0 10px;
  }


  .dima-section h2 {
    font-size: 1.56rem !important;
  }


  .dima-section-bienvenida h2 {
    font-size: 1.74rem !important;
  }

  .dima-card,
  .dima-seccion-card,
  .dima-resultado-card {
    padding: 14px 12px;
  }


  .dima-curso {
    font-size: 16px !important;
    padding: 5px 11px;
  }
}
