/* HEADER HERO PARA LAPTOPS MOVILES Y TABLETS */
header.heroClaseD {
    background: url("../assets/fondo_headerClaseD.jpg") no-repeat center/cover;
    text-align: center;
    color: white;
    height: 90vh; /* 25% de la altura de la ventana */
    min-height: 120px; /* evita que se haga demasiado pequeño */
    max-height: 600px; /* evita que se haga demasiado grande */
    display: flex;
    flex-direction: column;
    justify-content: center; /* centra verticalmente el contenido */
    padding: 0 20px;
}

/* Espaciado y tamaño en escritorio */
header.heroClaseD h1 {
    margin-top: 0;
    margin-bottom: 0.3rem; /* espacio pequeño entre título y párrafo */
    font-size: 2rem;
}

header.heroClaseD p {
    margin-top: 0;
    font-size: 1.1rem;
}


/* ===== Ajustes para tablets ===== */
@media (min-width: 769px) and (max-width: 1024px) {
    header.heroClaseD {
        height: 50vh;  /* más compacto que desktop, pero más alto que móviles */
        max-height: 450px; /* opcional para evitar que se agrande demasiado */
    }

    header.heroClaseD h1 {
        font-size: 2rem;  /* ajustar tamaño del título */
        margin-bottom: 0.25rem;
    }

    header.heroClaseD p {
        font-size: 1rem;
    }
}

/* ===== Ajustes para móviles ===== */
@media (max-width: 768px) {
    header.heroClaseD {
        height: 30vh;  /* más compacto para móviles */
        max-height: 300px;
    }

    header.heroClaseD h1 {
        font-size: 1.8rem;
        margin-bottom: 0.2rem;
    }

    header.heroClaseD p {
        font-size: 1rem;
    }
}

/* ===== Ajustes para móviles muy pequeños ===== */
@media (max-width: 480px) {
    header.heroClaseD {
        height: 25vh;
        max-height: 250px;
    }

    header.heroClaseD h1 {
        font-size: 1.5rem;
        margin-bottom: 0.15rem;
    }

    header.heroClaseD p {
        font-size: 0.95rem;
    }
}

/*  F I N   -    Espaciado y tamaño en escritorio */

section, h2[id] {
  scroll-margin-top: 30px; /* ajusta según la altura de tu header/nav */
}

.licencia-d {
  padding: 50px 20px;
  background: #f9f9f9;
  font-family: Arial, sans-serif;
  color: #333;
  display: flex;
  
}

.licencia-d .container {
  max-width: 1000px;
  margin: 0 auto;
}

.licencia-d h2 {
  font-size: 32px;
  text-align: center;
  margin-bottom: 20px;
  color: #222;
}

.licencia-d h2 span {
  color: #d32f2f;
}

.licencia-d .intro {
  font-size: 18px;
  text-align: center;
  margin-bottom: 40px;
  line-height: 1.6;
}

.licencia-d .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.licencia-d .card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.licencia-d .card h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: #444;
  display: flex;
  align-items: center;
  gap: 8px;
}

.licencia-d .card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

.licencia-d .card ul li {
  margin-bottom: 10px;
}

.licencia-d .card ul li i {
  color: #28a745; /* verde para checks */
  margin-right: 6px;
}

/* Responsive */
@media (max-width: 768px) {
  .licencia-d .grid {
    grid-template-columns: 1fr;
  }
}
