/* ===== VARIABLES CSS ===== */
:root {
  --primary-color: #6d0f10;
  --primary-dark: #700c14;
  --secondary-color: #ffcc00;
  --text-dark: #333;
  --text-light: #666;
  --bg-light: #f5f5f5;
  --bg-dark: #222;
  --white: #ffffff;
  --shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #cfdada;
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

body.popup-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ===== POPUP MODAL ===== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.popup-overlay.show {
  opacity: 1;
  visibility: visible;
}

.popup-container {
  background: var(--white);
  border-radius: 15px;
  max-width: 90%;
  max-height: 90vh;
  width: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: scale(0.8);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  overflow: hidden;
}

.popup-overlay.show .popup-container {
  transform: scale(1);
}

.popup-close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 45px;
  height: 45px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--white);
  transition: var(--transition);
  z-index: 10;
  backdrop-filter: blur(10px);
}

.popup-close:hover {
  background: var(--primary-color);
  transform: rotate(90deg) scale(1.1);
}

.popup-image-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  display: block;
  border-radius: 15px;
}

/* ===== UTILIDADES ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER DESKTOP MEJORADO ===== */
#main-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  display: block;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  background: var(--white);
}

/* HEADER SUPERIOR REDISEÑADO */
.header-top {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  height: 45px;
  display: flex;
  align-items: center;
  transition: transform 0.3s ease;
  border-bottom: 2px solid var(--secondary-color);
}

.header-top-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header-contact {
  display: flex;
  gap: 30px;
  color: var(--white);
  font-size: 0.85rem;
}

.header-contact span {
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.header-contact span:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

.header-contact i {
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 12px;
}

.social-icon {
  color: var(--white);
  font-size: 1rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.social-icon:hover {
  color: var(--primary-dark);
  background: var(--secondary-color);
  transform: translateY(-3px) rotate(360deg);
  box-shadow: 0 5px 15px rgba(255, 204, 0, 0.4);
}

/* HEADER PRINCIPAL REDISEÑADO */
.header-bottom {
  background: var(--white);
  height: 90px;
  display: flex;
  align-items: center;
  transition: height 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.header-bottom-content {
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* LOGO MEJORADO */
.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: var(--transition);
}

#logo {
  width: 65px;
  height: 65px;
  object-fit: contain;
  transition: var(--transition);
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-title {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.05);
}

.logo-subtitle {
  font-size: 0.75rem;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* NAVEGACIÓN MEJORADA */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  padding: 12px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.nav-link i {
  font-size: 1rem;
  transition: var(--transition);
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 204, 0, 0.2), transparent);
  transition: left 0.5s ease;
}

.nav-link:hover::before {
  left: 100%;
}

.nav-link:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(109, 15, 16, 0.3);
}

.nav-link:hover i {
  transform: scale(1.2);
  color: var(--secondary-color);
}

.nav-item {
  position: relative;
}

/* SUBMENÚ MEJORADO */
.submenu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 1001;
  animation: fadeInDown 0.3s ease;
  overflow: hidden;
  border: 1px solid rgba(109, 15, 16, 0.1);
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.submenu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 20px;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--white);
}

.submenu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  color: var(--text-dark);
  font-size: 0.9rem;
  transition: var(--transition);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.submenu a:last-child {
  border-bottom: none;
}

.submenu a i {
  color: var(--primary-color);
  font-size: 1rem;
  transition: var(--transition);
}

