/*
Theme Name:   Agrobiosmart
Theme URI:    https://agrobiosmart.com
Author:       FaroDigital by Fabricio Guadalupe
Author URI:   https://farodigital.net
Description:  Tema oficial Agrobiosmart — compatible con Elementor
Version:      1.1.1
License:      GNU General Public License v2 or later
Text Domain:  agrobiosmart
*/

/* =========================================
   VARIABLES DE MARCA — AGROBIOSMART
   ========================================= */
:root {
  --color-primary:    #2C5F1F;   /* Verde oscuro */
  --color-secondary:  #4A8B2B;   /* Verde medio  */
  --color-accent:     #7CB840;   /* Verde claro  */
  --color-white:      #FFFFFF;
  --color-light-bg:   #F4F8F1;   /* Fondo secciones alternas */
  --color-text:       #2D2D2D;
  --color-text-light: #6B6B6B;
  --color-border:     #D8E8CC;

  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Open Sans', sans-serif;

  --radius:   8px;
  --shadow:   0 4px 20px rgba(44, 95, 31, 0.12);
  --transition: 0.3s ease;
}

/* =========================================
   RESET / BASE
   ========================================= */
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-white);
  line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary);
}

img {
  max-width: 100%;
  height: auto;
}

/* =========================================
   HEADER / NAVEGACIÓN
   ========================================= */
.site-header {
  background-color: var(--color-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .elementor-nav-menu a {
  color: var(--color-text);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}

.site-header .elementor-nav-menu a:hover,
.site-header .elementor-nav-menu .current-menu-item > a {
  color: var(--color-secondary);
}

/* =========================================
   BOTONES
   ========================================= */
.elementor-button,
.btn-primary {
  background-color: var(--color-secondary);
  color: var(--color-white) !important;
  border: none;
  border-radius: var(--radius);
  padding: 14px 32px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background-color var(--transition), transform var(--transition);
  cursor: pointer;
  display: inline-block;
}

.elementor-button:hover,
.btn-primary:hover {
  background-color: var(--color-primary);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-white) !important;
  border: 2px solid var(--color-white);
  border-radius: var(--radius);
  padding: 12px 30px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all var(--transition);
}

.btn-outline:hover {
  background-color: var(--color-white);
  color: var(--color-primary) !important;
}

/* =========================================
   HERO SECTION
   ========================================= */
.section-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 60%, var(--color-accent) 100%);
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-hero::after {
  content: '';
  position: absolute;
  right: -100px;
  top: -100px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
}

