@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Estilos generales y variables */
:root {
  --body-bg: #f4f4f4;
  --dark-bg: #343a40;
  --light-text: #f8f9fa;
  --warning-color: #ffc107;
  --border-color: rgba(255, 255, 255, 0.1);
  --background-light: #f9f9f9;
  --background-dark: #000;
  --text-primary: #222;
  --text-secondary: #ccc;
  --text-light: #fff;
  --accent-gold: #ca891f;
  --accent-gold-bright: #e9b439;
  --border-radius-s: 6px;
  --border-radius-m: 8px;
  --border-radius-l: 10px;
}

body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  background-color: var(--body-bg);
  color: var(--text-primary);
}

p {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

h1 {
  font-size: 2.5rem; /* ~40px */
  font-weight: 500;
  line-height: 1.2;
}

h2 {
  font-size: 2rem; /* ~32px */
  font-weight: 500;
  line-height: 1.2;
}

h3 {
  font-size: 1.75rem; /* ~28px */
  font-weight: 500;
  line-height: 1.2;
}

h4 {
  font-size: 1.5rem; /* ~24px */
  font-weight: 500;
  line-height: 1.2;
}

h5 {
  font-size: 1.25rem; /* ~20px */
  font-weight: 500;
  line-height: 1.2;
}

h6 {
  font-size: 1rem; /* ~16px */
  font-weight: 500;
  line-height: 1.2;
}


.navbar {
  background-color: var(--dark-bg);
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand img {
  height: 70px;
  display: block;
  border-radius: 0.5rem;
}

.navbar-toggler {
  display: none;
  /* Oculto por defecto en escritorio */
  background: none;
  border: 1px solid var(--light-text);
  cursor: pointer;
  padding: 0.25rem 0.75rem;
  border-radius: 0.25rem;
  transition: all 0.3s ease;
}

.navbar-toggler-icon {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3e%3cpath stroke='rgba%28248, 249, 250, 0.75%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-collapse {
  flex-grow: 1;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-end;
  /* Alinea los elementos a la derecha */
  width: 100%;
}

.nav-item {
  margin: 0 0.5rem;
}

/* Responsive design para pantallas pequeñas */
@media (max-width: 992px) {
  .nav-container {
    flex-wrap: wrap;
  }

  .navbar-toggler {
    display: block;
    /* Muestra el botón de hamburguesa */
  }

  .navbar-collapse {
    width: 100%;
    max-height: 0;
    /* Oculta el menú por defecto */
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }

  .navbar-collapse.show {
    max-height: 500px;
    /* Expande el menú al mostrar */
  }

  .nav-list {
    flex-direction: column;
    /* Apila los elementos verticalmente */
    align-items: stretch;
    margin-top: 1rem;
  }

  .nav-item {
    margin: 0.5rem 0;
  }

  .nav-item .btn {
    display: block;
    /* Hace que los botones llenen el ancho */
    width: 100%;
  }
}

footer {
  background-color: var(--dark-bg);
}

/* Estilo de los botones/enlaces de navegación */
.btn {
  display: inline-block;
  font-weight: 400;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 0.25rem;
  text-decoration: none;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

/* Botón Primary */
.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}

/* Botón Secondary */
.btn-secondary {
  color: #fff;
  background-color: #6c757d;
  border-color: #6c757d;
}

.btn-secondary:hover {
  color: #fff;
  background-color: #5c636a;
  border-color: #565e64;
}

/* Botón Success */
.btn-success {
  color: #fff;
  background-color: #198754;
  border-color: #198754;
}

.btn-success:hover {
  color: #fff;
  background-color: #157347;
  border-color: #146c43;
}

/* Botón Danger */
.btn-danger {
  color: #fff;
  background-color: #dc3545;
  border-color: #dc3545;
}

.btn-danger:hover {
  color: #fff;
  background-color: #bb2d3b;
  border-color: #b02a37;
}

/* Botón Warning */
.btn-warning {
  color: #000;
  background-color: #ffc107;
  border-color: #ffc107;
}

.btn-warning:hover {
  color: #000;
  background-color: #ffcd39;
  border-color: #ffc720;
}

/* Botón Info */
.btn-info {
  color: #000;
  background-color: #0dcaf0;
  border-color: #0dcaf0;
}

.btn-info:hover {
  color: #000;
  background-color: #31d2f2;
  border-color: #25cff2;
}

/* Botón Light */
.btn-light {
  color: #000;
  background-color: #f8f9fa;
  border-color: #f8f9fa;
}

.btn-light:hover {
  color: #000;
  background-color: #e9ecef;
  border-color: #e9ecef;
}

/* Botón Dark */
.btn-dark {
  color: #fff;
  background-color: #212529;
  border-color: #212529;
}

.btn-dark:hover {
  color: #fff;
  background-color: #1c1f23;
  border-color: #1a1e21;
}

.btn-outline-light {
  color: var(--light-text);
  border-color: var(--light-text);
}

.btn-outline-light:hover {
  color: var(--dark-bg);
  background-color: var(--light-text);
}

.btn-outline-warning {
  color: var(--warning-color);
  border-color: var(--warning-color);
}

.btn-outline-warning:hover {
  color: var(--dark-bg);
  background-color: var(--warning-color);
}

.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  line-height: 1.5;
  border-radius: 0.2rem;
}

.btn-lg {
  padding: 0.5rem 1rem; /* Aumenta el padding para hacerlo más grande */
  font-size: 1.25rem; /* Aumenta el tamaño de la fuente */
  line-height: 1.5; /* Mantiene la altura de línea consistente */
  border-radius: 0.3rem; /* Aumenta el radio de los bordes para coincidir con el tamaño */
}

.btn-block {
  display: block;
  width: 100%;
}

.container {
  /* Ancho predeterminado para dispositivos extra pequeños (xs) */
  width: 100%;
  padding-right: 0.25rem;
  padding-left: 0.25rem;
  margin-right: auto;
  margin-left: auto;
}

/* Anchos máximos para diferentes puntos de interrupción (breakpoints) */

/* Pequeño (sm): >= 576px */
@media (min-width: 576px) {
  .container {
    max-width: 540px;
  }
}

/* Mediano (md): >= 768px */
@media (min-width: 768px) {
  .container {
    max-width: 720px;
  }
}

/* Grande (lg): >= 992px */
@media (min-width: 992px) {
  .container {
    max-width: 960px;
  }
}

/* Extra grande (xl): >= 1200px */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }
}

