/* --- Configuración para la Demostración --- */

.footer-demo-setup {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  background-color: #f4f7f6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content-placeholder {
  flex-grow: 1;
  padding: 20px;
  text-align: center;
}

/* --- Contenedor Principal del Footer --- */

.c-footer {
  background-color: #1a1a1a;
  color: #b3b3b3;
  padding: 60px 0;
  font-size: 15px;
  line-height: 24px;
  width: 100%;
  margin-top: auto;
}

.c-footer-container {
  max-width: 1170px;
  margin: auto;
  padding: 0 20px;
}

.c-footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}

/* --- Secciones del Footer --- */

.c-footer-section {
  flex: 1;
  min-width: 220px;
}

.c-footer-section h3 {
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 20px;
  position: relative;
}

.c-footer-section h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, #33b1ff, #007bff);
  border-radius: 2px;
}

.c-footer-about p {
  margin-right: 20px;
}

.c-footer-logo-text {
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
  display: inline-block;
}

/* --- Estilo de los Enlaces --- */

.c-footer-links ul {
  padding: 0;
  list-style: none;
  margin: 0;
}

.c-footer-links ul li a {
  color: #b3b3b3;
  text-decoration: none;
  display: inline-block;
  padding: 4px 0;
  position: relative;
  transition: all 0.3s ease;
}

.c-footer-links ul li a:hover {
  color: #ffffff;
  transform: translateX(5px);
}

.c-footer-links ul li a::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #007bff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}

.c-footer-links ul li a:hover::before {
  transform: scaleX(1);
}

/* --- Iconos y Paneles Interactivos de Contacto --- */

.c-footer-contact-icons {
  display: flex;
  gap: 15px;
  padding-top: 10px;
  position: relative;
  cursor: pointer;
}

.c-footer-contact-item {
  position: relative;
}

.c-footer-panel-toggle {
  display: none;
}

.c-footer-icon-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  font-size: 18px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Estilo del icono cuando está activo (hover o checked) */

.c-footer-icon-button:hover, .c-footer-panel-toggle:checked + .c-footer-icon-button {
  background-color: #007bff;
  transform: translateY(-8px) scale(1.1);
  box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

.c-footer-contact-panel {
  position: absolute;
  bottom: calc(100% + 15px);
  left: 50%;
  width: 320px;
  background-color: #2e2e2e;
  color: #f0f0f0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0.3s;
}

.c-footer-contact-panel::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 8px;
  border-style: solid;
  border-color: #2e2e2e transparent transparent transparent;
}

/* Muestra el panel y le da prioridad visual */

.c-footer-contact-item:hover .c-footer-contact-panel, .c-footer-panel-toggle:checked ~ .c-footer-contact-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s 0s;
  z-index: 10;
}

.c-footer-contact-panel h4 {
  margin: 0 0 15px 0;
  color: #ffffff;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding-bottom: 10px;
}

.c-footer-contact-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.c-footer-contact-panel ul li {
  font-size: 14px;
}

.c-footer-contact-panel ul li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 5px;
  margin: 0 -5px;
  border-radius: 4px;
  text-decoration: none;
  color: inherit;
  transition: background-color 0.2s ease;
}

.c-footer-contact-panel ul li a:hover {
  background-color: rgba(255, 255, 255, 0.08);
}

.c-footer-contact-panel ul li a strong {
  font-weight: 500;
  color: #cccccc;
}

.c-footer-contact-panel ul li a span {
  color: #00aaff;
  font-weight: 400;
  text-align: right;
}

/* --- Barra inferior de Copyright --- */

.c-footer-bottom {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

/* --- Diseño Responsivo --- */

@media (max-width: 768px) {
  .c-footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .c-footer-section h3::after {
    left: 50%;
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .c-footer-contact-icons {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .c-footer-about p {
    margin-right: 0;
  }
}

.c-footer-panel-toggle:checked + .c-footer-icon-button {
  cursor: default;
}

