/**
* Template Name: Green
* Template URL: https://bootstrapmade.com/green-free-one-page-bootstrap-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root {
  --default-font: "Roboto",  system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  --heading-font: "Raleway",  sans-serif;
  --nav-font: "Poppins",  sans-serif;
}

/* =======================================================
   Raíz Bromatológica — Sistema cromático institucional
   Versión sin naranja ni lima fuerte
   ======================================================= */

/* Paleta global */
:root { 
  --background-color: #ffffff;   /* Fondo general */
  --default-color: #162316;      /* Texto base */
  --heading-color: #162316;      /* Títulos y subtítulos */
  --accent-color: #28830A;       /* Verde principal de marca */
  --surface-color: #ffffff;      /* Superficies internas */
  --contrast-color: #ffffff;     /* Texto sobre fondos verdes */
}

/* Navegación */
:root {
  --nav-color: #162316;
  --nav-hover-color: #28830A;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #162316;
  --nav-dropdown-hover-color: #28830A;
}

/* Fondos contextuales */
.light-background {
  --background-color: #F7FBEF; /* Lima suave institucional */
  --surface-color: #ffffff;
}

.dark-background {
  --background-color: #162316; /* Verde oscuro */
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: #1f3020;
  --contrast-color: #ffffff;
}

.accent-background {
  --background-color: #E8FFA3; /* Fondo verde-lima suave */
  --default-color: #162316;
  --heading-color: #162316;
  --surface-color: #ffffff;
}

/* =======================================================
   Ajustes generales
   ======================================================= */

/* Enlaces */
a { color: var(--accent-color); text-decoration: none; }
a:hover { color: #1f5e09; } /* tono más oscuro del verde */

/* Botones */
.btn-get-started,
.cta-btn,
button[type="submit"] {
  background: var(--accent-color);
  border-color: var(--accent-color);
  color: var(--contrast-color);
}
.btn-get-started:hover,
.cta-btn:hover,
button[type="submit"]:hover {
  background: #1f5e09; /* verde más profundo */
  border-color: #1f5e09;
}

/* Menú activo/hover */
#navmenu a:hover,
#navmenu a.active {
  color: var(--accent-color);
}

/* =======================================================
   Featured Services
   ======================================================= */
.featured-services .service-item {
  text-align: center;
}
.featured-services .service-item .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: .75rem;
}
.featured-services .service-item .icon i {
  font-size: 3.25rem;
  color: var(--accent-color);
  transition: transform .2s ease, color .2s ease;
}
.featured-services .service-item:hover .icon i {
  transform: translateY(-2px);
  color: #1f5e09; /* efecto hover más oscuro */
}

/* Títulos */
.section-title h2 {
  color: var(--heading-color);
}


/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* Pulsating Play Button
------------------------------*/
.pulsating-play-btn {
  width: 94px;
  height: 94px;
  background: radial-gradient(var(--accent-color) 50%, color-mix(in srgb, var(--accent-color), transparent 75%) 52%);
  border-radius: 50%;
  display: block;
  position: relative;
  overflow: hidden;
}

.pulsating-play-btn:before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  animation-delay: 0s;
  animation: pulsate-play-btn 2s;
  animation-direction: forwards;
  animation-iteration-count: infinite;
  animation-timing-function: steps;
  opacity: 1;
  border-radius: 50%;
  border: 5px solid color-mix(in srgb, var(--accent-color), transparent 30%);
  top: -15%;
  left: -15%;
  background: rgba(198, 16, 0, 0);
}

.pulsating-play-btn:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 100;
  transition: all 400ms cubic-bezier(0.55, 0.055, 0.675, 0.19);
}

.pulsating-play-btn:hover:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translateX(-40%) translateY(-50%);
  width: 0;
  height: 0;
  border: none;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
  z-index: 200;
  animation: none;
  border-radius: 0;
}

.pulsating-play-btn:hover:after {
  border-left: 15px solid var(--accent-color);
  transform: scale(20);
}

@keyframes pulsate-play-btn {
  0% {
    transform: scale(0.6, 0.6);
    opacity: 1;
  }

  100% {
    transform: scale(1, 1);
    opacity: 0;
  }
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  color: var(--default-color);
  transition: all 0.5s;
  z-index: 997;
  background-color: var(--background-color);
}

.header .topbar {
  background-color: var(--background-color);
  height: 40px;
  padding: 0;
  font-size: 14px;
  transition: all 0.5s;
}

.header .topbar .contact-info i {
  font-style: normal;
  color: var(--contrast-color);
}

.header .topbar .contact-info i a,
.header .topbar .contact-info i span {
  padding-left: 5px;
  color: var(--contrast-color);
}

@media (max-width: 575px) {

  .header .topbar .contact-info i a,
  .header .topbar .contact-info i span {
    font-size: 13px;
  }
}

.header .topbar .contact-info i a {
  line-height: 0;
  transition: 0.3s;
}

