
/* SERVICIOS : COMPONENTS */

.services_container{
  padding:40px 17%;
  background:var(--background-section);
}

.services_container h1{
  text-align:center;
  margin-bottom:10px;
  color:var(--text-primary);
}

.services_intro{
  text-align:center;
  max-width:700px;
  margin:auto;
  margin-bottom:40px;
  color:var(--text-secondary);
}

.services_grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:25px;
}

/*  CAMBIOS  */

.service_card{
  height: 300px;
  background:var(--background-card);
  border:1px solid var(--border-light);
  border-radius:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
  transition:0.25s;
}

.service_card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.service_card h3{
  color:var(--primary);
}

.service_card p{
  color:var(--text-secondary);
  font-size:0.95rem;
}

.service_card ul{
  padding-left:18px;
  font-size:0.9rem;
  color:var(--text-secondary);
}

.badge{
  margin-top:auto;
  width:max-content;
  padding:4px 10px;
  border-radius:20px;
  font-size:0.8rem;
  font-weight:500;
}

.badge.agenda{
  background:var(--warning);
  color:var(--text-primary);
}

/* PUNTO DE GUARDADO */

/* SERVICIOS : COMPONENTS */

.services_container{
  padding:40px 17%;
  background:var(--background-section);
}

.services_container h1{
  text-align:center;
  margin-bottom:10px;
  color:var(--text-primary);
}

.services_intro{
  text-align:center;
  max-width:700px;
  margin:auto;
  margin-bottom:40px;
  color:var(--text-secondary);
}

/* GRID 4x3 */
.services_grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:25px;
}

/* TARJETA */

.service_card{
  height:300px;
  position:relative;
  overflow:hidden;

  border-radius:10px;
  cursor:pointer;

  transition:0.3s;
}

.service_card:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

/* FRONT */

.front_card{
  position:relative;
  width:100%;
  height:100%;
  z-index:1;
  background-color: var(--primary);
}

.front_card img{
  width:54%;
  height:54%;
  margin: 23%;
  display:block;
  filter: invert(100%);
}

/* overlay oscuro base */
.front_card::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.3);
}

/* título sobre imagen */
.front_card h3{
  position:absolute;
  bottom:15px;
  left:15px;
  color:white;
  z-index:2;
  transition:0.3s;
}

/* CONTENT (overlay) */

.content_card{
  position:absolute;
  inset:0;

  z-index:3;

  display:flex;
  flex-direction:column;
  gap:10px;

  padding:20px;

  opacity:0;
  transform:translateY(20px);

  color:white;

  background:rgba(0,0,0,0.45);
  backdrop-filter:blur(8px);

  transition:all 0.4s ease;
}

/* mostrar overlay */
.service_card:hover .content_card{
  opacity:1;
  transform:translateY(0);
}

/* ocultar título front en hover */
.service_card:hover .front_card h3{
  opacity:0;
}

/* TEXTO */

.content_card h3{
  color: var(--primary);
}

.content_card p{
  font-size:0.95rem;
}

.content_card ul{
  padding-left:18px;
  font-size:0.9rem;
}

/* BADGE */

.badge{
  margin-top:auto;
  width:max-content;
  padding:4px 10px;
  border-radius:20px;
  font-size:0.8rem;
  font-weight:500;
}

.badge.agenda{
  background:var(--warning);
  color:var(--text-primary);
}

.front_card img{
  transition:transform 0.5s ease;
}

.service_card:hover .front_card img{
  transform:scale(1.05);
}



/* SECTIONS */
main .eneterprice {
  display: flex;
  height: fit-content;
  justify-content: space-between;
  background-color: var(--background-section);
  padding: 50px 17%;
  color: var(--gray);
  text-align: right;
  gap: 30px;
}

main .eneterprice .double {height: 750px;}

main .eneterprice img {
  border-radius: 5px;
  height: 300px;
}

/* NEWLETTER */
.newsletter{
  background: var(--background-card);
  padding: 15px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
}

.newsletter h3{
  margin-bottom: 15px;
}

.newsletter-form{
  display: flex;
  gap: 10px;
}

.newsletter input{
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border-light);
  border-radius: 6px;
  outline: none;
  transition: all 0.3s ease;
}

.newsletter input:focus{
  border-color: var(--primary);
}

.newsletter button{
  padding: 10px 15px;
  background: var(--primary);
  color: white;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.newsletter button:hover{
  background: var(--primary-hover);
}

/* MENSAJE */
#feedbackMsg{
  margin-top: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}

/* estados */
.success{
  color: var(--success);
}

.error{
  color: var(--error);
}

#feedbackMsg{
  opacity: 0;
  transform: translateY(5px);
  transition: all 0.3s ease;
}

#feedbackMsg.success,
#feedbackMsg.error{
  opacity: 1;
  transform: translateY(0);
}

.enterprise-alt {
  margin-left: auto;
  justify-self: end;
  margin-top: 20px;
}

.examen_list{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 40px 15vw;
  width: 70vw;
  gap: 20px;
}

.examen_list a {
  padding: 10px 20px;
  text-decoration: none;
  font-weight: bolder;
  background-color: var(--primary);
  color: var(--secondary_font);
}

.examen_list .exam_grid {
  display: grid;
  width: 90%;
  gap: 30px;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-between;
}

.exam_type{
  padding: 15px 15px 20px;
  border: solid 1px var(--primary);
  background-color: var(--background-main);
  border-radius: 10px;
}

.exam_type h2 { color: var(--primary);}

.exam_type ul { 
  padding: 0 25px;
}

.exam_type li {
  list-style:square;
  white-space: none;
}


/* MOBILE VERSION */
@media (max-width: 768px) {

  .services_container {
    padding: 30px;
  }

  .services_grid{
    display: flex;
    flex-direction: column;
  }

  main .eneterprice {
    flex-direction: column;
    height: fit-content;
    padding: 30px 30px;
  }

  .content h1 {
    font-size: 2rem;
  }

  main .eneterprice img {
    height: auto;
    margin-bottom: 20px;
  }

  .newsletter {
    margin: 20px 0;
  }

  .examen_list {
    margin: 40px 8vw;
    width: 84vw;
    gap: 20px;
  }

  .examen_list .exam_grid {
    display: grid;
    width: 100%;
    gap: 30px;
    grid-template-columns: repeat(1, 1fr);
    justify-content: space-between;
  }
}