/*
Theme Name: P5Marketing
Theme URI: https://p5mark.com
Author: P5Marketing
Description: Minimal headless theme with Tailwind for fallback rendering.
Version: 1.0
Text Domain: p5marketing
*/

/*Global custom*/
.container {
	max-width: 1440px !important;
	margin: auto !important;
}
/* Layout width control (static classes) */
.p5m-width-full .entry-content, .p5m-width-full .site-content { max-width:100% !important; width:100% !important; }
.p5m-width-1024 .entry-content, .p5m-width-1024 .site-content { max-width:1024px; margin-left:auto; margin-right:auto; }
.p5m-width-1152 .entry-content, .p5m-width-1152 .site-content { max-width:1152px; margin-left:auto; margin-right:auto; }
.p5m-width-1280 .entry-content, .p5m-width-1280 .site-content { max-width:1280px; margin-left:auto; margin-right:auto; }
.p5m-width-1440 .entry-content, .p5m-width-1440 .site-content { max-width:1440px; margin-left:auto; margin-right:auto; }
.p5m-width-1600 .entry-content, .p5m-width-1600 .site-content { max-width:1600px; margin-left:auto; margin-right:auto; }
.p5m-width-1728 .entry-content, .p5m-width-1728 .site-content { max-width:1728px; margin-left:auto; margin-right:auto; }
.p5m-width-1920 .entry-content, .p5m-width-1920 .site-content { max-width:1920px; margin-left:auto; margin-right:auto; }
ul#menu-menu-primary {
    gap: 20px;
}
/* Espacio para el ícono */
.wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
  position: relative;
  padding-right: 1.25rem; /* 20px */
	
}
.book-contact{
	font-size: 16px;
    line-height: 1.2;
	border: 1px solid #0040ea;
	background: linear-gradient(to bottom, #276aff 0%, #094cf6 100%);
	padding: 12px 24px;
	border-radius: 4px;
    -moz-border-radius: 4px;
    -webkit-border-radius: 4px;
}
/* Chevron con pseudo-elemento */
.wp-block-navigation-item.has-child > .wp-block-navigation-item__content::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 12px;
  height: 12px;
  transform: translateY(-50%);
  background: currentColor;
  opacity: .7;
  /* máscara con SVG (chevron down) */
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='black'><path d='M5.23 7.21a.75.75 0 011.06.02L10 10.94l3.71-3.71a.75.75 0 111.06 1.06l-4.24 4.24a.75.75 0 01-1.06 0L5.21 8.29a.75.75 0 01.02-1.08z'/></svg>");
}
.wp-block-navigation-item.has-child:hover > .wp-block-navigation-item__content::after {
  transform: translateY(-50%) rotate(180deg);
  transition: transform 0.2s ease-in-out;
}
.wp-block-navigation-item.has-child > .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.wp-block-gallery {
    display: flex;
    gap: 20px;
}
.wp-block-image > img{
	flex: none !important;
    height: auto !important;
    object-fit: scale-down !important;
}
details.wp-block-details {
    padding: 10px 0;
    border-bottom: solid 1px;
    margin-bottom: 10px;
}
details.wp-block-details > summary {
    display: list-item;
    font-family: Montserrat, sans-serif;
    font-weight: 700;
    font-size: 18px;
    text-align: left;
    margin-bottom: 15px;
}
details.wp-block-details > p{
    padding: 15px;
    background: #f9f9f9;
    line-height: 2;
	font-weight: 300;
}

.wp-block-separator {
  
    border-top-color: #ccc;
    border-top-style: solid 1px;
    margin-top: 20px !important;
    margin-right: 20px;
    margin-bottom: 20px !important;
    margin-left: 20px;
}
.block-editor-block-list__layout.is-root-container > :where(:not(.alignleft):not(.alignright):not(.alignfull)) {
  max-width: 1440px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

:where(.wp-block-columns) {
    margin-bottom: 0.1em !important;
    margin-top: .1em !important;
}
.wp-block-image img {
    box-sizing: border-box;
    height: auto;
    max-width: 300px !important;
    vertical-align: bottom;
    margin: auto !important;
}
.wp-block-separator {
  border: solid 1px #cccccc;
  margin-top: 20px !important;
  margin-bottom: 50px !important;
}
@media(max-width: 1024px){
    nav.nav-menu-desktop{
        display: none;
    }
    .wp-block-navigation-item.has-child > .wp-block-navigation-item__content::after {
      content: "";
      position: unset;
      right: unset;
      top: unset;
      width: unset;
      height: unset;
      transform: unset;
      background: unset;
      opacity: unset;
      /* máscara con SVG (chevron down) */
      -webkit-mask: unset;
    mask: unset;
      display: none !important;
    }
}