.header .topbar .contact-info i a:hover {
  color: var(--contrast-color);
  text-decoration: underline;
}

.header .topbar .social-links a {
  color: color-mix(in srgb, var(--contrast-color), transparent 40%);
  line-height: 0;
  transition: 0.3s;
  margin-left: 20px;
}

.header .topbar .social-links a:hover {
  color: var(--contrast-color);
}

.header .branding {
  min-height: 60px;
  padding: 10px 0;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 36px;
  margin-right: 8px;
}

.header .logo h1 {
  font-size: 28px;
  margin: 0;
  font-weight: 700;
  color: var(--accent-color);
  text-transform: uppercase;
}

.scrolled .header {
  box-shadow: 0px 0 18px rgba(0, 0, 0, 0.1);
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
    padding: 0;
  }

  .navmenu ul {
    margin: 0;
    padding: 0;
    display: flex;
    list-style: none;
    align-items: center;
  }

  .navmenu li {
    position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-color);
    padding: 18px 15px;
    font-size: 16px;
    font-family: var(--nav-font);
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    transition: 0.3s;
  }

  .navmenu li:last-child a {
    padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
    margin: 0;
    padding: 10px 0;
    background: var(--nav-dropdown-background-color);
    display: block;
    position: absolute;
    visibility: hidden;
    left: 14px;
    top: 130%;
    opacity: 0;
    transition: 0.3s;
    border-radius: 4px;
    z-index: 99;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
    min-width: 200px;
  }

  .navmenu .dropdown ul a {
    padding: 10px 20px;
    font-size: 15px;
    text-transform: none;
    color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
    font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
    opacity: 1;
    top: 100%;
    visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
    top: 0;
    left: -90%;
    visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
    opacity: 1;
    top: 0;
    left: -100%;
    visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    color: var(--nav-color);
    font-size: 28px;
    line-height: 0;
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.3s;
  }

  .navmenu {
    padding: 0;
    z-index: 9997;
  }

  .navmenu ul {
    display: none;
    list-style: none;
    position: absolute;
    inset: 60px 20px 20px 20px;
    padding: 10px 0;
    margin: 0;
    border-radius: 6px;
    background-color: var(--nav-mobile-background-color);
    overflow-y: auto;
    transition: 0.3s;
    z-index: 9998;
    box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
    color: var(--nav-dropdown-color);
    padding: 10px 20px;
    font-family: var(--nav-font);
    font-size: 17px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
    font-size: 12px;
    line-height: 0;
    margin-left: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
    background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
    background-color: var(--accent-color);
    color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
    background-color: var(--accent-color);
    color: var(--contrast-color);
    transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
    position: static;
    display: none;
    z-index: 99;
    padding: 10px 0;
    margin: 10px 20px;
    background-color: var(--nav-dropdown-background-color);
    border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
    box-shadow: none;
    transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
    background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
    display: block;
    background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
    overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
    color: #fff;
    position: absolute;
    font-size: 32px;
    top: 15px;
    right: 15px;
    margin-right: 0;
    z-index: 9999;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    overflow: hidden;
    inset: 0;
    background: rgba(33, 37, 41, 0.8);
    transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
    display: block;
  }
}

/*--------------------------------------------------------------
# Global Footer
--------------------------------------------------------------*/
.footer {
  color: var(--default-color);
  background-color: var(--background-color);
  font-size: 14px;
  padding-bottom: 50px;
  position: relative;
}

.footer .footer-top {
  padding-top: 50px;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.footer .footer-about .logo {
  line-height: 1;
  margin-bottom: 25px;
}

.footer .footer-about .logo img {
  max-height: 40px;
  margin-right: 6px;
}

.footer .footer-about .logo span {
  color: var(--heading-color);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1px;
  font-family: var(--heading-font);
}

.footer .footer-about p {
  font-size: 14px;
  font-family: var(--heading-font);
}

.footer .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 16px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  margin-right: 10px;
  transition: 0.3s;
}

.footer .social-links a:hover {
  color: var(--accent-color);
  border-color: var(--accent-color);
}

.footer h4 {
  font-size: 16px;
  font-weight: bold;
  position: relative;
  padding-bottom: 12px;
}

.footer .footer-links {
  margin-bottom: 30px;
}

.footer .footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .footer-links ul i {
  padding-right: 2px;
  font-size: 12px;
  line-height: 0;
}

.footer .footer-links ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.footer .footer-links ul li:first-child {
  padding-top: 0;
}

.footer .footer-links ul a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  line-height: 1;
}

.footer .footer-links ul a:hover {
  color: var(--accent-color);
}

.footer .footer-contact p {
  margin-bottom: 5px;
}

.footer .copyright {
  padding-top: 25px;
  padding-bottom: 25px;
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
}

.footer .copyright p {
  margin-bottom: 0;
}

.footer .credits {
  margin-top: 6px;
  font-size: 13px;
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
    transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  position: relative;
}

