/* =======================================================
   APPSWORT LEARNING – CSS 2 columnas (imagen + texto)
======================================================= */

@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;

  --img-width: 45%;
  --img-max-width: 320px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: var(--font);
  background: #fff;
  color: #000;
}

/* CONTENEDOR GENERAL */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  
}

/* MAIN */
.main {
  flex: 1;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* LOGO */
.cabecera_img {
  width: 300px;
  animation: fadeUp 0.8s ease-out;
}

/* =====================================================
   BLOQUES DE CONTENIDO (2 columnas)
===================================================== */

.bloque {
  width: 100%;
  max-width: 1150px;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;

  gap: 40px;
  margin: 40px 0;
}

/* Imagen */
.imagen {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.imagen_global {
  width: var(--img-width);
  max-width: var(--img-max-width);
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.16);
  object-fit: contain;
  animation: fadeInSlow 1s ease-out;
}



/* VOLVER */
.link-div-volver {
  margin-top: 20px;
}

.link-volver {
  color: var(--azul-claro);
  font-weight: bold;
  text-decoration: none;
}

.link-volver:hover {
  color: var(--azul-oscuro);
}

/* =====================================================
   MÓVIL
===================================================== */
@media (max-width: 900px) {

  .bloque {
    flex-direction: column;
    gap: 25px;
  }

  .imagen_global {
    width: 70%;
    max-width: 260px;
  }

  .descripcion {
    text-align: center;
  }

  .cabecera_img {
    width: 150px;
  }
}

/* =====================================================
   ANIMACIONES
===================================================== */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInSlow {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

/* =====================================================
   BOTÓN VOLVER (estilo botones de métodos)
===================================================== */

.volver-centro {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.btn-volver {
    background: var(--azul-claro);
    color: #fff;
    font-weight: bold;
    padding: 14px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    transition: 0.25s ease;
}

.btn-volver:hover {
    background: var(--azul-oscuro);
    transform: translateY(-2px);
}
