/*
Theme Name: Agroly Child Theme
Theme URI: http://shtheme.com/agroly
Description: This is child theme of agroly
Author: Shtheme
Author URI: https://themeforest.net/user/shtheme
Version: 1.0
Text Domain:  agroly-child
Template: agroly
*/

/* ========TABLE OF CONTENTS==========
00. Body, links, hgroup, paragraphs, general styles
01. Fixed header & Navigation
02. Section Intro (Home)
03. Section About
04. Section Resume
05. Section Portfolio
06. Section Blog
07. Section Contact
08. Footer
09. Loader
10. Responsive design

/*--------------------------------------------------
    00. Body, links, hgroup, paragraphs, general styles
---------------------------------------------------*/



.blog-caption-content div.media img {
    width: 50px;
    border-radius: 50%;
    margin-right: 1rem;
}

blockquote.ludwig p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1.3rem;
    line-height: 1.3;
    font-weight: 600;
    font-style: italic;
    display: inline;
    color: #212529;
}

.media-body span a[rel="author"] {
    text-transform: capitalize;
}

.blog-comments .comment-box .media img {
    border-radius: 50%;
    width: 60px!important;
    margin-right: 1rem;
}

.reply-form {
    margin-top: 40px;
}

.reply-form h3.comment-reply-title {
    margin-bottom: 2rem;
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    text-transform: capitalize;
    font-size: 1.5rem;
}

p.logged-in-as {
    font-size: 16px;
    margin-bottom: 30px;
    margin-top: -10px;
}

.reply-form form#contact-form > div {
    padding-left: 0px;
}

.reply-form form#contact-form > div.col-lg-6 {
    display: inline-block;
    width: 49.5%;
}

.reply-form form#contact-form > div.col-lg-6:nth-child(3) {
    padding-right: 10px;
}

.reply-form form#contact-form textarea {
    height: 150px;
}

.comment-form-cookies-consent {
    display: none;
}

.reply-form form#contact-form input[type=submit] {
    font-size: 14px;
    padding: 8px 16px;
    color: white!important;
    background: var(--main-green-color);
    border: solid 2px var(--main-green-color)!important;
    font-weight: 600;
    margin-top: 15px;
    transition: 0.4s;
}

.reply-form form#contact-form input[type=submit]:hover {
    color: var(--main-green-color)!important;
    background: white;
    border: solid 2px var(--main-green-color)!important;
    transition: 0.4s;
}

.widget_search .aside-block form.blog-search button {
    float: right;
    margin-top: -45px;
    height: 44px;
    width: 44px;
    background: transparent;
    border: 1px solid transparent;
}

.recent-posts > div.media {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dotted #ccc;
}

.recent-posts > div.media:last-child {
    margin-bottom: 0px;
    padding-bottom: 0px;
    border-bottom: none;
}

.recent-posts > div.media .media-body {
    margin-top: 15px;
}

.recent-posts > div.media h5 a {
    font-size: 16px;
    font-weight: 700;
    color: var(--main-dark-color);
}

.project-thumb img {
    height: auto;
}

.recent-posts h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.widget_search .aside-block .blog-search {
    margin-bottom: 0px;
}

.widget_categories h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.3rem;
}

.single-widget {
    margin-bottom: 2rem;
}

.widget_categories li {
    font-family: 'Poppins', sans-serif;
    padding: 10px 0px 10px 0px;
    text-align: right;
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
    width: 100%;
    list-style: none;
    font-size: 14px;
}

.widget_categories li:last-child {
    border-bottom: none;
}

.widget_categories li a {
    float: left;
    color: var(--main-dark-color);
}

.widget_categories li a:hover {
    color: var(--main-green-color);
}

.widget_tag_cloud h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.widget_tag_cloud .tagcloud .wp-tag-cloud li {
    list-style: none;
    display: inline-block;
    margin: 4px 2px;
}

