/* =========================================================================
   DESIGN TOKENS
   Paleta inspirada en la referencia: verde bosque profundo de fondo,
   acento verde lima vibrante y una escuadra metálica plateada-verde
   como elemento de firma visual.
   ========================================================================= */
:root {
  --bg-deep:      #0a3324;
  --bg-mid:       #0f4a34;
  --bg-soft:      #145c3f;
  --lime:         #8fce46;
  --lime-soft:    #b9e56b;
  --metal-1:      #e8f0ea;
  --metal-2:      #9db8a8;
  --text-white:   #ffffff;
  --text-muted:   #c7dbcd;
  --card-glass:   rgba(255, 255, 255, 0.06);
  --card-glass-border: rgba(255, 255, 255, 0.14);

  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;

  --max-width: 560px;
}

/* =========================================================================
   RESET BÁSICO
   ========================================================================= */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-deep);
  color: var(--text-white);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

/* Foco visible accesible para navegación por teclado */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--lime-soft);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* =========================================================================
   FONDO AMBIENTAL
   Curvas suaves radiales que evocan horizontes de campo, ancladas
   detrás del contenido con position fixed.
   ========================================================================= */
.bg-field {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 85% 8%, rgba(255,255,255,0.05) 0%, transparent 45%),
    radial-gradient(circle at -10% 60%, rgba(143,206,70,0.10) 0%, transparent 50%),
    radial-gradient(circle at 110% 95%, rgba(143,206,70,0.08) 0%, transparent 45%),
    linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-soft) 100%);
}

/* =========================================================================
   LAYOUT GENERAL
   ========================================================================= */
.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
}

/* =========================================================================
   PERFIL / HERO
   ========================================================================= */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.profile__frame {
  position: relative;
  width: 176px;
  height: 176px;
  margin-bottom: 28px;
}

.profile__photo {
  width: 176px;
  height: 176px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--bg-soft);
  border: 3px solid rgba(255,255,255,0.12);
}

/* Insignia de verificado sobre la foto de perfil, con anillo que
   simula un recorte sobre el fondo para que no se vea encimada. */
.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-deep);
  border: 3px solid var(--bg-deep);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
}

.verified-badge svg {
  width: 30px;
  height: 30px;
}

/* Escuadras "L" con gradiente metálico plateado-verde: elemento
   distintivo tomado directamente de la referencia visual. */
.bracket {
  position: absolute;
  width: 64px;
  height: 64px;
  border-style: solid;
  border-color: transparent;
  border-image: linear-gradient(135deg, var(--metal-1), var(--lime-soft), var(--metal-2)) 1;
  pointer-events: none;
}

.bracket--tr {
  top: -14px;
  right: -14px;
  border-width: 5px 5px 0 0;
  border-top-right-radius: 18px;
}

.bracket--bl {
  bottom: -14px;
  left: -14px;
  border-width: 0 0 5px 5px;
  border-bottom-left-radius: 18px;
}

.profile__eyebrow {
  margin: 0 0 6px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--lime-soft);
  font-weight: 600;
}

.profile__name {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 2.7rem);
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.profile__bio {
  margin: 0 0 36px;
  max-width: 40ch;
  color: var(--text-muted);
  font-size: 1rem;
}

/* =========================================================================
   BOTONES DE REDES SOCIALES / CONTACTO
   ========================================================================= */
.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: var(--card-glass);
  border: 1px solid var(--card-glass-border);
  backdrop-filter: blur(6px);
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.link-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.25);
  transform: translateY(-2px);
}

.link-btn:active { transform: translateY(0); }

.link-btn__icon {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: var(--lime-soft);
}

.link-btn__icon svg { width: 20px; height: 20px; }

.link-btn__text {
  flex: 1;
  text-align: left;
  font-weight: 600;
  font-size: 0.98rem;
}

.link-btn__arrow {
  flex: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.link-btn:hover .link-btn__arrow {
  transform: translate(2px, -2px);
  color: var(--lime-soft);
}

/* Botón de contacto destacado con acento lima sólido, como la
   tarjeta de fecha en la referencia. */
.link-btn--accent {
  background: linear-gradient(135deg, var(--lime), var(--lime-soft));
  border-color: transparent;
  color: var(--bg-deep);
}

.link-btn--accent .link-btn__icon {
  background: rgba(10, 51, 36, 0.14);
  color: var(--bg-deep);
}

.link-btn--accent .link-btn__arrow { color: var(--bg-deep); }

.link-btn--accent:hover {
  background: linear-gradient(135deg, var(--lime-soft), var(--lime));
  border-color: transparent;
}

/* =========================================================================
   CARRUSEL DE PORTAFOLIO
   ========================================================================= */
.portfolio {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.portfolio__title {
  margin: 0;
  align-self: flex-start;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.carousel {
  position: relative;
  width: 100%;
}

.carousel__viewport {
  width: 100%;
  aspect-ratio: 9 / 16; /* Formato historia de Instagram */
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-glass-border);
  background: var(--card-glass);
}

.carousel__track {
  display: flex;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
  touch-action: pan-y;
}

.carousel__slide {
  flex: 0 0 100%;
  height: 100%;
}

.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--card-glass-border);
  background: rgba(10, 51, 36, 0.55);
  backdrop-filter: blur(6px);
  color: var(--text-white);
  display: grid;
  place-items: center;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__arrow:hover {
  background: var(--lime);
  color: var(--bg-deep);
}

.carousel__arrow svg { width: 20px; height: 20px; }

.carousel__arrow--prev { left: 14px; }
.carousel__arrow--next { right: 14px; }

.carousel__dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.carousel__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.25);
  padding: 0;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.carousel__dot[aria-selected="true"] {
  background: var(--lime);
  transform: scale(1.25);
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
  width: 100%;
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 4px 0; }

.site-footer a {
  color: var(--lime-soft);
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-footer a:hover { border-color: var(--lime-soft); }

/* =========================================================================
   RESPONSIVE — ESCRITORIO
   ========================================================================= */
@media (min-width: 640px) {
  .page { padding: 80px 24px 56px; gap: 64px; }

  /* Mantiene el formato vertical de historia sin que crezca demasiado en pantallas grandes */
  .carousel { max-width: 340px; }
}