.submenu a:hover {
  background: linear-gradient(90deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  padding-left: 25px;
}

.submenu a:hover i {
  color: var(--secondary-color);
  transform: translateX(5px) rotate(360deg);
}

.nav-item:hover .submenu {
  display: block;
}

/* EFECTOS DE SCROLL EN HEADER */
.header-hidden .header-top {
  transform: translateY(-100%);
}

.header-hidden .header-bottom {
  transform: translateY(-45px);
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.header-hidden #logo {
  width: 45px;
  height: 45px;
}

.header-hidden .logo-title {
  font-size: 1.4rem;
}

.header-hidden .logo-subtitle {
  font-size: 0.65rem;
}

.header-hidden .nav-link {
  padding: 10px 16px;
  font-size: 0.85rem;
}

/* ===== HEADER MÓVIL MEJORADO ===== */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.mobile-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.mobile-logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-logo {
  height: 45px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.mobile-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 2px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.mobile-menu-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  backdrop-filter: blur(10px);
  transition: var(--transition);
}

.mobile-menu-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-menu-toggle.active {
  background: var(--secondary-color);
  border-color: var(--secondary-color);
}

.mobile-menu-toggle.active span {
  background-color: var(--primary-dark);
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9999;
  backdrop-filter: blur(5px);
}

.mobile-overlay.show {
  display: block;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.mobile-nav {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 350px;
  height: 100%;
  background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.mobile-overlay.show .mobile-nav {
  transform: translateX(0);
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 2px solid var(--secondary-color);
  background: rgba(0, 0, 0, 0.2);
}

.mobile-logo-full {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-nav-logo {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.3));
}

.mobile-nav-title {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--white);
  letter-spacing: 2px;
}

.mobile-nav-subtitle {
  font-size: 0.7rem;
  color: var(--secondary-color);
  font-weight: 500;
}

.mobile-close-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.mobile-close-btn:hover {
  background: var(--secondary-color);
  color: var(--primary-dark);
  transform: rotate(90deg) scale(1.1);
  border-color: var(--secondary-color);
}

.mobile-nav-links {
  padding: 10px 0;
  flex: 1;
  overflow-y: auto;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--white);
  padding: 18px 25px;
  font-size: 1rem;
  font-weight: 600;
  transition: var(--transition);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
}

.mobile-nav-link i {
  font-size: 1.2rem;
  width: 30px;
  transition: var(--transition);
}

.mobile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 100%;
  background: var(--secondary-color);
  transition: width 0.3s ease;
  z-index: -1;
}

.mobile-nav-link:hover::before {
  width: 5px;
}

.mobile-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  padding-left: 35px;
  color: var(--secondary-color);
}

.mobile-nav-link:hover i {
  transform: scale(1.2) rotate(360deg);
}

.mobile-nav-footer {
  padding: 25px;
  background: rgba(0, 0, 0, 0.3);
  border-top: 2px solid var(--secondary-color);
}

.mobile-social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.mobile-social-icons a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.mobile-social-icons a:hover {
  background: var(--secondary-color);
  color: var(--primary-dark);
  transform: translateY(-5px) rotate(360deg);
}

.mobile-contact {
  text-align: center;
  color: var(--white);
  font-size: 0.85rem;
}

.mobile-contact p {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 8px 0;
}

.mobile-contact i {
  color: var(--secondary-color);
}

/* ===== CONTENIDO PRINCIPAL ===== */
main {
  margin-top: 135px;
}

/* ===== SLIDER HERO MODIFICADO (IMÁGENES COMPLETAS) ===== */
.hero-slider {
  position: relative;
  height: 70vh;
  overflow: hidden;
  background: var(--bg-light);
}

.slider-container {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  border: none;
  font-size: 2rem;
  width: 50px;
  height: 50px;
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  border-radius: 50%;
  backdrop-filter: blur(5px);
}

.slider-nav:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.slider-nav.prev {
  left: 20px;
}

.slider-nav.next {
  right: 20px;
}

.slider-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
}

.indicator.active {
  background: var(--primary-color);
  transform: scale(1.2);
  border-color: var(--secondary-color);
}

.indicator:hover {
  background: rgba(0, 0, 0, 0.8);
}

/* ===== SECCIONES COMUNES ===== */
section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  font-weight: bold;
}