.section-hero .hero-title {
  color: var(--color-white);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.section-hero .hero-subtitle {
  color: rgba(255,255,255,0.88);
  font-size: clamp(16px, 2vw, 20px);
  margin-bottom: 40px;
  max-width: 580px;
}

/* =========================================
   SECCIONES GENERALES
   ========================================= */
.section-padding {
  padding: 90px 0;
}

.section-alt {
  background-color: var(--color-light-bg);
}

.section-dark {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3 {
  color: var(--color-white);
}

.section-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin-top: 14px;
  border-radius: 2px;
}

.section-title.centered::after {
  margin-left: auto;
  margin-right: auto;
}

.section-subtitle {
  font-size: 17px;
  color: var(--color-text-light);
  max-width: 620px;
  margin: 0 auto 50px;
}

/* =========================================
   TARJETAS DE SERVICIOS
   ========================================= */
.service-card {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
  border-top: 4px solid var(--color-accent);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(44, 95, 31, 0.18);
}

.service-card .service-icon {
  width: 70px;
  height: 70px;
  background: var(--color-light-bg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.service-card .service-icon i,
.service-card .service-icon svg {
  font-size: 32px;
  color: var(--color-secondary);
}

.service-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.service-card p {
  font-size: 15px;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* =========================================
   TARJETAS DE PRODUCTOS
   ========================================= */
.product-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(44, 95, 31, 0.18);
}

.product-card .product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.product-card .product-body {
  padding: 24px;
}

.product-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.product-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* =========================================
   SECCIÓN NOSOTROS
   ========================================= */
.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about-badge {
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 6px 16px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 16px;
}

/* =========================================
   CLIENTES / LOGOS GRID
   ========================================= */
.clients-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.clients-grid img {
  height: 60px;
  width: auto;
  filter: grayscale(100%) opacity(0.6);
  transition: filter var(--transition);
}

.clients-grid img:hover {
  filter: grayscale(0%) opacity(1);
}

/* =========================================
   NOTICIAS / BLOG
   ========================================= */
.news-card {
  background: var(--color-white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card .news-image {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.news-card .news-body {
  padding: 24px;
}

.news-card .news-date {
  font-size: 12px;
  color: var(--color-accent);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.news-card h3 {
  font-size: 17px;
  margin-bottom: 10px;
}

.news-card p {
  font-size: 14px;
  color: var(--color-text-light);
}

/* =========================================
   CONTADOR / ESTADÍSTICAS
   ========================================= */
.stat-box {
  text-align: center;
  padding: 30px 20px;
}

.stat-number {
  font-size: 52px;
  font-weight: 800;
  color: var(--color-accent);
  font-family: var(--font-heading);
  line-height: 1;
}

.stat-label {
  font-size: 15px;
  color: var(--color-white);
  margin-top: 8px;
}

/* =========================================
   CONTACTO
   ========================================= */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info-icon {
  width: 44px;
  height: 44px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon i {
  color: var(--color-white);
  font-size: 18px;
}

.contact-form input,
.contact-form textarea,
.wpcf7-form input,
.wpcf7-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  transition: border-color var(--transition);
  background: var(--color-white);
}

.contact-form input:focus,
.contact-form textarea:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: none;
  border-color: var(--color-secondary);
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
  background-color: var(--color-primary);
  color: rgba(255,255,255,0.8);
  padding: 60px 0 20px;
}

.site-footer h4 {
  color: var(--color-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.site-footer a {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

/* =========================================
   REDES SOCIALES
   ========================================= */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: var(--color-white) !important;
  font-size: 16px;
  margin-right: 8px;
  transition: background var(--transition);
}

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

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .section-padding {
    padding: 70px 0;
  }
}

@media (max-width: 768px) {
  .section-padding {
    padding: 50px 0;
  }

  .section-hero {
    min-height: 70vh;
    text-align: center;
  }

  .section-hero .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .stat-number {
    font-size: 38px;
  }
}


/* =========================================
   BLOQUE ADICIONAL — clases usadas por el
   contenido de Elementor (Hero, Nosotros,
   Servicios, Regulación, Footer real)
   ========================================= */
:root {
  --green-dark:  #2C5F1F;
  --green-mid:   #4A8B2B;
  --green-light: #7CB840;
  --bg-light:    #F4F8F1;
  --text-mid:    #6B6B6B;
  --border:      #D8E8CC;
}
.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 55%, var(--green-light) 100%);
  min-height: 88vh; display: flex; align-items: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 500px; height: 500px; border-radius: 50%; background: rgba(255,255,255,0.04);
}
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.hero-badge {
  display: inline-block; background: rgba(124,184,64,0.2);
  color: var(--green-light); font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 3px; padding: 6px 16px;
  border-radius: 4px; margin-bottom: 20px; border: 1px solid rgba(124,184,64,0.4);
}
.hero h1 {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(32px, 4.5vw, 56px); color: #fff; line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { color: var(--green-light); }
.hero p { color: rgba(255,255,255,0.88); font-size: 17px; line-height: 1.75; margin-bottom: 36px; max-width: 480px; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-btns .btn { border-radius: 8px; padding: 12px 26px; font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block; transition: all .3s ease; }
.hero-btns .btn-white { background: #fff; color: var(--green-dark); }
.hero-btns .btn-white:hover { background: var(--bg-light); }
.hero-btns .btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.hero-btns .btn-outline:hover { background: #fff; color: var(--green-dark); }
.hero-img-box {
  background: rgba(255,255,255,0.08); border-radius: 16px; padding: 50px 40px;
  display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 16px;
  border: 1px solid rgba(255,255,255,0.15); text-align: center;
}
.hero-img-box img { max-width: 100%; border-radius: 8px; }
.hero-img-box .placeholder-icon { font-size: 80px; color: rgba(255,255,255,0.25); }
.hero-img-box .placeholder-text { color: rgba(255,255,255,0.45); font-size: 13px; }

.stats { background: var(--green-dark); padding: 60px 24px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; text-align: center; }

section.section-alt, div.section-alt { background: var(--bg-light); }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-family: 'Montserrat',sans-serif; font-weight: 800;
  font-size: clamp(26px,3.5vw,40px); color: var(--green-dark);
  margin-bottom: 0; position: relative; display: inline-block;
}
.section-header h2::after {
  content: ''; display: block; width: 60px; height: 4px;
  background: var(--green-light); margin: 14px auto 0; border-radius: 2px;
}
.section-header p { color: var(--text-mid); font-size: 17px; max-width: 580px; margin: 20px auto 0; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; padding: 90px 0; }
.about-img-wrap {
  border-radius: 8px; overflow: hidden; box-shadow: var(--shadow);
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  min-height: 420px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 16px;
}
.about-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-content h2 {
  font-family: 'Montserrat',sans-serif; font-weight: 800;
  font-size: clamp(22px,3vw,34px); color: var(--green-dark);
  margin-bottom: 16px; line-height: 1.2;
}
.about-content p { color: var(--text-mid); font-size: 16px; line-height: 1.75; margin-bottom: 14px; }
.check-list { list-style: none; margin: 20px 0 28px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; margin-bottom: 12px; }
.check-list li i { color: var(--green-mid); font-size: 18px; margin-top: 2px; flex-shrink: 0; }

.services-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding: 30px 0 90px; }
.service-card p[style] { font-size: 12px !important; }

.products-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding: 30px 0 90px; }
.product-img {
  height: 130px; display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
}
.product-img i { font-size: 36px; color: rgba(255,255,255,0.7); }
.product-img span { color: rgba(255,255,255,0.85); font-size: 13px; font-weight: 600; font-family: 'Montserrat',sans-serif; }

.clients-row { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: center; padding: 90px 0; }
.client-logo {
  width: 130px; height: 60px; background: var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-mid); font-size: 11px; font-weight: 700;
  font-family: 'Montserrat',sans-serif; text-transform: uppercase; letter-spacing: 1px;
}
.client-logo:hover { background: var(--green-light); color: #fff; }

.cta-banner {
  background: linear-gradient(90deg, var(--green-mid), var(--green-light));
  padding: 64px 24px; text-align: center;
}
.cta-banner h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(24px,3vw,36px); color: #fff; margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.88); font-size: 17px; margin-bottom: 30px; }
.cta-banner .btn-dark { background: var(--green-dark); color: #fff; border-radius: 8px; padding: 12px 26px; font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block; }
.cta-banner .btn-dark:hover { background: #1a3d10; }

.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; padding: 30px 0 90px; }
.news-img { height: 190px; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; }
.news-img i { font-size: 40px; color: rgba(255,255,255,0.5); }
.news-body { padding: 22px; }
.news-date { font-size: 11px; color: var(--green-light); font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 10px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; padding: 90px 0; }
.contact-grid h2 { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: clamp(26px,3.5vw,38px); color: #fff; margin-bottom: 14px; }
.contact-desc { color: rgba(255,255,255,0.8); font-size: 16px; line-height: 1.7; margin-bottom: 36px; }
.contact-info-list { list-style: none; }
.contact-info-list li { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; color: rgba(255,255,255,0.85); font-size: 15px; }
.contact-icon { width: 42px; height: 42px; background: rgba(124,184,64,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(124,184,64,0.4); }
.contact-icon i { color: var(--green-light); font-size: 16px; }
.contact-form-box { background: rgba(255,255,255,0.06); border-radius: 12px; padding: 36px; border: 1px solid rgba(255,255,255,0.1); }
.contact-form-box h3 { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 20px; color: #fff; margin-bottom: 24px; }

#contacto.contact-section { background: linear-gradient(135deg, var(--green-dark), #1a3d10); }

.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-logo-icon { width: 36px; height: 36px; background: linear-gradient(135deg, var(--green-mid), var(--green-light)); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.footer-logo-icon i { color: #fff; font-size: 16px; }
.footer-logo-name { font-family: 'Montserrat',sans-serif; font-weight: 800; font-size: 16px; color: #fff; }
.footer-logo-name span { color: var(--green-light); }
.footer-brand p { color: rgba(255,255,255,0.6); font-size: 14px; line-height: 1.7; margin-bottom: 20px; }
.footer-col h4 { font-family: 'Montserrat',sans-serif; font-weight: 700; font-size: 13px; color: #fff; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom-flex { border-top: 1px solid rgba(255,255,255,0.1); padding: 20px 0; display: flex; justify-content: space-between; align-items: center; }

@media (max-width: 960px) {
  .hero-inner, .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-img-box { display: none; }
  .services-grid, .products-grid, .news-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .services-grid, .products-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}


/* =========================================
   RESET de wrappers de Elementor que envuelven
   los widgets HTML del contenido principal, para
   que mis secciones controlen su propio ancho/padding
   ========================================= */
.elementor-53 > .elementor-element.e-con-boxed,
.elementor-53 > .elementor-element.e-con-full {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.elementor-53 .e-con-inner {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}
.elementor-53 .elementor-widget-html {
  width: 100% !important;
}
.elementor-53 .elementor-widget-html .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}


/* =========================================
   ARTÍCULO INDIVIDUAL (single.php)
   ========================================= */
.post-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: flex-end;
  background: var(--green-dark);
  overflow: hidden;
}
.post-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.post-hero-img--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
}
.post-hero-img--placeholder i {
  font-size: 60px;
  color: rgba(255,255,255,0.3);
}
.post-hero-overlay {
  position: relative;
  width: 100%;
  padding: 100px 0 40px;
  background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 100%);
}
.post-back-link {
  color: rgba(255,255,255,0.85) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-block;
  margin-bottom: 18px;
}
.post-back-link:hover { color: var(--green-light) !important; }
.post-date {
  color: var(--green-light);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.post-title {
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.15;
  max-width: 800px;
}
.post-content-wrap {
  max-width: 760px;
  padding-top: 60px;
  padding-bottom: 90px;
}
.post-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-mid, #6B6B6B);
}
.post-content p { margin-bottom: 22px; }
.post-content h2, .post-content h3 {
  font-family: 'Montserrat', sans-serif;
  color: var(--green-dark);
  margin: 36px 0 16px;
  font-weight: 800;
}
.post-content img { border-radius: 8px; margin: 24px 0; }
.post-content a { color: var(--green-mid); }
.post-content ul, .post-content ol { margin: 0 0 22px 24px; }


/* =========================================
   HEADER / LOGO / NAV / BOTONES (compartido
   entre front-page.php, single.php, etc.)
   ========================================= */
header {
  background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky; top: 0; z-index: 100;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1180px; margin: 0 auto;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, var(--green-dark), var(--green-light));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.logo-icon i { color: #fff; font-size: 22px; }
.logo-text { font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px; color: var(--green-dark); }
.logo-text span { color: var(--green-light); }
nav#main-nav { display: flex; gap: 28px; }
nav#main-nav a {
  font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 13px;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--text, #2D2D2D);
  text-decoration: none; transition: color 0.3s ease;
}
nav#main-nav a:hover { color: var(--green-mid); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--green-dark); border-radius: 2px; transition: all 0.3s ease; }

@media (max-width: 1024px) {
  nav#main-nav { display: none; }
  .hamburger { display: flex; }
  nav#main-nav.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; padding: 20px 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); gap: 16px; z-index: 999;
  }
  .header-inner .btn-primary { display: none; }
}
.btn, .btn-primary, .btn-white, .btn-outline, .btn-dark {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1px; border-radius: 8px;
  padding: 12px 26px; cursor: pointer; transition: all 0.3s ease;
  border: none; text-decoration: none; display: inline-block;
}
.btn-primary { background: var(--green-mid); color: #fff !important; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-white { background: #fff; color: var(--green-dark) !important; }
.btn-white:hover { background: var(--bg-light); }
.btn-outline { background: transparent; color: #fff !important; border: 2px solid #fff; }
.btn-outline:hover { background: #fff; color: var(--green-dark) !important; }
.btn-dark { background: var(--green-dark); color: #fff !important; }
.btn-dark:hover { background: #1a3d10; }

@media (max-width: 640px) {
  nav#main-nav { display: none; }
  .hamburger { display: flex; }
  nav#main-nav.open { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: #fff; padding: 20px 24px; box-shadow: 0 8px 20px rgba(0,0,0,0.1); gap: 16px; }
}


/* =========================================
   FOOTER - fondo y layout inferior (fix)
   ========================================= */
footer { background: #1a3d10; padding: 60px 0 0; color: rgba(255,255,255,0.8); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p { color: rgba(255,255,255,0.4); font-size: 13px; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; }
.footer-bottom a:hover { color: var(--green-light); }


/* =========================================
   HERO — foto real en vez de placeholder
   ========================================= */
.hero-img-box--photo {
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: transparent;
}
.hero-img-box--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  margin: 0;
  display: block;
}


/* =========================================
   TARJETAS DE REGULACIÓN COMO ENLACES
   ========================================= */
.product-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.product-card-link:hover .product-card {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(44,95,31,0.2);
}
.product-card-link .product-card { transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }


/* =========================================
   ÍCONOS SOCIALES EN SVG (sin depender de
   Font Awesome / fuentes externas)
   ========================================= */
.social-link svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
  display: block;
}


/* =========================================
   TARJETAS DE SERVICIOS COMO ENLACES
   ========================================= */
.service-card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}
.service-card-link:hover .service-card {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(44,95,31,0.18);
}
.service-card-link .service-card { transition: transform 0.3s ease, box-shadow 0.3s ease; cursor: pointer; }


/* =========================================
   MIGAJAS DE PAN
   ========================================= */
.breadcrumbs {
  background: var(--bg-light);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumbs a { color: var(--green-mid); font-size: 13px; font-weight: 600; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumb-sep { color: var(--text-mid); margin: 0 8px; font-size: 13px; }
.breadcrumb-current { color: var(--text-mid); font-size: 13px; }

/* =========================================
   PÁGINA 404
   ========================================= */
.error-404-section { min-height: 60vh; display: flex; align-items: center; padding: 60px 0; }
.error-404-content { text-align: center; max-width: 600px; margin: 0 auto; }
.error-404-code {
  font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(60px, 12vw, 120px); color: var(--green-light);
  line-height: 1; margin-bottom: 10px;
}
.error-404-content h1 { font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--green-dark); font-size: clamp(24px,3vw,34px); margin-bottom: 16px; }
.error-404-content p { color: var(--text-mid); font-size: 16px; margin-bottom: 30px; }
.btn-outline-dark {
  background: transparent; color: var(--green-dark); border: 2px solid var(--green-dark);
  border-radius: 8px; padding: 12px 26px; font-family: 'Montserrat',sans-serif; font-weight: 700;
  font-size: 13px; text-transform: uppercase; letter-spacing: 1px; text-decoration: none; display: inline-block;
}
.btn-outline-dark:hover { background: var(--green-dark); color: #fff; }

/* =========================================
   TÍTULO DE PÁGINA GENÉRICA (page.php)
   ========================================= */
.page-title {
  font-family: 'Montserrat', sans-serif; font-weight: 800; color: var(--green-dark);
  font-size: clamp(26px,3.5vw,40px); margin-bottom: 24px;
}

/* =========================================
   CTA FIJO EN MÓVIL
   ========================================= */
.mobile-sticky-cta {
  display: none;
}
@media (max-width: 640px) {
  .mobile-sticky-cta {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: var(--green-dark);
    padding: 12px 16px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
    gap: 10px;
  }
  .mobile-sticky-cta a {
    flex: 1;
    text-align: center;
    font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 12px 10px; border-radius: 8px; text-decoration: none;
  }
  .mobile-sticky-cta .msc-primary { background: var(--green-light); color: var(--green-dark); }
  .mobile-sticky-cta .msc-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.5); }
  body { padding-bottom: 64px; }
}
