/**
 * Tarimas JBP - Personalización de estilos sobre el theme Multi
 * Paleta: marrón madera (#8B5E3C), oscuro (#2c1a0e)
 */

:root {
  --accent-color: #8B5E3C;
  --heading-color: #2c1a0e;
  --nav-hover-color: #8B5E3C;
  --nav-dropdown-hover-color: #8B5E3C;
}

/* Logo imagen en header */
.header .logo img {
  max-height: 56px;
}

/* Botón principal */
.header .btn-getstarted,
.header .btn-getstarted:focus {
  background: var(--accent-color);
}
.header .btn-getstarted:hover {
  background: #6b4228;
}

/* Hero carousel - overlay más oscuro para legibilidad */
.hero .carousel-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.55);
  z-index: 1;
}

/* Page title overlay */
.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.65);
}

/* Stats - icono color acento */
.stats i {
  color: var(--accent-color);
}

/* Barras de progreso en servicios */
.progress-bar-custom {
  background-color: var(--accent-color) !important;
}

/* CTA button */
.cta-btn {
  border-color: var(--accent-color);
  color: #fff;
}
.cta-btn:hover {
  background: var(--accent-color);
  border-color: var(--accent-color);
}

/* Service items - icono SIEMPRE visible (fondo café, icono BLANCO) */
.services .service-item .icon {
  background: var(--accent-color) !important;
}
.services .service-item .icon i {
  color: #ffffff !important;
}
.services .service-item .icon::before {
  background: color-mix(in srgb, var(--accent-color), transparent 80%) !important;
}
/* En hover: card café oscuro, icono café sobre fondo blanco */
.services .service-item:hover {
  background: var(--accent-color);
}
.services .service-item:hover .icon {
  background: #ffffff !important;
}
.services .service-item:hover .icon i {
  color: var(--accent-color) !important;
}
.services .service-item:hover .icon::before {
  background: rgba(255,255,255,0.15) !important;
}
.services .service-item:hover h3,
.services .service-item:hover p {
  color: #fff;
}

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

/* Read more links */
.read-more {
  color: var(--accent-color);
}

/* Footer accent */
.footer .sitename {
  color: var(--accent-color);
}

/* Mapa en contacto */
.map-wrapper {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: 8px;
  display: block;
}

/* Select en formulario de contacto */
.contact .php-email-form select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
}

/* Featured services icons */
.featured-services .icon i {
  color: var(--accent-color);
}

/* About check list */
.about .content ul li i {
  color: var(--accent-color);
}

/* Scroll-top button */
.scroll-top {
  background-color: var(--accent-color);
}
.scroll-top:hover {
  background-color: #6b4228;
}


/* ==============================
   Featured Services (tira de iconos debajo del hero)
   ============================== */
.featured-services .service-item {
  padding: 30px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
  transition: 0.3s;
  height: 100%;
}
.featured-services .service-item:hover {
  box-shadow: 0 4px 28px rgba(139,94,60,0.15);
}
.featured-services .icon {
  width: 54px;
  height: 54px;
  background: rgba(139,94,60,0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 20px;
  flex-shrink: 0;
}
.featured-services .icon i {
  font-size: 1.4rem;
  color: var(--accent-color);
}
.featured-services .title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.featured-services .title a {
  color: var(--heading-color);
  text-decoration: none;
  transition: 0.3s;
}
.featured-services .title a:hover {
  color: var(--accent-color);
}
.featured-services .description {
  font-size: 0.875rem;
  color: #6c757d;
  margin: 0;
}

/* ==============================
   page-title con background image
   ============================== */
.page-title {
  padding: 120px 0 60px;
  min-height: 30vh;
  position: relative;
  background-size: cover;
  background-position: center;
}
.page-title::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(30, 15, 5, 0.65);
}
.page-title .container {
  position: relative;
  z-index: 2;
}
.page-title h1 {
  font-size: 2.5rem;
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}
.page-title p {
  color: rgba(255,255,255,0.8);
}
.page-title .breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  gap: 8px;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}
.page-title .breadcrumbs ol li a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.page-title .breadcrumbs ol li a:hover { color: #fff; }
.page-title .breadcrumbs ol li + li::before {
  content: '/';
  margin-right: 8px;
}
.page-title .breadcrumbs ol li.current {
  color: var(--accent-color);
}

/* ==============================
   Contact - input select
   ============================== */
.contact .php-email-form select {
  width: 100%;
  padding: 10px 16px;
  border: 1px solid #ced4da;
  border-radius: 0;
  font-size: 0.9rem;
  color: #555;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  padding-right: 2.25rem;
  transition: border-color .3s;
}
.contact .php-email-form select:focus {
  border-color: var(--accent-color);
  outline: none;
}

/* ==============================
   Features section (somos.html)
   ============================== */
.features h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 10px;
}
.features p {
  font-size: 0.9rem;
  color: #666;
}
.features ul li i {
  color: var(--accent-color);
  margin-right: 6px;
}

