:root {
  /* Cafés más vivos y cálidos */
  --novary-900: #6B3A2A;
  --novary-800: #6e3d2a;
  --novary-700: #c2895a;

  /* Cremas suaves para fondos */
  --novary-600: #ffb476;
  --novary-500: #F2C185;
  --novary-300: #f8f0ea;
  --novary-200: #fcf5ee;
  --novary-100: #FFFFFF;

  --novary-white: #FFFFFF;

  /* Acentos naranjas suaves */
  --novary-accent: #E88A3D;
  --novary-accent-soft: #F7CFA8;

  --novary-header: rgba(247, 207, 168, 0.66);

  /* Compatibilidad */
  --color-primario: var(--novary-900);
  --color-secundario: var(--novary-800);
  --color-acento: var(--novary-accent);

  --novary-600-rgb: 255, 180, 118;

  /* Fondos */
  --bg: var(--novary-300);
  --bg-card: var(--novary-white);

  /* Texto */
  --texto-principal: #3A2418;
  --texto-muted: #7A5C4A;

  /* Layout */
  --max-width: 1200px;
  --gap: 1rem;
  --radius: 10px;

  /* Sombras suaves */
  --shadow: 0 10px 30px rgba(107, 58, 42, 0.08);

  /* Glass / blur cálido */
  --glass-alpha: 0.12;
  --glass-border: rgba(255, 255, 255, 0.6);

  /* Glow leve para hover */
  --accent-glow: rgba(232, 138, 61, 0.25);
}

/* =============================== */
/* Estilos globales con imagen de fondo semi-transparente detrás del contenido */
/* =============================== */

* {
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--texto-principal);
  position: relative;
  overflow-x: hidden;
}

html, body {
  margin: 0;
  padding: 0;

  width: 100%;
  height: 100%;
/* overscroll-behavior: none; */
}

body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 120%;
  background: url('../assets/logo.png') no-repeat center center !important;
  background-size: 45%; /* ajusta el tamaño */
  opacity: 0.15;
  z-index: -1;
}

::-webkit-scrollbar {
  width: 0px;
}

/* =============================== */
/* Header sólido arriba con título blanco */
/* =============================== */
header {
  background: var(--novary-accent-soft);
  color: var(--novary-white);
  border-bottom: var(--novary-800) 2px solid;
  padding: 20px; /* igual arriba y abajo */
  padding-top: 30px;
  text-align: center;
  position: relative;
  z-index: 1;
}

header h1, header h2, header p {
  margin: 0; /* elimina márgenes por defecto */
  line-height: 1.2; /* ajusta la altura de línea */
}

.title-white {
  font-size: 4rem;
  align-self: center;
  justify-content: center;
  font-weight: bold;
  background: linear-gradient(135deg, #7a3b25 0%, #e88a3d 48%, #f4c28a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

@media (max-width: 900px) {
  header {
    padding-top: 50px !important;
  }
}

@media (max-width: 750px) {
  .title-white { font-size: 3rem; }
}

@media (max-width: 550px) {
  .title-white { font-size: 2rem; }
}

@media (max-width: 400px) {
  .title-white { font-size: 1.6rem; }
}

/* =============================== */
/* Descripción del sistema con glass overlay */
/* =============================== */
.description {
  align-self: center;
  border: var(--texto-principal) 1px solid;
  max-width: 1020px;
  margin: 20px 20px 20px;
  text-align: center;
  font-size: 1.1rem;
  color: var(--texto-muted);
  line-height: 1.6;
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.3);
  padding: 20px;
  border-radius: var(--radius);
}

/* =============================== */
/* Sección de funciones */
section {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
}

/* Cards / Funciones */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* por defecto, 2 columnas */
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
}

.one-card {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
}

@media (max-width: 650px) {
  .cards {
    grid-template-columns: 1fr; /* en pantallas pequeñas, 1 columna */
  }
}

.card {
  border: var(--texto-principal) 1px solid;
  background: rgba(255, 255, 255, 0.5);
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(107, 58, 42, 0.2);
}