.page-title .heading {
  padding: 80px 0;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.page-title .heading h1 {
  font-size: 38px;
  font-weight: 700;
}

.page-title nav {
  background-color: color-mix(in srgb, var(--default-color), transparent 95%);
  padding: 20px 0;
}

.page-title nav ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.page-title nav ol li+li {
  padding-left: 10px;
}

.page-title nav ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 120px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
    scroll-margin-top: 100px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:before {
  content: "";
  position: absolute;
  display: block;
  width: 160px;
  height: 1px;
  background: color-mix(in srgb, var(--default-color), transparent 60%);
  left: 0;
  right: 0;
  bottom: 1px;
  margin: auto;
}

.section-title h2::after {
  content: "";
  position: absolute;
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
}

.hero .carousel {
  width: 100%;
  min-height: 70vh;
  padding: 0;
  margin: 0;
  background-color: var(--background-color);
  position: relative;
}

.hero img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero .carousel-item {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.hero .carousel-item:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 30%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero .carousel-container {
  position: absolute;
  inset: 90px 64px 64px 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 3;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
  animation: fadeInDown 1s both;
}

@media (max-width: 768px) {
  .hero h2 {
    font-size: 30px;
  }
}

.hero p {
  animation: fadeInDown 1s both 0.2s;
}

@media (min-width: 1024px) {

  .hero h2,
  .hero p {
    max-width: 60%;
  }
}

.hero .btn-get-started {
  color: var(--contrast-color);
  background: var(--accent-color);
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 8px 32px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  animation: fadeInUp 1s both 0.4s;
}

.hero .btn-get-started:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
  transition: 0.3s;
  opacity: 0.5;
}

.hero .carousel-control-prev:focus,
.hero .carousel-control-next:focus {
  opacity: 0.5;
}

.hero .carousel-control-prev:hover,
.hero .carousel-control-next:hover {
  opacity: 0.9;
}

@media (min-width: 1024px) {

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
    width: 5%;
  }
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 32px;
  line-height: 1;
}

.hero .carousel-indicators {
  list-style: none;
}