/* Extra extra grande (xxl): >= 1400px */
@media (min-width: 1400px) {
  .container {
    max-width: 1320px;
  }
}

.card {
  background-color: white;
  display: flex;
  flex-direction: column;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 4px solid white;
  
}
.card > .card-header {
  background-color: var(--light-bg);
  font-size: 1.25rem;
  padding: 0.75rem;
  color: #404040;
}
.card > .card-body {
  box-sizing: border-box;
  padding: 0.75rem;
  flex-grow: 1;
}
.card > .card-footer {
  background-color: var(--light-bg);
  padding: 0.75rem;
}

.table { width: 100%; border-collapse: collapse; }
.table thead tr { border-bottom: 1px solid black; }
.table tbody tr { border-bottom: 1px solid #ccc; }
.table td { padding: 0.25rem 2rem; }


/* ===============================
   CONTENEDOR PRINCIPAL CABALLOS
   =============================== */
/*.thumb-caballos {
  width: 100%;
  object-fit: contain;
}*/

.caballos-contenedor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-wrap: wrap;
}

@media (min-width: 992px) {
  /* Video ocupa ancho completo */
  .caballos-contenedor {
	  flex-direction: row;
  }
}

/* ===============================
   LADO IZQUIERDO: VIDEO + FOTOS
   =============================== */
