/*
 * styles.css - Estilos modernos para HFZIG
 * Inspirado en FEG con un toque más contemporáneo
 */

:root {
  /* Paleta de colores corporativos - Ajustar según logo de HFZIG */
  --primary-color: #005bab;        /* Azul principal */
  --primary-dark: #004080;         /* Azul oscuro para hover */
  --primary-light: #e6f0fa;        /* Azul claro para fondos */
  --secondary-color: #e94e1b;      /* Naranja/Acento */
  --secondary-light: #ffe6dd;      /* Naranja claro */
  --accent-color: #ffd700;         /* Amarillo/Oro para acentos */
  --success-color: #28a745;        /* Verde */
  --dark-color: #1a1a1a;           /* Negro para textos */
  --gray-dark: #333333;            /* Gris oscuro */
  --gray: #666666;                 /* Gris medio */
  --gray-light: #cccccc;           /* Gris claro */
  --light-color: #f8f9fa;          /* Casi blanco */
  --white: #ffffff;                /* Blanco puro */

  /* Fuentes */
  --font-primary: 'Montserrat', sans-serif;
  --font-secondary: 'Roboto', sans-serif;

  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  /* Sombras */
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.05);
  --shadow-md: 0 5px 15px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
}

/* Estilos Generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Para anclas con header fijo */
}

body {
  font-family: var(--font-secondary);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark-color);
  background-color: var(--white);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--dark-color);
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-normal);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.btn {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 4px;
  transition: all var(--transition-normal);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 0.875rem;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #d93f0e;
  border-color: #d93f0e;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  background-color: transparent;
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-light {
  background-color: var(--white);
  border-color: var(--white);
  color: var(--primary-color);
}

.btn-light:hover {
  background-color: var(--light-color);
  border-color: var(--light-color);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

.section-title {
  position: relative;
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  text-align: center;
}

.section-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-color);
}

.section-title.text-left:after {
  left: 0;
  transform: none;
}

/* Top Bar */
.top-bar {
  background-color: var(--primary-dark);
  color: var(--white);
  padding: 8px 0;
  font-size: 0.875rem;
}

.top-bar-contact span {
  margin-right: 20px;
}

.top-bar-contact i {
  margin-right: 5px;
  color: var(--secondary-color);
}

.top-bar-social a {
  color: var(--white);
  margin-left: 15px;
  transition: color var(--transition-fast);
}

.top-bar-social a:hover {
  color: var(--secondary-color);
}

.language-selector a {
  color: var(--white);
  transition: color var(--transition-fast);
}

.language-selector a:hover,
.language-selector a.active {
  color: var(--secondary-color);
}

.language-selector .separator {
  margin: 0 5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Header y Navegación */
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
}

.navbar {
  padding: 0;
}

.navbar-brand {
  padding: 15px 0;
}

.logo {
  height: 70px;
  transition: height var(--transition-normal);
}

.navbar-nav {
  margin-left: auto;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-primary);
  font-weight: 500;
  padding: 30px 15px !important;
  color: var(--dark-color);
  position: relative;
  transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color);
}

.nav-link:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background-color: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.nav-link:hover:after,
.nav-link.active:after {
  transform: scaleX(1);
}

.navbar-toggler {
  border: none;
  color: var(--primary-color);
  font-size: 1.5rem;
}

.navbar-toggler:focus {
  box-shadow: none;
}

/* Correcciones para el menú desplegable de Business Areas */

/* Asegurar que el menú desplegable tenga suficiente ancho */
.dropdown-menu {
  min-width: 220px; /* Aumentar el ancho mínimo */
  padding: 0.5rem 0;
  margin-top: 0;
  border: none;
  border-radius: 4px;
  box-shadow: var(--shadow-md);
}

