/* Estilos compartidos. Conservar el orden de las reglas y sus sobrescrituras. */

/* Variables del tema compartido */
:root {
  --ec-color-primary: #3484bc;
  --ec-color-secondary: #2b6491;
  --ec-color-accent: #79acd6;
  --ec-color-background: #2b6491;
  --ec-color-navbar: #2b6491;
  --ec-color-social: rgb(186, 89, 149);
  --box-shadow: rgb(174, 166, 166);
  --ec-gradient: linear-gradient(
    70deg,
    #c92b8f 0%,
    rgba(7, 7, 7, 1) 47%,
    #35bd6c 93%
  );
  --ec-color-icon: #0876bb;
  --ec-color-icon-link: #0876bb;
}

/* Fuentes: imports heredados después de :root, ignorados por el navegador.
   Se conserva su posición para no cambiar la tipografía de las aplicaciones. */
@import url("https://fonts.googleapis.com/css2?family=Bungee+Spice&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Russo+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Maven+Pro&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Righteous&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Honk&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Audiowide&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Special+Elite&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@200&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dosis:wght@200..800&family=Outfit:wght@100..900&display=swap");

/* Familias tipográficas y animaciones de texto */
.ec-font-bungee-spice {
  font-family: "Bungee Spice", sans-serif;
}

.ec-font-russo-one {
  font-family: "Russo One", sans-serif;
}

.ec-family-Maven-Pro {
  font-family: "Maven Pro", sans-serif;
}

.ec-Righteous {
  font-family: "Righteous", sans-serif;
}

.ec-Honk {
  font-family: "Honk", system-ui;
}

.ec-Audiowide {
  font-family: "Audiowide", sans-serif;
}

.ec-Special-Elite {
  font-family: "Special Elite", system-ui;
}

.ec-Alfa-Slab-One {
  font-family: "Alfa Slab One", serif;
}

.ec-Prompt {
  font-family: "Prompt", sans-serif;
}

.ec-text-twinkling {
  animation: titilar 2s infinite;
}

.ec-text-latido {
  animation: latido 2s infinite;
}

.ec-dosis {
  font-family: "Dosis", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
}

/* Estilos base */
body {
  color: black;
}

p {
  color: black;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: black;
}

h1 {
  font-family: "Russo One", sans-serif;
  margin: 0;
  padding-left: 25px;
  padding-top: 8px;
  padding-bottom: 4px;
  border-top: 1px solid white;
}

li {
  color: black;
}

/* Contenedor y alineación del texto */
.ec-container {
  width: 95%;
  margin-top: 4px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
  padding: 0px;
}

.text-justify {
  text-align: justify;
  text-justify: inter-word;
}

/* Pestañas y paginación Bootstrap */
.nav-tabs .nav-link.active {
  background-color: var(--ec-color-background);
  font-family: "Honk", system-ui;
  font-weight: bold;
  font-size: 17px;
  color: white;
}

.nav-tabs .nav-link {
  background-color: white;
  font-size: 15px;
  color: black;
}

.active > .page-link {
  background-color: var(--ec-color-primary);
}

/* Ayudas y campos de formulario */
.help-block {
  color: white;
  font-style: italic;
}

.ec-hint {
  padding-left: 20px;
  padding-right: 20px;
  text-align: left;
}

.ec-input {
  text-align: center;
  width: 90%;
  padding: 6px;
  color: black;
}

.ec-input-label {
  text-align: left;
  width: 90%;
  padding: 6px;
  color: white;
}

/* Selector de archivos */
#ecFileInput {
  color: white;
  background: var(--ec-color-secondary);
}

/* Fondos, bordes y colores */
.ec-bg {
  background: var(--ec-color-background);
}

.ec-bg-gradient {
  background: var(--ec-color-background);
  background: var(--ec-gradient);
}

.ec-border {
  border: 1px solid var(--ec-color-primary);
}

.ec-border-tb {
  border-top: 1px solid var(--ec-color-primary);
  border-bottom: 1px solid var(--ec-color-primary);
}

.ec-font-color {
  color: var(--ec-color-background);
}

/* Botones de compra y botones del tema */
.ec-btn-buy {
  color: white;
  width: 90%;
  background-color: var(--ec-color-primary);
}

