/* =======================================================
   APPSWORT LEARNING – CSS exclusivo para learning.html
   Diseño limpio + 2 columnas + animaciones suaves
   Autor: ChatGPT para Dani :)
======================================================= */

/* -------------------------
   1. VARIABLES / BASE
------------------------- */
@import url("https://fonts.googleapis.com/css2?family=Titillium+Web:wght@400;700&display=swap");

:root {
  --font: "Titillium Web", sans-serif;
  --azul-oscuro: #006996;
  --azul-claro: #009ee2;
  --gris-texto: #555;
  --header-height: 70px;

  --img-width: 50%;      /* 🔥 opción C */
  --img-max-width: 350px;
  --shadow: 0 4px 8px rgba(0,0,0,0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: #fff;
  color: #000;
}

/* -------------------------
   2. CONTENEDOR GENERAL
------------------------- */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}



/* -------------------------
   4. MAIN
------------------------- */
.main {
  flex: 1;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logotipo superior */
.cabecera_img {
  width: 300px;
  animation: fadeUp 0.8s ease-out;
}

/* -------------------------
   4.0 HERO SECTION (Video + Intro)
------------------------- */
.hero {
  width: 80%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  margin: 40px auto;
  text-align: center;
  animation: fadeUp 0.6s ease-out;
}

.hero-col {
  width: 100%;
}

.hero .listado_logo {
  text-align: center;
  margin-bottom: 10px;
}

.hero .listado_logo_img {
  width: 180px;
}

.hero .titulo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 10px;
  text-align: center;
}

.hero .descripcion {
  font-size: 1.05rem;
  color: #444;
  line-height: 1.5;
  max-width: 700px;
  margin: 0 auto 20px;
  text-align: center;
}

.hero .logogoogle {
  text-align: center;
  margin-top: 15px;
}

.hero .video_wrapper {
  width: 100%;
  background: #000;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border: 6px solid #fff;
  position: relative; /* Para el selector de calidad */
}

.quality_container {
  margin-top: 15px;
  background: #f8f9fa;
  padding: 8px 16px;
  border-radius: 12px;
  color: #333;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid #eee;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.quality_container label {
  font-weight: bold;
  font-size: 0.8rem;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quality_container select {
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 4px 8px;
  outline: none;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.quality_container select:hover {
  border-color: #009ee2;
  box-shadow: 0 0 0 2px rgba(0,158,226,0.1);
}

.quality_container select option {
  background: #fff;
  color: #333;
}

.hero #videoPlayer {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  outline: none;
}

/* -------------------------
   4.1 GRID DE CONTENIDO
------------------------- */
.grid {
  width: 100%;
  max-width: 1150px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px 60px;

  margin-top: 30px;
  animation: fadeUp 0.7s ease-out;
}

/* Columna izquierda → imágenes */
.grid .imagen {
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen_global {
  width: var(--img-width);       /* compactas */
  max-width: var(--img-max-width);
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  object-fit: contain;

  animation: fadeInSlow 1s ease-out;
}

.imagen1{
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  max-width: var(--img-max-width);

}



.link-div { margin-top: 10px; }
.link {
  color: var(--azul-claro);
  font-weight: bold;
  text-decoration: none;
}
.link:hover {
  color: var(--azul-oscuro);
}

/* -------------------------
   4.2 MODO MÓVIL
------------------------- */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .imagen_global {
    width: 70%;
    max-width: 260px;
  }

  .cabecera_img {
    width: 150px;
  }
}


/* -------------------------
   6. ANIMACIONES
------------------------- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes fadeInSlow {
  0% { opacity: 0; }
  100% { opacity: 1; }
}