/* Mejorar el espaciado y ancho de los elementos del menú */
.dropdown-item {
  padding: 0.75rem 1.25rem;
  white-space: normal; /* Permitir que el texto se divida en varias líneas si es necesario */
  line-height: 1.4;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  transition: all var(--transition-normal);
  width: 100%; /* Asegurar que ocupe todo el ancho disponible */
  display: block; /* Asegurar que sea un bloque completo */
}

/* Mejorar el efecto hover */
.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--primary-light);
  color: var(--primary-color);
  padding-left: 1.5rem;
}

/* Estilos para el mega menú */
.mega-menu {
  width: 100%;
  max-width: 1000px; /* Limitar el ancho máximo */
  left: 50%;
  transform: translateX(-50%); /* Centrar horizontalmente */
  padding: 1.5rem;
}

/* Ajustar los encabezados del mega menú */
.dropdown-header {
  font-family: var(--font-primary);
  font-weight: 600;
  color: var(--primary-color);
  padding: 1rem 1.25rem 0.5rem;
  font-size: 1rem;
  background-color: transparent;
  border-bottom: none;
}

/* Corregir el espaciado en dispositivos móviles */
@media (max-width: 991.98px) {
  .mega-menu {
    position: static;
    transform: none;
    width: 100%;
    padding: 1rem;
    box-shadow: none;
  }

  .dropdown-menu {
    border: none;
    box-shadow: none;
    background-color: rgba(0,0,0,0.02);
    padding: 0;
    margin-top: 0;
  }

  .dropdown-item {
    padding: 0.75rem 1.5rem;
  }
}


.dropdown-divider {
  margin: 10px 0;
}

.dropdown-item.highlight {
  color: var(--primary-color);
  font-weight: 600;
}

.dropdown-item.highlight:hover {
  background-color: var(--primary-light);
}

/* Buscador */
.search-box {
  position: relative;
}

.search-toggle {
  background: none;
  border: none;
  color: var(--dark-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: color var(--transition-normal);
  padding: 0 15px;
}

.search-toggle:hover {
  color: var(--primary-color);
}

.search-form-wrapper {
  position: absolute;
  top: 100%;
  right: 0;
  width: 300px;
  background-color: var(--white);
  box-shadow: var(--shadow-md);
  padding: 15px;
  border-radius: 4px;
  display: none;
}

.search-form-wrapper form {
  display: flex;
}

.search-form-wrapper input {
  flex: 1;
  border: 1px solid var(--gray-light);
  padding: 8px 15px;
  border-radius: 4px 0 0 4px;
  outline: none;
}

.search-form-wrapper button {
  background-color: var(--primary-color);
  color: var(--white);
  border: none;
  padding: 8px 15px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
}

/* Header en scroll */
.sticky-header.scrolled {
  padding: 0;
  box-shadow: var(--shadow-md);
}

.scrolled .logo {
  height: 40px;
}

.scrolled .nav-link {
  padding-top: 25px !important;
  padding-bottom: 25px !important;
}

/* Hero Carousel Mejorado */
.hero-carousel {
  position: relative;
  overflow: hidden;
}

.hero-carousel .carousel-inner {
  height: 600px;
}

.hero-carousel .carousel-item {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-carousel .carousel-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 100%);
}

.hero-carousel .carousel-caption {
  text-align: left;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  max-width: 600px;
  left: 10%;
  right: auto;
  padding: 0;
  background-color: transparent;
}

.hero-carousel .carousel-caption h2 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s forwards;
  animation-delay: 0.3s;
}

.hero-carousel .carousel-caption p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s forwards;
  animation-delay: 0.5s;
}

.hero-carousel .carousel-caption .btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.5s forwards;
  animation-delay: 0.7s;
}

.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next {
  width: 50px;
  height: 50px;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255,255,255,0.3);
  border-radius: 50%;
  opacity: 0.7;
}

.hero-carousel .carousel-control-prev {
  left: 20px;
}

.hero-carousel .carousel-control-next {
  right: 20px;
}

.hero-carousel .carousel-control-prev-icon,
.hero-carousel .carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

