
/* 🌐 Responsive Plantillas de Categoría */

/* ========================= */
/* 🔁 ESTILOS RESPONSIVE     */
/* ========================= */

@media screen and (max-width: 768px) {
  body {
    margin: 0;
    padding: 0;
    background-color: #e7e3da;
    background-image: url("/static/img/p_fondo_responsive_unificado.png");
    background-repeat: no-repeat;
    background-position: center top;
    background-attachment: fixed;
    background-size: contain;    /* ⬅️ Muestra la imagen con su tamaño natural */
    font-family: 'Raleway', sans-serif;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    overflow-x: hidden;
    padding-bottom: 0;
  }

  .contenedor-principal {
    position: relative;
    width: 90% !important;
    max-width: 350px !important;
    margin: 25px auto -30px auto !important;
    padding: 25px 14px !important;
    background-color: rgba(255, 255, 255, 0.25);
    border-radius: 18px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    padding-bottom: 10px;
    z-index: 10;
  }

  body.plantillas_categoria .contenedor-principal {
    margin: 80px auto -20px auto !important;
    position: relative;
  }

  .barra-superior {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px; /* Espacio entre menú y logo */
    padding: 10px 16px 0 16px;
    position: relative;
    width: 100%;
    height: auto;
    box-sizing: border-box;
    z-index: 20;
  }



  .menu-tooltip-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  /* ====== MENÚ RESPONSIVE LATERAL (copiado de generador) ====== */

.menu-icon {
  position: absolute !important;
  top: 1px !important;
  left: 1px !important;
  width: 26px !important;
  height: 26px !important;
  z-index: 30 !important;
}

.menu-icon img {
  width: 26px !important;
  height: 26px !important;
  object-fit: contain;
  display: block;
}


.side-menu {
  width: 50vw;
  left: -50vw;
}

.side-menu li a {
  font-size: 12px;
  padding: 8px 0;
}

.side-menu li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}


  .botones-plantilla {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 8px; /* vertical: 10px, horizontal: 8px */
    margin-top: 10px;
  }

  .botones-plantilla button {
    flex: 1 1 45%;
    max-width: 140px;
    padding: 8px 10px;
    font-size: 13px;
    border-radius: 12px;
    font-weight: bold;
    white-space: nowrap;
  }

  .titulo {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #375e65 !important;
    text-align: center !important;
    font-family: 'Raleway', sans-serif !important;
    margin: 0 auto 20px auto !important;
  }

  .acciones button {
    font-size: 11px !important;
    font-weight: bold !important;
    font-family: 'Raleway', sans-serif !important;
    text-align: center !important;
    text-transform: none !important;
    padding: 8px 0 !important;
  }

  .envoltorio-flex {
    position: relative;
  }


  .footer {
    margin-top: 0px !important;
    padding-top: 0;
    padding-bottom: 8px;
    text-align: center;
  }

  .entrada-plantilla:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }


  /* Footer responsive */
    .redes-sociales {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px !important;
    margin-bottom: -40px !important;
  }

  .redes-sociales img {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
  }

  .redes-sociales img:hover {
    transform: scale(1.2);
  }

  .marca-registrada {
    text-align: center;
    font-family: 'Urbanist', sans-serif;
    font-size: 7px !important;
    color: #807e78;
    opacity: 0.8;
    margin-bottom: 0px !important;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

   /* Ajuste visual específico solo para el icono de Shorts */
  .redes-sociales img[src*="youtube_shorts"] {
    width: 20px !important;
    height: auto;
    transform: translateY(1px);
  }


  .plantillas-categoria-container {
    margin-bottom: 60px !important;
  }


  
  .logo-superior {
  display: none !important;
}

  .logo-responsive {
    display: block !important;
    position: absolute !important;
    top: 16px !important;
    left: 50% !important;                     /* Centrado horizontal */
    transform: translateX(-50%) !important;  /* Corrige el centrado */
    width: auto !important;
    height: auto !important;
    z-index: 10;
  }

  .logo-colibri-responsive {
    width: 225px  !important;      /* 🔽 Tamaño fijo base */
    max-width: 38vw  !important;
    height: auto !important;       /* ✅ Asegura proporción natural */
    max-height: 80px !important;   /* ✅ Límite para evitar estiramiento vertical */
    object-fit: contain;           /* ✅ Asegura que no se deforme */
  }

.card-plantilla {
  width: 105% !important;
  max-width: 375px !important;
  margin: 0 auto 20px auto !important;
  box-sizing: border-box;
  transform: translateX(-2.5%);  /* Centrado visual si excedes el 100% */
}


.card-plantilla .acciones {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 5px;
  margin-top: 12px;
}

.card-plantilla .acciones button {
  flex: 1 1 45%;
  min-width: 42%;
  max-width: 90px;
  padding: 6px 8px;
  font-size: 9px;
  border-radius: 20px;
  font-weight: bold;
  white-space: nowrap;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.card-plantilla .btn-ver-plantilla {
  background-color: #7A941F; /* verde */
  color: white;
}

.card-plantilla .btn-favorito {
  background-color: #375e65; /* azul petróleo */
  color: white;
}

.card-plantilla .btn-copiar {
  background-color: #d87d0e; /* naranja oscuro */
  color: white;
}

.card-plantilla .btn-compartir {
  background-color: #e38c28; /* naranja claro */
  color: white;
}


.card-plantilla .btn-comprar {
  background-color: #92180b;
  color: white;
  font-size: 12px !important;
  padding: 8px 20px !important;
  min-width: 42%;
  max-width: 240px !important;
  height: auto;
  border-radius: 20px;
  line-height: 1.2 !important;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}



}