.ec-btn-buy:hover {
  color: white;
  background-color: var(--ec-color-primary);
  box-shadow: 5px 5px 5px var(--box-shadow);
}

.ec-btn-buy:hover::before {
  transform: scale(1.5);
  font-size: 1.1em;
  color: white;
}

.ec-btn-buy::before {
  font: var(--fa-font-solid);
  content: "\f07a";
  margin-right: 5px;
}

.ec-btn {
  height: 34px;
  margin: 4px;
  padding: 3px;
  width: 88%;
  font-size: 15px;
}

.ec-btn:hover {
  padding: 3px;
  width: 88%;
  text-shadow: var(--ec-color-primary) 0.05em 0.05em 0.1em;
  background-color: var(--ec-color-accent);
}

.ec-btn-bg {
  background-color: var(--ec-color-primary);
  color: white;
}

/* Imágenes de elementos */
.ec-item-logo {
  border-radius: 50%;
}

.ec-item-img {
  width: 100%;
  height: auto;
}

/* Cabecera y navegación */
.ec-navbar-main {
  background: white;
  margin-bottom: 4px;
}

.ec-navbar {
  background: white;
  color: black;
  border-top: 1px solid var(--ec-color-primary);
  border-bottom: 1px solid var(--ec-color-primary);
  margin: 0;
  padding: 0;
  padding-top: 2px;
  padding-bottom: 2px;
}

.ec-navbar-icon {
  font-size: 24px;
}

.ec-navbar-logo-brand {
  max-width: 200px;
  margin-right: 2px;
  margin-left: 5px;
  margin-top: 0px;
  padding: 0;
}

.nav-link {
  color: black;
}

.nav-link.active {
  color: black !important;
}

.nav-link:hover {
  background-color: var(--ec-color-primary);
  color: white !important;
  border-radius: 5px;
  box-shadow: 2px 2px 2px var(--box-shadow);
}

/* Marca y redes sociales */
.ec-BrandText {
  font-family: "Righteous", sans-serif;
  font-size: 20px;
}

.ec-BrandImg {
  width: 150px;
  height: auto;
  margin: 0;
  object-fit: cover;
  animation: latido 2s infinite;
}

.ec-rs {
  font-size: 28px;
  color: var(--ec-color-social) !important;
  filter: drop-shadow(2px 2px 2px rgba(85, 84, 84, 0.5));
}

/* Cuerpo y contenido */
.ec-body {
  margin-top: 62px;
  background-color: var(--ec-color-background);
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.ec-sub-body {
  background: linear-gradient(
    90deg,
    rgba(23, 44, 101, 1) 0%,
    rgba(24, 82, 117, 1) 47%,
    rgba(0, 0, 0, 1) 93%
  );
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  opacity: 0.9;
  padding: 5px 5px;
}

/* Formulario, párrafos e iconos */
.ec-form {
  border: 1px solid var(--ec-color-primary);
  box-shadow: 4px 4px var(--box-shadow);
}

.ec-p {
  line-height: 1.2;
  margin-top: 2px;
  margin-bottom: 2px;
}

.ec-icon {
  max-width: 65px;
}

/* Precios */
.ec-precio-anterior {
  text-decoration: line-through;
  color: grey;
  font-size: 14px;
}

.ec-precio-actual {
  color: rgb(0, 0, 0);
  font-size: 30px;
  font-weight: bold;
}

/* Títulos */
.ec-title {
  font-family: "Alfa Slab One", serif;
  font-size: 30px;
}

.ec-card-title {
  font-family: "Audiowide", sans-serif;
  font-size: 18px;
  background-color: var(--ec-color-primary);
  color: white;
  margin: 4px;
  margin-top: 10px;
  padding: 7px;
  opacity: 0.7;
  text-shadow: var(--ec-color-secondary) 0.05em 0.02em 0.1em;
}

.ec-album-title {
  font-family: "Special Elite", system-ui;
  font-size: 14px;
}

/* Catálogo */
.ec-catalogo-card {
  width: 160px;
}

.ec-catalogo-contenedor-imagen {
  position: relative;
  height: 90px;
  background-size: cover;
  background-position: center;
  background-color: #212529;
}

.ec-catalogo-contenedor-imagen-text {
  font-size: 16px;
  position: absolute;
  color: white;
  line-height: 20px;
  font-family: "Righteous", sans-serif;
  text-shadow: #cb288e 0.2em 0.3em 0.2em;
  text-align: center;
}

/* Productos y tarjetas */
.ec-producto-img {
  max-width: 90%;
  box-shadow: 5px 5px 5px #5b5b5e;
  border-radius: 1%;
}

.ec-producto-img:hover {
  max-width: 90%;
  box-shadow: 10px 10px 5px rgb(97, 95, 95);
  border-radius: 1%;
  transform: scale(1.02);
}

.ec-producto-card-container {
  display: flex;
  align-items: start;
  justify-content: center;
}

.ec-producto-card {
  width: 95%;
  height: 95%;
  padding: 5px 3px 15px 3px;
  margin: 2px;
  background: white;
  border-radius: 10px;
}

.ec-producto-contenedor-imagen {
  position: relative;
  height: auto;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: #212529;
}

.ec-virtual-card {
  border: 0.5px solid var(--ec-color-primary);
}

.ec-categoria-card {
  min-width: 200px;
}

/* Imágenes de portada y acceso */
.ec-img-cover {
  width: 75%;
}

.ec-img-login {
  width: 75%;
}

/* Banners y efectos */
#ec-banner {
  width: 100%;
}

