/* VARIABLES CSS ULTRA MINIMALISTAS */
:root {
  /* Colores */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  
  --color-amarilloso: linear-gradient(135deg, #8686d8, #ffd880);

  --secondary: #7c3aed;
  --accent: #06b6d4;
  
  --success: #10b981;
  --warning: #f59e0b;
  --error: #ef4444;
  
  /* Grises */
  --white: #ffffff;
  --black: #000000;
  --gray-100: #f3f4f6;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
  
  /* Semánticos */
  --bg: var(--white);
  --text: var(--gray-900);
  --text-light: var(--gray-500);
  --border: var(--gray-300);
  
  /* Tipografía */
  --font: system-ui, -apple-system, sans-serif;
  --font-code: monospace;
  
  /* Espaciado (basado en 4px) */
  --xs: 0.25rem;   /* 4px */
  --sm: 0.5rem;    /* 8px */
  --md: 1rem;      /* 16px */
  --lg: 1.5rem;    /* 24px */
  --xl: 2rem;      /* 32px */
  --2xl: 3rem;     /* 48px */
  
  /* Bordes */
  --radius: 1rem;
  --radius-lg: 1rem; /* 16px */
      
  
  /* Sombras */
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0px 10px 15px -3px rgba(0, 0, 0, 0.1);
  --light:  0px -2px 10px 0 rgba(255, 255, 255, 0.1);
  --light-lg:  0px -2px 8px 2px rgba(255, 255, 255, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* Otros */
  --color-bg-e-navbar: #1a1a2e;
  --height-header: 50px;
}

/* Tema oscuro - Se activa con [data-theme="dark"] */
[data-theme="dark"] {
  --color-bg: #1a1a2e;  
  --color-bg-primary: linear-gradient(150deg, #1a1a2e 15%, #282848 100%);
  --color-bg-secondary: #1f2937;
  --color-text: rgba(237, 226, 226, 0.866);
  --color-text-secondary: rgba(200, 200, 200, 0.7);
  --color-primary: #3b82f6;
  --color-secondary: #8b5cf6;
  --color-border: #374151;
  --color-card: #2d3748;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --logo-url: url('logo-dark.svg');
}

[data-theme="light"] {
  --color-bg: white;
  --color-bg-primary: #c1c1e6;
  --color-bg-secondary: #467cc7;
  --color-text: #1a1a2e;
  --color-text-secondary: rgba(26, 26, 46, 0.7);
  --color-primary: #3b82f6;
  --color-secondary: #8b5cf6;
  --color-border: #374151;
  --color-card: #2d3748;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  --logo-url: url('logo-light.svg');
}

/* Tema especial (opcional) */
[data-theme="blue"] {
  --color-bg: #eff6ff;
  --color-text: #1e3a8a;
  --color-primary: #1d4ed8;
  --color-border: #bfdbfe;
}



*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 70%;
  scroll-behavior: smooth;
  border: 1.5px solid rgba(239, 68, 68, 0.7);
}

body {
  opacity:0;
  cursor:wait;
  min-height: 100vh;
  line-height: 1.5;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1.6rem;
  -webkit-font-smoothing: antialiased;
  background: var(--color-bg-primary);
  color: var(--color-text);
  position:relative;
}

header{
  min-height: var(--height-header);
  position: sticky;
  top: 0;
  z-index: 1000;   
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    background: var(--color-bg-secondary);
    color: var(--text-secondary);
    margin-top: 3rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  margin: 0.2rem 0 1rem 0;
}

h1:not(.no-reboot){
    text-shadow:              
        2px 3px 1px rgba(255, 255, 255, 0.5);
}

#root,
#__next {
  isolation: isolate;
}

/** PERSONALIZADOS CSS **/
           


.btn {
    display: inline-block;
    background: var(--color-bg-primary);
    color: var(--color-text);
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius);;
    text-decoration: none;
    font-weight: 500;
    margin-top: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
    align-self: flex-start;
    margin-right: 6px;
    min-width: 110px;
}

.btn:hover {
    background: var(--color-secondary);
    transform: scale(1.05);
    transition: all 0.2s ease-in-out;
}

/*Efecto vidrio esmerilado opcional */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);    
    border: 1px solid rgba(255, 255, 255, 0.1);
}


.noselect {
  -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}


a:not(.no-reboot) {
  color: var(--color-text);
  transition: color 0.2s;
}

a:not(.no-reboot):hover {
  color: var(--color-text-secondary);
}

a:not(.no-reboot)[target="_blank"]::after {
  content: " ↗";
  font-size: 0.9em;
}

ul:not(.no-reboot) {
  /* list-style-position: inside;  */
  /* list-style-type: circle; */
  
  display: flex;
  flex-direction: column;
  gap: var(--xs);  
  list-style: none;
  padding-left: 0;
}

li:not(.no-reboot){
   text-indent: -1.5em;     /* Mueve la primera línea a la izquierda */
    padding-left: 1.5em;
    color: var(--color-text); 
}

li:not(.no-reboot)::before {
    content: "•";
    display: inline-block;
    width: 1.5em;            /* Ancho fijo para el bullet */
    text-indent: 0;          /* Resetea la sangría para el bullet*/
}


table:not(.no-reboot) {
    width: 100%;
    border-collapse: collapse;
    margin: var(--md) 0;
    color: var(--color-text);
    table-layout: auto;
}

th:not(.no-reboot) {
    padding: var(--sm);
    text-align: left;
    background: var(--color-bg-primary);
    color: var(--color-text);
    border-bottom: 2px solid var(--primary-dark);
}

td:not(.no-reboot) {
    padding: var(--lg);
    border-bottom: 1px solid var(--border);       
}

tr:not(.no-reboot):hover {
    background: var(--color-bg-primary);
}

.opacity-60 {
    opacity: 0.6;
}

.no-decoration {
    text-decoration: none;
     list-style: none;
}

.grid-full-width {
    grid-column: 1 / -1;
}

.svh-80{
    height: 80svh;
}

.bg-black {
    background-color: var(--black);
}

.relative {
    position: relative;
} 

.absolute {
    position: absolute;
}

.width-100 {
    width: 100%;
}

.height-100 {
    height: 100%;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

