body {
    font-family: sans-serif;
    margin: 0;
    padding: 10px;
    background-color: #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    box-sizing: border-box;
}

header {
    margin-bottom: 30px;
    text-align: center;
}

h1 {
    color: #333;
    font-size: 2.5em;
}

.general-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.video-player-container {
    width: 90%;
    max-width: 85% /*ex:1200px*/;
    margin-bottom: 40px;
    background-color: #000;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    padding-top: 56.25%; 
    height: 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    width: 90%;
    max-width: 100%;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.bovino-item {
    background-color: #e9e9e9;
    max-width: 450px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out;
    text-align: center;
    padding-bottom: 10px;
}

.bovino-item:hover {
    transform: translateY(-5px);
}

.bovino-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

.bovino-item h3 {
    margin: 10px 0 5px;
    color: #555;
    font-size: 1.2em;
}

.bovino-item p {
    margin: 0;
    color: #777;
    font-size: 0.9em;
}

#youtube-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}
#youtube-player iframe {
    width: 100% !important;
    height: 100% !important;
    display: block;
    margin: 0;
    padding: 0;
    border: none;
}

/* --- NUEVOS ESTILOS PARA EL CARRUSEL --- */
#image-carousel-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Oculto por defecto */
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain; /* 'contain' para ver la imagen completa, 'cover' para llenar el espacio */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.carousel-image.active {
    opacity: 1; /* La imagen activa se hace visible */
}
/* --- FIN DE NUEVOS ESTILOS --- */


@supports (aspect-ratio: 16/9) {
    .video-player-container {
        padding-top: 0;
        aspect-ratio: 16 / 9;
        height: auto;
    }
}

.click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    cursor: default;
}
.site-header {
  width: 90%;
  max-width: 100%;
  padding: 12px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.categories-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.categories-nav a {
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #ddd;
  font-size: 0.9rem;
  color: #333;
}

.categories-nav a:hover {
  background: #f5f5f5;
}

.sections-container {
  width: 90%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.category-section {
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px 20px;
  box-shadow: 0 4px 8px rgba(0,0,0,.08);
}

.category-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 14px;
  font-size: 1.2rem;
  color: #333;
  scroll-margin-top: 90px; /* para que al hacer anchor no quede oculto */
  word-break: break-word;  /* por si el nombre de categoría es largo */
}

.category-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: #222;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.category-grid .bovino-item {
  background-color: #f6f6f6;
}