/* =============== VARIABLES =============== */
:root {
  --body-font: "Prompt", sans-serif;
  --white-color: #fff;
  --bg-fallback: #BE82D8;
  
  /* Posiciones Desktop */
  --offset-x: 180px; 
  --offset-y: 120px;
}

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

body {
  font-family: var(--body-font);
  background-color: var(--bg-fallback);
  color: #333;
  /* Flexbox vertical para empujar el footer */
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ocupa al menos toda la pantalla */
  overflow-x: hidden;
}

/* Imagen de fondo fija */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../img/Arquitectura.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

a { text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* El MAIN ocupa el espacio disponible para empujar footer */
.main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding-top: 80px; /* Espacio para el header fijo */
  padding-bottom: 50px;
}

/* =============== CONTENEDOR CENTRAL =============== */
.home-section {
  width: 100%;
  max-width: 1000px;
  position: relative;
}

.home-container {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px; /* Altura mínima en Desktop para que quepan los botones */
}

/* =============== LOGO CENTRAL =============== */
.central-logo {
  position: relative;
  width: 350px;
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10;
}

/* Círculos de fondo del logo */
.home__circle {
  width: 100%;
  height: 100%;
  background-color: hsl(282, 39%, 54%); /* Lila oscuro */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.home__subcircle {
  width: 90%;
  height: 90%;
  background-color: #fff;
  border-radius: 50%;
}

/* Imágenes del logo */
.logo-img-main {
  position: absolute;
  width: 280px;
  z-index: 12;
}

.logo-img-decor {
  position: absolute;
  width: 280px;
  z-index: 12;
  opacity: 0;
  animation: fadeIn 2s ease forwards 1s;
}

@keyframes fadeIn { to { opacity: 1; } }


/* =============== BOTONES (ESTILO GENERAL) =============== */
/* =============== BOTONES (ESTILO NUEVO) =============== */

/* 1. Contenedor del Botón (Reset) */
.category-btn {
  display: flex;
  flex-direction: column; /* Por defecto: Icono arriba, Texto abajo */
  align-items: center;
  justify-content: center;
  gap: 15px; /* Espacio entre la bola y la pastilla */
  background: transparent; /* Quitamos el fondo cuadrado blanco anterior */
  box-shadow: none;        /* Quitamos la sombra cuadrada anterior */
  padding: 0;              /* Sin relleno extra */
  border-radius: 0;
  cursor: pointer;
  z-index: 20;
  width: auto; /* Dejamos que el ancho se adapte */
}

/* Efecto Hover: Crece un poquito todo junto */
.category-btn:hover {
  
  /* Solo dejamos el brillo y el cursor */
  filter: brightness(1.1); 
  cursor: pointer;
}

/* 2. El Icono (La imagen circular) */
.category-icon {
  width: 90px;  /* Tamaño del círculo */
  height: 90px;
  object-fit: contain;
  border-radius: 50%;
  /* Transición suave para el brillo */
  transition: filter 0.3s ease,
}



/* 3. La Etiqueta (La pastilla blanca con texto) */
.category-label {
  background-color: #fff;
  padding: 8px 20px;
  border-radius: 30px; /* Bordes muy redondos */
  font-weight: 800;    /* Letra gorda */
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Sombrita gris suave */
  white-space: nowrap; /* Que el texto no salte de línea */
}


/* =============== ESTILOS ESPECÍFICOS POR CATEGORÍA =============== */

/* --- 1. PERCEPCIÓN (Naranja) - Texto Abajo --- */
.percepcion .category-label {
  color: #F28E61; /* Color del texto */
}
.percepcion .category-icon {
  /* Sombra brillante naranja detrás del círculo */
  filter: drop-shadow(0 10px 15px rgba(242, 142, 97, 0.5));
}

/* --- 2. CUERPO (Verde) - Texto Abajo --- */
.cuerpo .category-label {
  color: #9FC96C;
}
.cuerpo .category-icon {
  filter: drop-shadow(0 10px 15px rgba(159, 201, 108, 0.5));
}

/* --- 3. MEMORIA (Celeste) - Texto ARRIBA --- */
.memoria {
  flex-direction: column-reverse; /* ¡TRUCO! Invierte el orden: Texto arriba, Icono abajo */
}
.memoria .category-label {
  color: #81CFF5;
}
.memoria .category-icon {
  filter: drop-shadow(0 10px 15px rgba(129, 207, 245, 0.5));
}

/* --- 4. CONCIENCIA (Rosa) - Texto ARRIBA --- */
.conciencia {
  flex-direction: column-reverse; /* Texto arriba, Icono abajo */
}
.conciencia .category-label {
  color: #F4A6BB;
}
.conciencia .category-icon {
  filter: drop-shadow(0 10px 15px rgba(244, 166, 187, 0.5));
}


/* =============== POSICIONAMIENTO DESKTOP (PC) =============== */
/* En PC usamos position absolute para que "orbiten" */
/* =============== POSICIONAMIENTO DESKTOP (PC) =============== */
@media (min-width: 769px) {
  
  .mobile-group {
    display: contents;
  }

  .category-btn {
    position: absolute;
    /* Quitamos el ancho automático para que crezca según el icono */
    width: auto; 
  }

  /* --- 1. HACERLOS MÁS GRANDES (Solo en PC) --- */
  .category-icon {
    width: 130px;  /* Antes 90px -> AHORA GIGANTES */
    height: 130px;
  }

  .category-label {
    font-size: 1.2rem; /* Letra más grande */
    padding: 10px 25px; /* Pastilla más grande */
  }

  /* --- 2. ALEJARLOS DEL CENTRO --- */
  /* Aumentamos el primer valor del translate (eje X) para alejarlos */
  
  /* Arriba Izquierda */
  .memoria { 
    top: 50%; 
    left: 50%; 
    transform: translate(-260%, -140%); /* -260% los empuja mucho a la izq */
  }
  
  /* Arriba Derecha */
  .conciencia { 
    top: 50%; 
    right: 50%; 
    transform: translate(260%, -140%); /* 260% los empuja mucho a la der */
  }
  
  /* Abajo Izquierda */
  .percepcion { 
    bottom: 50%; 
    left: 50%; 
    transform: translate(-260%, 140%); 
  }
  
  /* Abajo Derecha */
  .cuerpo { 
    bottom: 50%; 
    right: 50%; 
    transform: translate(260%, 140%); 
  }
}


/* =============== POSICIONAMIENTO MÓVIL (RESPONSIVE REAL) =============== */
/* Aquí cambiamos la estrategia: En vez de volar, usamos Flexbox vertical */

/* =============== POSICIONAMIENTO MÓVIL (AJUSTADO) =============== */
@media (max-width: 768px) {
  
  .main {
    padding-top: 16px;
  }

  .home-container {
    flex-direction: column;
    gap: 1.5rem; /* Menos espacio vertical entre grupos */
    padding-bottom: 2rem;
  }

  /* 1. LOGO CENTRAL MÁS CHICO */
  .central-logo {
    width: 180px;  /* Antes 250px -> Ahora 180px */
    height: 180px;
    order: 2; 
  }
  
  /* La imagen dentro del logo también baja */
  .logo-img-main, .logo-img-decor { 
    width: 140px; /* Antes 200px -> Ahora 140px */
  }

  /* 2. GRUPOS DE BOTONES */
  .mobile-group {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espacio entre botones laterales */
    width: 100%;
    padding: 0 10px; /* Un poco de margen lateral para que no toquen el borde */
  }

  .top-group { order: 1; }
  .bottom-group { order: 3; }

  /* 3. BOTONES MÁS GRANDES */
  .category-btn {
    position: static; 
    transform: none !important; 
    
    /* AUMENTAMOS EL TAMAÑO */
    width: 155px; /* Antes 120px -> Ahora mucho más ancho */
    padding: 15px;
    gap: 5px;
  }
  
  /* AUMENTAMOS EL ICONO */
  .category-icon { 
    width: 80px;  /* Antes 60px -> Ahora 80px */
    height: 80px; 
  }
  
  /* AUMENTAMOS EL TEXTO */
  .category-label { 
    font-size: 1rem; /* Antes 0.9rem -> Ahora 1rem */
    padding: 6px 12px; /* Ajuste de la pastilla blanca */
  }
}