/* 
   ___  _____    ___
  /   ||  _  |  /   | _
 / /| || |/' | / /| |(_)
/ /_| ||  /| |/ /_| |
\_CONEXIÓN INESTABLE| _
    |_/ \___/     |_/(_)

  https://cicsa.netlify.app/
*/

/* ==== SERVICES ==== */
#services {
  width: 100%;
  background: #810096;
  color: white;
  padding: 8rem 2rem 6rem;
  text-align: center;
}

#services h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

#services h4 {
  font-weight: normal;
  margin-bottom: 3rem;
}

.services-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5rem 12rem;
  max-width: 1300px;
  margin: 0 auto;
}

.service-card {
  width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.service-card p {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 2;
  font-weight: bold;
  color: #fff;
}

.service-card {
  width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border: 2px solid transparent;
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border 0.3s ease;
  cursor: pointer;
}

.service-card img {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.service-card {
  width: 200px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  border: 2px solid transparent;
  border-radius: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    background-color 0.3s ease,
    border 0.3s ease;
  cursor: pointer;
}

.service-card:hover {
  transform: scale(1.05);
  background-color: #06101a6e;
  box-shadow: 0 0 15px 6px #89c0d6;
  border: 2px solid #06101a6e;
}

.service-card img {
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease;
}

.icon-box {
  width: 150px;
  height: 150px;
  background: transparent;
  border: 2px solid #0bbfc8;
  transform: rotate(45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 10px;
}

.icon-box img {
  width: 70%;
  transform: rotate(-45deg);
}

/* ==== MODAL ==== */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  text-align: center;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 20px rgba(155, 33, 164, 0.3);
  position: relative;
  animation: fadeIn 0.4s ease;
}

.modal-content h3 {
  color: #810096;
  margin-bottom: 1rem;
}

.modal-content p {
  font-size: 1rem;
  color: #333;
}

.close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.6rem;
  cursor: pointer;
  color: #810096;
  font-weight: bold;
}

.close:hover {
  color: #550462;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==== Columnas de Especialidades ==== */
.modal-list-columns {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.modal-list-columns ul {
  flex: 1 1 45%;
  padding-left: 1rem;
  list-style: none;
}

.modal-list-columns li {
  margin-bottom: 0.5rem;
  color: #333;
}

/* ==== Lista de Servicios ==== */
.modal-services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 2rem;
  padding: 1rem 0;
  list-style: none;
}

.modal-services-list li {
  font-size: 1rem;
  color: #333;
  display: flex;
  align-items: left;
  gap: 0.5rem;
}

.modal-services-list i {
  color: #0bbfc8;
  font-size: 1.1rem;
  min-width: 20px;
}

/* ==== Lista Inline (para íconos de modalidad) ==== */
.modal-list-inline {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem 0;
  /* más espacio abajo */
  font-weight: bold;
  color: #444;
  font-size: 1rem;
}

.modal-list-inline li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #810096;
}

.modal-list-inline svg,
.modal-list-inline i {
  width: 20px;
  height: 20px;
  display: block;
  flex-shrink: 0;
}