/* =====================================================
   RESET Y FUENTE
===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Quicksand", sans-serif;
  background-color: #fff;
}

/* =====================================================
   BANNER (estilo Podcast)
===================================================== */
.header {
    position: relative;
    width: 100%;
    height: 400px;
    background: url('../img/banner-videos.jpg') no-repeat center calc(50% - 270px);
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Capa verde transparente encima del fondo */
.header .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(90, 160, 122, 0.5);
}

/* Contenedor centrado */
.title-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    font-family: 'Quicksand', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Rectángulo que resalta el título */
.rect-box {
  background-color: rgba(90, 160, 122, 0.75); /* Verde más transparente */
  padding: 10px 40px; /* Más bajo (menos altura) */
  border-radius: 40px;
}


/* Texto del título */
.title-text-1 {
    font-size: 2.5rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}



/* =====================================================
   SECCIÓN DE ESTUDIOS (cards modernas)
===================================================== */
.materials-section {
  padding: 100px 8%;
  background-color: white;
  min-height: 70vh;
}

.materials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Cards */
.material-item {
  position: relative;
  background-color: white;
  border: 3px solid #5dccb4;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  min-height: 160px;
}

.material-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(93, 204, 180, 0.3);
  border-color: #489d86;
}

/* Número */
.material-number {
  width: 55px;
  height: 55px;
  background-color: white;
  color: #d64d12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(235, 125, 116, 0.35);
  font-family: "Quicksand", sans-serif;
  flex-shrink: 0;
}

/* Ícono flotante */
.material-icon {
  position: absolute;
  top: -25px;
  right: 25px;
  width: 65px;
  height: 65px;
  background-color: white;
  border: 3px solid #5dccb4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(93, 204, 180, 0.25);
}

.material-icon i {
  font-size: 2.2rem;
  color: #d64d12;
}

/* Texto */
.material-item a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1;
}

.material-item a span {
  color: #2c3e50;
  font-size: 1.35rem;
  font-weight: 600;
  text-align: left;
  line-height: 1.4;
  font-family: "Quicksand", sans-serif;
  transition: color 0.3s ease;
}

.material-item:hover a span {
  color: #489d86;
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
  }

  .materials-section {
    padding: 80px 6%;
  }
}

@media (max-width: 768px) {
  .header {
    background: url("../img/banner-videos.jpg");
    background-size: cover;
  }

  .title-text-1 {
    font-size: 40px;
  }

  .materials-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .material-item {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}