.widget_tag_cloud .tagcloud .wp-tag-cloud li a {
    background-color: var(--main-yellow-color);
    color: #333;
    text-decoration: none;
    font-size: 12px!important;
    margin: 4px 2px;
    padding: 4px 12px;
    text-transform: uppercase;
    font-weight: 600;
    text-align: center;
    vertical-align: middle;
    line-height: 1.5;
    border-radius: 0.25rem;
    font-family: 'Open Sans', sans-serif;
    transition: 0.4s;
}

.widget_tag_cloud .tagcloud .wp-tag-cloud li a:hover {
    background-color: var(--main-green-color);
    color: #FFF;
}

.site-pagination ul.pagination li span {
    position: relative;
    display: block;
    padding: 0.6rem 1rem;
    margin-right: 8px;
    line-height: 1.25;
    color: #333;
    background-color: #e6e6e6;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50%;
    z-index: 1;
    color: #fff;
    background-color: var(--main-green-color);
    border-color: var(--main-green-color);
}

.site-pagination ul.pagination li a {
    position: relative;
    display: block;
    padding: 0.6rem 1rem;
    margin-right: 8px;
    line-height: 1.25;
    color: #333;
    background-color: #e6e6e6;
    border: none;
    font-family: 'Open Sans', sans-serif;
    font-size: 16px;
    font-weight: 500;
    border-radius: 50%;
}

.site-pagination ul.pagination li a:hover {
    z-index: 1;
    color: #fff;
    background-color: var(--main-green-color);
    border-color: var(--main-green-color);
}

.blog-sidebar .col-lg-3 {
    margin-top: 15px;
}

.navbar .dropdown-menu .dropdown-item:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.navbar .dropdown-menu li:last-child .dropdown-item {
    border-bottom: none;
}

.footer-logo img {
    height: auto;
}

.logged-in .navbar.fixed-top {
    top: 32px;
}

.contact-box-alt form #contact-form span.your-message textarea {
    height: 130px;
}

.contact-box-alt form #contact-form p {
    display: none;
}

.front-parallax .fp-contact .contact-form form textarea {
    height: 78px;
}

.front-parallax .fp-contact .contact-form form p {
    display: none;
}

.front-parallax .fp-contact .contact-form form span.ajax-loader {
    display: none;
}

.page-template-contact-us-template form #contact-form span.your-message textarea {
    height: 80px;
}

.blog-search .form-control {
    color: #333;
}

.blog-search .form-control:focus {
    color: #333;
}

.fa-search:before {
    color: #333;
}

.search-custom form {
    width: 60%;
}

.search-custom h4 {
    font-size: 20px;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 10px;
    line-height: 32px;
    margin-bottom: 20px;
}

.search-custom form input[type="search"] {
    background-color: #eff5f5;
    border: none;
}

.search-custom form div.input-box {
    float: right;
    margin-top: -43px;
    margin-right: -20px;
}

.search-custom form div.input-box input {
    width: 40px;
    height: 43px;
    border: none;
    background: transparent;
}

.search-custom form div.input-box {
    position: relative;
    right: 35px;
    top: -14px;
}

form.error-page-search .fa-search:before {
    color: #fff;
}

form.error-page-search input::placeholder {
    color: #fff;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav {
        margin-top: 20px;
    }

    .navbar-expand-lg.fixed-top .navbar-nav {
        margin-top: 0px;
    }
}

.footer-logo img {
    height: 100%;
}

.front-parallax .contact-form form #contact-form input,
.front-parallax .contact-form form #contact-form textarea {
    color: #fff;
}

.front-parallax .contact-form form #contact-form input::placeholder,
.front-parallax .contact-form form #contact-form textarea::placeholder {
    color: #fff;
}

.front-parallax .contact-form form #contact-form div.btn-contact input[type="submit"] {
    float: left;
    background-color: #3e755f;
    color: #fff;
    border: 2px solid #3e755f;
}

.front-parallax .contact-form form #contact-form div.btn-contact input[type="submit"]:hover {
    float: left;
    background-color: #fff;
    color: #3e755f;
    border: 2px solid #3e755f;
}

.thumbnail-box .thumbnail-box-caption {
    background-color: #fff;
}

.thumbnail-box .thumbnail-box-caption h5:after {
    display: none;
}

