/* =======================================================
   APPSWORT LEARNING – CSS exclusivo para metodouno.html
   Diseño compacto + imagen + texto + navegación
   Autor: ChatGPT para Dani :)
======================================================= */

@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;
}

* {
  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;
   /* espacio footer */
}

/* -------------------------
   MAIN
------------------------- */
.main {
  flex: 1;
  padding: 20px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Contenedor del logo: centrado perfecto */
.cabecera {
  width: 100%;
  display: flex;
  justify-content: center;  /* centra horizontal */
  align-items: center;      /* centra vertical (si el contenedor crece) */
  margin-top: 10px;
}

/* Logotipo superior */
.cabecera_img {
  width: 30%;
  max-width: 420px;
  min-width: 140px;
  margin-top: 0;   /* <-- quitar margen para centrar perfectamente */
  animation: fadeUp .6s ease-out;
}

/* -------------------------
   TÍTULOS
------------------------- */
.titulo {
  text-align: center;
  margin: 15px 0 10px;
}

.titulo-texto {
  
  font-size: 3rem;
  font-weight: bold;
  color: var(--azul-oscuro);
  animation: fadeUp .5s ease-out;
}

.titulo-descripcion {
  margin: 0 auto;
  font-size: 2rem;
  margin-top: 6px;
  line-height: 1.4;
  max-width: 700px;
  color: #444;
  animation: fadeUp .6s ease-out;
}

.img_metodo{
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.5);
  max-width: 300px;

}

.img_metodo_banner{
  max-width: 550px;
}


/* -------------------------
   PLANTILLA (imagen + texto)
------------------------- */
.plantilla {
  width: 100%;
  max-width: 900px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;

  align-items: center;
  margin-top: 25px;

  animation: fadeUp .7s ease-out;
}

/* Imagen */
.imagen {
  width: 50%;
  max-width: 380px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.16);
  justify-self: center;
}

/* Descripción */
.descripcion {
  font-size: 1.5rem;
  line-height: 1.45;
  color: #333;
  text-align: justify;
  max-width: 95%;
}

.descripcion_metodo {
  font-size: 1.5rem;
  line-height: 1.45;
  color: #333;
  text-align: center;
  max-width: 95%;
}

/* -------------------------
   NAVEGADOR (anterior / menú / siguiente)
------------------------- */
.navegador {
  display: flex;
  gap: 20px;
  margin-top: 35px;
}

.menu_metodos .menu_imagen{
  margin-top: 35px;
  width: 200dp;
  max-width: 250px;
}

.navegador-item {
  font-size: 1rem;
  font-weight: bold;
  color: var(--azul-claro);
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}

.navegador-item:hover {
  color: var(--azul-oscuro);
}

.navegador-item.off {
  color: #bbb;
  cursor: default;
}

.cabecera_img {
  width: 300px;
  animation: fadeUp 0.8s ease-out;
}

/* -------------------------
   LISTADO DE MÉTODOS
------------------------- */
.descripcion_metodos {
  width: 100%;
  max-width: 800px;
  margin-top: 5px;               /* compactado */
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;                     /* 🔥 antes 18px */
  animation: fadeUp 0.6s ease-out;
}


/* Títulos de método */
.metodo {
  font-size: 2.5rem;            /* levemente reducido */
  font-weight: bold;
  text-decoration: none;
  color: var(--azul-claro);
  text-align: center;
  transition: color .2s ease-in-out;
}


.metodo:hover { color: var(--azul-oscuro); }

/* -------------------------
   RESPONSIVE
------------------------- */
@media (max-width: 850px) {

  .plantilla {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }

  .imagen {
    max-width: 300px;
  }

  .descripcion {
    text-align: center;
  }

  .navegador {
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
  }

  .cabecera_img {
    width: 30%;        /* Más grande también en móvil */
    max-width: 180px;
    min-width: 120px;
  }

  .titulo-texto {
    font-size: 1.7rem;
  }
}

/* -------------------------
   ANIMACIONES
------------------------- */
@keyframes fadeUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* -------------------------
   NAVEGADOR MODERNO
------------------------- */
.navegador {
  display: flex;
  gap: 18px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.navegador-item {
  padding: 10px 22px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;

  color: #fff;
  background: linear-gradient(135deg, #009ee2, #006996);
  border-radius: 12px;

  box-shadow: 0 4px 10px rgba(0,0,0,0.20);
  transition: 
      transform .12s ease-out,
      box-shadow .12s ease-out,
      background .25s ease-out;
}

/* Hover animado */
.navegador-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.26);
  background: linear-gradient(135deg, #00b8ff, #007fb2);
}

/* Estado apagado */
.navegador-item.off {
  background: #ccc;
  color: #666;
  cursor: default;
  box-shadow: none;
  transform: none !important;
}

.navegador-item.off:hover {
  background: #ccc;
  box-shadow: none;
  transform: none;
}
