/* Estilos para el footer moderno basado en el diseño de referencia */
.modern-footer {
  background: #1a1a1a;
  padding: 60px 0 40px;
  font-family: "Inter", sans-serif;
  color: #e5e5e5;
  position: relative;
  overflow: hidden;
}

.modern-footer::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: #5a6b7d;
  border-radius: 50%;
  opacity: 0.15;
  z-index: 1;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

/* Header del footer */
.footer-header {
  text-align: center;
  margin-bottom: 40px;
}

.footer-tagline p {
  font-size: 1rem;
  font-weight: 400;
  color: #a0a0a0;
  margin: 0;
  letter-spacing: 0.5px;
  line-height: 1.5;
}

/* Título principal */
.footer-main-title {
  text-align: center;
  margin-bottom: 80px;
}

.footer-main-title h1 {
  font-size: clamp(3rem, 10vw, 8rem);
  font-weight: 900;
  margin: 0;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  transform: translateX(-50px);
}

.circle-accent {
  position: relative;
  display: inline;
  white-space: nowrap;
}

.circle-accent::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1em;
  height: 1em;
  background: rgba(90, 107, 125, 0.6);
  border-radius: 50%;
  z-index: -1;
}

/* Contenido principal */
.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 80px;
  margin-bottom: 80px;
}

.footer-column h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 30px 0;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  padding-bottom: 12px;
}

.footer-column h3::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: #6b7a8f;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 16px;
}

.footer-column a {
  color: #b0b0b0;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  transition: all 0.3s ease;
  line-height: 1.6;
}

.footer-column a:hover {
  color: #9ba7d4;
  transform: translateX(3px);
}

/* Navegaciones adicionales */
.footer-extra-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.extra-nav-link-horizontal {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
  display: inline-block;
}

.extra-nav-link-horizontal:hover {
  color: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

/* Parte inferior */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding-top: 20px;
  position: relative;
}

.footer-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
}