.hero .carousel-indicators li {
  cursor: pointer;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translate3d(0, -100%, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

/*--------------------------------------------------------------
# Featured Services Section
--------------------------------------------------------------*/
.featured-services {
  padding: 30px 0;
}

.featured-services .service-item {
  padding: 50px 30px;
  transition: all ease-in-out 0.4s;
  height: 100%;
}

.featured-services .service-item .icon {
  margin-bottom: 10px;
}

.featured-services .service-item .icon i {
  color: var(--accent-color);
  font-size: 36px;
  transition: 0.3s;
}

.featured-services .service-item h4 {
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 20px;
}

.featured-services .service-item h4 a {
  color: var(--heading-color);
  transition: ease-in-out 0.3s;
}

.featured-services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.featured-services .service-item:hover {
  transform: translateY(-10px);
}

.featured-services .service-item:hover h4 a {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# About Section
--------------------------------------------------------------*/
.about .content h3 {
  font-size: 1.75rem;
  font-weight: 700;
}

.about .content ul {
  list-style: none;
  padding: 0;
}

.about .content ul li {
  padding: 10px 0 0 0;
  display: flex;
}

.about .content ul i {
  color: var(--accent-color);
  margin-right: 0.5rem;
  line-height: 1.2;
  font-size: 1.25rem;
}

.about .content p:last-child {
  margin-bottom: 0;
}

.about .pulsating-play-btn {
  position: absolute;
  left: calc(50% - 47px);
  top: calc(50% - 47px);
}

/*--------------------------------------------------------------
# Why Us Section
--------------------------------------------------------------*/
.why-us .card {
  background-color: var(--surface-color);
  color: var(--default-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 40px;
  margin: -1px;
  border-radius: 0;
}

.why-us .card span {
  display: block;
  font-size: 24px;
  font-weight: 400;
  color: var(--accent-color);
}

.why-us .card h4 {
  color: color-mix(in srgb, var(--heading-color), transparent 20%);
  font-size: 24px;
  font-weight: 600;
  padding: 0;
  margin: 20px 0;
}

.why-us .card p {
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  font-size: 15px;
  margin: 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients .swiper-slide img {
  opacity: 0.5;
  transition: 0.3s;
  filter: grayscale(100);
}

.clients .swiper-slide img:hover {
  filter: none;
  opacity: 1;
}

.clients .swiper-wrapper {
  height: auto;
}

.clients .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.clients .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  opacity: 1;
  background-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.clients .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  padding: 40px 30px;
  text-align: center;
  transition: 0.3s;
  border-radius: 5px;
}

.services .service-item .icon {
  font-size: 32px;
  border-radius: 50%;
  position: relative;
  margin-bottom: 25px;
  display: inline-block;
  line-height: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
}

.services .service-item h3 a {
  color: color-mix(in srgb, var(--heading-color), transparent 25%);
  font-weight: 700;
  font-size: 22px;
  transition: 0.3s;
}

.services .service-item p {
  margin-bottom: 0;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
  transition: 0.3s;
}

.services .service-item.item-cyan .icon {
  color: #0dcaf0;
  background: rgba(13, 202, 240, 0.1);
}

.services .service-item.item-orange .icon {
  color: #fd7e14;
  background: rgba(253, 126, 20, 0.1);
}

.services .service-item.item-teal .icon {
  color: #20c997;
  background: rgba(32, 201, 151, 0.1);
}

.services .service-item.item-red .icon {
  color: #df1529;
  background: rgba(223, 21, 4, 0.1);
}

.services .service-item.item-indigo .icon {
  color: #6610f2;
  background: rgba(102, 16, 242, 0.1);
}

.services .service-item.item-pink .icon {
  color: #f3268c;
  background: rgba(243, 38, 140, 0.1);
}

.services .service-item:hover {
  transform: scale(1.06);
}

.services .service-item:hover h3 a {
  color: var(--heading-color);
}

.services .service-item:hover p {
  color: color-mix(in srgb, var(--default-color), transparent 10%);
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 120px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  color: var(--default-color);
  font-size: 28px;
  font-weight: 700;
}

.call-to-action p {
  color: var(--default-color);
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 50px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Portfolio Section
--------------------------------------------------------------*/
.portfolio .portfolio-filters {
  padding: 0 0 20px 0;
  margin: 0 auto;
  list-style: none;
  text-align: center;
}

.portfolio .portfolio-filters li {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  margin: 0 10px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  color: var(--accent-color);
}

.portfolio .portfolio-filters li:first-child {
  margin-left: 0;
}

.portfolio .portfolio-filters li:last-child {
  margin-right: 0;
}

@media (max-width: 575px) {
  .portfolio .portfolio-filters li {
    font-size: 14px;
    margin: 0 5px;
  }
}

.portfolio .portfolio-content {
  background-color: var(--surface-color);
  box-shadow: 0px 10px 30px rgba(0, 0, 0, 0.1);
  height: 100%;
  overflow: hidden;
}

.portfolio .portfolio-content img {
  transition: 0.3s;
  position: relative;
  z-index: 1;
}

.portfolio .portfolio-content .portfolio-info {
  background-color: var(--background-color);
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  padding: 25px 20px;
  position: relative;
  z-index: 2;
}

.portfolio .portfolio-content .portfolio-info h4 {
  font-size: 18px;
  font-weight: 600;
  padding-right: 50px;
}

.portfolio .portfolio-content .portfolio-info h4 a {
  color: var(--heading-color);
  transition: 0.3s;
}

.portfolio .portfolio-content .portfolio-info h4 a:hover {
  color: var(--accent-color);
}

.portfolio .portfolio-content .portfolio-info p {
  color: color-mix(in srgb, var(--default-color), transparent 30%);
  font-size: 14px;
  margin-bottom: 0;
  padding-right: 50px;
}

.portfolio .portfolio-content:hover img {
  transform: scale(1.1);
}

/*--------------------------------------------------------------
# Team Section
--------------------------------------------------------------*/
.team .member {
  background-color: var(--surface-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  text-align: center;
  margin-bottom: 20px;
}

.team .member img {
  margin: -1px -1px 30px -1px;
}

.team .member .member-content {
  padding: 0 20px 30px 20px;
}

.team .member h4 {
  font-weight: 700;
  margin-bottom: 2px;
  font-size: 18px;
}

.team .member span {
  font-style: italic;
  display: block;
  font-size: 13px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
}

.team .member p {
  padding-top: 10px;
  font-size: 14px;
  font-style: italic;
  color: color-mix(in srgb, var(--default-color), transparent 40%);
}

.team .member .social {
  margin-top: 15px;
}

.team .member .social a {
  color: color-mix(in srgb, var(--default-color), transparent 60%);
  transition: 0.3s;
}

.team .member .social a:hover {
  color: var(--accent-color);
}

.team .member .social i {
  font-size: 18px;
  margin: 0 2px;
}

/*--------------------------------------------------------------
# Contact Section
--------------------------------------------------------------*/
.contact .info-wrap {
  background-color: var(--surface-color);
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
  padding: 30px;
}

@media (max-width: 575px) {
  .contact .info-wrap {
    padding: 20px;
  }
}

.contact .info-item {
  margin-bottom: 40px;
}

.contact .info-item i {
  font-size: 20px;
  color: var(--accent-color);
  background: color-mix(in srgb, var(--accent-color), transparent 92%);
  width: 44px;
  height: 44px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50px;
  transition: all 0.3s ease-in-out;
  margin-right: 15px;
}

.contact .info-item h3 {
  padding: 0;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
}

.contact .info-item p {
  padding: 0;
  margin-bottom: 0;
  font-size: 14px;
}

.contact .info-item:hover i {
  background: var(--accent-color);
  color: var(--contrast-color);
}

.contact .php-email-form {
  background-color: var(--surface-color);
  height: 100%;
  padding: 30px;
  box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

@media (max-width: 575px) {
  .contact .php-email-form {
    padding: 20px;
  }
}

.contact .php-email-form input[type=text],
.contact .php-email-form input[type=email],
.contact .php-email-form textarea {
  font-size: 14px;
  padding: 10px 15px;
  box-shadow: none;
  border-radius: 0;
  color: var(--default-color);
  background-color: var(--surface-color);
  border-color: color-mix(in srgb, var(--default-color), transparent 80%);
}

.contact .php-email-form input[type=text]:focus,
.contact .php-email-form input[type=email]:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--accent-color);
}

.contact .php-email-form input[type=text]::placeholder,
.contact .php-email-form input[type=email]::placeholder,
.contact .php-email-form textarea::placeholder {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.contact .php-email-form button[type=submit] {
  color: var(--contrast-color);
  background: var(--accent-color);
  border: 0;
  padding: 10px 30px;
  transition: 0.4s;
  border-radius: 50px;
}

.contact .php-email-form button[type=submit]:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 25%);
}

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .swiper-wrapper {
  height: auto;
}

.portfolio-details .swiper-button-prev,
.portfolio-details .swiper-button-next {
  width: 48px;
  height: 48px;
}

.portfolio-details .swiper-button-prev:after,
.portfolio-details .swiper-button-next:after {
  color: rgba(255, 255, 255, 0.8);
  background-color: rgba(0, 0, 0, 0.15);
  font-size: 24px;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
}

.portfolio-details .swiper-button-prev:hover:after,
.portfolio-details .swiper-button-next:hover:after {
  background-color: rgba(0, 0, 0, 0.3);
}

@media (max-width: 575px) {

  .portfolio-details .swiper-button-prev,
  .portfolio-details .swiper-button-next {
    display: none;
  }
}

.portfolio-details .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.portfolio-details .portfolio-info h3:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  bottom: 0;
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li {
  display: flex;
  flex-direction: column;
  padding-bottom: 15px;
}

.portfolio-details .portfolio-info ul strong {
  text-transform: uppercase;
  font-weight: 400;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 14px;
}

.portfolio-details .portfolio-info .btn-visit {
  padding: 8px 40px;
  background: var(--accent-color);
  color: var(--contrast-color);
  border-radius: 50px;
  transition: 0.3s;
}

.portfolio-details .portfolio-info .btn-visit:hover {
  background: color-mix(in srgb, var(--accent-color), transparent 20%);
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
}

.portfolio-details .portfolio-description .testimonial-item {
  padding: 30px 30px 0 30px;
  position: relative;
  background: color-mix(in srgb, var(--default-color), transparent 97%);
  margin-bottom: 50px;
}

.portfolio-details .portfolio-description .testimonial-item .testimonial-img {
  width: 90px;
  border-radius: 50px;
  border: 6px solid var(--background-color);
  float: left;
  margin: 0 10px 0 0;
}

.portfolio-details .portfolio-description .testimonial-item h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 15px 0 5px 0;
  padding-top: 20px;
}

.portfolio-details .portfolio-description .testimonial-item h4 {
  font-size: 14px;
  color: #6c757d;
  margin: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left,
.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  color: color-mix(in srgb, var(--accent-color), transparent 50%);
  font-size: 26px;
  line-height: 0;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-left {
  display: inline-block;
  left: -5px;
  position: relative;
}

.portfolio-details .portfolio-description .testimonial-item .quote-icon-right {
  display: inline-block;
  right: -5px;
  position: relative;
  top: 10px;
  transform: scale(-1, -1);
}

.portfolio-details .portfolio-description .testimonial-item p {
  font-style: italic;
  margin: 0 0 15px 0 0 0;
  padding: 0;
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .service-box {
  background-color: var(--surface-color);
  padding: 20px;
  box-shadow: 0px 2px 20px rgba(0, 0, 0, 0.1);
}

.service-details .service-box+.service-box {
  margin-top: 30px;
}

.service-details .service-box h4 {
  font-size: 20px;
  font-weight: 700;
  border-bottom: 2px solid color-mix(in srgb, var(--default-color), transparent 92%);
  padding-bottom: 15px;
  margin-bottom: 15px;
}

.service-details .services-list {
  background-color: var(--surface-color);
}

.service-details .services-list a {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  background-color: color-mix(in srgb, var(--default-color), transparent 96%);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  margin-top: 15px;
  transition: 0.3s;
}

.service-details .services-list a:first-child {
  margin-top: 0;
}

.service-details .services-list a i {
  font-size: 16px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .services-list a.active {
  color: var(--contrast-color);
  background-color: var(--accent-color);
}

.service-details .services-list a.active i {
  color: var(--contrast-color);
}

.service-details .services-list a:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 95%);
  color: var(--accent-color);
}

.service-details .download-catalog a {
  color: var(--default-color);
  display: flex;
  align-items: center;
  padding: 10px 0;
  transition: 0.3s;
  border-top: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
}

.service-details .download-catalog a:first-child {
  border-top: 0;
  padding-top: 0;
}

.service-details .download-catalog a:last-child {
  padding-bottom: 0;
}

.service-details .download-catalog a i {
  font-size: 24px;
  margin-right: 8px;
  color: var(--accent-color);
}

.service-details .download-catalog a:hover {
  color: var(--accent-color);
}

.service-details .help-box {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  margin-top: 30px;
  padding: 30px 15px;
}

.service-details .help-box .help-icon {
  font-size: 48px;
}

.service-details .help-box h4,
.service-details .help-box a {
  color: var(--contrast-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}


/* Starter Section
--------------------------------------------------------------*/
.starter-section {
  /* Add your styles here */
}

/* ================= TOPBAR + HEADER ================= */

.header .topbar {
  background: #E8FFA3;      /* lima suave */
  color: #162316;           /* texto */
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
  z-index: 1040;            /* por encima del header */
  pointer-events: none;
}

/* Topbar visible al hacer scroll */
.header .topbar.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Enlaces, íconos y spans dentro de la topbar */
.header .topbar a,
.header .topbar i,
.header .topbar .bi,
.header .topbar span,
.header .topbar .contact-info i,
.header .topbar .social-links a {
  color: #162316 !important;
  opacity: 0.95;
}

/* Hover */
.header .topbar a:hover,
.header .topbar .social-links a:hover {
  color: #162316 !important;
  opacity: 1;
}

/* Asegura que los íconos no tengan filtros */
.header .topbar .social-links a i {
  filter: none;
}

/* Header sticky con offset controlado por JS */
#header.sticky-top {
  position: sticky !important;
  top: var(--header-offset, 0) !important;
  z-index: 1030;             /* debajo de la topbar */
  transition: top .28s ease;
}

/* Accesibilidad animaciones topbar/header */
@media (prefers-reduced-motion: reduce) {
  #header.sticky-top { transition: none; }
  .header .topbar { transition: none; }
}

/* ================= BOTONES (Raíz Bromatológica) ================= */

button,
.btn,
.btn-get-started,
.cta-btn,
button[type="submit"] {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: #28830A !important;  /* verde institucional */
  color: #fff !important;
  border-radius: 2rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: background 0.2s ease;
}

button:hover,
.btn:hover,
.btn-get-started:hover,
.cta-btn:hover,
button[type="submit"]:hover {
  background: #1f5e09 !important;  /* verde más profundo */
  color: #fff !important;
}

button:focus,
.btn:focus,
.btn-get-started:focus,
.cta-btn:focus,
button[type="submit"]:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ================= HERO (Raíz) — Zoom IN + blur ================= */

:root {
  --hero-zoom-duration: 6s;  /* duración del efecto */
  --hero-blur-start: 2px;    /* blur inicial (sutil) */
  --hero-blur-end: 4px;      /* blur final */
}

#hero {
  position: relative;
}

/* Slide + overlay */
.hero .carousel-item {
  position: relative;
  overflow: hidden;
  min-height: 100vh;              /* la sección ocupa toda la altura en desktop */
}

.hero .carousel-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to top,
    #162316 0%,
    rgba(22, 35, 22, .75) 30%,
    rgba(22, 35, 22, .35) 60%,
    rgba(22, 35, 22, 0) 100%
  );
}

/* Imagen: zoom-in + blur creciente y llena la altura */
.hero .carousel-item img {
  position: relative;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;               /* llena y se recorta a los costados */
  transform: scale(1);
  filter: blur(var(--hero-blur-start));
  transition:
    transform var(--hero-zoom-duration) ease,
    filter var(--hero-zoom-duration) ease,
    opacity 1s ease;
  will-change: transform, filter;
}

.hero .carousel-item.active img {
  transform: scale(1.04);
  filter: blur(var(--hero-blur-end));
}

/* CONTENIDO: título + texto + botón, todo en el mismo bloque */
.hero .carousel-container {
  position: absolute;
  z-index: 3;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -40%);
  width: min(92%, 1700px);
  text-align: center;
  padding: 2rem 1.25rem;          /* sin padding-bottom extra */
  background: none;
  backdrop-filter: none;
}

