* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


/*-----FONTS-----*/
@font-face {
  font-family: 'Inter-Light';
  src: url('../fonts/Inter-Light.woff2') format('woff2'),
    url('../fonts/Inter-Light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-ExtraLight';
  src: url('../fonts/Inter-ExtraLight.woff2') format('woff2'),
    url('../fonts/Inter-ExtraLight.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Inter';
  src: url('../fonts/Inter-Regular.woff2') format('woff2'),
    url('../fonts/Inter-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Inter-Bold';
  src: url('../fonts/Inter-Bold.woff2') format('woff2'),
    url('../fonts/Inter-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'LFTEticaSheriff-Regular';
  src: url('../fonts/LFTEticaSheriff-Regular.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-Regular.ttf') format('truetype');
  font-style: normal;
}


@font-face {
  font-family: 'LFTEticaSheriff-SemiBd';
  src: url('../fonts/LFTEticaSheriff-SemiBd.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-SemiBd.ttf') format('truetype');
  font-style: normal;
}

@font-face {
  font-family: 'LFTEticaSheriff-Bold';
  src: url('../fonts/LFTEticaSheriff-Bold.woff2') format('woff2'),
    url('../fonts/LFTEticaSheriff-Bold.ttf') format('truetype');
  font-style: normal;
}

:root {
  --rojo: #C32A26;
  --naranja: #EFA220;
  --marron: #7b3f28;
  --gris: #797878;
  --gris2: #e4e1e1;
  --verde: #1F9562;
  --verde2: #024C36;
  --dorado: #EFB810;
  --max-width: 1200px;

  /* Fuentes */
  --font-principal-regular: 'LFTEticaSheriff-Regular', serif;
  --font-principal-semi: 'LFTEticaSheriff-SemiBd', serif;
  --font-principal-bold: 'LFTEticaSheriff-Bold', serif;
  --font-parrafo: 'Inter', sans-serif;

  /* Tamaños de fuente */
  --font-size-title: 60px;
  --font-size-subtitle: 35px;
  --font-size-paragraph: 20px;
}


body {
  font-family: 'Inter', sans-serif;
}

/*SELECCIÓN DE TEXTO*/
/* Cambiar color de selección de texto */
::selection {
  background: var(--naranja);
  color: white;
}

/* Para compatibilidad con Firefox */
::-moz-selection {
  background: var(--naranja);
  color: white;
}

/**************************
      NOTICIAS
***************************/
.seccion-noticias {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  padding: 20px 20px 40px 20px;
}

.titulo-seccion {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 50px;
  margin-bottom: 2rem;
  color: var(--rojo);
}

.noticias-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1199px) {
  .noticias-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 899px) {
  .noticias-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 599px) {
  .noticias-container {
    grid-template-columns: 1fr;
  }

  .titulo-seccion {
    font-size: 35px;
  }
}

.noticia-card {
  border: 1.5px solid var(--naranja);
  border-radius: 10px;
  overflow: hidden;
  background: white;
  transform: translateY(30px);
  opacity: 0;
  transition: all 0.6s ease;
}

.noticia-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.noticia-image-wrapper {
  display: block;
  overflow: hidden;
}

.noticia-image-wrapper img {
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.noticia-image-wrapper:hover img {
  transform: scale(1.08);
}

.noticia-info {
  padding: 1rem;
}

.noticia-info h3 {
  font-family: var(--font-principal-semi);
  font-weight: normal;
  font-size: 20px;
  margin: 0.3rem 0;
  color: var(--rojo);
}

.noticia-info p {
  font-family: var(--font-principal-regular);
  font-size: 18px;
  color: var(--naranja);
  margin: 0;
}

.boton-noticia {
  margin-top: 1rem;
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: var(--naranja);
  color: white;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.boton-noticia:hover {
  transform: translateX(5px);
  background-color: var(--rojo);
}

.paginacion-noticias {
  font-family: var(--font-principal-semi);
  margin-top: 35px;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.paginacion-noticias button {
  font-family: var(--font-subtitle1);
  background-color: var(--dorado);
  border: none;
  color: #fff;
  font-weight: bold;
  font-size: 17px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.paginacion-noticias button.active {
  background-color: var(--rojo);
}

.paginacion-noticias button:hover {
  background-color: var(--naranja);
}

/**************************
    NOTICIAS DETALLE
***************************/
.noticias-details {
  padding: 130px 20px;
  background-color: white;
}

/* .noticias-details .fade-up {
    opacity: 1 !important;
    transform: translateY(0) !important;
} */

.container {
  max-width: 1200px;
  margin: 0 auto;
  /* padding: 20px; */
  box-sizing: border-box;
}

h1 {
  font-family: var(--font-principal-semi);
  font-size: 40px;
  color: var(--rojo);
  margin-bottom: 20px;
}

.fecha-noticia {
  font-family: var(--font-principal-regular);
  color: var(--gris);
  font-size: 20px;
  margin-bottom: 30px;
}


.subtitle {
  font-family: var(--font-principal-regular);
  color: var(--naranja);
  font-size: 20px;
  margin-bottom: 10px;
}

.noticias-details p {
  font-family: var(--font-principal-regular);
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--gris);
  /* line-height: 1.8; */
}

/*ul {
  margin-bottom: 20px;
  padding-left: 20px;
}

ul li {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #333;
}*/

.noticias-list {
  padding-left: 1.5rem;
  margin: 0;
  list-style-type: disc;
}

.noticias-list li {
  font-family: var(--font-principal-regular);
  font-size: 16px;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.noticias-list li::marker {
  color: var(--naranja);
}

.noticias-list-numerada {
  padding-left: 1.5rem;
  margin: 0;
  list-style-type: decimal;
}

.noticias-list-numerada li {
  font-family: var(--font-principal-regular);
  font-size: 16px;
  color: var(--gris);
  line-height: 1.5;
  margin-bottom: 0.5em;
}

.noticias-list-numerada li::marker {
  color: var(--naranja);
  font-weight: bold;
}


.highlight {
  font-family: var(--font-principal-regular);
  font-style: italic;
  font-size: 16px;
  color: var(--gris);
  margin: 20px 0;
  border-left: 5px solid #EFA220;
  padding-left: 15px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.image-grid img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.image-grid img:hover {
  transform: scale(1.06);
}

.additional-row {
  grid-template-columns: repeat(2, 1fr);
}

.image-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

.image-row img {
  width: 100%;
  height: auto;
  transition: transform 0.3s ease-in-out;
}

.image-row img:hover {
  transform: scale(1.1);
}

@media (max-width: 1024px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .image-row {
    grid-template-columns: 1fr;
  }
}
.noticia-portada {
  width: 100%;
}
.noticia-portada img {
  width: 100%;
  height: auto;
  overflow: hidden;

}
.noticia-texto {
  margin-top: 20px;
  margin-bottom: 40px;
  font-family: var(--font-principal-regular);
  font-size: 18px;
  /* color: var(--gris); */
  line-height: 1.8;
}

/* Cuando noticia-texto está dentro de un bloque que NO es row, aplica width 100% */
.noticia-bloque:not(.row) .noticia-texto {
  width: 100%;
}
.col-md-6 img {
  max-width: 100%;
  height: auto;
  margin: 20px 0;
  overflow: hidden;

}
.noticia-bloque img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
  overflow: hidden;

}
@media (max-width: 768px) {
  .image-grid {
    grid-template-columns: 1fr;
  }

  .image-row {
    grid-template-columns: 1fr;
  }

  h1 {
  font-size: 30px;
}

}

/* Videos con diseño responsive */
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Dos videos en una fila */
  gap: 20px;
  margin-bottom: 40px;
}

.video-container,
.youtube-container {
  width: 100%;
  aspect-ratio: 16 / 9;
  /* Relación uniforme */
}

video,
iframe {
  width: 100%;
  height: 100%;
}

/* Responsividad para videos */
@media (max-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* Footer de productos */
.product-footer {
  margin-top: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.product-footer img {
  max-width: 100%;
  height: auto;
}

/* Caja de compartir */
.share-box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  border: 1px dashed #EFA220;
  padding: 15px;
  margin-top: 20px;
}

.share-box p {
  margin-right: auto;
  margin-bottom: none !important;
  font-size: 16px;
  color: var(--gris);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  position: relative;
  width: 32px;
  height: 32px;
}

.social-icon img {
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  transition: transform 0.3s, filter 0.3s, opacity 0.3s;
}

.icon-normal {
  opacity: 1;
}

.icon-hover {
  opacity: 0;
}

.social-icon:hover .icon-normal {
  opacity: 0;
}

.social-icon:hover .icon-hover {
  opacity: 1;
}

.social-icon:active .icon-hover {
  filter: hue-rotate(200deg);
  /* Ajusta para mostrar el color naranja */
}

.social-icon:hover .icon-hover {
  filter: hue-rotate(0deg);
  /* Ajusta para mostrar el color rojo */
}

/* Responsive Design */
@media (max-width: 768px) {
  .share-box {
    flex-wrap: wrap;
    /* Ajusta los elementos en varias líneas si es necesario */
    text-align: center;
  }

  .share-box p {
    margin-bottom: 10px;
  }
}

/* BOTÓN VOLVER */
.volver {
  margin-top: 40px;
  text-align: center;
}

.volver a {
  position: relative;
  font-family: var(--font-parrafo);
  color: var(--rojo);
  font-weight: normal;
  text-decoration: none;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  padding: 8px 16px; /* espacio interior */
  border: 2px solid var(--rojo);
  transition: all 0.3s ease;
}

/* Flecha */
.flecha-volver {
  opacity: 0;
  margin-right: 5px;
  transition: opacity 0.3s ease, margin-right 0.3s ease, color 0.3s ease;
}

/* Hover */
.volver a:hover {
  color: var(--naranja);
  border-color: var(--naranja);
}

.volver a:hover .flecha-volver {
  color: var(--naranja);
  opacity: 1;
  margin-right: 10px;
}