@charset "UTF-8";
/* Base */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #e5e7eb;
  background: radial-gradient(1200px 600px at 10% -20%, #083344, transparent 60%), linear-gradient(180deg, #071220, #0b1220 60%);
}

a {
  color: #a022ee;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding: 1rem 1.25rem;
}

.section {
  padding-block: 1.25rem;
  scroll-margin-top: 96px;
} /* evita que el sticky header tape el título */
.section__title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.2rem, 1.5vw + 1rem, 1.6rem);
}

/* Header / nav */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(7, 12, 24, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(8px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo (más grande) */
.brand {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  color: #0b1220;
  font-weight: 800;
  letter-spacing: 0.3px;
  background: linear-gradient(135deg, #ea5ed7, #a022ee);
  box-shadow: 0 0 0 0.35rem rgba(222, 94, 234, 0.14);
}

/* Botón hamburguesa */
.hamburger {
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: #e5e7eb;
  cursor: pointer;
  border-radius: 12px;
  display: inline-grid;
  place-content: center;
  gap: 5px;
  padding: 0 8px;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
}

/* Menú */
.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.menu li {
  margin: 0.25rem 0;
}

.menu a {
  color: #e5e7eb;
  padding: 0.45rem 0.6rem;
  display: inline-block;
  border-radius: 10px;
}

.menu a:hover {
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.menu.is-open {
  display: block;
  position: absolute;
  right: 1rem;
  top: 72px;
  background: rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 0.5rem;
}

@media (min-width: 768px) {
  .hamburger {
    display: none;
  }
  .menu {
    display: flex;
    gap: 0.5rem;
    position: static;
  }
  .menu li {
    margin: 0;
  }
}
/* Hero (info-personal) */
.hero {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  grid-template-columns: 160px 1fr;
}

.avatar {
  width: clamp(120px, 18vw, 180px);
  height: clamp(120px, 18vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #ea5ed7, #a022ee);
}

.hero__txt h1 {
  margin: 0 0 0.25rem;
  font-size: clamp(1.35rem, 2.4vw + 1rem, 2rem);
}

.contact-list {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
}

.contact-list li {
  margin: 0.25rem 0;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: 110px 1fr;
  }
}
/* Cards & layout */
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.card--tone {
  border-color: rgba(221, 34, 238, 0.35);
  background: linear-gradient(180deg, rgba(207, 34, 238, 0.06), rgba(255, 255, 255, 0.02));
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid--2 {
  grid-template-columns: 1fr;
}

.grid--3 {
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
/* Timeline */
.timeline {
  display: grid;
  gap: 1rem;
}

.t-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
}

.t-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #a022ee;
  margin: 0.5rem 0 0 0.2rem;
  box-shadow: 0 0 0 0.25rem rgba(238, 34, 221, 0.2);
}

.t-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
}

.meta {
  color: #a1a1aa;
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
}

.bullets {
  margin: 0.25rem 0 0 1rem;
}

/* Pills y botones */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-left: 0;
  list-style: none;
}

.pill-list li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.09);
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
}

.btn {
  display: inline-block;
  font-weight: 600;
  padding: 0.5rem 0.8rem;
  border-radius: 10px;
  border: 1px solid #a022ee;
}

.btn:hover {
  text-decoration: none;
  background: rgba(238, 34, 187, 0.08);
}

/* Footer centrado */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.footer__in {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 0.75rem;
  text-align: center;
}

#informacion-personal .links a {
  color: #e5e7eb;
}

#informacion-personal .links a:hover {
  color: #a022ee;
}

#skills .pill-list li {
  letter-spacing: 0.2px;
}

#skills h3 {
  margin: 0 0 0.5rem;
}

/* Estilos del formulario de "Contáctame" */
.form-wrap {
  padding: 16px 0;
}