.thumbnail-box .thumbnail-box-caption h5 {
    margin-top: 25px;
}

.thumbnail-box .thumbnail-box-caption h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.thumbnail-box .thumbnail-box-caption h5 a {
    padding: 8px 14px;
    background: #3e755f;
    border: 2px solid #3e755f;
    color: #fff;
    text-transform: capitalize;
    font-size: 14px;
    transition: 0.3s;
}

.thumbnail-box .thumbnail-box-caption h5 a:hover {
    border: 2px solid #3e755f;
    background: #fff;
    color: #3e755f;
}

@media screen and (max-width: 991px) {
    .navbar-collapse .navbar-nav > li:last-child .nav-link {
        border-bottom: none;
        padding-bottom: 0px;
    }
}

.bt-details i.far.fa-calendar {
    margin-right: 5px;
}

.blog-thumbnail .bt-caption h4 {
    line-height: 28px;
    font-weight: 700;
}

blockquote.ludwig {
    background: #111;
    padding: 20px;
    padding-left: 35px;
}

blockquote.ludwig p {
    font-size: 16px;
    font-weight: 500;
    color: #fff;
}

blockquote.ludwig:after, blockquote.ludwig:before {
    display: none;
}

blockquote.ludwig footer {
    padding: 20px 0px;
    background: no-repeat;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.comment-box .media .media-body h5 {
    text-transform: capitalize;
    font-size: 18px;
    margin-bottom: 5px;
    font-weight: 600;
}

p.replay {
    float: right;
    position: relative;
}

p.replay:after {
    display: none;
}

p.replay a {
    float: right;
    margin-top: -45px;
    font-size: 14px;
    padding: 4px 16px;
    transition: 0.4s;
    border-radius: .2rem;
}

p.replay:hover a {
    color: var(--main-green-color);
}

.comment-reply-link {
    color: white!important;
    background: var(--main-green-color);
    border: solid 2px var(--main-green-color);
}

.comment-reply-link:hover {
    color: var(--main-green-color)!important;
    background: white;
}

.comment-box .media .media-body p strong {
    color: #333;
    font-size: 14px;
}

.comment-box .media .media-body p {
    font-size: 15px;
    color: #333;
}

.thumbnail-box-caption .b-meta {
    color: #333
}

.b-meta ul li {
    display: inline-block;
    margin-right: 20px;
    list-style: none;
    font-size: 15px;
    font-weight: 600;
    text-transform: capitalize;
}

.thumbnail-box .thumbnail-box-caption {
    padding: 1.5rem;
}

.thumbnail-box .thumbnail-box-caption h5 a {
    border-radius: 5px;
    color: #fff;
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    margin-bottom: 0;
    padding: 13px 25px;
    text-align: center;
    text-transform: capitalize;
    touch-action: manipulation;
    transition: all 0.3s ease 0s;
    vertical-align: middle;
    white-space: nowrap;
    position: relative;
}

.thumbnail-box-caption h3 {
    font-size: 22px;
}

.thumbnail-box-caption p {
    font-size: 15px;
}

.footer-col > p.footer-desc + p {
    display: inline-block;
    color: #fff;
    font-weight: 600;
    margin-right: 25px;
}

.footer-col ul.bottom-social {
    display: inline-block;
}

footer p {
    color: #fff;
}

ul.footer-bulletlist li {
    margin-bottom: 4px;
}

ul.footer-bulletlist li a {
    color: #fff;
    font-size: 15px;
}

.bf-right li a {
    color: #fff;
}

.footer-col p.footer-desc {
    margin-bottom: 0px;
    line-height: 28px;
        font-size: 15px;
}

.post-content div.media div.media-body h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
}

.pages-title h1 {
    font-weight: 700;
}

.media-body span a[rel="author"] {
    color: #333;
    margin-left: 3px;
}

.media-body span a[rel="author"]:hover {
    color: var(--main-yellow-color);
}

.post-content div.media div.media-body h5 i {
    margin-right: 5px;
}

.post-content div.media div.media-body h5 span {
    margin-right: 25px;
}