.ec-banner {
  background: var(--ec-color-primary);
  content: "Hereda color primario";
  border-bottom: 0.5px solid var(--ec-color-primary);
}

.ec-effect-shadow:hover {
  border-radius: 5%;
  -webkit-border-radius: 5%;
  box-shadow: 0px 0px 15px 15px #190c59;
  -webkit-box-shadow: 0px 0px 15px 15px #302d58;
  transform: rotate(360deg);
  -webkit-transform: rotate(360deg);
}

/* Vídeos y tarjetas virtuales */
.ec-video-container {
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.ec-video-icon-play {
  position: absolute;
  top: 50%;
  left: 50%;
  color: white;
  font-size: 24px;
  background-color: black;
  transform: translate(-50%, -50%);
  opacity: 0.7;
  padding: 6px 8px 10px 13px;
  border: 1px solid #ffffff;
  border-radius: 100%;
  pointer-events: none;
}

.ec-vc-video {
  width: 70%;
  height: auto;
}

.ec-img-virtual-cards {
  background-color: black;
  padding: 1px 1px;
  margin: 5px 5px;
  position: relative;
  display: inline-block;
  width: 90%;
  box-shadow: 10px 10px 10px rgba(120, 115, 115, 0.5);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  border-radius: 1.5%;
}

.ec-img-virtual-cards:hover {
  transform: scale(1.01);
  box-shadow: 12px 12px 5px rgba(0, 0, 0, 0.2);
}

.ec-video-virtual-cards {
  padding: 10px 12px;
}

/* Fondos de formularios y medios */
.ec-form-bg {
  background: var(--ec-color-background);
  background: linear-gradient(
    90deg,
    var(--ec-color-background) 23%,
    rgb(0, 0, 0) 100%
  );
}

.ec-plin-bg {
  background-color: #3ebab2;
}

.ec-inputfile {
  text-align: center;
  width: 90%;
  padding: 6px;
  margin: 0px;
}

.ec-video-bg {
  background: var(--ec-color-background);
  background: linear-gradient(
    63deg,
    var(--ec-color-background) 41%,
    rgba(0, 0, 0, 1) 93%
  );
  background-image: url("../img/wireframe.jpg");
  background-size: 100% 100%;
}

.ec-product-digital-video {
  width: 100%;
}

/* Buscador */
.ec-text-search {
  background: white;
  border: 0px;
  text-align: start;
}

.ec-text-search:focus {
  outline: none;
}

.ec-text-search::before {
  color: #190c59;
  font: var(--fa-font-solid);
  content: "\f07a";
}

.ec-text-search-container {
  background: white;
  border: 1px solid #726969;
  border-radius: 20px;
  box-shadow: 5px 5px 30px var(--box-shadow);
}

/* Precio destacado */
.ec-text-price {
  font-family: "Special Elite", system-ui;
  text-align: center;
  font-size: 20px;
  color: white;
  margin: 0;
  margin-left: auto;
  margin-right: auto;
  width: 50%;
  padding: 0;
}

/* Controles y enlaces */
.ec-radio-button {
  color: white;
  margin-left: 2px;
}

.ec-button {
  border: 0;
  height: 36px;
  padding-top: 5px;
  border-radius: 5px;
  color: var(--ec-color-primary);
  background-color: white;
}

.ec-button:hover {
  color: black;
  background-color: white;
  font-weight: bold;
  box-shadow: 2px 2px 2px black;
}

.ec-whatsapp {
  height: 36px;
  padding-top: 5px;
  border: 0;
  border-radius: 5px;
}

.ec-link-centrado {
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid #000;
}

/* Responsive: pantallas de hasta 575 px */
@media (max-width: 575px) {
  .ec-vc-video {
    width: 90%;
    height: auto;
  }

  .ec-catalogo-card {
    width: 100%;
  }

  .ec-catalogo-contenedor-imagen {
    width: 100%;
    height: auto;
  }

  .ec-producto-card {
    min-width: 10vw;
    margin: 2px 2px;
  }
}

/* Responsive móvil: navegación y contenido */
@media (max-width: 767.98px) {
  .ec-navbar .navbar-toggler {
    min-width: 44px;
    min-height: 44px;
  }

  .ec-navbar .ec-navbar-panel.show {
    max-height: 65vh;
    max-height: 65dvh;
    overflow-y: auto;
    overscroll-behavior-y: contain;
  }

  .ec-navbar .ec-navbar-sections {
    row-gap: 12px;
    padding-block: 12px !important;
  }

  .ec-navbar .ec-navbar-panel .navbar-nav {
    width: 100%;
    gap: 4px;
  }

  .ec-navbar .ec-navbar-panel .nav-link,
  .ec-navbar .ec-navbar-panel .dropdown-item {
    min-height: 44px;
    padding: 12px 16px;
    border-radius: 10px;
    text-align: start;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .ec-navbar .ec-navbar-panel .dropdown-menu {
    min-width: 0;
    max-width: 100%;
    margin-block: 4px;
    border-radius: 12px;
  }

  .ec-navbar .ec-navbar-user {
    padding-top: 12px !important;
    border-top: 1px solid var(--bs-border-color, #dee2e6);
  }

  .ec-container {
    margin-top: 42px;
  }

  .ec-img-cover {
    width: 100%;
  }

  .ec-img-login {
    width: 90%;
  }

  .ec-product-digital-video {
    width: 100%;
  }

  .ec-item-img {
    width: 100%;
    height: auto;
    max-width: 100%;
    max-height: 100%;
  }

  .ec-BrandImg {
    width: 100px;
    height: auto;
  }

  .ec-navbar-icon {
    font-size: 28px;
  }

  .ec-sub-body {
    padding: 5px 5px;
  }

  .ec-form-bg {
    background: var(--ec-color-background);
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 1) 10%,
      var(--ec-color-background) 87%
    );
  }
}

/* Entregables y comprobantes de ec-project: reglas limitadas a estas vistas. */
.ec-project-deliverables-table {
  font-size: 15px;
}

.ec-project-deliverables-table .ec-project-bonus-total-label,
.ec-project-deliverables-table .ec-project-bonus-total-amount {
  font-size: calc(1em - 2px);
}

.ec-project-deliverables-table .ec-project-bonus-total-amount {
  font-weight: normal;
}

.ec-project-deliverables-table td > .ec-project-collected {
  color: var(--ec-color-primary);
}

.ec-project-deliverables-table .ec-project-payment-pending {
  background-color: var(--bs-warning);
  color: var(--bs-dark);
}

.ec-project-receipt-gallery [data-receipt-preview] {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, 480px);
  max-height: min(360px, 40vh);
  max-height: min(360px, 40dvh);
  object-fit: contain;
  margin: 0 auto;
}

#deliverable-edit-modal,
.ec-project-meeting-modal {
  --bs-modal-zindex: var(--ec-project-modal-zindex, 2100);
  z-index: var(--ec-project-modal-zindex, 2100);
}

body.ec-project-modal-open > .modal-backdrop {
  --bs-backdrop-zindex: var(--ec-project-modal-backdrop-zindex, 2090);
  z-index: var(--ec-project-modal-backdrop-zindex, 2090);
}