.hero-carousel .carousel-indicators {
  bottom: 30px;
}

.hero-carousel .carousel-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
  background-color: rgba(255,255,255,0.5);
  border: none;
  transition: all var(--transition-normal);
}

.hero-carousel .carousel-indicators li.active {
  background-color: var(--primary-color);
  transform: scale(1.2);
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sección About */
.about-section {
  padding: 80px 0;
}

.about-image {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--shadow-md);
}

.about-image img {
  transition: transform var(--transition-slow);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1.5rem;
  color: var(--gray);
}

.about-features {
  margin-top: 2rem;
}

.about-feature-item {
  margin-bottom: 1rem;
}

.about-feature-item i {
  color: var(--primary-color);
  margin-right: 10px;
}

/* Áreas de Negocio - Diseño Moderno */
.business-areas {
  padding: 80px 0;
  background-color: var(--light-color);
}

.area-card {
  background-color: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  height: 100%;
  position: relative;
  z-index: 1;
}

.area-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.area-card-header {
  position: relative;
  overflow: hidden;
}

.area-card-header img {
  height: 200px;
  width: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.area-card:hover .area-card-header img {
  transform: scale(1.1);
}

.area-card-body {
  padding: 1.5rem;
}

.area-card-title {
  color: var(--primary-color);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  position: relative;
  padding-bottom: 0.75rem;
}

.area-card-title:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--secondary-color);
}

.area-card-text {
  color: var(--gray);
  margin-bottom: 1rem;
}

.area-card-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 1.5rem;
}

.area-card-list li {
  margin-bottom: 0.5rem;
  padding-left: 1.5rem;
  position: relative;
}

.area-card-list li i {
  position: absolute;
  left: 0;
  top: 5px;
  color: var(--success-color);
}

.area-card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid rgba(0,0,0,0.05);
  text-align: right;
}

/* Sección de Estadísticas */
.stats-section {
  padding: 60px 0;
  background-color: var(--primary-color);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.stats-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  /* background-image: url('../images/world-map.png'); */
  background-size: contain;
  background-position: center;
  opacity: 0.1;
}

.stat-item {
  text-align: center;
  padding: 20px;
  position: relative;
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  font-family: var(--font-primary);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
  font-size: 0.875rem;
}

.home-contact-section {
  background-color: var(--light-color);
  position: relative;
  overflow: hidden;
  padding: 80px 0;
}

.home-contact-section::before {
  content: '';
  position: absolute;
  right: -150px;
  top: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: rgba(0, 91, 171, 0.05);
  z-index: 0;
}

.home-contact-section::after {
  content: '';
  position: absolute;
  left: -150px;
  bottom: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background-color: rgba(233, 78, 27, 0.05);
  z-index: 0;
}

.contact-form-wrapper {
  position: relative;
  z-index: 1;
  background-color: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-info {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info h4 {
  color: var(--white);
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.contact-info h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background-color: var(--secondary-color);
}

.contact-info p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.info-item {
  display: flex;
  margin-bottom: 1.5rem;
}

.info-item i {
  font-size: 1.5rem;
  color: var(--secondary-color);
  margin-right: 1rem;
  margin-top: 0.25rem;
}

.info-item h5 {
  color: var(--white);
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.info-item p {
  margin-bottom: 0;
  opacity: 0.9;
}

.social-links {
  display: flex;
  margin-top: 2rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  margin-right: 0.75rem;
  color: var(--white);
  transition: all var(--transition-normal);
}

.social-link:hover {
  background-color: var(--secondary-color);
  color: var(--white);
  transform: translateY(-3px);
}

.contact-form-container {
  padding: 3rem 2rem;
}

.form-floating {
  margin-bottom: 1.5rem;
}

.form-floating > .form-control,
.form-floating > .form-select {
  height: calc(3.5rem + 2px);
  padding: 1rem 0.75rem;
}

.form-floating > label {
  padding: 1rem 0.75rem;
}

.form-floating > textarea.form-control {
  height: 120px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 91, 171, 0.25);
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.form-check-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 91, 171, 0.25);
}

.form-check-label a {
  color: var(--primary-color);
  text-decoration: underline;
}

.was-validated .form-control:invalid,
.form-control.is-invalid {
  border-color: var(--secondary-color);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23e94e1b'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23e94e1b' stroke='none'/%3e%3c/svg%3e");
}

.was-validated .form-control:invalid:focus,
.form-control.is-invalid:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(233, 78, 27, 0.25);
}

