/*
Theme Name: Maggiore
Theme URI:  https://ejemplo.com/maggiore
Author:     Tu Agencia
Author URI: https://ejemplo.com
Description: Tema base para una agencia de marketing digital
Version:    1.0
Text Domain: maggiore
Domain Path: /languages
*/
main {
  min-height: calc(100vh - 100px);
}
footer {
  min-height: 100px;
}
.mg-thumb-wrapper {
  border: 1px solid #ccc;
  padding: 4px;
  border-radius: 4px;
}
.mg-thumb-wrapper img {
  width: 80px;
  height: auto;
  display: block;
}
/* Galería de Imágenes */
.images-gallery.layout-grid .media-item {
}

.images-gallery.masonry-grid {
  column-count: 3;
  column-gap: 1rem;
}
.images-gallery.masonry-grid .media-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.images-gallery.vertical-gallery {
  max-width: 100%;
  margin: 0 auto;
}
.images-gallery.vertical-gallery .media-item {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .images-gallery.masonry-grid {
    column-count: 2;
  }
}
@media (max-width: 480px) {
  .images-gallery.masonry-grid {
    column-count: 1;
  }
}

/* Galería de Videos (Masonry) */
.videos-masonry {
  column-count: 3;
  column-gap: 1.5rem;
}

.video-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* Video Player Container */
.custom-video-player,
.external-video {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

/* Ratios */
.ratio-16x9 .custom-video-player::before,
.ratio-16x9 .external-video::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

.ratio-9x16 .custom-video-player::before {
  content: "";
  display: block;
  padding-top: 177.78%;
}

.ratio-1x1 .custom-video-player::before {
  content: "";
  display: block;
  padding-top: 100%;
}

/* Video Element */
.video-element {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Poster/Thumbnail */
.video-poster {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
  overflow: hidden;
}

.poster-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  background: #000; /* Fondo mientras carga */
}

.poster-image[src*="data:image/svg"] {
  opacity: 0.3; /* Placeholder visible pero tenue */
}

.poster-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  z-index: 2;
  transition: background 0.3s ease;
}

.video-poster:hover .poster-overlay {
  background: rgba(0, 0, 0, 0.5);
}

.play-btn-center {
  position: relative;
  z-index: 3;
}

.custom-video-player.playing .video-poster {
  opacity: 0;
  pointer-events: none;
}

/* Botón Play Central (ESTILO YOUTUBE) */
.play-btn-center {
  background: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
  padding: 0;
  opacity: 0.9;
}

.play-btn-center:hover {
  transform: scale(1.1);
  opacity: 1;
}

.play-btn-center:active {
  transform: scale(0.95);
}

/* Controles Custom */
.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-video-player:hover .video-controls,
.custom-video-player.playing .video-controls {
  opacity: 1;
}

/* Progress Bar */
.progress-bar {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  cursor: pointer;
  margin-bottom: 8px;
  position: relative;
}

.progress-filled {
  height: 100%;
  background: #ff0000;
  border-radius: 2px;
  width: 0%;
  transition: width 0.1s ease;
}

.progress-bar:hover {
  height: 6px;
}

/* Controles Inferiores */
.controls-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-btn {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
}

.control-btn:hover {
  opacity: 0.8;
}

.time-display {
  color: white;
  font-size: 12px;
  font-family: Arial, sans-serif;
  display: flex;
  gap: 4px;
}

.spacer {
  flex: 1;
}

.volume-slider {
  width: 60px;
  cursor: pointer;
}

/* Título del Video */
.video-title {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.custom-video-player:hover .video-title {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .videos-masonry {
    column-count: 2;
  }
}

@media (max-width: 576px) {
  .videos-masonry {
    column-count: 1;
  }

  .play-btn-center svg {
    width: 60px;
    height: 60px;
  }

  .control-btn svg {
    width: 20px;
    height: 20px;
  }
}
.videos-vertical {
  max-width: 1200px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.videos-vertical .video-item {
  width: 100%;
  margin-bottom: 0; /* No margin bottom porque gap lo maneja */
}

.videos-vertical .custom-video-player,
.videos-vertical .external-video {
  max-width: 100%;
}

/* Para videos verticales en layout vertical, centrarlos */
.videos-vertical .ratio-9x16 {
  max-width: 500px;
  margin: 0 auto;
}

/* Para videos cuadrados en layout vertical */
.videos-vertical .ratio-1x1 {
  max-width: 700px;
  margin: 0 auto;
}

/* Responsive para layout vertical */
@media (max-width: 768px) {
  .videos-vertical {
    gap: 1.5rem;
  }

  .videos-vertical .ratio-9x16,
  .videos-vertical .ratio-1x1 {
    max-width: 100%;
  }
}

/* ==============================================
   TEAM MEMBER CARD - Nuevas clases CSS
   ============================================== */

/* Card container */
.team-member-card {
  position: relative;
  overflow: hidden;
}

/* Team badge (categoría) en la esquina superior derecha */
.member-team {
  position: absolute;
  top: 3px;
  right: 2px;
  z-index: 2;
}

/* Link dentro del team tag */
.team-tag {
  font-size: 0.875rem;
  color: white;
  text-decoration: none;
}

/* LinkedIn icon en la esquina superior izquierda */
.member-social {
  position: absolute;
  top: 2px;
  left: 5px;
  z-index: 2;
  margin: 0;
}

/* Foto del miembro */
.member-photo {
  width: 100%;
  aspect-ratio: 9/10;
  object-fit: cover;
  display: block;
}

/* Placeholder cuando no hay foto */
.member-photo-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  background: #e9ecef;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Información del miembro (superpuesta en la parte inferior) */
.member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 10px 20px;
  padding-top: 50px;
  background: linear-gradient(transparent, #000000);
  width: 100%;
}

/* Nombre del miembro */
.member-name {
  margin-bottom: 0.25rem;
  color: white;
}

/* Cargo del miembro */
.member-position {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}
/* Ocultamos el markup original (pero queda en el DOM) */
.language-switcher > li {
  display: none;
}

/* Nuevo wrapper que crea el JS */
.language-switcher .ls-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

/* Botón negro */
.language-switcher .ls-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  cursor: pointer;
  line-height: 1;
}

.language-switcher .ls-btn:focus {
  outline: 2px solid rgba(255, 255, 255, 0.35);
  outline-offset: 2px;
}

.language-switcher .ls-btn img {
  width: 18px;
  height: auto;
  display: block;
}

.language-switcher .ls-caret {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transform: translateY(-1px);
}

/* Menú */
.language-switcher .ls-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 54px;
  padding: 6px;
  background: #0b0b0b;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
  z-index: 9999;

  display: none;
}