.aside-block .media .media-body h5{
    line-height: 23px;
}
footer {
    background-color: #182323;
}
.ws-feature .counter-wrapper .media-body .counter {
    color: #fff;
}

.footer-logo img {
    max-width: 120px;
    height: auto;
}

.footer-2-img a {
    position: relative;
    display: block;
}

ul.footer-2-img li {
    float: left;
    overflow: hidden;
    padding: 7px;
    width: 33.33%;
    position: relative;
}

.footer-col .w-social {
    margin-top: 20px;
}

.footer-col .w-social span {
    color: #fff;
    font-size: 15px;
    font-weight: 400;
    font-family: 'Open Sans', sans-serif;
}
.footer-col .w-social a {
    color: #fff;
    margin-left: 15px;
    font-size: 16px;
}

.bottom-footer {
    border-top: 1px solid #313131;
    margin-top: 45px;
    padding-top: 30px;
}

.copyright a {
    color: #fff;
}

.footer-area {
    padding-bottom: 30px;
}

.read-more-btn {
    font-size: 14px;
    padding: 10px 16px;
    color: white;
    background: var(--main-green-color);
    border: solid 2px var(--main-green-color);
    font-weight: 600;
    transition: 0.4s;
    text-transform: uppercase;
    font-family: 'Poppins', sans-serif;
}

.read-more-btn:hover {
    background: white!important;
    color: var(--main-dark-color);
}

.blog-sidebar .content-blogs .bt-caption > p {
    margin-bottom: 30px;
    color: #333;
    font-size: 15px;
}

.blog-thumbnail .bt-caption h4 {
    font-size: 23px;
    margin-bottom: 15px;
}

.bt-caption {
    padding: 2rem 2rem 2.5rem;
}

.bt-details p {
    color: var(--main-dark-color);
    font-size: 15px;
}

.reply-form form#contact-form textarea,
.reply-form form#contact-form input {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
    color: #333;
}

.reply-form form#contact-form textarea::placeholder,
.reply-form form#contact-form input::placeholder {
    font-family: 'Open Sans', sans-serif;
    font-size: 15px;
}

footer.footer-area div#text-4 {
    margin-top: 25px;
}

aside .single-widget, aside .recent-posts {
    padding: 35px 25px 35px 25px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.widget_search .aside-block {
    margin-bottom: 0px;
}

.widget_categories ul, .widget_text .aside-block, .widget_text ul {
    margin-bottom: 0px;
}

.thumbnail-box-caption .b-meta ul li i {
    margin-right: 3px;
}

aside .widget_search {
    margin-top: 15px;
}

.blog-thumbnail {
    margin: 15px 0px;
}

.service-box .sb-icon {
    width: 60px;
    margin: auto!important;
}

.elementor hr.product-divider {
    border-top: 1px solid rgba(204, 204, 204, 0.4);
    margin: 3rem 0rem;
}

.job-list ul > li:last-child {
    border-bottom: none;
    padding-bottom: 0rem;
    margin-bottom: 0rem;
}

.blog-thumbnail {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.bottom-post .author-avatar, .bottom-post .about-author {
    display: inline-block;
}

.post-author .author-avatar img {
    width: auto;
    margin-right: 10px;
}

.elementor .thumbnail-box-caption hr {
    margin-top: 1rem;
    margin-bottom: 1rem;
    border: 0;
    border-top: 1px solid rgba(0,0,0,.1);
}

.bottom-post .about-author {
    top: -12px;
    position: relative;
}

.about-author .author-name {
    margin-bottom: 0px;
}

.about-author p.posted-on {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 0px;
}

.about-author .author-name a {
    font-size: 18px;
    font-weight: 600;
    text-transform: capitalize;
    margin-bottom: 0px;
}

.thumbnail-box-caption > h3 {
    line-height: 1.5;
    letter-spacing: 0.5px;
    margin-bottom: 15px;
    font-weight: 700;
}

.single-post aside .widget_search {
    margin-top: 0px;
}
.dialog-type-lightbox.elementor-lightbox{
    display:none!important;
}
.row-product {
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
  padding-top: 30px;
}

/* CSS Global para todos los popovers */
/* ============================================
   SISTEMA DE POPUP - VERSIÓN FUNCIONAL v3
   ============================================ */

/* Wrapper del botón */
.bdevs-popup-wrapper {
	position: relative;
	display: inline-block;
}

/* Botón */
.product-popup-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	cursor: pointer;
	border: none;
	transition: all 0.3s ease;
	position: relative;
	z-index: 1;
}

/* ============================================
   OVERLAY - Inicialmente OCULTO
   ============================================ */

.bdevs-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5); /* Overlay oscuro semitransparente */
	z-index: 999999; /* Z-index muy alto */
	display: none; /* OCULTO POR DEFECTO - Controlado por JS */
	align-items: flex-start;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.3s ease;
	overflow-y: auto;
	padding: 50px 20px;
}

