/*
 * style.css - Archivo principal de estilos y metadatos del tema
 */
/*
Theme Name: Multipharma Theme
Theme URI: https://innnova-cube.com/
Author: Marco Antonio Aguilar Gomez
Author URI: https://marco-aguilar.innova-cube.com/
Description: Un tema básico de WordPress con menú responsive
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: basic-responsive-theme
Tags: custom-menu, responsive-layout, one-column, two-columns, right-sidebar
*/

/* Reset básico */
:root {
  --color-primary: #ff141f;
  --color-secondary: #212121;
}

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

body {
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: #666;
  background-color: #fff;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Saira", sans-serif;
  font-weight: 300;
  color: var(--color-secondary);
  margin-bottom: 20px;
}
h1 {
  font-size: 3rem;
}
h2 {
  font-size: 2.4rem;
  line-height: 3rem;
}
h2::after {
  content: "";
  display: block;
  width: 100px;
  height: 5px;
  background-color: var(--color-primary);
  margin-top: 20px;
}
h2.has-text-align-center::after {
  margin-left: auto;
  margin-right: auto;
}
h2 a,
h3 a,
h4 a {
  color: var(--color-secondary);
  font-weight: 300;
}
h3 {
  font-size: 1.8rem;
}
h4 {
  font-size: 1.2rem;
}
h5 {
  font-size: 1rem;
}
h6 {
  font-size: 1rem;
}

a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

a:hover {
  color: var(--color-primary);
}

p {
  margin-bottom: 16px;
}

/* Contenedor */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  background-color: #fff;
  padding: 15px 0;
  position: relative;
}

.site-branding {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-title {
  font-size: 1.8em;
  margin: 0;
}

.site-title a {
  color: #333;
}

/* Menú principal */
.main-navigation {
  display: block;
  width: 100%;
}

.menu-toggle {
  display: none;
  background-color: transparent;
  padding: 10px 5px 0px 5px;
  cursor: pointer;
  font-size: 16px;
  color: #121212;
}

.main-menu {
  list-style: none;
  display: flex;
  margin: 0;
}

.main-menu li {
  position: relative;
}

.main-menu a {
  font-family: "Saira", sans-serif;
  display: block;
  padding: 10px 15px;
  color: #333;
  transition: all 0.3s ease;
  font-weight: normal;
  font-size: 18px;
}

.main-menu a:hover {
  background-color: #f5f5f5;
}

.main-menu .sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 99;
}

.main-menu li:hover > .sub-menu {
  display: block;
}

.main-menu .sub-menu a {
  padding: 10px 20px;
}

/* Contenido principal */
.site-content {
  padding: 0px;
  position: relative;
}

.content-area {
  float: left;
  width: 100%;
  position: relative;
  min-height: calc(100vh - 768px);
}

.widget-area {
  float: right;
  width: 30%;
  padding-left: 30px;
}

/* Footer */
.site-footer {
  background-color: #212121;
  color: #fff;
  padding: 60px 0 10px 0;
  clear: both;
}

.site-info {
  text-align: center;
  color: #7d7d7d;
}

/* Estilos de posts */
.post {
  margin-bottom: 40px;
  background-color: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.post-title {
  margin-bottom: 15px;
}

.post-meta {
  color: #777;
  font-size: 0.9em;
  margin-bottom: 15px;
}

.post-content {
  margin-bottom: 0px;
}

/* Comentarios */
.comments-area {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #eee;
}

.comment-list {
  list-style: none;
}

.comment {
  margin-bottom: 20px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 5px;
}

/* Sidebar */
.widget {
  margin-bottom: 30px;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.widget-title {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

/* Paginación */
.pagination {
  margin: 20px 0;
  text-align: center;
}

.pagination .page-numbers {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 3px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 3px;
}

.pagination .current {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
    width: 100%;
    text-align: right;
  }

  .main-menu {
    display: none;
    flex-direction: column;
  }

  .main-menu.toggled {
    display: flex;
  }

  .main-menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
  }

  .main-menu li:hover > .sub-menu {
    display: none;
  }

  .main-menu li.focus > .sub-menu {
    display: block;
  }

  .content-area,
  .widget-area {
    float: none;
    width: 100%;
    padding: 0;
  }

  .widget-area {
    margin-top: 40px;
  }
}

/* Utilidades */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}
.btn-primary {
  background-color: var(--color-secondary);
  color: #fff;
  padding: 10px 25px;
  border-radius: 999px;
  display: block;
  width: fit-content;
}