.caballos-recuadro-imagenes {
  width: 100%;
  background-color: var(--background-dark); /* fondo negro */
  padding: 15px;
  border-radius: var(--border-radius-l);
}

@media (min-width: 992px) {
  .caballos-recuadro-imagenes {
	display: flex;
    flex-direction: column;
    align-items: center;
	flex: 2; /* más ancho que el derecho */
  }
}

.caballos-recuadro-imagenes iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.caballos-logo {
  height: 80px;
  width: 80px;
  object-fit: contain; 
  display: inline-block;
  margin: 0 auto 1rem auto; 
}

/* Fotos secundarias */
.caballos-fotos-secundarias {
  width: 100%;
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  height: 8rem;
  overflow-x: auto;
  overflow-y: hidden;
}

/*
@media (min-width: 992px) {
  .caballos-fotos-secundarias {
    overflow-x: visible;
    overflow-y: visible;
  }
}
*/

.caballos-fotos-secundarias img {
  /*width: 100%;*/
  /*height: auto;*/
  /*object-fit: contain;*/
  height: 100%;
  border-radius: var(--border-radius-s);
  cursor: pointer;
  transition: transform 0.2s ease;
  background-color: var(--background-dark); /* fondo negro detrás de miniatura */
  padding: 5px;
}

.caballos-fotos-secundarias img:hover {
  transform: scale(1.05);
}

/* ===============================
   LADO DERECHO: INFO CABALLO
   =============================== */
.caballos-recuadro-datos {
  flex: 1; /* menos ancho */
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Título del caballo */
.caballos-titulo-sm, .caballos-titulo-lg {
  background-color: var(--background-dark);
  color: var(--accent-gold);
  padding: 12px 18px;
  border-radius: var(--border-radius-m);
}

.caballos-titulo-sm {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.caballos-titulo-lg {
  display: none;
}

@media (min-width: 992px) {
  .caballos-titulo-sm {
    display: none;
  }

  .caballos-titulo-lg {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
}

.caballos-titulo-lote {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--accent-gold-bright);
  display: flex;
  align-items: center;
  gap: 6px;
}

.caballos-titulo-nombre {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  background: linear-gradient(
    to right,
    var(--accent-gold-bright),
    var(--accent-gold)
  );
  background-size: cover;              
  padding: 5px 10px;  
  border-radius: var(--border-radius-s);  
}

.caballos-titulo-registro {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-secondary);
}

/* Descripción y datos técnicos */
.caballos-descripcion {
  font-size: 1rem;
  color: #444;
}

.caballos-datos-tecnicos {
  list-style: none;
  line-height: 1.6;
}

.caballos-tags {
  font-size: 0.9rem;
  color: #555;
}

.caballos-redes {
  display: flex;
}

.caballos-redes a svg {
  width: 28px;
  margin-right: 10px;
}

/* ===============================
   MODAL
   =============================== */
.caballos-modal {
  display: none;
  position: fixed;
  z-index: 999;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.caballos-modal-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 80vh;
  border-radius: var(--border-radius-l);
  box-shadow: 0 0 20px #000;
}

.caballos-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: var(--text-light);
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}

.caballos-modal-close:hover {
  color: #f00;
}

/* ===============================
   SECCIÓN PADRE/MADRE
   =============================== */
.caballos-padre-madre {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 20px;
  margin: 20px 0;
  border-radius: var(--border-radius-s);
  gap: 20px;
  font-family: "Roboto", sans-serif;
  font-weight: 300;
}

@media (min-width: 992px) {
  .caballos-padre-madre {
    flex-direction: row;
  }
}

/* Columna padre y madre */
.caballos-padre,
.caballos-madre {
  flex: 1;
  text-align: left;
}

.imagen-padre {
  width: 100%;
  max-width: 150px;
  border-radius: var(--border-radius-s);
  margin-bottom: 10px;
}

.caballos-padre-madre h2 {
  font-size: clamp(1rem, 2vw, 1.4rem);
  margin-bottom: 10px;
}