.language-switcher .ls-dropdown.is-open .ls-menu {
  display: grid;
  gap: 6px;
}

/* Items del menú */
.language-switcher .ls-menu a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
}

.language-switcher .ls-menu a:hover,
.language-switcher .ls-menu a:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  outline: none;
}

.language-switcher .ls-menu img {
  width: 18px;
  height: auto;
  display: block;
}

/* Por si tu tema mete estilos raros a li */
.language-switcher li {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/**
 * Footer Styles - Maggiore Theme
 * Adaptado al diseño dark del tema
 */

/* ========================================
   BREADCRUMBS
   ======================================== */
.breadcrumb-container {
  background-color: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 0;
  margin-bottom: 0;
}

.breadcrumb {
  background: transparent;
  margin-bottom: 0;
  padding: 0;
  font-size: 0.9rem;
}

.breadcrumb-item {
  color: rgba(255, 255, 255, 0.7);
}

.breadcrumb-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb-item a:hover {
  color: #ffffff;
}

.breadcrumb-item.active {
  color: rgba(255, 255, 255, 0.9);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "›";
  color: rgba(255, 255, 255, 0.4);
  padding: 0 0.5rem;
}

.breadcrumb-item i {
  font-size: 0.85rem;
  margin-right: 0.25rem;
}

/* ========================================
   FOOTER PRINCIPAL
   ======================================== */
.footer-maggiore {
  background-color: #000000;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 4rem;
  padding-bottom: 2rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-main {
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 2rem;
}

/* ========================================
   COLUMNA 1: LOGO + CONTACTO + REDES
   ======================================== */
.footer-logo img {
  max-width: 180px;
  height: auto;
  filter: brightness(0) invert(1); /* Convierte logo a blanco si es necesario */
}

.footer-contact .contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

.footer-contact .contact-item i {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 0.2rem;
  min-width: 20px;
}

.footer-contact .contact-item a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact .contact-item a:hover {
  color: #ffffff;
}

/* Redes Sociales */
.footer-social {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.footer-social .social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-social .social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px);
}

.footer-social .social-link i {
  font-size: 1.2rem;
}

/* ========================================
   COLUMNA 2: MENÚ WORDPRESS
   ======================================== */
.footer-title {
  font-size: 1.1rem;
  font-weight: 400;
  color: #ffffff;
  margin-bottom: 1.5rem;
  letter-spacing: 0.02em;
}

.footer-menu {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li {
  margin-bottom: 0.75rem;
}

.footer-menu a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 1rem;
}

.footer-menu a::before {
  content: "›";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.footer-menu a:hover {
  color: #ffffff;
  padding-left: 1.25rem;
}

.footer-menu a:hover::before {
  color: #ffffff;
}

/* ========================================
   COLUMNA 3: ARCHIVES CPTs
   ======================================== */
.footer-cpt-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-cpt-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-block;
  position: relative;
  padding-left: 1rem;
}

.footer-cpt-link::before {
  content: "›";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.3s ease;
}

.footer-cpt-link:hover {
  color: #ffffff;
  padding-left: 1.25rem;
}

.footer-cpt-link:hover::before {
  color: #ffffff;
}

/* ========================================
   COPYRIGHT
   ======================================== */
.footer-bottom {
  padding-top: 2rem;
}

.copyright-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991px) {
  .footer-maggiore {
    padding-top: 3rem;
  }

  .footer-main {
    padding-bottom: 2rem;
  }
}

@media (max-width: 767px) {
  .breadcrumb-container {
    padding: 0.75rem 0;
  }

  .breadcrumb {
    font-size: 0.85rem;
  }

  .footer-logo img {
    max-width: 150px;
  }

  .footer-title {
    margin-top: 2rem;
    margin-bottom: 1rem;
  }

  .footer-social {
    margin-bottom: 2rem;
  }
}

/* ========================================
   BOOTSTRAP ICONS INTEGRATION
   ======================================== */
/* Asegúrate de tener Bootstrap Icons cargado en functions.php */
/* Si no lo tienes, agrega esto en functions.php:
   wp_enqueue_style('bootstrap-icons', 
   'https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');
*/