#bg-1 {
  position: absolute;
  right: 0px;
  top: 0px;
  z-index: 10;
  width: 50%;
  max-width: 700px;
}
.hero-home {
  background: url(/static/hero-bg-multipharma.jpg) no-repeat center center;
  background-size: cover;
  height: 550px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
}
.hero-home h1 {
  font-size: 4rem;
}
.hero .filter-hero {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-color: rgba(93, 93, 93, 0.1);
}
.hero .container {
  text-align: center;
  z-index: 2;
}
.hero-home .title-hero {
  width: fit-content;
  margin: auto;
  background: rgba(255, 255, 255, 0.35);
  padding: 25px 35px;
  border-radius: 13px;
  border: 1px solid #ffffff6b;
  backdrop-filter: blur(2px);
}
.hero-page .title-hero {
  width: fit-content;
  margin: auto;
  background: rgba(255, 255, 255, 0.35);
  padding: 10px 100px;
  border-radius: 13px;
  border: 1px solid #ffffff6b;
  backdrop-filter: blur(2px);
}
.hero-page .product-categories,
.hero-page .product-brands {
  text-align: center;
}
.hero-page .product-categories a,
.hero-page .product-brands a {
  color: var(--color-secondary);
  font-weight: 500;
}
.hero-page .tax-container hr {
  border: none;
  height: 1px;
  background-color: var(--color-primary);
  width: 200px;
  margin: auto;
}
.special-box {
  border-radius: 13px;
  padding: 60px 40px;
  color: #fff;
  height: 100%;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 12px;
  position: relative;
}
.special-box h3 {
  color: #fff;
}
.special-box svg {
  width: 70px;
  height: 70px;
  position: absolute;
  top: 20px;
  right: 30px;
}
.color-boexes-container {
  margin-top: -60px;
  margin-bottom: 0px;
}
.pink-box {
  background: linear-gradient(
    90deg,
    #e4a1b9 0,
    #efafc6 32%,
    #ef8caf 67%,
    #f095b5
  );
}
.purple-box {
  background: linear-gradient(
    90deg,
    #bc92e6 0,
    #c59ced 35%,
    #c398ed 62%,
    #d6c0ec
  );
}
.blue-box {
  background: linear-gradient(
    90deg,
    #74bff8 0,
    #9bd0f8 30%,
    #a4d5fa 63%,
    #72c0fb
  );
}
.site-logo {
  width: auto;
  max-width: 100%;
}
.site-branding .menu-toggle:hover {
  background-color: transparent;
}
.post-content img {
  border-radius: 13px;
}
.section-container {
  padding-top: 100px;
  padding-bottom: 100px;
}
.grid-section {
  background-color: #f5f5f5;
}
#bg-2 {
  position: absolute;
  left: 0px;
  top: 50%;
  transform: translateY(-50%);
  height: fit-content;
  width: 240px;
  /* width: calc(100vw * 0.1); */
  z-index: 10;
}
#bg-3 {
  position: absolute;
  right: 0px;
  bottom: -250px;
  height: fit-content;
  width: 380px;
  z-index: 10;
}
.marcas-logo {
  padding-top: 30px;
}
.wp-block-media-text {
  gap: 30px;
}
.wp-block-media-text .wp-block-media-text__content {
  padding: 0px;
}

