/* =======================================================
   🎨 CSS GENERAL DE LA WEB
======================================================= */

:root {
  --blanco: #e0e0e0;
  --blanco-2: rgba(255, 255, 255, 0.2);
  --negro: #181818;
  --negro-5: rgba(0, 0, 0, 0.5);
  --negro-7: rgba(0, 0, 0, 0.75);
  --tipo-titular: 'Playfair Display', serif;
  --tipo-principal: 'Inter', sans-serif;
}

@media screen and (prefers-color-scheme: light) {
  :root {
    --blanco: #181818;
    --blanco-2: rgba(0, 0, 0, 0.2);
    --negro: #e0e0e0;
    --negro-5: rgba(255, 255, 255, 0.5);
    --negro-7: rgba(255, 255, 255, 0.75);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--tipo-principal);
  background-color: var(--negro);
  color: var(--blanco);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;  
}

img,
figure,
video {
  max-width: 100%;
  width: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}



h1, h2, h3, h4, h5, h6 {
  font-family: var(--tipo-titular);
  color: inherit;
  font-weight: 600;
  text-align: center;
  margin: 0;
}

h1 {
  font-size: 4em;
}

h2 {
  font-size: 5em;
  line-height: 1em;
  color: #B3B3B3;
  margin: 0 0 2rem;
}

h3 {
  font-size: 2.5em;
  color: #6c63ff;
  margin: 1em 0;
}

h4 {
  font-size: 1.2em;
  font-weight: 700;
  color: #6c63ff;
  margin-bottom: 12px;
  line-height: 1.4;
}

p {
  font-size: 1em;
  text-align: justify;
  margin-bottom: 1.5em;
  line-height: 1.6em;
}

form,
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  background-color: transparent;
  color: inherit;
  display: block;
}

/* =======================================================
   📌 Enlaces y listas
======================================================= */

ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
}

li {
  list-style: none;
  margin: 0 1em;
}

a {
  display: inline-block;
  padding: 1em;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  text-transform: uppercase;
  transition: 0.5s ease;
}

a:hover {
  border-color: var(--blanco);
  text-decoration: underline;
}




/* =======================================================
   SECCIONES
======================================================= */

section {
  width: 100%;
  min-height: 80vh;
  padding: 2em;
  background-color: #FEFEFE;
  box-shadow: 0 8px 16px rgba(0,0,0,0.05);
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 2;
  padding-top: 4em;
}



/* =======================================================
   🖼️ GRIDS
======================================================= */

.grid {
  width: 90%;
  max-width: 40em;
  margin: 2em auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1em;
}

/* =======================================================
   🎯 PERSONALIZACIONES EXTRA (cursor, blobs, etc.)
======================================================= */

#cursor {
  width: 5em;
  height: 5em;
  background-color: var(--blanco);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
}

#cursor.mini {
  transform: scale(0.7);
}