.footer-copyright {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.copyright-symbol {
  font-size: 2.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

.copyright-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.copyright-text .year {
  font-size: 2.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
}

.copyright-text .company {
  font-size: 2.5rem;
  font-weight: 400;
  color: #ffffff;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.footer-time {
  text-align: center;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 40px;
}

.time-label {
  font-size: 0.8rem;
  font-weight: 500;
  color: #a0a0a0;
  margin-bottom: 4px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.time-value {
  font-size: 0.9rem;
  font-weight: 400;
  color: #ffffff;
}

/* Selector de idioma */
.language-selector {
  display: flex;
  align-items: center;
  gap: 10px;
}

.language-selector label {
  font-size: 0.9rem;
  color: #b0b0b0;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.language-selector select {
  padding: 10px 15px;
  border: 1px solid #444;
  border-radius: 8px;
  background-color: #2a2a2a;
  color: #e5e5e5;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 120px;
}

.language-selector select:hover {
  border-color: #6b7a8f;
  background-color: #333;
  transform: translateY(-1px);
}

.language-selector select:focus {
  outline: none;
  border-color: #9ba7d4;
  box-shadow: 0 0 0 2px rgba(155, 167, 212, 0.25);
}

.language-selector option {
  background-color: #2a2a2a;
  color: #e5e5e5;
  padding: 10px;
}

.footer-scroll-top {
  display: flex;
  align-items: center;
}

.scroll-top-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #6b7a8f;
  border: none;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-top-btn:hover {
  background: #5a6b7d;
  transform: translateY(-2px);
}

.scroll-top-btn i {
  font-size: 1.2rem;
}

/* Enhanced responsive design for tablets */
@media (max-width: 1024px) {
  .footer-container {
    padding: 0 30px;
  }

  .footer-content {
    gap: 50px;
  }

  .footer-main-title h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    transform: translateX(-30px);
  }
}

/* Improved mobile layout for better UX */
@media (max-width: 768px) {
  .modern-footer {
    padding: 40px 0 30px;
  }

  .modern-footer::before {
    width: 400px;
    height: 400px;
    top: 10%;
    right: -20%;
  }

  .footer-container {
    padding: 0 20px;
  }

  .footer-tagline p {
    font-size: 0.9rem;
    padding: 0 10px;
    line-height: 1.6;
  }

  .footer-main-title {
    margin-bottom: 50px;
  }

  .footer-main-title h1 {
    font-size: clamp(2rem, 12vw, 4rem);
    transform: translateX(0);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
    margin-bottom: 50px;
  }

  .footer-column h3::after {
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
  }

  .footer-extra-navigation {
    flex-direction: column;
    gap: 20px;
    text-align: center;
    padding: 15px 0;
    margin-bottom: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 30px;
    text-align: center;
    align-items: center;
  }

  .footer-bottom-left,
  .footer-bottom-right {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-time {
    position: static;
    transform: none;
    order: 1;
  }

  .footer-copyright {
    justify-content: center;
    order: 2;
  }

  .copyright-text .year,
  .copyright-text .company {
    font-size: 2rem;
  }

  .copyright-symbol {
    font-size: 2rem;
  }

  .language-selector {
    justify-content: center;
    order: 3;
  }

  .footer-scroll-top {
    order: 4;
    justify-content: center;
  }
}

/* Optimized small mobile layout */
@media (max-width: 480px) {
  .modern-footer {
    padding: 30px 0 25px;
  }

  .footer-container {
    padding: 0 15px;
  }

  .footer-tagline p {
    font-size: 0.85rem;
    padding: 0 5px;
  }

  .footer-main-title {
    margin-bottom: 40px;
  }

  .footer-main-title h1 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .footer-content {
    margin-bottom: 40px;
    gap: 30px;
  }

  .footer-column h3 {
    font-size: 0.8rem;
    margin-bottom: 20px;
  }

  .footer-column a {
    font-size: 0.9rem;
  }

  .footer-column li {
    margin-bottom: 12px;
  }

  .copyright-text .year,
  .copyright-text .company {
    font-size: 1.6rem;
  }

  .copyright-symbol {
    font-size: 1.6rem;
  }

  .language-selector select {
    min-width: 100px;
    font-size: 0.85rem;
    padding: 8px 12px;
  }

  .scroll-top-btn {
    width: 45px;
    height: 45px;
  }

  .scroll-top-btn i {
    font-size: 1.1rem;
  }

  .extra-nav-link-horizontal {
    font-size: 0.85rem;
  }
}

/* Extra small devices optimization */
@media (max-width: 360px) {
  .footer-container {
    padding: 0 10px;
  }

  .footer-main-title h1 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .copyright-text .year,
  .copyright-text .company {
    font-size: 1.4rem;
  }

  .copyright-symbol {
    font-size: 1.4rem;
  }

  .language-selector select {
    min-width: 90px;
    font-size: 0.8rem;
    padding: 6px 10px;
  }

  .footer-column h3 {
    font-size: 0.75rem;
  }

  .footer-column a {
    font-size: 0.85rem;
  }
}

/* Translation and animation styles */
.translation-status {
  display: none;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #9ba7d4;
  margin-top: 5px;
}

.translation-status.active {
  display: flex;
}

.translation-status .pulse {
  width: 8px;
  height: 8px;
  background: #9ba7d4;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.language-selector.translating {
  position: relative;
  opacity: 0.7;
}

.language-selector.translating::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -25px;
  width: 16px;
  height: 16px;
  border: 2px solid #9ba7d4;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

body.translating {
  cursor: wait;
}

body.translating * {
  pointer-events: none;
}

body.translating .language-selector {
  pointer-events: auto;
}

@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Hide Google Translate elements */
.goog-te-banner-frame,
.goog-te-gadget > span > a,
.goog-te-gadget .goog-te-combo {
  display: none !important;
}

body {
  top: 0 !important;
}

.goog-te-balloon-frame {
  display: none !important;
}

.goog-tooltip {
  display: none !important;
}

.goog-tooltip:hover {
  display: none !important;
}

.goog-text-highlight {
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