/* Responsive */
@media (max-width: 991.98px) {
  .contact-info {
    border-radius: 10px 10px 0 0;
  }
}

/*
 * Estilos para la página de noticias
 * Añadir al archivo css/styles.css
 */

/* News Page Header */
.page-header {
  padding: 3.5rem 0;
  background-image: linear-gradient(to right, var(--primary-color), var(--primary-dark));
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -150px;
  right: -100px;
}

.page-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: 10%;
}

.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255, 255, 255, 0.5);
}

/* News Filters */
.news-filters {
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.form-select, .form-control {
  border: 1px solid #e5e5e5;
  box-shadow: none;
}

.form-select:focus, .form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(0, 91, 171, 0.25);
}

.btn-outline-primary {
  color: var(--gray-dark);
  border-color: #e5e5e5;
  background-color: #fff;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
  color: var(--primary-color);
  border-color: var(--primary-color);
  background-color: #fff;
}

/* Featured News */
.featured-news {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background-color: var(--white);
}

.featured-news-image {
  position: relative;
  height: 100%;
}

.featured-news-image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--secondary-color);
  color: var(--white);
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.featured-news-content {
  padding: 3rem;
}

.news-meta {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: var(--gray);
}

.news-date, .news-category {
  margin-right: 1.5rem;
}

.news-date i, .news-category i {
  margin-right: 0.5rem;
  color: var(--primary-color);
}

.news-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.news-excerpt {
  color: var(--gray);
  margin-bottom: 1.5rem;
}

/* News Cards */
.news-card {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.news-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.news-card:hover .card-img-top {
  transform: scale(1.05);
}

.news-card .card-body {
  padding: 1.5rem;
}

.news-card .card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-text {
  color: var(--gray);
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .card-footer {
  padding: 0 1.5rem 1.5rem;
}

/* List View */
.list-view .news-item {
  width: 100%;
  max-width: 100%;
  flex: 0 0 100%;
}

.list-view .news-card {
  flex-direction: row;
}

.list-view .card-img-top {
  width: 30%;
  height: 100%;
  border-radius: 10px 0 0 10px;
}

.list-view .card-body,
.list-view .card-footer {
  width: 70%;
}

/* Pagination */
.pagination {
  margin-bottom: 0;
}

.page-link {
  color: var(--primary-color);
  padding: 0.5rem 0.75rem;
  margin: 0 0.25rem;
  border: none;
  border-radius: 4px;
  transition: all var(--transition-normal);
}

.page-link:hover {
  background-color: var(--primary-light);
  color: var(--primary-color);
}

.page-item.active .page-link {
  background-color: var(--primary-color);
  color: var(--white);
}

.page-item.disabled .page-link {
  color: var(--gray-light);
}

/* Newsletter Section */
.newsletter-section {
  border-top: 1px solid rgba(0,0,0,0.05);
}

.newsletter-form {
  max-width: 550px;
  margin: 0 auto;
}

.newsletter-form .form-control {
  height: 50px;
  border-radius: 4px 0 0 4px;
}

.newsletter-form .btn {
  border-radius: 0 4px 4px 0;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .featured-news-content {
    padding: 2rem;
  }

  .list-view .news-card {
    flex-direction: column;
  }

  .list-view .card-img-top {
    width: 100%;
    border-radius: 10px 10px 0 0;
  }

  .list-view .card-body,
  .list-view .card-footer {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .page-header {
    padding: 2.5rem 0;
  }

  .news-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-date, .news-category {
    margin-bottom: 0.5rem;
  }

  .featured-news-content {
    padding: 1.5rem;
  }

  .news-title {
    font-size: 1.5rem;
  }
}

/* Estilos para la vista detallada de noticias */

/* News Detail Header */
.news-detail-header {
  background-image: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  padding: 4rem 0 3rem;
  position: relative;
  overflow: hidden;
}

.news-detail-header::before {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  top: -150px;
  right: -100px;
}

.news-detail-header::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  bottom: -100px;
  left: 10%;
}

.news-detail-header .breadcrumb {
  margin-bottom: 1.5rem;
}

.news-detail-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.3;
}

.news-detail-header .news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.news-detail-header .news-meta i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
}

