/*
 * style.css - Archivo principal de estilos y metadatos del tema
 */
/*
Theme Name: Agrunuts Theme
Theme URI: https://innnova-cube.com/
Author: Marco Antonio Aguilar Gomez
Author URI: https://marco-aguilar.innova-cube.com/
Description: Un tema personalizado para la web de Agrinuts
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 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rethink Sans", sans-serif;
  font-optical-sizing: auto;
  line-height: 1.6;
  color: #585c59;
  background-color: #faf9f7;
}
h1,
h2,
h3,
h4,
h5,
h6,
.title-font {
  font-family: "Syne", sans-serif;
  color: #051815;
}
h1 {
  font-size: 4em;
}
h2 {
  font-size: 2.5em;
  line-height: 1.4em;
}
h3 {
  font-size: 2em;
}
h4 {
  font-size: 1.6em;
}
h5 {
  font-size: 1.4em;
}
h6 {
  font-size: 1.2em;
}
a {
  color: #051815;
  text-decoration: none;
  font-weight: bold;
}

a:hover {
  color: #051815;
}
p {
  margin-bottom: 16px;
}

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

/* Header */
.site-header {
  padding: 0px;
  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;
  border: 1px solid #ddd;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
}

.main-menu {
  list-style: none;
  display: flex;
  margin: 0;
  justify-content: flex-end;
  gap: 15px;
}

.main-menu li {
  position: relative;
  transition: all 0.4s ease;
}

.main-menu a {
  display: block;
  padding: 10px 15px;
  color: #333;
}

.main-menu li:hover {
  background-color: rgba(0, 0, 0, 0.55);
}

.main-menu .sub-menu {
  /* display: none; */
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  left: 0;

  min-width: 200px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
  z-index: 99;
  list-style: none;
  transition: all 0.4s ease;
}

.main-menu li:hover > .sub-menu {
  /* display: block; */
  opacity: 1;
  visibility: visible;
  background-color: rgba(0, 0, 0, 0.55);
}

.main-menu .sub-menu a {
  padding: 10px 20px;
}
.main-menu li.menu-item-has-children button {
  display: none;
}

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

.content-area {
  float: left;
  width: 100%;
  padding: 0px;
}

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

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

.site-info {
  display: flex;
  gap: 25px;
}
.site-footer .logo {
  width: 20%;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  /* background: #000;
  border-radius: 0px 0px 18px 18px; */
  padding: 39px 0px;
}
.site-footer .contact-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 25px;
  width: 80%;
  justify-content: space-around;
  padding: 40px 0px;
}
.site-footer .contact-info .info {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 15px;
}
.site-footer a,
.site-footer span {
  color: #fff;
  font-size: 20px;
}

/* 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;
}

/* Utilidades */
.clearfix::after {
  content: "";
  display: table;
  clear: both;
}

#hero {
  background: url("/statics/agrinuts-hero2.jpg") no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 0px;
  width: 100%;
  height: 60vh;
  position: relative;
  z-index: 1;
}
.filter-bg {
  background: rgba(0, 0, 0, 0.45);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
}
#hero .shape-footer-hero {
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 100%;
  z-index: 3;
  overflow: hidden;
}
#hero .shape-footer-hero svg {
  width: calc(175% + 1.3px);
  height: 340px;
  display: block;
  left: 50%;
  position: relative;
  transform: translateX(-50%);
}
#hero .shape-footer-hero svg path {
  fill: #faf9f7;
}
#hero .container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 30%;
  text-align: center;
  z-index: 4;
}
#hero .container h1 {
  font-size: 4.6em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2em;
}
.header-wraper {
  position: relative;
}
.header-wraper header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  height: auto;
}
.header-wraper header .container {
  padding: 15px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}
.header-wraper header nav a {
  color: #fff;
  font-family: "Syne", sans-serif;
  font-weight: 700;
}

/*++++ hero boxes */
.hero-box-container {
  z-index: 10;
  position: relative;
  margin-top: -150px;
}
.hero-box-container > .wp-block-group__inner-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}
.hero-box-container .hero-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 25px;
  border-radius: 18px;
  background-color: #fff;
  box-shadow: 0px 1px 18px 0px rgba(0, 0, 0, 0.05);
}
.hero-box-container .hero-box > .wp-block-group__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
}
.hero-box-container .hero-box .icon-hero-box {
  width: 100px;
  height: 100px;
  padding: 8px;
  border-radius: 50%;
  background-color: #ff5e0c;
  color: #fff;
  font-size: 1.2em;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  margin-top: -70px;
}
.hero-box-container .hero-box h3 {
  font-size: 1.2em;
}
.respect-workers {
  padding: 40px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0px 1px 18px 0px rgba(0, 0, 0, 0.4);
}
.content-section {
  padding: 80px 0;
}
.mision {
  flex: 1;
  padding: 40px;
}
.brown-bg {
  background: #f09942;
  margin: 100px 0px 0px 0px;
}
.brown-bg h3 {
  color: #fff;
}

