/*
Theme Name: Market Comic
Theme URI: https://tudominio.com/marketcomic
Author: Tu Nombre
Author URI: https://tudominio.com
Description: Tema personalizado para tienda de cómics
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marketcomic
Language: es_ES
*/

/* ==========================================================================
   Variables & Root
   ========================================================================== */
:root {
  --primary-color: #e23636;
  --secondary-color: #333333;
  --text-color: #000000;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray-dark: #202020;
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
html {
  font-family: "Aldrich", sans-serif !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: inherit;
}

body {
  font-family: "Aldrich", sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--white);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.site-header {
  background: var(--white);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-logo {
  width: 120px;
}

.site-logo img {
  width: 100%;
  height: auto;
}

.bg-site {
  background: url(assets/images/background.jpg) repeat top center;
}

/* ==========================================================================
   Navigation & Menu Styles
   ========================================================================== */
.main-menu {
  display: flex;
  gap: 2rem;
}

.menu-items {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.menu-items a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
}

#mobile-menu {
  z-index: 1000;
}

/* ==========================================================================
   Hero Banner Styles
   ========================================================================== */
.hero-banner {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

/* ==========================================================================
   News Section Styles
   ========================================================================== */
.news-section {
  padding: 4rem 0;
  background: var(--gray-light);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.news-content {
  padding: 1.5rem;
}

.news-content h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ==========================================================================
   Bestsellers Section Styles
   ========================================================================== */
.bestsellers {
  padding: 4rem 0;
}

.bestsellers h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.bestsellers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

/* ==========================================================================
   Characters Section Styles
   ========================================================================== */
.characters-section {
  padding: 4rem 0;
  background: var(--gray-light);
}

.characters-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  text-transform: uppercase;
}

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
}

.character-card {
  text-align: center;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.character-card:hover {
  transform: scale(1.05);
}

.character-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 0.5rem;
}

.character-card h3 {
  font-size: 0.9rem;
  font-weight: 500;
}

/* ==========================================================================
   Newsletter Section Styles
   ========================================================================== */
.newsletter {
  padding: 4rem 0;
  background: var(--gray-dark);
  color: var(--white);
  text-align: center;
}

.newsletter h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.newsletter p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.newsletter-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
}

.newsletter-form input {
  flex: 1;
  padding: 1rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
}

/* ==========================================================================
   Button Styles
   ========================================================================== */
.btn {
  background: var(--primary-color);
  color: var(--white);
  padding: 1rem 2rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  text-transform: uppercase;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #c62828;
}

/* ==========================================================================
   WooCommerce Styles
   ========================================================================== */
.woocommerce form .form-row input.input-text {
  border: 1px solid #ccc;
  padding: 5px;
}