.hero .carousel-container h2,
.hero .carousel-container p {
  color: #fff !important;
}

.hero .carousel-container h2 {
  font-family: var(--font-primary, "Proxima Nova", system-ui, sans-serif);
  font-weight: 700;
  font-size: 2.6rem;
  margin-bottom: 1.1rem;
}

.hero .carousel-container p {
  font-family: var(--font-secondary, "Roboto", system-ui, sans-serif);
  font-weight: 00;
  font-size: 1.9rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 1500px;
}

.hero .btn-get-started {
  margin-top: 1.5rem;
  font-size: 1.25rem !important;   /* ↑ tamaño del texto */
  font-weight: 600;
  padding: 0.85rem 2.2rem;         /* agranda el botón visualmente */
  border-radius: 2rem;
}


/* Desactiva animaciones originales del template y usa propias */
.hero .carousel-container h2,
.hero .carousel-container p,
.hero .carousel-container .btn-get-started {
  animation: none !important;
  transition: none;
}

.hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.hero .carousel-container .rb-anim {
  opacity: 0;
  transform: translateY(10px);
}

.hero .carousel-item.active .carousel-container h2.rb-anim {
  animation: rbFadeUp .6s ease-out .15s both !important;
}

.hero .carousel-item.active .carousel-container p.rb-anim,
.hero .carousel-item.active .carousel-container .btn-get-started.rb-anim {
  animation: rbFadeUp .6s ease-out .35s both !important;
}