.bdevs-popup-overlay.active {
	opacity: 1;
}

/* ============================================
   POSITIONER - Contenedor del popup
   ============================================ */

.bdevs-popup-positioner {
	position: relative;
	margin-top: 0;
}

/* Posiciones específicas */
.bdevs-popup-positioner.bottom-left {
	margin-top: 100px;
	margin-right: auto;
	margin-left: 0;
}

.bdevs-popup-positioner.bottom-center {
	margin-top: 100px;
	margin-left: auto;
	margin-right: auto;
}

.bdevs-popup-positioner.bottom-right {
	margin-top: 100px;
	margin-left: auto;
	margin-right: 0;
}

.bdevs-popup-positioner.top-left {
	margin-top: 50px;
	margin-right: auto;
	margin-left: 0;
}

.bdevs-popup-positioner.top-center {
	margin-top: 50px;
	margin-left: auto;
	margin-right: auto;
}

.bdevs-popup-positioner.top-right {
	margin-top: 50px;
	margin-left: auto;
	margin-right: 0;
}

/* ============================================
   POPUP - La caja de contenido
   ============================================ */

.bdevs-product-popup {
	position: relative;
	width: 320px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	border: 1px solid #e5e5e5;
	transform: scale(0.9) translateY(-30px);
	opacity: 0;
	transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.bdevs-popup-overlay.active .bdevs-product-popup {
	transform: scale(1) translateY(0);
	opacity: 1;
}

/* ============================================
   FLECHA DECORATIVA
   ============================================ */

.bdevs-popup-arrow {
	position: absolute;
	width: 0;
	height: 0;
	display: block;
}

/* Para bottom positions, flecha apunta arriba (hacia el botón) */
.bottom-left .bdevs-popup-arrow,
.bottom-center .bdevs-popup-arrow,
.bottom-right .bdevs-popup-arrow {
	top: -10px;
	left: 30px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-bottom: 10px solid #ffffff;
}

.bottom-center .bdevs-popup-arrow {
	left: 50%;
	margin-left: -10px;
}

.bottom-right .bdevs-popup-arrow {
	left: auto;
	right: 30px;
}

/* Para top positions, flecha apunta abajo */
.top-left .bdevs-popup-arrow,
.top-center .bdevs-popup-arrow,
.top-right .bdevs-popup-arrow {
	bottom: -10px;
	top: auto;
	left: 30px;
	border-left: 10px solid transparent;
	border-right: 10px solid transparent;
	border-top: 10px solid #ffffff;
	border-bottom: none;
}

.top-center .bdevs-popup-arrow {
	left: 50%;
	margin-left: -10px;
}

.top-right .bdevs-popup-arrow {
	left: auto;
	right: 30px;
}

/* ============================================
   CONTENIDO DEL POPUP
   ============================================ */

.bdevs-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	background: #f5f5f5;
	border: none;
	border-radius: 50%;
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s;
	color: #666;
	padding: 0;
	z-index: 10;
}

.bdevs-popup-close:hover {
	background: #e0e0e0;
	color: #333;
	transform: rotate(90deg);
}

.bdevs-popup-title {
	margin: 0 0 20px 0;
	padding-right: 40px;
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	border-bottom: 2px solid #f0f0f0;
	padding-bottom: 12px;
}

