:root {
  --orange: #e9692c;
  --light-orange: #f7954e;
  --white: #fff;
  --bg: #faf9f7;
  --text: #333;
  --hover-bg: none;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', 'Poppins', sans-serif;
  color: var(--text);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 20px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* CABECERA */
.main-header {
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
  color: var(--white);
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(90%, 1100px);
  margin: 0 auto;
}

.logo {
  text-decoration: none;
  color: var(--white);
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0.25rem;
}

.logo p {
  font-weight: 300;
  font-size: 1rem;
}

/* CONTENIDO CENTRAL */
.circle-page {
  flex: 1;
  display: flex;
  align-items: center;
  padding-bottom: 5rem; /* Espacio para el footer fijo */
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* FONDO DINÁMICO */
.circle-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hover-bg) center/cover no-repeat;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  z-index: 0;
}

.circle-page.show-bg::before {
  opacity: 0.35;
}

/* Orbit wrapper */
.orbit-wrapper {
  position: relative;
  width: min(90vh, 750px); 
  height: min(90vh, 750px);
  margin-top: 1rem;
  z-index: 2;
}

/* CÍRCULO CENTRAL */
.center-circle {
  position: absolute;
  width: 28vh;
  height: 28vh;
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--white);
  font-weight: bold;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* BOTONES (ahora <a>) */
.circle-btn {
  position: absolute;
  width: 14vh;
  height: 14vh;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease, background 0.3s ease;
  z-index: 3;
}

.circle-btn:hover {
  background: var(--light-orange);
  transform: scale(1.1);
}

/* FOOTER */
.main-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(90deg, var(--orange), var(--light-orange));
  color: var(--white);
  text-align: center;
  padding: 0.8rem 0;
  font-size: 0.9rem;
  box-shadow: 0 -3px 10px rgba(0,0,0,0.1);
}

/* --- 📱 MEDIA QUERY PARA MÓVILES (Max-Width: 768px) --- */
@media screen and (max-width: 768px) {
  
  /* 1. CONTENEDOR PRINCIPAL */
  .header-inner {
    width: 95%; /* Usar más ancho en pantallas pequeñas */
  }

  /* 2. CÍRCULO y ÓRBITA */
  .orbit-wrapper {
    /* Reducimos el tamaño para móviles */
    width: 90vw; /* 90% del ancho de la vista */
    height: 90vw;
    margin-top: 1rem;
  }
  
  .circle-page {
    /* Permitir que se desplace si el círculo es demasiado grande para la vista */
    overflow-y: auto;
    align-items: flex-start;
    padding-bottom: 5rem; /* Espacio para el footer fijo */
  }

  /* 3. TAMAÑO DE LOS CÍRCULOS */
  .center-circle {
    width: 30vw; /* 30% del ancho de la vista */
    height: 30vw;
    font-size: 1.2rem;
  }

  .circle-btn {
    width: 15vw; /* 15% del ancho de la vista */
    height: 15vw;
    font-size: 0.85rem;
  }

  /* 4. FOOTER */
  .main-footer {
    /* Aseguramos que el pie de página se vea bien en pantallas pequeñas */
    padding: 0.6rem 0;
    font-size: 0.8rem;
  }
}