@keyframes rbFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Indicadores centrados del hero */
#hero-carousel .carousel-indicators {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  width: max-content;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
  z-index: 2;
}

#hero-carousel .carousel-indicators [data-bs-target] {
  background-color: rgba(255, 255, 255, .65);
}

#hero-carousel .carousel-indicators .active {
  background-color: #fff;
}

/* Flechas visibles en fondo oscuro */
.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
  filter: invert(1) brightness(2);
}

/* Accesibilidad hero */
@media (prefers-reduced-motion: reduce) {
  .hero .carousel-item img,
  .hero .carousel-item.active img {
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  .hero .carousel-container .rb-anim {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* ======= Hero responsive ======= */

/* Tablets verticales */
@media (max-width: 992px) {
  .hero .carousel-container {
    top: 38%;
    transform: translate(-50%, -38%);
    padding: 1.75rem 1.25rem;
  }
  .hero .carousel-container h2 { font-size: 3rem; }
  .hero .carousel-container p  { font-size: 1.9rem; line-height: 1.5; }
}

/* Móviles comunes */
@media (max-width: 576px) {
  /* el slide ocupa toda la altura en vertical */
  .hero .carousel-item {
    min-height: 100vh;
    height: 100vh;
  }

  /* la imagen también llena verticalmente y se recorta */
  .hero .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .hero .carousel-container {
    top: 36%;
    transform: translate(-50%, -36%);
    padding: 1.25rem 1rem;
    width: 92%;
  }
  .hero .carousel-container h2 {
    font-size: 1.65rem;
    line-height: 1.2;
    margin-bottom: .7rem;
  }
  .hero .carousel-container p {
    font-size: 1rem;
    line-height: 1.45;
    max-width: 95%;
  }
  .carousel-control-prev,
  .carousel-control-next {
    width: 42px;
  }
}

/* Ajuste fino: 360–430px */
@media (max-width: 430px) {
  .hero .carousel-item {
    min-height: 100vh;
    height: 100vh;
  }

  .hero .carousel-container {
    top: 35.5%;
    transform: translate(-50%, -35.5%);
    padding: 1rem 1rem;
    width: 92%;
  }
  .hero .carousel-container h2 { font-size: 1.55rem; }
  .hero .carousel-container p {
    font-size: .98rem;
    line-height: 1.42;
  }
}

/* Móviles muy pequeños */
@media (max-width: 380px) {
  .hero .carousel-item {
    min-height: 100vh;
    height: 100vh;
  }

  .hero .carousel-container {
    top: 34%;
    transform: translate(-50%, -34%);
  }
}

/* ================= SERVICES DETAILS ================= */

.services-list a {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem .9rem;
  border-radius: .4rem;
  color: var(--default-color);
  text-decoration: none;
  background: var(--surface-color);
  border: 1px solid rgba(0, 0, 0, .06);
  margin-bottom: .6rem;
  transition: background .2s, color .2s, border-color .2s;
}

services-list a:hover {
  background: #f3f7f3;
}

.services-list a.active {
  background: #28830A;
  color: #fff;
  border-color: #28830A;
}

.services-list a.active i {
  filter: brightness(10);
}

/* Fade suave en el contenido al cambiar */
#service-content {
  transition: opacity .2s ease;
}

#service-content.is-changing {
  opacity: .25;
}

/* Detalles ampliados (cards) */
#svc-details .detail-card {
  display: flex;
  gap: .9rem;
  padding: 1rem 1rem;
  background: var(--surface-color);
  border: 1px solid rgba(0, 0, 0, .07);
  border-radius: .7rem;
  height: 100%;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    border-color .2s,
    background .2s;
}

