/* Font */
{% assign has_font = false %}
{% for file in site.static_files %}
  {% if file.path.size > 6 %}
    {% assign path_begin = file.path | slice: 0, 6 %}
    {% if path_begin == '/font.' %}
      {% assign has_font = true %}
      @font-face {
        font-family: CustomFont;
        src: url('{{ file.path }}');
      }
    {% endif %}
  {% endif %}
{% endfor %}

/* ==========================
   General Reset & Body
   ========================== */
body {
  background: #0a0a0a; 
  color: #ddd;         
  text-align: center;
  font-family:
    {% if has_font %}
      CustomFont,
    {% endif %}
    {{ site.data.info.font }};
  margin: 0;
  line-height: 1.6;
}

.index-container {
  max-width: 1100px;   
  margin: 0 auto;     
  padding: 3rem 2rem; 
  text-align: left;
}



/* ==========================
   Navigation
   ========================== */
.main-nav {
  padding: 1rem 2rem;
  background: #111;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.main-nav li {
  position: relative;
}

.main-nav li a {
  text-decoration: none;
  color: #c9a7ff;
  font-weight: 600;
  padding: 0.5rem 0.75rem;
  display: block;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav li a:hover {
  color: #fff;
  background: rgba(155, 89, 182, 0.2);
  border-radius: 8px;
}

/* Dropdown default hidden */
.main-nav .dropdown-content {
  display: none;
  position: absolute;
  background: #1c1c1c;
  border: 1px solid #444;
  top: 100%;
  left: 0;
  padding: 0.5rem 0;
  z-index: 1000;
  min-width: 180px;
}

/* Show dropdown on hover */
.main-nav li:hover > .dropdown-content {
  display: block;
}

/* Nested dropdowns to the right */
.main-nav li .dropdown-content li .dropdown-content {
  top: 0;
  left: 100%;
}

/* Dropdown links */
.main-nav .dropdown-content li a {
  padding: 0.5rem 1rem;
  color: #ddd;
}

.main-nav .dropdown-content li a:hover {
  background-color: #333;
}

/* Optional search icon */
.main-nav .search-icon a {
  font-size: 1.2rem;
}

/* ==========================
   Sections
   ========================== */
section {
  width: 100%;
  overflow: hidden;
  font-size: 1.25em;
  padding: 2.5em 0;
  color: #ddd;
}

section > * {
  padding: 0 2vw;
}

.items-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  margin: 1em 0;
}

.item-large {
  flex-grow: 1;
  flex-basis: 26%;
  padding: 0 3.65%;
}

.item-small {
  flex-grow: 0;
  flex-basis: 17%;
  padding: 0 1.5%;
}

/* ==========================
   Typography
   ========================== */
h1 {
  font-size: 3em;
  color: #9b59b6; /* Morado llamativo */
  font-weight: 700;
}

h2 {
  font-weight: bold;
  font-size: 1.5em;
  color: #c9a7ff;
}

/* ==========================
   Tables
   ========================== */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1em 0;
  color: #eee;
}

tbody > tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

tbody > tr:nth-child(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

tr {
  height: 3em;
}

/* ==========================
   Colors & Links
   ========================== */
.tone-dark {
  background: #1c1c1c;
  color: #fff;
}

.tone-dark a {
  color: #c9a7ff;
}

.tone-dark a:active,
.tone-dark a:focus,
.tone-dark a:hover {
  color: #fff;
}

/* ==========================
   Header / Hero
   ========================== */
.header {
  /* Solo fondo degradado, sin imagen */
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7));
  min-height: 55vh;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.header p {
  font-size: calc(0.75em + 2vw);
  margin: 2vh 0 0 0;
  color: #c9a7ff;
}

.header img {
  max-width: 95%;
  margin: 2em auto 0 auto;
}

/* ==========================
   Action links
   ========================== */
.link-action {
  padding: 0.1em 0.3em;
  text-decoration: none;
  position: relative;
  color: #9b59b6;
}