/* News Detail Image */
.news-detail-image {
  margin: -4rem auto 2rem;
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.news-detail-image img {
  width: 100%;
  height: auto;
}

/* News Detail Content */
.news-detail-content {
  background: var(--white);
  border-radius: 10px;
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 2rem;
}

.news-content {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--gray-dark);
}

.news-content p {
  margin-bottom: 1.5rem;
}

.news-content h2,
.news-content h3,
.news-content h4 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin: 1.5rem 0;
}

.news-content a {
  color: var(--primary-color);
  text-decoration: underline;
}

.news-content a:hover {
  color: var(--primary-dark);
}

.news-content blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 1rem 0 1rem 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gray);
}

.news-content ul,
.news-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.news-content li {
  margin-bottom: 0.5rem;
}

/* Tags */
.news-tags h5 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--primary-light);
  color: var(--primary-color);
  border-radius: 20px;
  font-size: 0.875rem;
  transition: all var(--transition-normal);
}

.tag:hover {
  background-color: var(--primary-color);
  color: var(--white);
  transform: translateY(-2px);
}

/* Social Share */
.news-share h5 {
  font-size: 1.125rem;
  margin-bottom: 1rem;
}

.social-share {
  display: flex;
  gap: 0.75rem;
}

.social-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--white);
  transition: all var(--transition-normal);
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.social-button.facebook {
  background-color: #3b5998;
}

.social-button.twitter {
  background-color: #1da1f2;
}

.social-button.linkedin {
  background-color: #0077b5;
}

.social-button.email {
  background-color: var(--gray);
}

/* News Navigation */
.news-navigation {
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 1.5rem;
}

.news-nav {
  display: block;
  padding: 1rem;
  border-radius: 8px;
  background-color: var(--light-color);
  transition: all var(--transition-normal);
}

.news-nav:hover {
  background-color: var(--primary-light);
  transform: translateY(-3px);
}

.nav-label {
  display: block;
  font-size: 0.875rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
}

.nav-title {
  margin-bottom: 0;
  color: var(--primary-color);
}

/* Related News */
.related-news .section-title {
  margin-bottom: 2rem;
  text-align: left;
  padding-bottom: 1rem;
}

.related-news .section-title::after {
  left: 0;
  transform: none;
}

.related-news .news-card {
  transition: all var(--transition-normal);
}

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

.related-news .card-img-top {
  height: 160px;
}

.related-news .card-title {
  font-size: 1rem;
  -webkit-line-clamp: 2;
}

/* Responsive */
@media (max-width: 991.98px) {
  .news-detail-header h1 {
    font-size: 2rem;
  }

  .news-detail-image {
    margin-top: -2rem;
  }

  .news-detail-content {
    padding: 2rem;
  }
}

@media (max-width: 767.98px) {
  .news-detail-header {
    padding: 3rem 0 2rem;
  }

  .news-detail-header h1 {
    font-size: 1.75rem;
  }

  .news-detail-header .news-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .news-detail-image {
    margin-top: -1rem;
  }

  .news-detail-content {
    padding: 1.5rem;
  }

  .social-share {
    justify-content: center;
  }
}