#svc-details .detail-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .06);
  border-color: rgba(40, 131, 10, .35);
  background: #f8fbf8;
}

#svc-details .detail-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(40, 131, 10, .12);
  color: #28830A;
  flex: 0 0 42px;
  font-size: 22px;
}

#svc-details h5 {
  font-size: 1.05rem;
  margin: 0 0 .25rem;
}

#svc-details p {
  margin: 0;
  font-size: .95rem;
}

/* móviles */
@media (max-width: 575.98px) {
  #svc-details .detail-card { padding: .9rem; }
  #svc-details .detail-icon { width: 38px; height: 38px; font-size: 20px; }
}

/* ================= HELP BOX (QR + textura) ================= */

.help-box {
  position: relative;
  background: #28830A;
  color: #fff;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  width: 100%;
  overflow: hidden;    /* recorta la textura al borde redondeado */
}

/* Capa de textura */
.help-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/img/fondo-textura.jpg") center/cover no-repeat;
  filter: blur(6px) saturate(110%);
  opacity: 100;
  mix-blend-mode: multiply;
  transform: scale(1.05);
  z-index: 0;
  pointer-events: none;
}

/* Eleva el contenido sobre la textura */
.help-box > * {
  position: relative;
  z-index: 1;
}

.help-box .help-qr {
  width: 100%;
  max-width: 224px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
  background: #fff;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
  aspect-ratio: 1 / 1;
  object-fit: contain;
}

