/* ===========================
   VARIABLES Y BASE
=========================== */
:root {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --success-color: #27ae60;
  --info-color: #8e44ad;
  --gray-light: #f8f9fa;
  --gray-medium: #6c757d;
  --white: #ffffff;
  --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.15);
  --transition-smooth: all 0.3s ease;
  --border-radius: 0.5rem;
  --border-radius-large: 20px;
}

/* ===========================
   Estilo general del cuerpo
=========================== */
body {
  font-family: 'Roboto', Arial, sans-serif; /* Fuente principal */
  font-size: 16px;
  line-height: 1.6;
  background-color: #f9f9f9; /* Fondo general */
  color: #333; /* Texto oscuro */
  margin: 0;
  padding: 0;
}

/* ===========================
   UTILIDADES Y COMPONENTES COMPARTIDOS
=========================== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.appear {
  opacity: 1;
  transform: translateY(0);
}

/* Secciones base */
section {
  margin-bottom: 0.5rem;
}

/* ===========================
   HERO SECTION
=========================== */
.hero-section {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.9) 100%);
  padding: 2rem 2rem 1.5rem; /* Reducido el padding inferior */
  text-align: center;
  border-bottom: 1px solid #ddd;
  position: relative;
  margin-top: 0.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 50%);
  animation: heroFloat 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem; /* Reducido de 1.2rem */
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  background: linear-gradient(135deg, #2c3e50, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Expander "Sobre PDC" */
.info-pdc-expander {
  margin-top: 0.5rem; /* Espacio mínimo desde el título */
  margin-bottom: 0; /* Sin margen inferior */
}

.info-pdc-expander .info-toggle {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  background: rgba(52, 152, 219, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.info-pdc-expander .info-toggle:hover {
  background: rgba(52, 152, 219, 0.2);
  color: #2980b9;
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.info-pdc-expander .info-toggle i.fa-chevron-down {
  transition: transform 0.3s ease;
}

.info-pdc-expander .info-toggle[aria-expanded="true"] i.fa-chevron-down {
  transform: rotate(180deg);
}

.info-pdc-expander .info-content {
  font-size: 1.1rem;
  color: #555;
  margin: 0.5rem auto;
  max-width: 600px;
  line-height: 1.6;
  text-align: center;
}

.info-pdc-expander .who-we-are-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem; /* Reducido ligeramente */
  font-size: 0.95rem; /* Reducido ligeramente */
  font-weight: 600;
  background: linear-gradient(135deg, var(--gray-medium), #5a6268);
  color: var(--white);
  text-decoration: none;
  border-radius: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.info-pdc-expander .who-we-are-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.info-pdc-expander .who-we-are-btn:hover::before {
  left: 100%;
}

.info-pdc-expander .who-we-are-btn:hover {
  background: linear-gradient(135deg, #5a6268, var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  text-decoration: none;
  color: var(--white);
}

/* REMOVIDO: .hero-section p.lead y .hero-footer ya no se usan */

/* ===========================
   IMÁGENES FLOTANTES
=========================== */
.floating-products-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none; /* Permite hacer clic a través de las imágenes */
  z-index: 0; /* Detrás del contenido principal */
  overflow: hidden;
}

.floating-product {
  position: absolute;
  transition: transform 0.3s;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0);
  pointer-events: none;
}

.floating-product img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Asegurar z-index correcto */
.hero-section,
.novelty-section,
.features-section {
  position: relative;
  z-index: 1;
}

/* ===========================
   NOVELTY SECTION
=========================== */
.novelty-section {
  padding: 2rem 1rem; /* Aumentado el padding */
  background: linear-gradient(135deg, rgba(245, 245, 245, 0.95) 0%, rgba(240, 240, 240, 0.9) 100%);
  overflow: hidden;
  position: relative;
}

/* Efecto de fondo sutil */
.novelty-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(52, 152, 219, 0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 80%, rgba(46, 204, 113, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.novelty-section > .container {
  position: relative;
  z-index: 1;
}

.novelty-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: #2c3e50;
  margin-bottom: 2rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.novelty-section h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 2px;
}

/* Encabezado de novedades mejorado */
.novelty-section h4 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 1rem;
  text-align: center;
  position: relative;
}

.novelty-section h4::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color));
  border-radius: 2px;
}

/* Para que el enlace ocupe todo el contenedor */
.novelty-section .col-md-8 a {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

/* Cards translúcidas mejoradas */
.card-translucent {
  background: rgba(255, 255, 255, 0.95); /* Más opaco */
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 12px; /* Bordes más redondeados */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* Sombra más suave */
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  height: 100%;
  backdrop-filter: blur(10px); /* Efecto de vidrio */
}

.card-translucent::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
  z-index: 1;
}

.card-translucent:hover::before {
  left: 100%;
}

.card-translucent:hover {
  background: rgba(52, 152, 219, 0.95); /* Azul más vibrante */
  transform: translateY(-8px) scale(1.02); /* Efecto más pronunciado */
  box-shadow: 0 12px 25px rgba(52, 152, 219, 0.2); /* Sombra azul */
  border-color: rgba(52, 152, 219, 0.3);
  color: white;
}

.card-translucent:hover .card-title,
.card-translucent:hover .card-text {
  color: white;
}

.card-translucent .card-body {
  padding: 2rem; /* Más padding */
  text-align: center;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-title {
  margin-bottom: 1rem; /* Más espacio */
  font-weight: 700; /* Más negrita */
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.card-text {
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Mejora en las imágenes de las tarjetas */
.card-title img {
  transition: transform 0.3s ease;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.card-translucent:hover .card-title img {
  transform: scale(1.1) rotate(5deg);
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Overlay effect mejorado */
.card-translucent .card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(52, 152, 219, 0.8));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  backdrop-filter: blur(5px);
  z-index: 3;
}

/* Tarjeta especial con fondo de Chat PDC */
.card-chat-pdc {
  position: relative;
  overflow: hidden;
}

.card-chat-pdc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.7) 100%);
  z-index: 1.5;
  pointer-events: none;
  border-radius: 12px;
  transition: background 0.3s ease;
}

.card-chat-pdc:hover::before {
  background: linear-gradient(135deg, rgba(52,152,219,0.9) 0%, rgba(52,152,219,0.8) 100%);
}

.card-chat-pdc .card-body {
  position: relative;
  z-index: 2;
}

.card-translucent:hover .card-overlay {
  opacity: 1;
}

/* ===========================
   NEWS SECTION - SECCIÓN DE NOTICIAS
=========================== */
.news-section {
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.news-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 40%;
  height: 140%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.08) 0%, transparent 70%);
  animation: newsFloat 25s ease-in-out infinite;
  pointer-events: none;
}

