@import url('https://fonts.googleapis.com/css2?family=Alumni+Sans+Inline+One:ital@0;1&family=Bebas+Neue&family=Oswald:wght@400;500;600&family=Inter:wght@300;400;500;600;700&family=Fira+Code:wght@400;500&display=swap');

/* ============================================
   ESTILOS BASE Y RESET
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: #0a0a0f;
  color: #e4e4e7;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
}

::selection {
  background: #6366f1;
  color: #ffffff;
}

/* ============================================
   HEADER
   ============================================ */

header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  border-bottom: 2px solid #6366f1;
  padding: 1.53rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

header h1 {
  font-family: "Alumni Sans Inline One", sans-serif;
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  color: #ffffff;
  letter-spacing: 0.1em;
  text-shadow: 0 0 30px rgba(99, 102, 241, 0.6),
               0 0 60px rgba(99, 102, 241, 0.4);
  margin-bottom: 0.5rem;
  font-weight: 300;
  line-height: 110%;
}


header h1 span {
    color: #ccdfff;
}


header p {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: #a5b4fc;
  margin-bottom: .5rem;
  font-weight: 300;
  letter-spacing: 0.03em;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */

nav {
  margin-top: 2rem;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  display: block;
  padding: 0.75rem 1.5rem;
  color: #e4e4e7;
  text-decoration: none;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  letter-spacing: 0.02em;
}

nav ul li a:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

nav ul li a:active {
  transform: translateY(0);
}

/* ============================================
   MAIN Y SECTIONS
   ============================================ */

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

section {
  background: linear-gradient(135deg, #1a1a2e 0%, #1e1e2e 100%);
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
}

/* ============================================
   TIPOGRAFÍA - HEADINGS
   ============================================ */

h1 {
  font-family: 'Bebas Neue', 'Impact', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
  font-weight: 900;
}

h2 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: #a5b4fc;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 2px solid #6366f1;
  padding-bottom: 0.5rem;
}

section h2 {
  margin-top: 0;
}

h3 {
  font-family: 'Oswald', 'Arial Narrow', sans-serif;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  color: #c7d2fe;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: 0.01em;
}

h4 {
  font-size: 1.35rem;
  color: #e4e4e7;
  margin-bottom: 0.75rem;
  margin-top: 1.25rem;
  font-weight: 600;
}

h5 {
  font-size: 1.15rem;
  color: #e4e4e7;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
  font-weight: 600;
}

h6 {
  font-size: 1rem;
  color: #d4d4d8;
  margin-bottom: 0.5rem;
  margin-top: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ============================================
   PÁRRAFOS Y TEXTO
   ============================================ */

p {
  margin-bottom: 1.25rem;
  color: #d4d4d8;
}

p strong,
p b {
  color: #ffffff;
  font-weight: 700;
}

p em,
p i {
  color: #a5b4fc;
  font-style: italic;
}

p strong em,
p em strong,
p b i,
p i b {
  color: #c7d2fe;
  font-weight: 700;
  font-style: italic;
}

/* ============================================
   ENLACES
   ============================================ */

a {
  color: #818cf8;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

a:hover {
  color: #a5b4fc;
  border-bottom-color: #818cf8;
}

a:active {
  color: #6366f1;
}

p a {
  font-weight: 500;
}

/* ============================================
   LISTAS
   ============================================ */

ul,
ol {
  margin: 1.5rem 0;
  padding-left: 2rem;
}

ul li,
ol li {
  margin-bottom: 0.75rem;
  color: #d4d4d8;
  line-height: 1.7;
}

ul li::marker {
  color: #6366f1;
}

ol li::marker {
  color: #6366f1;
  font-weight: 600;
}

ul ul,
ol ol,
ul ol,
ol ul {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

nav ul,
nav ul li {
  margin: 0;
  padding: 0;
}

/* ============================================
   CÓDIGO
   ============================================ */

code {
  font-family: 'Fira Code', 'Consolas', 'Monaco', monospace;
  background: rgba(99, 102, 241, 0.15);
  color: #c7d2fe;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.9em;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

pre {
  background: #0f0f14;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.3);
}

pre code {
  background: transparent;
  padding: 0;
  border: none;
  color: #e4e4e7;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   BLOCKQUOTE
   ============================================ */

blockquote {
  border-left: 4px solid #6366f1;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(99, 102, 241, 0.05);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #c7d2fe;
}

blockquote p {
  margin-bottom: 0.5rem;
}

blockquote p:last-child {
  margin-bottom: 0;
}

/* ============================================
   IMÁGENES Y FIGURE
   ============================================ */

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

figure {
  margin: 2rem 0;
  background: #0f0f14;
  border: 1px solid #27272a;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

figure img {
  margin-bottom: 0.75rem;
  border-radius: 8px;
}

figcaption {
  color: #a1a1aa;
  font-size: 0.9rem;
  text-align: center;
  font-style: italic;
  padding: 0.5rem;
}

/* ============================================
   TABLAS
   ============================================ */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  background: #0f0f14;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

thead {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

thead th {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
}

th,
td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #27272a;
}

tbody tr {
  transition: background 0.2s ease;
}

tbody tr:hover {
  background: rgba(99, 102, 241, 0.08);
}

tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   FORMULARIOS
   ============================================ */

form {
  margin: 2rem 0;
}

label {
  display: block;
  color: #e4e4e7;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="tel"],
input[type="search"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #0f0f14;
  border: 1px solid #27272a;
  border-radius: 8px;
  color: #e4e4e7;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

input[type="checkbox"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #27272a;
  border-radius: 4px;
  background: #0f0f14;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

input[type="checkbox"]:checked {
  background: #6366f1;
  border-color: #6366f1;
}

input[type="checkbox"]:checked::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #ffffff;
  font-weight: bold;
  font-size: 14px;
}

input[type="checkbox"] + label {
  display: inline-block;
  margin-left: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
}

label input[type="checkbox"] {
  margin-right: 0.5rem;
  vertical-align: middle;
}

input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #27272a;
  border-radius: 50%;
  background: #0f0f14;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  flex-shrink: 0;
}

input[type="radio"]:checked {
  border-color: #6366f1;
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  background: #6366f1;
  border-radius: 50%;
}

input[type="radio"] + label {
  display: inline-block;
  margin-left: 0.5rem;
  margin-bottom: 0;
  cursor: pointer;
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  padding: 0.75rem 2rem;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  background: linear-gradient(135deg, #818cf8 0%, #6366f1 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

button:active,
input[type="submit"]:active,
input[type="button"]:active {
  transform: translateY(0);
}

input[type="reset"] {
  background: #27272a;
  color: #d4d4d8;
}

input[type="reset"]:hover {
  background: #3f3f46;
}

/* ============================================
   HR
   ============================================ */

hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, transparent);
  margin: 3rem 0;
  opacity: 0.5;
}

/* ============================================
   VIDEO E IFRAME
   ============================================ */

video,
iframe {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #27272a;
  display: block;
  margin: 2rem 0;
}

iframe {
  width: 100%;
  min-height: 400px;
}

/* ============================================
   DETALLES Y SUMMARY
   ============================================ */

details {
  background: #0f0f14;
  border: 1px solid #27272a;
  border-radius: 8px;
  padding: 1rem;
  margin: 1.5rem 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  color: #a5b4fc;
  user-select: none;
  transition: color 0.3s ease;
}

summary:hover {
  color: #c7d2fe;
}

details[open] summary {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #27272a;
}

/* ============================================
   MARK
   ============================================ */

mark {
  background: rgba(251, 191, 36, 0.3);
  color: #fbbf24;
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
}

/* ============================================
   ABBR
   ============================================ */

abbr {
  text-decoration: underline dotted;
  cursor: help;
  color: #a5b4fc;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
  header {
    padding: 2rem 1rem;
  }

  main {
    padding: 2rem 1rem;
  }

  section {
    padding: 1.5rem;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    text-align: center;
  }

  table {
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.75rem 0.5rem;
  }
}


h2.ucase{
    text-transform: uppercase;
}

div.form-field{
    display: flex;
    align-items: center;
    gap: 5px;
}

header div.form-field{
    justify-content: center;
}
/* ============================================
   LISTA DE PROYECTOS
   ============================================ */

ul.proyectos {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

ul.proyectos li {
  margin: 0;
}

ul.proyectos li a {
  display: block;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 8px;
  color: #e4e4e7;
  text-decoration: none;
  font-weight: 500;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border-bottom: none;
}

ul.proyectos li a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.3), transparent);
  transition: left 0.5s ease;
}

ul.proyectos li a:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.25) 0%, rgba(99, 102, 241, 0.15) 100%);
  border-color: #6366f1;
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3),
              0 0 0 1px rgba(99, 102, 241, 0.1);
  color: #ffffff;
}

ul.proyectos li a:hover::before {
  left: 100%;
}

ul.proyectos li a:active {
  transform: translateY(-2px) scale(1);
}

/* Versión móvil */
@media (max-width: 768px) {
  ul.proyectos {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
  }

  ul.proyectos li a {
    padding: 0.875rem 1rem;
    font-size: 0.9rem;
  }
}