.form-desc {
  margin: 8px 0 16px;
  color: var(--muted, #a9b3d0);
}

/* Reutilizo tu tarjeta .card y agrego un contenedor */
.form-card {
  padding: 16px;
  border-radius: 12px;
  background: #141a2f;
}

.form {
  display: grid;
  gap: 12px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--border, #3f224a);
  background: var(--input-bg, #231d27);
  color: var(--text, #eaf0ff);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  color: #ffb3b3;
  font-size: 14px;
  min-height: 1.2em;
}

.form-success {
  color: #b7f7c5;
  font-size: 14px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #33224a);
  background: var(--brand, #ba79ff);
  color: #0b1020;
  cursor: pointer;
}
.btn:hover {
  filter: brightness(1.05);
}

/* Separación del widget reCAPTCHA */
.g-recaptcha {
  margin-top: 4px;
}

/* ===== FyQ: tarjetas en grid ===== */
.faq-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (min-width: 1024px) {
  .faq-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.faq-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #222a4a);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.faq-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(190, 121, 255, 0.45); /* tono de tu brand */
}
.faq-card .faq-card__head {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 16px;
}
.faq-card .faq-card__icon {
  inline-size: 44px;
  block-size: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(142, 121, 255, 0.25), rgba(142, 121, 255, 0.08));
  border: 1px solid rgba(142, 121, 255, 0.35);
  color: #dedeff;
  font-weight: 800;
  font-size: 20px;
}
.faq-card .faq-card__title {
  margin: 0;
  font: 700 18px/1.25 "Inter", system-ui, sans-serif;
}
.faq-card .faq-card__intro {
  margin: 6px 0 0 0;
  color: var(--muted, #a9b3d0);
  font-size: 14px;
}
.faq-card .faq-card__details {
  border-top: 1px dashed rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}
.faq-card .faq-card__details .faq-card__summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  position: relative;
  font-weight: 700;
  user-select: none;
  outline: none;
}
.faq-card .faq-card__details .faq-card__summary::after {
  content: "Ver";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.8;
  font-weight: 600;
}
.faq-card .faq-card__details[open] .faq-card__summary::after {
  content: "Ocultar";
}
.faq-card .faq-card__details .faq-card__body {
  padding: 0 16px 16px 16px;
  color: var(--text, #eaf0ff);
}
.faq-card .faq-card__details .faq-card__body p {
  margin: 10px 0 0;
  line-height: 1.65;
}

.faq-empty {
  color: var(--muted, #a9b3d0);
  padding: 12px 0;
  grid-column: 1/-1;
}

/* ===== Libros (open.html) ===== */
/* Grid contenedor (si quieres 1 columna apilada tipo timeline) */
#grid {
  display: grid;
  gap: 18px;
}

/* Tarjeta libro: dos columnas en desktop, una en móvil */
.book {
  display: grid;
  gap: 16px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border, #222a4a);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
@media (min-width: 720px) {
  .book {
    grid-template-columns: 220px 1fr; /* imagen izquierda / texto derecha */
    align-items: start;
  }
}
.book:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  border-color: rgba(142, 121, 255, 0.45);
}
.book .book__media {
  inline-size: 100%;
  max-inline-size: 260px; /* no crece infinito en pantallas grandes */
}
.book .book__media img {
  display: block;
  inline-size: 100%;
  block-size: auto;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #0f1530;
}
.book .book__info {
  display: grid;
  gap: 8px;
}
.book .book__title {
  margin: 0;
  font: 800 20px/1.25 "Inter", system-ui, sans-serif;
}
.book .book__meta {
  margin: 0;
  color: var(--muted, #a9b3d0);
  font-size: 14px;
}
.book .book__rating {
  margin: 2px 0 6px;
  letter-spacing: 2px; /* separa las estrellitas */
  font-size: 18px;
}
.book .book__summary {
  margin: 0;
  line-height: 1.65;
}

/* Ajustes responsive: en móvil apila y reduce imagen */
@media (max-width: 719px) {
  .book {
    grid-template-columns: 1fr; /* apilado */
  }
  .book .book__media {
    max-inline-size: 100%;
  }
}
/* ===== Banners de compañer@s ===== */
.banner-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .banner-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.banner {
  display: block;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border, #222a4a);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  aspect-ratio: 16/9; /* mantiene proporción */
  position: relative;
}
.banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
  border-color: rgba(142, 121, 255, 0.45); /* tu brand */
}
.banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/*# sourceMappingURL=styles.css.map */
