:root {
  --primary-bg: #142621;
  --secondary-bg: #1c3528;
  --accent-gold: #b29a5b;
  --accent-green: #8e9b67;
  --text-light: #e2e5cb;
  --text-white: #ffffff;
  --shadow-dark: rgba(0, 0, 0, 0.25);
  --shadow-light: rgba(0, 0, 0, 0.09);
  --border-color: rgba(178, 154, 91, 0.08); /* gold tint */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 32px;
  --transition-fast: 0.2s ease;
  --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Poppins', var(--font-sans);
}

/* ==== RESET Y ESTILOS BASE ==== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  background:
    radial-gradient(ellipse 60% 30% at 60% -10%, rgba(178, 154, 91, 0.08) 0%, transparent 80%),
    linear-gradient(135deg, var(--primary-bg) 0%, var(--secondary-bg) 60%, #1a2c20 100%);
  background-attachment: fixed;
  color: var(--text-light);
  transition: all var(--transition-smooth);
  -webkit-font-smoothing: antialiased;
}

/* ==== SECCIONES PREMIUM ==== */
.categorias,
.oferta,
.beneficios {
  padding: 60px 20px;
  background: var(--secondary-bg);
  color: var(--text-white);
  text-align: center;
  position: relative;
  z-index: 1;
}

.categorias::before,
.oferta::before,
.beneficios::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 80% 0, rgba(178,154,91,0.09) 0, transparent 70%),
    radial-gradient(circle at 10% 100%, rgba(142,155,103,0.10) 0, transparent 80%);
  z-index: -1;
}

.categorias h2,
.oferta h2,
.beneficios h2 {
  margin-bottom: 36px;
  font-size: 2.4em;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-gold), var(--text-white));
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--accent-gold);
  letter-spacing: -0.01em;
}

/* ==== CONTENEDOR FLEXIBLE ==== */
.categorias-container,
.oferta-contenido,
.nosotros-grid {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

/* ==== TARJETAS ==== */
.categoria,
.beneficios-grid > div,
.nosotros-grid div {
  background: rgba(20,38,33,0.94);
  padding: 28px 22px 22px 22px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 3px 14px var(--shadow-dark);
  max-width: 330px;
  color: var(--text-white);
  border: 1px solid var(--border-color);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-fast);
}

.categoria:hover,
.beneficios-grid > div:hover,
.nosotros-grid div:hover {
  transform: translateY(-6px) scale(1.025);
  box-shadow: 0 8px 28px var(--shadow-dark);
  border-color: var(--accent-gold);
}

/* ==== IMÁGENES EN TARJETAS ==== */
.categoria img,
.oferta-contenido img,
.nosotros-grid img {
  max-width: 100%;
  border-radius: var(--border-radius-sm);
  border: 2px solid var(--accent-gold);
  box-shadow: 0 2px 12px var(--shadow-light);
  transition: border-color var(--transition-fast);
}
.categoria img:hover,
.oferta-contenido img:hover,
.nosotros-grid img:hover {
  border-color: var(--accent-green);
}

/* ==== BOTONES Y LINKS ==== */
.categoria a,
.oferta .btn,
.legalidad .btn,
.vigilancia .btn {
  display: inline-block;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-green) 80%);
  color: var(--primary-bg);
  padding: 10px 20px;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  border: none;
  box-shadow: 0 2px 8px var(--shadow-light);
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.categoria a:hover,
.oferta .btn:hover,
.legalidad .btn:hover,
.vigilancia .btn:hover {
  background: linear-gradient(90deg, var(--accent-green), var(--accent-gold) 80%);
  color: var(--text-white);
  transform: translateY(-2px) scale(1.04);
}

/* ==== LEGALIDAD ==== */
.legalidad {
  padding: 80px 20px;
  background: linear-gradient(
    rgba(20, 38, 33, 0.96),
    rgba(28, 53, 40, 0.95)
  ),
  url('/IMAGENES/fondo-legalidad.jpg') center center/cover no-repeat;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  text-align: center;
  color: var(--text-white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 16px var(--shadow-dark);
  border: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

/* ==== OFERTA ==== */
.oferta ul {
  list-style: disc;
  padding-left: 24px;
  text-align: left;
}

/* ==== VIGILANCIA ==== */
.vigilancia {
  padding: 60px 20px;
  background: var(--primary-bg);
  color: var(--text-white);
  text-align: center;
  border-radius: var(--border-radius-md);
  box-shadow: 0 3px 14px var(--shadow-dark);
  border: 1px solid var(--border-color);
}

/* ==== BENEFICIOS ==== */
.beneficios .intro {
  font-weight: bold;
  margin-bottom: 18px;
  font-size: 1.2em;
  color: var(--accent-gold);
  font-family: var(--font-display);
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
  text-align: left;
  padding-top: 30px;
}

/* ==== NOSOTROS ==== */
.nosotros {
  padding: 60px 20px;
  background: var(--primary-bg);
  color: var(--text-white);
  text-align: center;
  border-radius: var(--border-radius-md);
  box-shadow: 0 3px 14px var(--shadow-dark);
  border: 1px solid var(--border-color);
  margin-bottom: 60px;
}

/* ==== ANIMACIONES SCROLL ==== */
.aparecer,
.aparecer-izquierda,
.aparecer-derecha {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s var(--transition-smooth), transform 1s var(--transition-smooth);
}
.aparecer.visible {
  opacity: 1;
  transform: translateY(0);
}
.aparecer-izquierda {
  transform: translateX(-50px);
}
.aparecer-izquierda.visible {
  opacity: 1;
  transform: translateX(0);
}
.aparecer-derecha {
  transform: translateX(50px);
}
.aparecer-derecha.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ==== ENLACES EN SECCIONES ==== */
.enlaces a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-light);
  text-decoration: none;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: var(--border-radius-sm);
  font-weight: 500;
  transition: color var(--transition-smooth), background var(--transition-fast), transform var(--transition-fast);
}

.enlaces a:hover {
  color: var(--accent-gold);
  background: rgba(178, 154, 91, 0.08);
  transform: translateX(8px);
}

/* ==== EXTRAS ==== */
.categoria h3,
.beneficios-grid h3,
.nosotros-grid h3 {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-size: 1.22em;
  margin: 16px 0 8px 0;
  font-weight: 700;
}

.legalidad h2 {
  color: var(--accent-gold);
  font-family: var(--font-display);
  font-weight: 700;
}

.vigilancia .btn,
.beneficios .btn {
  margin-top: 12px;
}

::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: var(--primary-bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-gold) 0%, var(--accent-green) 100%);
  border-radius: 8px;
  border: 2px solid var(--primary-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--accent-green) 0%, var(--accent-gold) 100%);
}