.bdevs-popup-content {
	color: #333;
	line-height: 1.6;
	max-height: 60vh;
	overflow-y: auto;
}

/* Listas con bullets dentro */
.bdevs-popup-content ul {
	list-style: disc;
	margin: 0;
	padding-left: 20px;
}

.bdevs-popup-content ul li {
	margin-bottom: 12px;
	padding-left: 8px;
}

.bdevs-popup-content ul li:last-child {
	margin-bottom: 0;
}

.bdevs-popup-content a {
	display: block;
	padding: 12px 16px;
	background: #f8f9fa;
	border-radius: 8px;
	text-decoration: none;
	color: #1a1a1a;
	transition: all 0.2s;
	font-size: 14px;
	border: 1px solid transparent;
}

.bdevs-popup-content a:hover {
	background: #e9ecef;
	border-color: #dee2e6;
	transform: translateX(4px);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.bdevs-popup-overlay {
		padding: 20px;
		align-items: center;
	}
	
	.bdevs-popup-positioner {
		margin: 0 !important;
		width: 100%;
		max-width: 400px;
	}
	
	.bdevs-product-popup {
		width: 100% !important;
		max-height: 80vh;
	}
	
	.bdevs-popup-arrow {
		display: none;
	}
}

/* PRODUCT */

/* Layouts Verticales */
.layout-vertical {
    display: flex;
    flex-direction: column;
}

.layout-vertical .col-12 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
}

/* Espaciado personalizado entre elementos verticales */
.product-vertical-gap {
    margin-top: 30px; /* Valor por defecto, se sobreescribe con el control */
}

/* Alineación de imágenes en layouts verticales */
.layout-vertical .product-features {
    margin: 0;
}

.layout-vertical .product-features img {
    display: inline-block;
    max-width: 100%;
    height: auto;
}

/* Responsive para layouts horizontales en móvil */
@media (max-width: 991px) {
    .layout-horizontal .col-lg-7,
    .layout-horizontal .col-lg-5 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .layout-horizontal .col-mt-lg {
        margin-top: 30px;
    }
}


/* ============================================
   WRAPPER - Contenedor principal de cada item  HR FIX
   ============================================ */

.product-item-wrapper {
	position: relative; /* Contexto para posicionamiento absoluto del HR */
	width: 100%;
}

/* Espaciado superior para dejar sitio al HR */
.product-item-wrapper {
	padding-top: 0; /* El primer item no tiene padding */
}

.product-item-wrapper:not(:first-of-type) {
	padding-top: 40px; /* Espacio para el HR y margen entre items */
}

/* ============================================
   HR - Posicionado absolutamente ARRIBA del wrapper
   ============================================ */

.product-divider {
	position: absolute;
	top: 0; /* Siempre en la parte superior del wrapper */
	left: 15px; /* Alinear con el container Bootstrap (col padding) */
	right: 15px;
	margin: 0;
	border: none;
	border-top: 1px solid #dee2e6;
	z-index: 10; /* Por encima de cualquier contenido */
	pointer-events: none; /* No interfiere con clicks */
}

/* Asegurar que el HR esté visible y no colapse */
.product-divider::before {
	content: '';
	display: block;
	height: 1px;
	background: inherit;
}

/* ============================================
   LAYOUTS HORIZONTALES - Altura controlada
   ============================================ */

.layout-horizontal {
	display: flex;
	flex-direction: column;
}

.layout-horizontal .row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch; /* Igualar alturas */
	min-height: 350px; /* Altura mínima para evitar colapsos */
}

.layout-horizontal .col-lg-7,
.layout-horizontal .col-lg-5 {
	display: flex;
	flex-direction: column;
}

.layout-horizontal .product-desc-layer {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center; /* Centrado vertical */
	min-height: 350px; /* Altura mínima configurable */
	padding: 20px 0; /* Espaciado interno */
}

.layout-horizontal .product-features {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	height: 100%;
}

.layout-horizontal .product-features img {
	max-height: 100%;
	width: auto;
	object-fit: contain;
}

/* ============================================
   LAYOUTS VERTICALES
   ============================================ */