/* =============================== */
/* Botones */
.btn {
  display: inline-block;
  padding: 12px 18px;
  background: linear-gradient(135deg, var(--novary-accent) 0%, var(--novary-accent-deep) 100%);
  box-shadow: 0 14px 24px rgba(232, 138, 61, 0.3);
  color: var(--novary-white);
  text-decoration: none;
  border-radius: var(--radius);
  cursor: pointer;

  transition: 0.2s ease;
}

.btn:hover {
  background: linear-gradient(135deg, var(--novary-accent-deep) 0%, var(--novary-accent) 100%);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* Botón ghost */
.btn-ghost {
  background: transparent;
  border: 2px solid var(--color-acento);
  color: var(--color-acento);
}

.btn-ghost:hover {
  background: var(--color-acento);
  color: var(--novary-white);
  box-shadow: 0 0 15px var(--accent-glow);
  transform: translateY(-2px);
}

/* =============================== */
/* Footer siempre abajo */
.footer {
  align-items: center;
  background: var(--novary-accent-soft);
  border-top: 1px solid var(--novary-900);
  color: var(--novary-white);
  text-align: center;
  margin-top: auto;
  padding: 10px;
}

.footer p {
    width: min(920px, calc(100% - 2.5rem));
    margin: 30px auto;
    padding: 30px !important;
    box-sizing: border-box;
    text-align: center;
    color: var(--texto-principal) !important;
  }

footer {
  display: flex;
  justify-content: center;
}

/* =============================== */
/* Titles con degradado */
.title {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #7a3b25 0%, #e88a3d 48%, #f4c28a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  text-align: center;
} 

.description p,
.description li {
  text-align: justify;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--texto-muted); /* mantiene la coherencia con el estilo de la descripción */
}

.center-text {
  text-align: center !important;
}

button.menu {
  left: 3%;
  top: 1%;
  position: fixed;
  border: var(--novary-800) 1px solid;
  display: flex;
  z-index: 12;
  padding: 15px;
  line-height: 1;
  text-align: center;
  justify-content: center;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(245, 210, 171, 0.92)),
    rgba(255, 255, 255, 0.7);
  box-shadow: 0 16px 28px rgba(95, 47, 33, 0.16);
  color: var(--texto-principal);
  width: 100px;
  height: 80px;
  font-weight: 700;
  font-size: 1rem;
  outline: none;

  aspect-ratio: 1/1;

  transition: height 1s ease 1s;
}

button.menu:hover {
  background: var(--novary-accent);
}

button.menu:before {
  align-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  content: 'Navegación';
}

.menuLayout {
  padding-left: calc(3% + 30px);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: var(--texto-principal) 1px solid;
  border-radius: 20px;
  width: 100%;
  height: 99%;

  display: flex;
  align-items: center;
  justify-content: center;

  flex-wrap: nowrap;
  flex-direction: column;

  transform: translateX(-110%);

  pointer-events: none;

  transition: height 1s ease 1s;
}

.menuLayoutContainer {
  overflow: hidden;
  position: fixed;
  display: flex;
  width: 94%;
  height: 96%;
  top: 1%;
  left: 3%;
  z-index: 11;
  transform: translateY(1%);
  pointer-events: none;
}

.extendButton {
  width: 18px !important;
  height: 98% !important;
  transition: height 1s ease 0s !important;
}

.extendButton:before {
  content: 'X' !important;
}

.retractButton {
  height: 60px !important;
  transition: height 1s ease 1s !important;
}

.extendLayout {
  transform: translateX(0px) !important;
  transition: transform 1s ease 1s !important;
  pointer-events: all !important;
}

.retractLayout {
  transform: translateX(-110%) !important;
  transition: transform 1s ease 0s !important;
  pointer-events: none !important;
}

@media (min-width: 1400px) {
  button.menu:before {
    width: 28px;
    height: 2px;
  }
  button.menu {
    font-size: 1.3rem;
    width: 138px;
    padding: 7px;
    height: 100px;
  }
  .retractButton {
    height: 100px !important;
  }
}

@media (max-width: 900px) {
  button.menu:before {
    width: 18px;
    height: 2px;
  }
  button.menu {
    padding: 7px;
    height: 30px;
    border-radius: 7px;
  }
  .retractButton {
    height: 30px !important;
  }
}