/* ==============================
   Section title ajuste
   ============================== */
.section-title .description-title {
  color: var(--accent-color);
}


/* ==============================
   Hero JBP — sección custom completa
   independiente del hero del theme
   ============================== */

/* Sección contenedora */
.hero-jpb {
  position: relative;
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
}

/* El carousel ocupa todo el ancho */
.hero-jpb .carousel,
.hero-jpb .carousel-inner,
.hero-jpb .carousel-item {
  width: 100%;
  height: 70vh;
  min-height: 480px;
  position: relative;
}

/* Fondo: cubre todo el slide */
.hero-jpb .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}

/* Overlay oscuro sobre el fondo */
.hero-jpb .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 10, 3, 0.58);
  z-index: 2;
}

/* Contenido encima del overlay */
.hero-jpb .hero-content {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  padding-top: 80px; /* compensar el header sticky */
}

.hero-jpb .hero-content .row {
  width: 100%;
  margin: 0;
}

/* Imagen del producto (col izquierda) */
.hero-product-img {
  max-height: 520px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 24px rgba(0,0,0,0.6));
  border-radius: 8px;
  display: block;
}

/* Texto + botón (col derecha) */
.hero-jpb .hero-text {
  color: #fff;
  padding-left: 2rem;
}

.hero-jpb .hero-text h2 {
  font-size: 2.6rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-jpb .hero-text p {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

/* Botón */
.hero-jpb .btn-get-started {
  display: inline-block;
  background: var(--accent-color);
  color: #fff;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 1px;
  padding: 10px 32px;
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.3s;
}
.hero-jpb .btn-get-started:hover {
  background: #6b4228;
  color: #fff;
}

/* Controles de navegación — forzar posición correcta */
.hero-jpb .carousel-control-prev,
.hero-jpb .carousel-control-next {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 10;
  width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}
.hero-jpb .carousel-control-prev { left: 0; }
.hero-jpb .carousel-control-next { right: 0; }
.hero-jpb .carousel-control-prev:hover,
.hero-jpb .carousel-control-next:hover { opacity: 1; }

/* Indicators */
.hero-jpb .carousel-indicators {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-jpb .carousel-indicators button {
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.3s;
}
.hero-jpb .carousel-indicators button.active {
  background: var(--accent-color);
}

/* Tablet */
@media (max-width: 991.98px) {
  .hero-jpb .hero-text h2 { font-size: 2rem; }
  .hero-product-img { max-height: 240px; }
}

/* Móvil — imagen arriba, texto abajo */
@media (max-width: 767.98px) {
  .hero-jpb .carousel,
  .hero-jpb .carousel-inner,
  .hero-jpb .carousel-item {
    height: auto;
    min-height: 520px;
  }
  .hero-jpb .hero-content {
    padding-top: 70px;
    padding-bottom: 60px;
  }
  .hero-jpb .hero-content .row {
    flex-direction: column;
    text-align: center;
  }
  .hero-jpb .hero-text {
    padding-left: 0;
    padding-top: 1rem;
    text-align: center;
  }
  .hero-jpb .hero-text h2 { font-size: 1.6rem; }
  .hero-product-img {
    max-height: 180px;
    margin: 0 auto;
  }
}

/* ==============================
   Sección Certificación Fitosanitaria
   somos.html — dos columnas destacadas
   ============================== */

.fitosanitaria-section {
  background: #f9f5f1;
  padding: 80px 0;
  border-top: 1px solid rgba(139,94,60,0.12);
  border-bottom: 1px solid rgba(139,94,60,0.12);
}

/* --- Columna imagen --- */
.fitosanitaria-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(44,26,14,0.18);
}

.fitosanitaria-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.fitosanitaria-img-wrap:hover .fitosanitaria-img {
  transform: scale(1.03);
}

/* Badge sobre la imagen */
.fitosanitaria-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--accent-color);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.3;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.fitosanitaria-badge i {
  font-size: 1.8rem;
  flex-shrink: 0;
}

/* --- Columna contenido --- */
.fitosanitaria-content {
  padding-left: 2rem;
}

.fitosanitaria-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-color);
  background: rgba(139,94,60,0.08);
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
}

.fitosanitaria-content h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--heading-color);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.fitosanitaria-lead {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

/* Lista de beneficios */
.fitosanitaria-list {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.fitosanitaria-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.fitosanitaria-list li i {
  font-size: 1.3rem;
  color: var(--accent-color);
  flex-shrink: 0;
  margin-top: 2px;
}

.fitosanitaria-list li div strong {
  display: block;
  font-size: 0.95rem;
  color: var(--heading-color);
  margin-bottom: 2px;
}

.fitosanitaria-list li div p {
  font-size: 0.875rem;
  color: #777;
  margin: 0;
  line-height: 1.55;
}