/* Fondo general */
/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background-color: #f9f9f9;
  color: #333;
  padding: 20px;
  text-align: center;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
}


/* Logo */
.logo {
  width: 120px;
  margin-bottom: 20px;
}

/* Títulos */
h1 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #444;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: #555;
}
h4{
  font-size: 1rem;
  padding-top: 5px;
  margin-bottom: 15px;
  color: #555;
  text-align: center;
}
.filters {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

/* Pantallas */
.screen {
  display: none;
  padding: 20px;
}

.screen.active {
  display: block;
}

/* Inputs y selects */
input[type="text"],
select {
  padding: 10px;
  width: 80%;
  max-width: 400px;
  margin: 10px auto;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

/* Botones */
button {
  padding: 10px 20px;
  margin: 10px;
  background-color: #555759;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #005fa3;
}


/* Pantallas */
.screen {
  display: none;
}
.screen.active {
  display: block;
}

/* Resultados */
.result-block {
  margin: 24px 0;
  padding: 16px;
  background: #f8f8f8;
}

.result-title {
  margin: 0 0 12px 0;
  font-size: 1.1rem;
  color: #333;
  text-align: center;
}

.result-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.result-table th,
.result-table td {
  border: 1px solid #e5e5e5;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
}

.result-table th {
  background: #efefef;
  font-weight: 600;
  color: #444;
}

.result-table tbody tr:nth-child(even) {
  background: #fafafa;
}

.pedigree-link {
  text-decoration: none;
  color: #0a66c2;
  font-weight: 600;
}
.pedigree-link:hover {
  text-decoration: underline;
}

/* Para los resultados del buscador individual */


/* Bloque de resultados */
.result-block {
  margin: 30px auto;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  width: 100%;
  text-align: left;
  
}

/* Título del bloque */
.result-block h3 {
  font-size: 1.2rem;
  color: #444;
  margin-bottom: 16px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 6px;
}

/* Elemento individual */
.result-item {
  padding: 12px 16px;
  margin-bottom: 10px;
  background-color: #f9f9f9;
  border-left: 4px solid #0078D4;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}

/* Texto destacado */
.result-item strong {
  color: #0078D4;
  font-size: 1rem;
}

/* Texto general del resultado */
.result-item {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.4;
}

/* Mensaje emergente */
.message-popup {
  position: fixed;
  top: 70%;
  left: 50%;
  transform: translateX(-50%);
  background: #0078D4;
  color: #fff;
  padding: 20px 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 9999;
  font-size: 1rem;
}
#legaltext {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
  font-family: Arial, sans-serif;
}
#site-footer {
  text-align: center;
  font-size: 10px; /* Letras muy pequeñas */
  font-family: Arial, sans-serif;
  padding: 15px;
  color: #333;
}

#site-footer a {
  color: inherit;           /* Hereda el color del texto */
  text-decoration: none;    /* Sin subrayado */
}

/* 🌐 Responsive adjustments for mobile screens */
/* 🌐 Responsive layout: adapt to screen size */
@media screen and (max-width: 1024px) {
  body {
    padding: 15px;
  }

  h1 {
    font-size: 1.8rem;
  }

  h2 {
    font-size: 1.4rem;
  }

  h4 {
    font-size: 1rem;
  }

  .filters {
    flex-wrap: wrap;
    justify-content: center;
  }

  input[type="text"],
  select {
    width: 90%;
    font-size: 1rem;
  }

  button {
    width: auto;
    font-size: 0.95rem;
  }

  .result-block {
    padding: 16px;
    margin: 20px auto;
    width: 100%;
  }

  .result-table {
    display: block;
    overflow-x: auto;
    font-size: 0.9rem;
    width: 100%;
  }

  .result-table th,
  .result-table td {
    white-space: nowrap;
    padding: 8px;
    width: 100%;
  }

  .result-item {
    font-size: 0.9rem;
    padding: 10px;
  }

  #legaltext {
    flex-direction: column;
    font-size: 0.85rem;
    padding: 10px;
  }

  #site-footer {
    font-size: 9px;
    padding: 10px;
  }
}

@media screen and (max-width: 600px) {
  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  .filters {
    flex-direction: column;
    gap: 10px;
  }

  input[type="text"],
  select {
    width: 100%;
    font-size: 0.9rem;
  }

  button {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px;
  }

  .result-block {
    padding: 14px;
    margin: 16px 0;
  }

  .result-table th,
  .result-table td {
    font-size: 0.85rem;
    padding: 6px;
  }

  .result-item {
    font-size: 0.85rem;
    padding: 8px;
  }

  .message-popup {
    width: 90%;
    font-size: 0.85rem;
    padding: 12px;
  }
}
