/* COLORES */
:root {
  --fondo: #0b1220;
  --panel: #141f32;
  --borde: #2b405f;
  --azul: #83b7ff;
  --texto: #f0f5ff;
  --gris: #a8bad3;
}

/* CONFIGURACIÓN GENERAL */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 25px;
}

body {
  background: var(--fondo);
  color: var(--texto);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--azul);
  outline-offset: 5px;
}

.contenedor {
  width: min(1150px, 92%);
  margin: auto;
}

/* ENCABEZADO */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 25px 0;
  border-bottom: 1px solid var(--borde);
}

.marca {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border: 1px solid #537bad;
  border-radius: 12px;
  background: #243d60;
  color: var(--azul);
  font-weight: 900;
}

.marca strong {
  font-size: 15px;
  letter-spacing: 1px;
}

.marca small {
  display: block;
  margin-top: 6px;
  color: var(--gris);
  font-size: 9px;
  letter-spacing: 2px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.boton {
  display: inline-block;
  padding: 12px 18px;
  border: 1px solid #405d83;
  border-radius: 9px;
  background: #1e324f;
  color: #dfecff;
  font-size: 13px;
  font-weight: bold;
  transition: background .2s, transform .2s;
}

.boton:hover {
  transform: translateY(-2px);
  background: #34557f;
}

.boton.azul {
  border-color: var(--azul);
  background: var(--azul);
  color: #10213a;
}

.boton.azul:hover {
  background: #b0d1ff;
}

/* PORTADA */
.portada {
  position: relative;
  overflow: hidden;
  margin: 35px 0 45px;
  padding: 60px 45px;
  border: 1px solid #385477;
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 95% 10%,
      #365e91 0%,
      transparent 45%
    ),
    linear-gradient(
      120deg,
      #192b44,
      #101b2c
    );
}

.etiqueta {
  color: var(--azul);
  font-size: 10px;
  font-weight: bold;
  letter-spacing: 3px;
}

h1 {
  margin: 22px 0;
  font-size: clamp(45px, 7vw, 80px);
  line-height: 1.02;
  letter-spacing: -3px;
}

h1 span {
  color: var(--azul);
}

.portada p {
  max-width: 520px;
  color: #bdcee5;
  font-size: 15px;
  line-height: 1.9;
}

.portada-botones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* TÍTULOS DE LAS SECCIONES */
.seccion {
  margin-bottom: 50px;
}

.titulo-seccion {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 25px;
}

.numero {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  border: 1px solid #45658f;
  border-radius: 11px;
  background: #213857;
  color: var(--azul);
  font-size: 13px;
  font-weight: bold;
}

h2 {
  font-size: 28px;
  letter-spacing: -1px;
}

.titulo-seccion p {
  margin-top: 6px;
  color: var(--gris);
  font-size: 12px;
}

/* SECCIÓN SOBRE MÍ (BIOGRAFÍA) */
.perfil-biografia {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 17px;
  background: var(--panel);
  padding: 24px;
}

.perfil-foto img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #355075;
  background: #213550;
}

.perfil-texto {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.perfil-texto h3 {
  font-size: 26px;
  margin-bottom: 14px;
}

.perfil-texto p {
  color: var(--gris);
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 14px;
}

.perfil-texto p strong {
  color: var(--texto);
}

.datos-personales {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.dato {
  padding: 12px 14px;
  border: 1px solid #2b4263;
  border-radius: 10px;
  background: #0f1828;
}

.dato small {
  display: block;
  color: var(--azul);
  font-size: 9px;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-bottom: 5px;
}

.dato strong {
  font-size: 13px;
  color: var(--texto);
}

/* GALERÍA Y TARJETAS */
.galeria {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.tarjeta {
  overflow: hidden;
  border: 1px solid var(--borde);
  border-radius: 17px;
  background: var(--panel);
  transition: transform .2s, border-color .2s;
}

.tarjeta:hover {
  transform: translateY(-5px);
  border-color: #729dd6;
}

.tarjeta img {
  display: block;
  width: 100%;
  height: 330px;
  object-fit: cover;
  background: #213550;
  color: #d6e6ff;
}

.tarjeta video {
  display: block;
  width: 100%;
  height: 300px;
  background: #050a12;
  object-fit: contain;
}

.informacion {
  padding: 22px;
}

.tipo {
  display: inline-block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 6px 9px;
  border: 1px solid #45658b;
  border-radius: 6px;
  background: #243c5a;
  color: #bad6ff;
  font-size: 9px;
  letter-spacing: 1px;
}

.informacion h3 {
  margin-bottom: 10px;
  font-size: 21px;
  overflow-wrap: anywhere;
}

.informacion p {
  color: var(--gris);
  font-size: 13px;
  line-height: 1.8;
}

/* PIE DE PÁGINA */
footer {
  padding: 28px 0;
  border-top: 1px solid var(--borde);
  text-align: center;
}

footer strong {
  color: var(--azul);
  font-size: 13px;
  letter-spacing: 2px;
}

footer p {
  margin-top: 10px;
  color: var(--gris);
  font-size: 12px;
  line-height: 1.8;
}

footer a {
  display: inline-block;
  margin-top: 18px;
  color: var(--azul);
  font-size: 12px;
}

footer a:hover {
  text-decoration: underline;
}

/* DISEÑO PARA CELULAR Y TABLET */
@media (max-width: 800px) {
  .perfil-biografia {
    grid-template-columns: 1fr;
  }

  .perfil-foto img {
    height: 300px;
  }
}

@media (max-width: 650px) {
  header {
    justify-content: center;
  }

  nav {
    justify-content: center;
  }

  .portada {
    padding: 38px 24px;
  }

  h1 {
    font-size: 54px;
  }

  .galeria,
  .datos-personales {
    grid-template-columns: 1fr;
  }

  .tarjeta img {
    height: 300px;
  }

  .tarjeta video {
    height: 240px;
  }

  h2 {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}