.link-action:after {
  content: '\A';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.link-action:hover:after {
  background: rgba(155, 89, 182, 0.2);
}

.link-action:active:after {
  background: rgba(155, 89, 182, 0.3);
}

/* ==========================
   People
   ========================== */
.person-container {
  display: inline-block;
  margin: 0 0 2em 0;
}

.person-link .person-info {
  opacity: 0.7;
}

.person-link:active .person-info,
.person-link:hover .person-info {
  opacity: 1;
}

.person-image {
  width: 10em;
  height: 10em;
  border-radius: 50%;
  border: 3px solid #9b59b6;
}

.person-info {
  background-color: rgba(255, 255, 255, 0.05);
  margin-top: -0.3em;
  padding: 0.3em 0;
}

.person-first {
  font-weight: 600;
  color: #fff;
}

.person-last {
  opacity: 0.7;
  color: #c9a7ff;
}

/* ==========================
   Newsletter
   ========================== */
.newsletter {
  margin-top: 1em;
}

.newsletter input {
  background: #111;
  border: 1px solid #444;
  color: #eee;
  box-sizing: border-box;
  padding: 0.5rem 0.8rem;
}

.newsletter input[type="email"] {
  box-sizing: border-box;
  width: 18rem;
}

.newsletter input[type="submit"] {
  background: #9b59b6;
  border: none;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter input[type="submit"]:hover {
  background: #8e44ad;
}

.newsletter input[type="submit"]:active {
  background: #732d91;
}

/* ==========================
   Speakers Grid
   ========================== */
.speakers-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem; /* espacio entre tarjetas */
  justify-content: center;
  margin: 2rem 0;
}

.speaker-card {
  flex: 1 1 200px;   /* crece, pero mínimo 200px */
  max-width: 220px;  /* ancho máximo de cada tarjeta */
  text-align: center;
  background: #1c1c1c;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.speaker-card img {
  width: 100%;
  height: auto;
  border-radius: 50%;
  border: 3px solid #9b59b6;
  margin-bottom: 0.5rem;
}

.speaker-card p {
  color: #fff;
  font-weight: 600;
  margin: 0.5rem 0 0 0;
  font-size: 1rem;
}

.speaker-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(155, 89, 182, 0.4);
}
/* ==========================
   Modal Speaker Info
   ========================== */
.modal {
  display: none; /* oculto por defecto */
  position: fixed; /* sobre todo el contenido */
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto; /* scroll si contenido grande */
  background-color: rgba(0,0,0,0.7); /* fondo oscuro semitransparente */
}

.modal-content {
  background-color: #1c1c1c;
  margin: 10% auto; /* centrar vertical y horizontal */
  padding: 2rem;
  border-radius: 12px;
  width: 90%;
  max-width: 500px;
  color: #fff;
  position: relative;
  text-align: left;
  box-shadow: 0 5px 20px rgba(155,89,182,0.5);
}

.modal-content h3 {
  margin-top: 0;
  color: #9b59b6;
}

.modal-content p {
  margin: 0.5rem 0;
}

.modal-content a {
  color: #c9a7ff;
  text-decoration: none;
}

.modal-content a:hover {
  text-decoration: underline;
}

.modal .close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: #fff;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.2s ease;
}

.modal .close:hover {
  color: #ff4081;
}
/* ==========================
   Modal blog post
   ========================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem auto;
  max-width: 1200px; /* límite de ancho de todo el grid */
  padding: 0 1rem;
}

.blog-card {
  background: #1c1c1c;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.7);
}

.blog-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.blog-content {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-content h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: #c9a7ff;
}

.blog-content p {
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1rem;
}

.blog-content .post-date {
  font-size: 0.8rem;
  color: #888;
}

.blog-content .read-more {
  margin-top: auto;
  text-decoration: none;
  color: #fff;
  background: #9b59b6;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-align: center;
  transition: background 0.2s ease;
}

.blog-content .read-more:hover {
  background: #c9a7ff;
  color: #111;
}
.blog-content .post-meta {
  font-size: 0.8rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.blog-content .post-tags {
  margin-bottom: 1rem;
}

.blog-content .post-tags .tag {
  display: inline-block;
  background: #444;
  color: #ccc;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  margin-right: 0.3rem;
  border-radius: 4px;
}

/* ==========================
   hardware
   ========================== */
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr); /* por defecto móviles */
  gap: 2rem;
  margin-top: 2rem;
}

@media (min-width: 768px) {
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr); /* tablets */
  }
}

@media (min-width: 1024px) {
  .hardware-grid {
    grid-template-columns: repeat(4, 1fr); /* siempre 4 columnas en escritorio */
  }
}

.hardware-card {
  background: #1a1a1a;
  border: 1px solid #333;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.2s ease;
}

.hardware-card:hover {
  transform: translateY(-5px);
}

.hardware-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.hardware-content {
  padding: 1rem;
}

.hardware-content h2 {
  margin: 0 0 0.5rem;
  color: #c9a7ff;
}

.hardware-content p {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.hardware-content a.btn {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #c9a7ff;
  color: #000;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.hardware-content a.btn:hover {
  background: #b389ff;
}