.layout-vertical {
	display: flex;
	flex-direction: column;
}

.layout-vertical .row {
	display: flex;
	flex-direction: column;
}

.layout-vertical .col-12 {
	width: 100%;
	flex: 0 0 100%;
	max-width: 100%;
}

.product-vertical-gap {
	margin-top: 30px; /* Espacio entre texto e imagen */
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
	/* En móvil, todos los layouts se vuelven verticales */
	.layout-horizontal .row {
		min-height: auto;
	}
	
	.layout-horizontal .col-lg-7,
	.layout-horizontal .col-lg-5 {
		width: 100%;
		flex: 0 0 100%;
		max-width: 100%;
	}
	
	.layout-horizontal .product-desc-layer {
		min-height: auto;
		padding: 20px 0;
	}
	
	.layout-horizontal .col-mt-lg {
		margin-top: 30px;
	}
	
	/* Ajustar HR en móvil */
	.product-divider {
		left: 15px;
		right: 15px;
	}
}

/* =============== MENU ======== */

  :root {
    --nav-bg: #0b0c10;
    --nav-text: #0b0c10;
    --nav-text-hover: #0b0c10;
    --nav-text-muted: #f7f4ef;
    --nav-text-muted-dropdown: #21242f;
    --nav-accent-portada: #d4a24e;
    --nav-accent-ambits: #d4a24e; /* #4ec9b0; */
    --nav-hover-bg: #a8adbf;
    --nav-dropdown-bg: #f1f5ff;
    --nav-dropdown-border: #22252f;
    --nav-radius: 8px;
    --nav-speed: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-font: 'Segoe UI', system-ui, sans-serif;
  }

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

  .ev-nav {
    font-family: var(--nav-font);
    position: relative;
    z-index: 9999;
  }

  /* --- Barra --- */
  .ev-bar {
    display: flex;
    align-items: center;
    height: 58px;
    padding: 0 28px;
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-dropdown-border);
    position: sticky;
    top: 0;
  }

  /* --- Logo --- */
  .ev-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--nav-text-muted);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-right: 36px;
    transition: color var(--nav-speed);
  }
  .ev-logo:hover { color: var(--nav-text); }

  /* --- Lista de roots --- */
  .ev-list {
    display: flex;
    align-items: center;
    list-style: none;
    height: 100%;
    gap: 2px;
  }

  /* --- Root --- */
  .ev-root {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
  }

  .ev-root-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    font-family: var(--nav-font);
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: var(--nav-radius);
    transition: all var(--nav-speed);
    color: var(--nav-text-muted);
  }

  .ev-root--portada .ev-root-btn { color: var(--nav-accent-portada); }
  .ev-root--ambits .ev-root-btn { color: var(--nav-accent-ambits); }
  .ev-root--portada .ev-root-btn:hover { background: rgba(212,162,78,0.08); }
  .ev-root--ambits .ev-root-btn:hover { background: rgba(78,201,176,0.08); }

  /* Línea inferior */
  .ev-root-btn::after {
    content: '';
    position: absolute;
    bottom: 0; left: 18px; right: 18px;
    height: 1.5px;
    border-radius: 2px 2px 0 0;
    transform: scaleX(0);
    transition: transform var(--nav-speed);
  }
  .ev-root--portada .ev-root-btn::after { background: var(--nav-accent-portada); }
  .ev-root--ambits .ev-root-btn::after { background: var(--nav-accent-ambits); }
  .ev-root:hover .ev-root-btn::after { transform: scaleX(1); }

  /* Flecha */
  .ev-arrow {
    display: inline-block;
    width: 0; height: 0;
    border-left: 3.5px solid transparent;
    border-right: 3.5px solid transparent;
    border-top: 4px solid currentColor;
    opacity: 0.5;
    transition: all var(--nav-speed);
  }
  .ev-root:hover .ev-arrow { transform: rotate(180deg); opacity: 1; }

  /* --- Dropdown --- */
  .ev-drop {
    position: absolute;
    top: calc(100% - 2px);
    left: 0;
    transform: translateY(8px);
    min-width: 200px;
    list-style: none;
    background: var(--nav-dropdown-bg);
    border: 1px solid var(--nav-dropdown-border);
    border-radius: var(--nav-radius);
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    padding: 5px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all var(--nav-speed);
  }

  .ev-root--portada .ev-drop { border-left: 2px solid var(--nav-accent-portada); }
  .ev-root--ambits .ev-drop { border-left: 2px solid var(--nav-accent-ambits); }

  .ev-root:hover .ev-drop {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  /* Items */
  .ev-drop a {
    display: block;
    padding: 10px 14px;
    font-size: 13.5px;
    font-weight: 400;
    color: var(--nav-text-muted-dropdown);
    text-decoration: none;
    border-radius: 5px;
    transition: all var(--nav-speed);
  }
  .ev-drop a:hover {
    color: var(--nav-text-hover);
    background: var(--nav-hover-bg);
    padding-left: 18px;
  }

  /* --- Hamburguesa --- */
  .ev-burger {
    display: none;
    margin-left: auto;
    flex-direction: column;
    gap: 5px;
    padding: 6px;
    border: none;
    background: none;
    cursor: pointer;
    z-index: 10001;
  }
  .ev-burger span {
    display: block;
    width: 20px; height: 1.5px;
    background: var(--nav-text);
    border-radius: 2px;
    transition: all var(--nav-speed);
    transform-origin: center;
  }
  .ev-burger.on span:nth-child(1) { transform: rotate(45deg) translate(4.5px, 4.5px); }
  .ev-burger.on span:nth-child(2) { opacity: 0; }
  .ev-burger.on span:nth-child(3) { transform: rotate(-45deg) translate(4.5px, -4.5px); }

  .ev-overlay {
    display: none;
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9997;
    opacity: 0;
    transition: opacity var(--nav-speed);
  }
  .ev-overlay.show { opacity: 1; }

  .ev-root-link {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--nav-text-muted);
  border-radius: var(--nav-radius);
  transition: all var(--nav-speed);
  position: relative;
  }

  .ev-root-link a:hover {
    color: var(--nav-text-hover);
    background: var(--nav-hover-bg);
    padding-left: 18px;
  }

  .ev-link {
    color: var(--nav-text-muted)
  }

  a:hover span {
    color: var(--nav-text-hover)
  }

  /* --- Responsive --- */
  @media (max-width: 900px) {
    .ev-burger { display: flex; }
    .ev-logo { margin-right: 0; font-size: 13px; letter-spacing: 2px; }

    .ev-list {
      position: fixed;
      top: 0; right: 0;
      width: 260px; max-width: 80vw;
      height: 100vh; height: 100dvh;
      flex-direction: column;
      align-items: stretch;
      padding: 68px 14px 20px;
      background: var(--nav-bg);
      border-left: 1px solid var(--nav-dropdown-border);
      transform: translateX(100%);
      transition: transform var(--nav-speed);
      overflow-y: auto;
      z-index: 10000;
    }
    .ev-list.open { transform: translateX(0); }

    .ev-root {
      height: auto;
      flex-direction: column;
    }
    .ev-root-btn {
      padding: 14px 12px;
      font-size: 13px;
      justify-content: space-between;
    }
    .ev-root-btn::after { display: none; }

    .ev-drop {
      position: static;
      transform: none;
      box-shadow: none;
      border: none;
      background: transparent;
      padding: 0 0 0 12px;
      max-height: 0;
      overflow: hidden;
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
      transition: max-height 0.35s ease;
      border-left: 2px solid transparent !important;
    }
    .ev-root--portada.open .ev-drop { max-height: 400px; border-left-color: var(--nav-accent-portada) !important; }
    .ev-root--ambits.open .ev-drop { max-height: 400px; border-left-color: var(--nav-accent-ambits) !important; }
    .ev-root.open .ev-arrow { transform: rotate(180deg); }

    .ev-drop a { padding: 10px 12px; }
    .ev-drop a:hover { padding-left: 14px; }
  }

  @media (min-width: 901px) {
    .ev-overlay { display: none !important; }
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
  }