.help-box .help-link {
  color: #fff;
  text-decoration: underline;
}

.help-box i {
  filter: brightness(10);
}

/* Responsivo help-box */
@media (max-width: 991.98px) {
  .help-box .help-qr { max-width: 182px; }
}

@media (max-width: 575.98px) {
  .help-box {
    padding: 20px 16px;
  }
  .help-box .help-qr {
    max-width: 154px;
    padding: 6px;
  }
}

/* ================= CTA WHATSAPP ================= */

.call-to-action .cta-whatsapp {
  width: 88px;
  height: 88px;
  border-radius: 9999px;
  background: #28830A;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(22, 35, 22, .28);
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .2s ease;
}

.call-to-action .cta-whatsapp i {
  font-size: 36px;
  line-height: 1;
}

/* Hover / focus */
.call-to-action .cta-whatsapp:hover {
  background: #56eb20;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 14px 32px rgba(22, 35, 22, .34);
}

.call-to-action .cta-whatsapp:focus-visible {
  outline: 3px solid rgba(40, 131, 10, .45);
  outline-offset: 3px;
}

/* Tamaño levemente menor en móvil */
@media (max-width: 575.98px) {
  .call-to-action .cta-whatsapp {
    width: 76px;
    height: 76px;
  }
  .call-to-action .cta-whatsapp i {
    font-size: 32px;
  }
}

/* ================= UTILIDADES ================= */

.is-hidden {
  display: none !important;
}

.contact-form-cta {
  background: #28830A;
  color: #fff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.contact-form-cta:hover {
  background: #1f5e09;
  color: #fff;
}

/* Ajuste para que el botón no se cruce con las flechas en escritorio */
@media (min-width: 992px) {
  .hero .carousel-container {
    top: 25%;
    transform: translate(-50%, -34%);
  }
}
/* ===== HERO — Regla universal para ocupar SIEMPRE toda la altura ===== */

.hero .carousel-item {
  min-height: 100vh !important;
  height: 100vh !important;
}

.hero .carousel-item img {
  width: 100%;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}
/* Reset del botón para evitar padding heredado */
.navmenu li {
  padding: 0 !important;
}

.navmenu a.nav-servicios {
  padding: 0 !important;             /* eliminamos todo padding base */
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  height: 34px;                      /* altura real */
  padding-left: 22px !important;     /* ahora sí padding controlado */
  padding-right: 22px !important;

  border-radius: 999px;
  border: 2px solid #162316;

  font-weight: 700;
  color: #162316 !important;
  line-height: 1;

  box-sizing: content-box !important; /* evita que el borde aplaste el padding */
}

/* Hover */
.navmenu a.nav-servicios:hover {
  background: rgba(40,131,10,.1);
  border-color: #28830A;
  color: #28830A !important;
}

/* Fondo con imagen + blur + overlay + degradado inferior */
#call-to-action {
  position: relative;
  overflow: hidden;
  background: #E8FFA3;   /* color base lima, por si la imagen tarda en cargar */
}

/* Capa de imagen (blur + overlay) */
#call-to-action::before {
  content: "";
  position: absolute;
  inset: 0;

  /* RUTA CORREGIDA (desde main.css → subir un nivel y entrar en img/) */
  background: url("../img/bg-cta.jpg") center/cover no-repeat;

  filter: blur(6px);            /* blur aplicado en mobile y desktop */
  opacity: 0.9;                /* controla la fuerza de la imagen */
  mix-blend-mode: color-dodge;      /* estilo “superponer” */
  z-index: 0;
  pointer-events: none;
}

/* Capa de degradado (más transparente hacia abajo) */
#call-to-action::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(232, 255, 163, 0.95) 0%,     /* arriba más sólido */
    rgba(232, 255, 163, 0.75) 35%,
    rgba(232, 255, 163, 0.45) 70%,
    rgba(232, 255, 163, 0.10) 100%    /* abajo casi transparente */
  );
  z-index: 1;
  pointer-events: none;
}

/* Contenido por encima de las capas de fondo */
#call-to-action > .container {
  position: relative;
  z-index: 2;
}