footer .info-footer {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 40px;
  margin: 40px 0px;
  align-items: center;
}
footer .info-footer .logo img {
  width: 100%;
}
.hero-page {
  background: url(/static/hero-page-bg-2.jpg) no-repeat center center;
  background-size: cover;
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  position: relative;
}
.hero-page h1 {
  margin: 0px;
}
.icons-nosotros {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 220px;
  height: 150px;
  color: #fff;
  margin: auto;
  margin-bottom: 35px;
}
.icons-nosotros.red {
  background-color: #ef2f31;
  border-radius: 99px 0px 0px 99px;
}
.icons-nosotros.black {
  background-color: #212121;
  border-radius: 0px 99px 99px 0px;
}
.vision-mision {
  gap: 80px;
}
/*++++++ PRODUCTS ++++++*/
.wrapper-products {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding-top: 50px;
  padding-bottom: 100px;
  gap: 25px;
}
.products-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0px;
  background-color: #fff;
  border-radius: 13px;
  padding: 25px;
}
.products-columns-2 .product-item {
  width: calc(50% - 10px);
}
.products-columns-3 .product-item {
  width: calc(33.333% - 14px);
}
.products-columns-4 .product-item {
  width: calc(25% - 15px);
}

.product-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.product-image {
  text-align: center;
  margin-bottom: 15px;
}
.product-image img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}
.product-title {
  font-size: 1.2em;
  margin: 0 0 10px 0;
}
.product-title a {
  text-decoration: none;
  color: #333;
}
.product-price {
  font-weight: bold;
  color: #e74c3c;
  font-size: 1.1em;
  margin: 5px 0;
}
.product-sku,
.product-stock {
  font-size: 0.9em;
  color: #666;
  margin: 5px 0;
}
.product-excerpt {
  margin-top: 10px;
  color: #555;
  line-height: 1.4;
}
.wrapper-products .products-grid article.producto {
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 25px 0px;
  border-bottom: 1px solid #ccc;
  align-items: center;
}
.wrapper-products .products-grid article.producto .post-thumbnail {
  flex: 2;
  text-align: center;
}
.wrapper-products .products-grid article.producto .post-content {
  flex: 3;
}
.wrapper-products .products-grid .post-thumbnail img {
  border-radius: 13px;
}
.tree-list {
  list-style: none;
  margin-bottom: 40px;
}
.tree-list li a {
  color: var(--color-secondary);
  font-weight: 400;
  padding: 10px 0px;
  display: block;
  border-bottom: 1px dashed #ccc;
}
.tree-list li.active {
  background-color: #f5f5f5;
  padding-left: 15px;
}

@media (max-width: 768px) {
  .products-grid .product-item {
    width: 100% !important;
  }
}
/*-------- End of Products --------*/

/*++++++ MEDIA QUERIES ++++++*/
@media screen and (max-width: 1400px) {
  #bg-2 {
    z-index: -1;
  }
  #bg-3 {
    width: 280px;
  }
}
@media screen and (max-width: 1024px) {
}
@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
    line-height: 2.4rem;
  }
  h2 {
    font-size: 1.8rem;
    line-height: 2.4rem;
  }
  .site-branding {
    flex-direction: row !important;
  }
  .site-branding .link-logo {
    width: 70%;
  }
  .site-branding .menu-toggle {
    width: 30%;
    margin-bottom: 0px;
  }
  #bg-1 {
    display: none;
  }
  #bg-2 {
    display: none;
  }
  #bg-3 {
    display: none;
  }
  .hero-home h1 {
    font-size: 2rem;
  }
  .hero-home {
    background: url(/static/bg-hero-mobile.jpg) no-repeat center center;
  }
  .hero .title-hero {
    padding: 25px 15px;
  }
  .hero-page {
    background: url(/static/hero-page-bg-mobile-2.jpg) no-repeat center center;
    min-height: 200px;
    height: fit-content;
  }

  .section-container {
    padding-top: 50px;
    padding-bottom: 50px;
  }
  footer .info-footer {
    grid-template-columns: 1fr;
  }
  .hero-page .title-hero {
    padding: 5px 15px;
    width: 100%;
    text-align: center;
    margin: 25px 0px;
  }
  .wrapper-products {
    grid-template-columns: 1fr;
    padding-top: 0px;
    padding-bottom: 50px;
  }
  .wrapper-products .categories-brands {
    order: 2;
  }
  .wrapper-products .products-grid {
    order: 1;
  }
  .wrapper-products .products-grid article.producto {
    flex-direction: column;
  }
}