/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 1024px) {
  .bestsellers-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .main-menu {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .newsletter-form {
    flex-direction: column;
  }
}

/* ==========================================================================
   Slider & Carousel Styles
   ========================================================================== */
.bg-marvel-dark .splide__pagination.splide__pagination--ltr {
  bottom: -3rem !important;
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
}

.bg-marvel-dark .splide__pagination__page {
  background: rgba(255, 255, 255, 0.3) !important;
  margin: 0 4px !important;
  width: 10px !important;
  height: 10px !important;
}

.bg-marvel-dark .splide__pagination__page.is-active {
  background: white !important;
  transform: scale(1.2) !important;
}

/* ==========================================================================
   Custom Newsletter Styles
   ========================================================================== */
.bg-marvel-dark input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.bg-marvel-dark input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   Pagination Styles
   ========================================================================== */
/* Duplicado para paginación personalizada */
.pagination {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.pagination .page-numbers {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination .page-numbers li {
  display: flex;
}
.pagination .page-numbers a,
.pagination .page-numbers span {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  margin: 0 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pagination .page-numbers .current {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

/* Duplicado para WooCommerce paginación */
.woocommerce-pagination .page-numbers {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
  border: 0!important;
}
.woocommerce-pagination .page-numbers li {
  display: flex;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  margin: 0 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-pagination .page-numbers .current {
  background: #e11d48!important;
  color: #fff;
  border-color: #e11d48!important;
}

/* Anula los estilos de WooCommerce para la paginación personalizada */
.woocommerce-pagination {
  all: unset;
  margin-top: 2rem;
  margin-bottom: 2rem;
}
.woocommerce-pagination .page-numbers {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
.woocommerce-pagination .page-numbers li {
  display: flex;
}
.woocommerce-pagination .page-numbers a,
.woocommerce-pagination .page-numbers span {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  margin: 0 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.woocommerce-pagination .page-numbers .current {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

/* Anula los estilos de la paginación del plugin WooCommerce solo en la paginación personalizada */
body nav.woocommerce-pagination {
  all: unset;
  margin-top: 2rem;
  margin-bottom: 2rem;
  display: block;
}
body nav.woocommerce-pagination ul.page-numbers {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}
body nav.woocommerce-pagination ul.page-numbers li {
  display: flex;
}
body nav.woocommerce-pagination ul.page-numbers a,
body nav.woocommerce-pagination ul.page-numbers span {
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  border-radius: 0.375rem;
  border: 1px solid #ccc;
  background: #fff;
  color: #333;
  margin: 0 2px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
body nav.woocommerce-pagination ul.page-numbers .current {
  background: #e11d48;
  color: #fff;
  border-color: #e11d48;
}

/* ==========================================================================
   FAQ Styles
   ========================================================================== */
#more-questions {
  background: url(assets/images/bg-more-questions.jpg) no-repeat center center;
  background-size: cover;
}

/* ==========================================================================
   Search & Filter Styles
   ========================================================================== */
.flex.items-center.flex-1.justify-center {
  position: relative;
}

#search-form {
  width: 100%;
  transition: height 0.3s ease;
  height: 0;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  position: relative; /* Asegura crear contexto de apilamiento propio */
  z-index: 60; /* Por encima de otros elementos del header en fichas */
}

#search-form.active {
  height: auto;
}

/* ==========================================================================
   Button Primary Styles
   ========================================================================== */
.btn-primary {
  background-color: #1a1a1a;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  border: 2px solid #ccc;
}

.btn-primary:hover {
  background-color: #1f2937;
}

/* ==========================================================================
   Ticket System Styles
   ========================================================================== */
.sistema-tickets {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.buscador-tickets {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
}

.buscador-tickets input {
  flex: 1;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.buscador-tickets button {
  background: #000;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.opciones-tickets {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.opcion-ticket {
  background: #000;
  color: white;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  flex: 1;
  cursor: pointer;
  transition: transform 0.3s;
}

.opcion-ticket:hover {
  transform: translateY(-5px);
}

.opcion-ticket i {
  font-size: 2em;
  margin-bottom: 10px;
}

.formulario-ticket {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.formulario-ticket input,
.formulario-ticket textarea {
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.formulario-ticket textarea {
  min-height: 150px;
}

.formulario-ticket button {
  background: #000;
  color: white;
  border: none;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
}

.tickets-container {
  background: url(assets/images/bg-tickets.jpg) no-repeat center center;
  background-size: cover;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.tickets-container::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    transparent 20%,
    rgba(255, 0, 0, 0.1) 100%
  );
  transform: translate(-50%, -50%);
  z-index: 0;
}

.tickets-header {
  text-align: center;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.tickets-header h1 {
  color: #fff;
  font-size: 2.5em;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.search-bar {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 10px;
}

.search-bar input {
  flex: 1;
  padding: 15px;
  border-radius: 25px;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  font-size: 16px;
}

.enviar-btn {
  padding: 15px 30px;
  background: #000;
  color: white;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  font-weight: bold;
}

.tickets-options {
  display: flex;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ticket-option {
  background: #000;
  color: white;
  padding: 30px;
  border-radius: 15px;
  text-align: center;
  flex: 1;
  max-width: 300px;
  text-decoration: none;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.ticket-option:hover {
  transform: translateY(-5px);
}

.ticket-icon {
  margin-bottom: 20px;
}

.ticket-option h2 {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: white;
}

.ticket-option p {
  color: #ccc;
  font-size: 0.9em;
  line-height: 1.4;
}

.ticket-form,
#lista-tickets {
  position: relative;
}

/* ==========================================================================
   Slider Navigation Styles
   ========================================================================== */
.splide__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}

.splide__arrow--prev {
  left: -50px;
}

.splide__arrow--next {
  right: -50px;
}

/* ==========================================================================
   Carrusel de Banners Informativos
   ========================================================================== */
#info-banner-slider {
  max-width: 100%;
}

#info-banner-slider .splide__slide {
  padding: 0;
}

#info-banner-slider .banner-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.info-banner-arrow {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.8;
  z-index: 20;
}

.info-banner-arrow:hover {
  background: rgba(0, 0, 0, 0.9);
  opacity: 1;
  transform: scale(1.1);
}

.info-banner-arrow img {
  filter: brightness(0) invert(1);
  width: 20px;
  height: 20px;
}

/* Estilos para la paginación del carrusel de banners */
#info-banner-slider .splide__pagination {
  bottom: -3rem;
}

#info-banner-slider .splide__pagination__page {
  width: 12px;
  height: 12px;
  margin: 0 6px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  transition: all 0.3s ease;
}

#info-banner-slider .splide__pagination__page.is-active {
  background: #000;
  transform: scale(1.2);
}

/* Responsive para banners informativos */
@media (max-width: 768px) {
  .info-banner-arrow {
    width: 40px;
    height: 40px;
  }
  
  .info-banner-arrow img {
    width: 16px;
    height: 16px;
  }
  
  #info-banner-slider .splide__slide {
    padding: 0;
  }
  
  #info-banner-slider .banner-image {
    width: 100%;
    height: auto;
  }
}

/* ==========================================================================
   Discover More Button Styles
   ========================================================================== */
.descubre-mas {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 0.375rem;
  font-weight: bold;
  text-transform: uppercase;
  margin-top: 2rem;
  transition: background-color 0.3s;
}

.descubre-mas:hover {
  background-color: #333;
}

.thumbnail-item {
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.thumbnail-item.active,
.thumbnail-item:hover {
  opacity: 1;
}

.main-product-image {
  transition: transform 0.3s ease;
}

.main-product-image-container {
  overflow: hidden;
}

.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loading-overlay.hidden {
  display: none;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#filtros-loading {
  display: inline-block;
  margin-left: 10px;
  font-size: 14px;
  color: #666;
}

/* Animación del carrito */
.cart-animation {
  position: fixed;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.3);
  transition: all 0.5s ease-in-out;
}

.cart-animation.active {
  opacity: 1;
  transform: scale(1);
}

.cart-animation.flying {
  transform: scale(0.3);
  opacity: 0;
}

/* Efecto de pulso para el icono del carrito */
@keyframes cartPulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.cart-pulse {
  animation: cartPulse 0.5s ease-in-out;
}

/* Estilos para tickets */
.ticket-item {
  transition: all 0.3s ease;
}

.ticket-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.estado {
  background-color: #f3f4f6;
}

.estado.abierto {
  background-color: #dcfce7;
  color: #166534;
}

.estado.en_proceso {
  background-color: #fef3c7;
  color: #92400e;
}

.estado.resuelto {
  background-color: #dbeafe;
  color: #1e40af;
}

.estado.cerrado {
  background-color: #f3f4f6;
  color: #4b5563;
}

.prioridad {
  background-color: #f3f4f6;
}

.prioridad.alta {
  background-color: #fee2e2;
  color: #991b1b;
}

.prioridad.media {
  background-color: #fef3c7;
  color: #92400e;
}

.prioridad.baja {
  background-color: #dcfce7;
  color: #166534;
}

.search-bar {
  position: relative;
  margin-bottom: 2rem;
}

.search-bar input {
  width: 100%;
  padding: 1rem;
  padding-right: 4rem;
  border: 2px solid #e5e7eb;
  border-radius: 0.5rem;
  font-size: 1rem;
}

.search-bar button {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem 1rem;
  background-color: #000;
  color: white;
  border-radius: 0.375rem;
  transition: all 0.3s ease;
}

.search-bar button:hover {
  background-color: #1f2937;
}

/* ==========================================================================
   Estilos de páginas de contenido
   ========================================================================== */
body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content {
  max-width: 65ch;
  margin: 0 auto;
  padding: 2rem;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  h1 {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  h2 {
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  p {
  font-size: 1.125rem;
  color: #4a5568;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  .privacy-policy-tutorial {
  font-size: 0.875rem;
  color: #718096;
  font-style: italic;
  display: block;
  margin-bottom: 0.5rem;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  a {
  color: #2563eb;
  text-decoration: underline;
  transition: color 0.2s;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  a:hover {
  color: #1d4ed8;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  ul,
body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  li {
  margin-bottom: 0.5rem;
  color: #4a5568;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .entry-content
  strong {
  font-weight: 600;
  color: var(--text-color);
}

/* Contenedor principal solo para páginas de contenido */
body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .page-container {
  background-color: #f9fafb;
  min-height: calc(100vh - 4rem);
  padding: 2rem 1rem;
}

body:not(.woocommerce-checkout):not(.woocommerce-cart):not(.woocommerce-account)
  .page-content {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
}

/* Estilos básicos para el formulario Contact Form 7 */
.wpcf7-form {
  margin: 0 auto;
}

.wpcf7-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

.wpcf7-form input[type="submit"] {
  background-color: #000;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.wpcf7-form input[type="submit"]:hover {
  background-color: #333;
}

/* Mensajes de error */
.wpcf7-not-valid-tip {
  color: #dc3232;
  font-size: 14px;
  margin-top: 5px;
}

.wpcf7-response-output {
  margin: 20px 0;
  padding: 12px;
  border-radius: 4px;
  text-align: center;
}

/* ==========================================================================
   Estilos 2FA
   ========================================================================== */
.wp-2fa-config {
  max-width: 600px;
  margin: 2rem auto;
  padding: 2rem;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.wp-2fa-config h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text-color);
  text-align: center;
}

.wp-2fa-config p {
  margin-bottom: 1rem;
  color: var(--secondary-color);
  line-height: 1.6;
}

/* Contenedor del código QR */
.wp-2fa-config .qr-code {
  text-align: center;
  margin: 2rem 0;
  padding: 1rem;
  background: var(--gray-light);
  border-radius: 8px;
}

.wp-2fa-config .qr-code img {
  max-width: 200px;
  height: auto;
}

/* Código manual */
.wp-2fa-config code {
  display: block;
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  background: var(--gray-light);
  border-radius: 4px;
  font-family: monospace;
  font-size: 1.1rem;
  letter-spacing: 2px;
  color: var(--secondary-color);
}

/* Formulario de activación */
.wp-2fa-config form {
  margin-top: 2rem;
}

.wp-2fa-config input[type="text"] {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: 2px solid var(--gray-light);
  border-radius: 4px;
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 2px;
}

.wp-2fa-config input[type="text"]:focus {
  border-color: var(--primary-color);
  outline: none;
}

/* Botones */
.wp-2fa-config button,
.wp-2fa-config .button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.wp-2fa-config button[type="submit"] {
  background: var(--primary-color);
  color: var(--white);
  width: 100%;
}

.wp-2fa-config button[type="submit"]:hover {
  background: #c92020;
}

/* Contenedor de botones cuando 2FA está activo */
.wp-2fa-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

#desactivar_2fa {
  background: #dc3545;
  color: var(--white);
  flex: 1;
}

#desactivar_2fa:hover {
  background: #c82333;
}

.wp-2fa-buttons .button {
  background: var(--secondary-color);
  color: var(--white);
  flex: 1;
  text-align: center;
}

.wp-2fa-buttons .button:hover {
  background: #444444;
}

/* Mensajes de estado */
.wp-2fa-config .status-message {
  text-align: center;
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 4px;
}

.wp-2fa-config .status-active {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* ==========================================================================
   Estilos página de Seguridad 2FA
   ========================================================================== */
.security-page {
  max-width: 1000px;
  margin: 0 auto;
}

.security-page h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-color);
}

.security-page .lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--secondary-color);
  margin-bottom: 2rem;
}

.security-page h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: var(--text-color);
}

.security-page ol {
  background: var(--gray-light);
  padding: 2rem 2rem 2rem 3.5rem;
  border-radius: 8px;
  margin: 1.5rem 0;
}

.security-page ol li {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  color: var(--secondary-color);
  padding-left: 0.5rem;
}

.security-page ol li:last-child {
  margin-bottom: 0;
}

/* Estilos para la sección de apps */
.security-page .row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.security-page .app-card {
  background: var(--white);
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.security-page .app-card:hover {
  transform: translateY(-5px);
}

.security-page .app-card .lead {
  color: var(--text-color);
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.security-page .app-card p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
  font-size: 1rem;
}

.security-page .app-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.security-page .btn-outline-dark {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid var(--text-color);
  border-radius: 6px;
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.security-page .btn-outline-dark:hover {
  background: var(--text-color);
  color: var(--white);
}

/* Alerta informativa */
.security-page .alert-info {
  background: #e8f4fd;
  border: 1px solid #bee5eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem 0;
  color: #0c5460;
  font-size: 1rem;
  line-height: 1.6;
}

.security-page .alert-info strong {
  color: #0a4b53;
}

/* Responsive */
@media (max-width: 768px) {
  .security-page {
    padding: 1rem;
  }

  .security-page h2 {
    font-size: 2rem;
  }

  .security-page .lead {
    font-size: 1.1rem;
  }

  .security-page ol {
    padding: 1.5rem 1.5rem 1.5rem 2.5rem;
  }
}

/* ==========================================================================
   Estilos de Pedidos
   ========================================================================== */
.woocommerce-orders-table {
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  background: transparent !important;
}

.woocommerce-orders-table tr {
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.woocommerce-orders-table tr:hover {
  transform: translateY(-2px);
}

.woocommerce-orders-table td,
.woocommerce-orders-table th {
  padding: 1rem !important;
  vertical-align: middle !important;
}

/* Estilos para el estado del pedido */
.woocommerce-orders-table .order-status {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
}

.woocommerce-orders-table .status-processing {
  background-color: #fef3c7;
  color: #92400e;
}

.woocommerce-orders-table .status-completed {
  background-color: #dcfce7;
  color: #166534;
}

/* Contenedor de acciones */
.woocommerce-orders-table .button-group {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Botones de acción */
.woocommerce-orders-table .action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: #f3f4f6;
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.woocommerce-orders-table .action-button:hover {
  background-color: #e5e7eb;
  transform: scale(1.05);
}

.woocommerce-orders-table .action-button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #4b5563;
}

.woocommerce-orders-table .action-button.view-button:hover svg {
  color: #1a56db;
}

.woocommerce-orders-table .action-button.chat-button:hover svg {
  color: #059669;
}

.woocommerce-orders-table .action-button.complete-button:hover svg {
  color: #047857;
}

/* Tooltip para los botones */
.woocommerce-orders-table .action-button {
  position: relative;
}

.woocommerce-orders-table .action-button::after {
  content: attr(aria-label);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.25rem 0.5rem;
  background: #1f2937;
  color: white;
  font-size: 0.75rem;
  border-radius: 0.25rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.woocommerce-orders-table .action-button:hover::after {
  opacity: 1;
  visibility: visible;
  bottom: calc(100% + 5px);
}

/* ==========================================================================
   Filter Toggle Styles
   ========================================================================== */
.filter-content.collapsed {
  max-height: 0 !important;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
  margin-bottom: 0;
}

.filter-icon {
  transition: transform 0.2s ease-in-out;
}

.filter-toggle:hover .filter-icon {
  transform: scale(1.1);
}

.filter-toggle {
  cursor: pointer;
  user-select: none;
}

.woocommerce-pagination {
  margin-top: 2rem;
  margin-bottom: 2rem;
}