#headerPage {
  background: url(/statics/header-page-bg.jpg) no-repeat center center;
  background-size: cover;
  color: #fff;
  padding: 0px;
  width: 100%;
  height: 300px;
  position: relative;
  z-index: 1;
}
#headerPage .container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 40%;
  text-align: center;
  z-index: 4;
}
#headerPage .container h1 {
  font-size: 3em;
  font-weight: 700;
  color: #fff;
  line-height: 1.2em;
  margin-top: 40px;
}
.product-detail figure img {
  border: 10px solid #fff;
  margin-bottom: 20px;
}
.agrinuts-table h3 {
  font-size: 1.6em;
  color: #fff;
}
.agrinuts-table table tr:first-child {
  background-color: #ff5e0c !important;
}
.agrinuts-table tr:not(:first-child):hover {
  background-color: #ffd7c2 !important;
  transition: background-color 0.3s ease;
}
/*++++ Productos List Shortcode Styles ++++++++++++++++++++++  */
.productos-list-container {
  background: #ff5e0c;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0px;
  flex-direction: row-reverse;
  flex-wrap: wrap;
}
.productos-list-container .producto-item {
  padding: 10px 15px;
}
.productos-list-container .producto-item .producto-title a {
  font-size: 1.4em;
  color: #fff;
}
.productos-list-container .producto-item.active {
  background-color: #f19a43;
}
.productos-list-container .producto-item.active .producto-title a {
  color: #fff;
}

/*+++++++++++++++++++++  Responsive ++++++++++++++++++++++  */
@media screen and (max-width: 1024px) {
  .hero-box-container {
    margin-top: -90px;
    padding: 0 40px;
  }
  .hero-box-container > .wp-block-group__inner-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 55px;
  }
  #hero {
    height: 50vh;
  }
  #hero .container h1 {
    font-size: 3.4em;
  }
}
@media screen and (max-width: 768px) {
  h1 {
    font-size: 3em;
  }
  h2 {
    font-size: 1.8em;
    line-height: 1.4em;
  }
  h3 {
    font-size: 1.4em;
  }
  h4 {
    font-size: 1.2em;
  }
  h5 {
    font-size: 1.1em;
  }
  h6 {
    font-size: 1em;
  }
  .menu-toggle {
    display: block;
    width: 80px;
    text-align: center;
    border: none;
    background: transparent !important;
  }

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

  .main-menu.toggled {
    display: flex;
    width: 100%;
    background: #222;
  }

  .main-menu .sub-menu {
    position: static;
    display: none;
    box-shadow: none;
    padding-left: 20px;
    flex-direction: column;
    background: #000;
  }

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

  .main-menu li.focus > .sub-menu {
    display: block;
  }
  .main-menu .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    background-color: #141414;
  }
  .main-menu a {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13) !important;
  }

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

  .widget-area {
    margin-top: 40px;
  }
  .hero-box-container {
    margin-top: -60px;
    padding: 0 16px;
  }
  .hero-box-container > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
    gap: 55px;
  }
  #hero {
    background: url(/statics/hero-mobile-agrinuts.jpg) no-repeat center center;
    background-size: cover;
    height: 410px;
  }
  #hero .container {
    top: 40%;
  }
  #hero .container h1 {
    font-size: 2em;
  }
  .brown-bg .wp-block-group {
    display: flex;
    flex-direction: column;
  }

  .site-info {
    flex-direction: column;
  }
  .site-footer .contact-info {
    flex-direction: column;
  }
  .site-branding {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
  }
  .site-branding .logo-header {
    z-index: 10;
  }
  .main-navigation {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-end;
    margin-top: -80px;
  }
  .header-wraper header .container {
    border-bottom: none;
    padding: 0px;
  }
  .site-footer .logo {
    width: 100%;
  }
  .site-footer .contact-info {
    width: 100%;
    align-items: flex-start;
  }
  .content-section {
    padding: 60px 16px;
  }
  #hero .shape-footer-hero svg {
    width: calc(245% + 1.3px);
  }
  #headerPage {
    background: url(/statics/hero-page-mobile-agrinuts.jpg) no-repeat center
      center;
    background-size: cover;
    height: 280px;
  }
  #headerPage .container h1 {
    font-size: 1.8em;
  }
  .agrinuts-table h3 {
    font-size: 1.2em;
  }
}