.header-line {
  width: 80px;
  height: 4px;
  background: var(--secondary-color);
  margin: 0 auto 20px;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== SECCIÓN NOSOTROS ===== */
.section-nosotros {
  background: var(--white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.nosotros-card {
  background: var(--bg-light);
  padding: 40px 30px;
  border-radius: 10px;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow);
}

.nosotros-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
  font-size: 2rem;
  color: var(--white);
}

.nosotros-card h3 {
  font-size: 1.5rem;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.nosotros-card p {
  color: var(--text-light);
  line-height: 1.8;
}

/* ===== NOTICIAS ===== */
.section-noticias {
  background: var(--bg-light);
}

.noticias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

.noticia-card {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.noticia-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
}

.noticia-imagen {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.noticia-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.noticia-card:hover .noticia-imagen img {
  transform: scale(1.1);
}

.noticia-fecha {
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--secondary-color);
  color: var(--primary-color);
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.85rem;
}

.noticia-contenido {
  padding: 30px 25px;
}

.noticia-contenido h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 15px;
  line-height: 1.4;
}

.noticia-contenido p {
  color: var(--text-light);
  margin-bottom: 20px;
  line-height: 1.7;
}

.btn-leer-mas {
  color: var(--primary-color);
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-leer-mas:hover {
  gap: 12px;
  color: var(--primary-dark);
}

/* ===== CTA BANNER ===== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--white);
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 35px;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta {
  display: inline-block;
  padding: 15px 40px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: var(--transition);
}

.btn-cta.primary {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.btn-cta.primary:hover {
  background: #ffdd44;
  transform: scale(1.05);
  box-shadow: 0 5px 20px rgba(255, 204, 0, 0.4);
}

.btn-cta.secondary {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-cta.secondary:hover {
  background: var(--white);
  color: var(--primary-color);
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--bg-dark);
  color: var(--white);
  padding: 60px 0 0;
  margin-top: 0;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-column h3 {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: var(--secondary-color);
  position: relative;
  padding-bottom: 10px;
}

.footer-column h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--secondary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 12px;
}

.footer-column a {
  color: #ccc;
  transition: var(--transition);
  display: inline-block;
}

.footer-column a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.contact-info {
  list-style: none;
}

.contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 15px;
  color: #ccc;
}

.contact-info i {
  color: var(--secondary-color);
  margin-top: 3px;
}

.footer-bottom {
  text-align: center;
  background-color: #111;
  padding: 20px 0;
  margin-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===== BOTÓN FLOTANTE ===== */
.chat-bubble-container {
  position: fixed;
  bottom: 30px;
  left: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.chat-bubble-text {
  font-size: 0.85rem;
  font-weight: bold;
  color: var(--white);
  background: var(--primary-color);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  animation: pulse 2s infinite;
}

.chat-bubble {
  width: 60px;
  height: 60px;
  background: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  animation: pulse 2s infinite;
  transition: var(--transition);
  padding: 8px;
}

.chat-bubble:hover {
  transform: scale(1.1);
  animation: none;
}

.chat-bubble-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 998;
  box-shadow: var(--shadow-lg);
}

.scroll-top.show {
  opacity: 1;
  visibility: visible;
}

.scroll-top:hover {
  background: var(--primary-dark);
  transform: translateY(-5px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .header-contact {
    display: none;
  }

  .header-top-content {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  #main-header {
    display: none;
  }
  
  .mobile-header {
    display: block;
  }
  
  main {
    margin-top: 69px;
  }
  
  .hero-slider {
    height: 50vh;
  }
  
  .slider-nav {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
  }
  
  .slider-nav.prev {
    left: 10px;
  }
  
  .slider-nav.next {
    right: 10px;
  }

  section {
    padding: 50px 0;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .nosotros-grid,
  .noticias-grid {
    grid-template-columns: 1fr;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .btn-cta {
    width: 100%;
    max-width: 300px;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .chat-bubble-container {
    left: 20px;
    bottom: 20px;
  }
  
  .chat-bubble {
    width: 50px;
    height: 50px;
  }
  
  .chat-bubble-text {
    font-size: 0.75rem;
    padding: 6px 12px;
  }

  .scroll-top {
    bottom: 100px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

  /* Popup responsive */
  .popup-container {
    max-width: 95%;
    max-height: 85vh;
  }

  .popup-close {
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    top: 10px;
    right: 10px;
  }

  .popup-image {
    max-height: 85vh;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  .section-header h2 {
    font-size: 1.7rem;
  }

  .cta-content h2 {
    font-size: 1.5rem;
  }

  .popup-container {
    max-width: 98%;
    max-height: 80vh;
  }

  .popup-close {
    width: 35px;
    height: 35px;
    font-size: 1.3rem;
  }

  .popup-image {
    max-height: 80vh;
  }
}