@keyframes extendButton {
  from {
    height: 1%;
  } to {
    height: 98%;
  }
}

@keyframes openLayout {
  from {
    transform: translateX(100%);
  } to {
    transform: translateX(0px);
  }
}

@keyframes retractButton {
  from {
    height: 98%;
  } to {
    height: 1%;
  }
}

@keyframes closeLayout {
  from {
    transform: translateX(0px);
  } to {
    transform: translateX(100%);
  }
}

.menuLayout a {
  padding: clamp(8px, 2vw, 20px);
  border: var(--texto-principal) 1px solid;
  background: var(--novary-accent-soft);
  color: var(--texto-principal);
  min-width: 100px;
  width: 80%;

  max-height: 100px;
  max-width: 600px;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 1.2rem;
  font-weight: 400;
  text-decoration: none;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  margin: 5px 20px 5px 20px;
  flex: 1 1 40px;

  transition: 0.3s;
}

.menuLayout a:hover {
  background: var(--novary-accent);
  color: var(--novary-white);
  border: var(--novary-accent) 1px solid;
  transform: scale(0.8);
}

.menuLayout a.active {
  background: var(--novary-accent) !important;
  color: var(--novary-white) !important;
  border: var(--novary-accent) 1px solid !important;
}

.menuLayout a.main-link {
  color: var(--novary-100) !important;
  background: var(--novary-900) !important;
}

.menuLayout a.main-link:hover {
  background: var(--novary-white) !important;
  color: var(--novary-accent) !important;
  border: var(--novary-accent) 1px solid;
  transform: scale(0.8);
}

/* =============================== */
/* Lists simples y elegantes */
/* =============================== */

ul {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0;
}

ul li {
  position: relative;

  padding: 12px 16px 12px 42px;
  margin-bottom: 10px;

  border-radius: 12px;

  background: rgba(255, 255, 255, 0.35);

  border: 1px solid rgba(107, 58, 42, 0.12);

  color: var(--texto-principal);

  line-height: 1.5;

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border 0.2s ease;
}

/* Puntito/acento */
ul li::before {
  content: '';

  position: absolute;

  left: 16px;
  top: 50%;

  width: 10px;
  height: 10px;

  border-radius: 50%;

  background: var(--novary-accent);

  transform: translateY(-50%);

  box-shadow: 0 0 10px var(--accent-glow);
}

ul li:hover {
  background: rgba(255, 255, 255, 0.55);

  border-color: rgba(232, 138, 61, 0.25);

  transform: translateX(4px);
}

/* =============================== */
/* Navegacion global */
/* =============================== */

header.site-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--novary-accent-soft);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 58, 42, 0.18);
  top: 0;
  z-index: 10;
}

.site-nav {
  width: min(1120px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.site-nav .nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(107, 58, 42, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--texto-principal);
  text-decoration: none;
  font-weight: 700;
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    box-shadow 0.22s ease,
    color 0.22s ease;
}

.site-nav .nav-link:hover {
  background: rgba(232, 138, 61, 0.92);
  color: var(--novary-white);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(107, 58, 42, 0.14);
}

.site-nav .nav-link.active {
  background: linear-gradient(135deg, #7a3b25 0%, #e88a3d 100%);
  color: var(--novary-white);
  box-shadow: 0 14px 28px rgba(107, 58, 42, 0.16);
}

.hero-shell {
  width: min(1080px, calc(100% - 2.5rem));
  margin: 2.2rem auto 0;
  text-align: center;
}

.hero-shell .title-white,
.hero-shell .title {
  margin-top: 0;
}

.hero-shell .slogan {
  margin: 0 auto;
  max-width: 760px;
  font-size: 1.08rem;
  color: var(--texto-muted);
  line-height: 1.6;
}

@media (max-width: 720px) {
  header.site-header {
    padding: 1rem;
  }

  .site-nav {
    gap: 0.6rem;
  }

  .site-nav .nav-link {
    min-width: 0;
    flex: 1 1 140px;
  }

  .hero-shell {
    width: min(100%, calc(100% - 1.5rem));
  }

  footer.site-footer::before {
    left: 1rem;
    right: 1rem;
  }
}