@keyframes newsFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-30px, -30px) rotate(180deg); }
}

.news-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  color: var(--secondary-color);
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 2;
}

.news-section h2::after {
  content: '';
  position: absolute;
  bottom: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--info-color));
  border-radius: 2px;
}

/* Tarjetas de noticias modernas */
.news-card {
  background: var(--white);
  border: none;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.news-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--success-color), var(--info-color));
  z-index: 1;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-card .card-body {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card .news-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 1rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-summary {
  font-size: 0.95rem;
  color: var(--gray-medium);
  line-height: 1.6;
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card .news-meta {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-medium);
}

.news-card .news-date {
  font-weight: 600;
  color: var(--primary-color);
}

.news-card .news-source {
  background: linear-gradient(135deg, var(--primary-color), var(--success-color));
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Badge de "Última Noticia" */
.news-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ff6b6b, #ff8e53);
  color: white;
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

/* Estado vacío de noticias */
.news-empty {
  text-align: center;
  padding: 3rem 2rem;
  color: var(--gray-medium);
}

.news-empty i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

.news-empty h4 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.news-empty p {
  font-size: 0.95rem;
  margin: 0;
}

/* ===========================
   FEATURES SECTION - CARDS MODERNAS CORREGIDAS
=========================== */
.features-section {
  padding: 4rem 2rem;
  background: linear-gradient(135deg, var(--gray-light) 0%, #e9ecef 100%);
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(52, 152, 219, 0.05) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.features-section h2 {
  margin-bottom: 3rem;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  color: var(--secondary-color);
  position: relative;
  z-index: 2;
}

/* CORREGIDO: Cards modernas con mejor estructura */
.modern-feature-card {
  background: var(--white);
  border: none;
  border-radius: var(--border-radius-large);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  transform: translateY(0);
  opacity: 0;
  animation: slideInUp 0.6s ease forwards;
  display: flex; /* NUEVO: Flexbox para mejor control */
  flex-direction: column; /* NUEVO: Columna vertical */
  height: 100%; /* NUEVO: Altura completa */
}

.modern-feature-card:nth-child(1) { animation-delay: 0.1s; }
.modern-feature-card:nth-child(2) { animation-delay: 0.2s; }
.modern-feature-card:nth-child(3) { animation-delay: 0.3s; }

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

.modern-feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

/* CORREGIDO: Contenedor de imagen con proporción fija */
.card-image-container {
  position: relative;
  height: 200px; /* FIJO: Altura consistente */
  overflow: hidden;
  background: linear-gradient(135deg, #9ccc65 0%, #aed581 100%);
  flex-shrink: 0; /* NUEVO: No se encoge */
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  filter: brightness(0.9) contrast(1.1);
}

.card-img-top.img-contain {
  object-fit: contain;
  filter: none;
}

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

/* CORREGIDO: Badge flotante con mejor posicionamiento */
.card-badge {
  position: absolute;
  top: 15px; /* AJUSTADO: era 20px */
  right: 15px; /* AJUSTADO: era 20px */
  width: 45px; /* AJUSTADO: era 50px */
  height: 45px; /* AJUSTADO: era 50px */
  background: rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition-smooth);
  border: 2px solid rgba(255, 255, 255, 0.2);
  z-index: 3; /* NUEVO: Asegurar que esté encima */
}

.card-badge i {
  font-size: 1.1rem; /* AJUSTADO: era 1.2rem */
  color: #ffffff;
}

.modern-feature-card:hover .card-badge {
  transform: scale(1.1) rotate(5deg);
  background: rgba(0, 0, 0, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

.modern-feature-card:hover .card-badge i {
  color: #ffffff;
}

/* CORREGIDO: Contenido de la card con flexbox */
.modern-feature-card .card-body {
  padding: 1.5rem; /* REDUCIDO: era 2rem */
  text-align: left;
  background: var(--white);
  position: relative;
  z-index: 2;
  flex: 1; /* NUEVO: Toma el espacio restante */
  display: flex; /* NUEVO: Flexbox interno */
  flex-direction: column; /* NUEVO: Columna vertical */
}

/* CORREGIDO: Títulos con mejor espaciado */
.modern-feature-card .card-title {
  font-size: 1.3rem; /* AJUSTADO: era 1.4rem */
  font-weight: 700;
  color: var(--secondary-color);
  margin-bottom: 0.75rem; /* REDUCIDO: era 1rem */
  line-height: 1.2; /* AJUSTADO: era 1.3 */
  text-align: center; /* NUEVO: Centrado */
}

/* CORREGIDO: Texto descriptivo con flexbox */
.modern-feature-card .card-text {
  font-size: 0.9rem; /* REDUCIDO: era 0.95rem */
  color: var(--gray-medium);
  line-height: 1.5; /* AJUSTADO: era 1.6 */
  margin-bottom: auto; /* NUEVO: Empuja el botón hacia abajo */
  flex: 1; /* NUEVO: Toma espacio disponible */
  text-align: center; /* NUEVO: Centrado */
}

/* CORREGIDO: Botones con mejor posicionamiento */
.btn-modern {
  padding: 0.65rem 1.25rem; /* AJUSTADO: era 0.75rem 1.5rem */
  border-radius: 25px; /* REDUCIDO: era 50px */
  font-weight: 600;
  font-size: 0.85rem; /* REDUCIDO: era 0.9rem */
  text-transform: uppercase;
  letter-spacing: 0.3px; /* REDUCIDO: era 0.5px */
  border: none;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
  margin-top: 1rem; /* NUEVO: Espacio superior consistente */
  align-self: center; /* NUEVO: Centrado horizontalmente */
  min-width: 120px; /* NUEVO: Ancho mínimo */
}

.btn-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left 0.5s;
}

.btn-modern:hover::before {
  left: 100%;
}

.btn-modern:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, #2980b9, #1abc9c);
}

/* UNIFICADO: Todas las variantes de botones */
.btn-modern.btn-primary,
.btn-modern.btn-success,
.btn-modern.btn-info {
  background: linear-gradient(135deg, var(--primary-color), #2980b9);
}

.btn-modern.btn-primary:hover,
.btn-modern.btn-success:hover,
.btn-modern.btn-info:hover {
  background: linear-gradient(135deg, #2980b9, #1abc9c);
  box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
}

/* ===========================
   TABLA STYLES
=========================== */
.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  min-width: 600px;
  table-layout: auto;
}

.sticky-header {
  position: sticky;
  top: 0;
  z-index: 1;
  background-color: #343a40;
}

.table, .table th, .table td {
  font-family: 'Chelsea Market', cursive;
  color: var(--white);
}

th, td {
  white-space: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
  vertical-align: middle;
  padding: 0.5rem;
  font-size: 0.9rem;
}

.flechitas {
  width: 25px;
  height: 25px;
  transition: transform 0.3s ease;
}

.filas-tabla:hover .col1 .flechitas {
  transform: rotate(360deg);
}

/* Rounded table */
.rounded-table .table-responsive {
  border-radius: var(--border-radius);
  overflow: hidden;
}

.rounded-table .table-responsive tbody tr:nth-child(n+6) {
  display: none;
}

/* Table link overlay */
.table-link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
}

.table-link.hover-overlay::after {
  content: "Ver Mercado Buenos Aires";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.65);
  color: var(--white);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.table-link.hover-overlay:hover::after {
  opacity: 1;
}

/* Truncate text */
.col2, .col2 span {
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rounded-table th, .rounded-table td {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.rounded-table .table-responsive {
  overflow-x: hidden;
}

.rounded-table .table-responsive table {
  min-width: 100%;
}

/* Rounded card */
.rounded-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  display: block;
  height: auto;
}

/* Equal height */
.novelty-section .row.align-items-stretch > [class*='col-'] {
  display: flex;
}

.novelty-section .rounded-table {
  flex: 1 1 auto;
}

/* ===========================
   RESPONSIVE DESIGN
=========================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 2rem 1.5rem;
  }
  
  .hero-section h1 {
    font-size: 2.2rem;
  }
  
  .hero-section p {
    font-size: 1.1rem;
  }
  
  .hero-footer {
    text-align: center;
    margin-top: 1.5rem;
  }
  
  .features-section {
    padding: 2rem 1rem;
  }
  
  .features-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }
  
  .card-image-container {
    height: 160px;
  }
  
  .modern-feature-card .card-body {
    padding: 1.5rem;
  }
  
  .modern-feature-card .card-title {
    font-size: 1.2rem;
  }
  
  .modern-feature-card .card-text {
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
  }
  
  .btn-modern {
    padding: 0.6rem 1.2rem;
    font-size: 0.8rem;
    width: 100%;
  }
  
  /* CORREGIDO: Badge responsive con colores actualizados */
  .card-badge {
    width: 40px;
    height: 40px;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.85); /* MANTENIDO: Fondo negro en móvil */
  }
  
  .card-badge i {
    font-size: 1rem;
    color: #ffffff; /* MANTENIDO: Iconos blancos en móvil */
  }
  
  .novelty-section {
    padding: 1.5rem 1rem; /* Menos padding en móvil */
  }
  
  .novelty-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .novelty-section h4 {
    font-size: 1.1rem;
  }
  
  .card-translucent {
    margin-bottom: 1.5rem;
    transform: none;
  }
  
  .card-translucent:hover {
    transform: translateY(-3px); /* Efecto más sutil en móvil */
  }
  
  .card-translucent .card-body {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.1rem;
  }
  
  .card-text {
    font-size: 0.9rem;
  }
  
  .table-responsive table {
    min-width: 500px;
  }
  
  .rounded-table th, .rounded-table td {
    font-size: 0.8rem;
    padding: 0.4rem;
  }
  
  .flechitas {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 576px) {
  .modern-feature-card {
    margin-bottom: 2rem;
  }
  
  .features-section h2 {
    font-size: 1.8rem;
  }
  
  .table-responsive table {
    min-width: 370px;
  }
  
  .rounded-table th, .rounded-table td {
    font-size: 0.75rem;
    padding: 0.3rem;
  }
  
  .flechitas {
    width: 18px;
    height: 18px;
  }
}

/* Responsive para sección de noticias */
@media (max-width: 768px) {
  .news-section {
    padding: 2rem 1rem;
  }
  
  .news-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }
  
  .news-card {
    margin-bottom: 1.5rem;
  }
  
  .news-card .card-body {
    padding: 1.5rem;
  }
  
  .news-card .news-title {
    font-size: 1.1rem;
    -webkit-line-clamp: 3;
    line-clamp: 3;
  }
  
  .news-card .news-summary {
    font-size: 0.9rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
  }
  
  .news-badge {
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 576px) {
  .news-section h2 {
    font-size: 1.6rem;
  }
  
  .news-card .news-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* Compatibilidad con animaciones existentes */
.fade-in.appear .modern-feature-card {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   BANNER PUBLICITARIO
=========================== */
.contact-promo-section {
  padding: 1.5rem 0;
  margin: 1.5rem 0;
}

.contact-promo-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: var(--border-radius-large);
  padding: 2.5rem;
  box-shadow: var(--shadow-medium);
  position: relative;
  overflow: hidden;
  transition: var(--transition-smooth);
}

.contact-promo-box::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
  animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.contact-promo-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.promo-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.promo-icon {
  flex-shrink: 0;
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.promo-icon i {
  font-size: 2rem;
  color: var(--white);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.promo-text {
  flex-grow: 1;
  color: var(--white);
}

.promo-text h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.promo-text p {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.95;
  font-weight: 500;
}

.promo-action {
  flex-shrink: 0;
}

.btn-promo {
  background: var(--white);
  color: #667eea;
  padding: 0.875rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-promo:hover {
  background: #f0f0f0;
  color: #764ba2;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Responsive - Tablet */
@media (max-width: 992px) {
  .promo-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }
  
  .promo-text h3 {
    font-size: 1.5rem;
  }
  
  .promo-text p {
    font-size: 1.1rem;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .contact-promo-box {
    padding: 2rem 1.5rem;
    border-radius: 15px;
  }
  
  .promo-icon {
    width: 60px;
    height: 60px;
  }
  
  .promo-icon i {
    font-size: 1.5rem;
  }
  
  .promo-text h3 {
    font-size: 1.3rem;
  }
  
  .promo-text p {
    font-size: 1rem;
  }
  
  .btn-promo {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .contact-promo-section {
    padding: 1rem 0;
    margin: 1rem 0;
  }
  
  .contact-promo-box {
    padding: 1.5rem 1rem;
  }
  
  .promo-content {
    gap: 1rem;
  }
  
  .promo-icon {
    width: 50px;
    height: 50px;
  }
  
  .promo-icon i {
    font-size: 1.25rem;
  }
  
  .promo-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
  }
  
  .promo-text p {
    font-size: 0.95rem;
  }
}


/* Banner completamente clickeable */
.contact-promo-section a {
  cursor: pointer;
}

.contact-promo-section a .contact-promo-box {
  cursor: pointer;
}

.btn-banner {
  cursor: pointer;
  pointer-events: none;
}
