/*
Theme Name: Trébede Comunicación
Author: Trébede Coop
Description: Tema base desarrollado para Trébede Comunicación.
Template: astra
Version: 1.0
*/

/* =========================
   VARIABLES + TIPOGRAFÍA
   ========================= */
:root{
 /* Paleta corporativa Trébede */
  --verde: #00995C;
  --verde-dark: #01724C;          /* tono más oscuro, para hover */
  --verde-principal: var(--verde);
  --trebede-green: #00995C;       /* unifica */
  --trebede-hero-dim: .62;

  --ink:#212121; --ink-60:#666; --line:#E0E0E0;
  --blanco:#fff; --gris:#E0E0E0;
  /* Tipos */
  --font-body:"Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-head:"Poppins", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --w-body:400; --w-body-strong:500; --w-subhead:600; --w-head:700;
  --fs-xxl:clamp(2.4rem,3.8vw,3.4rem);
  --fs-xl:clamp(1.8rem,2.6vw,2.4rem);
  --fs-lg:clamp(1.3rem,1.6vw,1.6rem);
  --fs-md:1.05rem;
}
body{ font-family:var(--font-body); font-weight:var(--w-body); font-size:var(--fs-md); color:var(--ink); line-height:1.6; }
h1,h2,h3,h4,h5,h6{ font-family:var(--font-head); color:var(--ink); line-height:1.12; }
h1{ font-weight:var(--w-head); font-size:var(--fs-xxl); }
h2{ font-weight:var(--w-subhead); font-size:var(--fs-xl); }
h3{ font-weight:var(--w-subhead); font-size:var(--fs-lg); }
p{ color:var(--ink-60); }
a{ color:var(--verde); text-decoration:none; }
a:hover{ color:var(--verde-dark); text-decoration:underline; }

/* Oculta título/descripción del sitio si usas logo */
.site-title,.site-description{ display:none !important; }

/* =========================
   CABECERA + MENÚ
   ========================= */
.main-header-bar{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #E9E9E9;
  transition:background .25s, box-shadow .25s, border-color .25s;
}
body.trebede-scrolled .main-header-bar{
  background:#fff; box-shadow:0 6px 22px rgba(0,0,0,.06); border-bottom-color:#EDEDED;
}
.ast-primary-header-bar{ min-height:76px; }
.site-logo-img img{ max-height:36px !important; width:auto; }
@media (max-width:768px){ .site-logo-img img{ max-height:28px !important; } }

/* Menú tipografía + subrayado animado */
.ast-primary-header-bar .main-header-menu > .menu-item > a{
  font-family:var(--font-body); font-weight:var(--w-body-strong);
  letter-spacing:.2px; position:relative; padding:.9rem 1rem;
}
.ast-primary-header-bar .main-header-menu > .menu-item > a:hover{ color:var(--verde); }
.ast-primary-header-bar .main-header-menu > .menu-item > a::after{
  content:""; position:absolute; left:0; bottom:8px; height:2px; width:0; background:var(--verde); transition:width .25s;
}
.ast-primary-header-bar .main-header-menu > .menu-item:hover > a::after{ width:100%; }

/* Colores de enlaces menú (desktop y móvil) */
.main-header-menu a,
.ast-header-break-point .main-header-menu a{ color: var(--verde) !important; transition: color .25s; }
.main-header-menu a:hover,
.main-header-menu a:focus,
.main-header-menu .menu-link:hover,
.main-header-menu .menu-link:focus{ color: var(--verde-dark) !important; }
.main-header-menu .current-menu-item > a,
.main-header-menu .current-menu-ancestor > a,
.main-header-menu .current_page_item > a{ color: var(--verde-dark) !important; font-weight:700; }
.main-header-menu .sub-menu a{ color: var(--verde) !important; }
.main-header-menu .sub-menu a:hover{ color: var(--verde-dark) !important; }
.ast-button-wrap .menu-toggle:hover .ast-mobile-svg,
.ast-button-wrap .menu-toggle:focus .ast-mobile-svg{ fill: var(--verde) !important; }
.ast-mobile-header-wrap .main-header-menu a{ color: var(--verde) !important; }
.ast-mobile-header-wrap .main-header-menu a:hover{ color: var(--verde-dark) !important; }

/* Botón cabecera */
.ast-custom-button{
  background:var(--verde) !important; color:#fff !important;
  border-radius:999px; padding:.6rem 1.1rem !important; font-weight:600 !important; letter-spacing:.2px;
}
.ast-custom-button:hover{ background:var(--verde-dark) !important; color:#fff !important; }

/* Submenús */
.ast-desktop .ast-navbar-nav .sub-menu{
  border:1px solid #eee; border-radius:12px; box-shadow:0 12px 28px rgba(0,0,0,.08); padding:.5rem;
}
.ast-desktop .ast-navbar-nav .sub-menu a{ padding:.55rem .9rem; border-radius:8px; }
.ast-desktop .ast-navbar-nav .sub-menu a:hover{ background:#F7F7F7; color:var(--verde); }

/* =========================
   LAYOUT HOME (full-width)
   ========================= */
body.home .site-content .ast-container,
body.home .site-content .ast-container > .ast-row{
  max-width:100% !important; width:100% !important; padding-left:0 !important; padding-right:0 !important;
}
body.home .entry-content > .alignfull,
body.home .wp-block-cover.alignfull{
  margin-left:calc(50% - 50vw) !important;
  margin-right:calc(50% - 50vw) !important;
  width:100vw !important; max-width:100vw !important;
}

/* =========================
   HERO (overlay verde + texto blanco)
   ========================= */
.trebede-hero{ display:flex; min-height:56vh; color:#fff !important; position:relative; overflow:hidden; }
.trebede-hero .wp-block-cover__inner-container{
  width:100%; display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center;
}
.wp-block-cover.trebede-hero .wp-block-cover__background{
  background-color: var(--trebede-green) !important;
  opacity: var(--trebede-hero-dim) !important;
}
.trebede-hero h1, .trebede-hero h2, .trebede-hero p{ color:#fff !important; }
.trebede-hero .wp-block-button__link{ border-radius:999px; padding:.8em 1.4em; }
.trebede-hero .wp-block-button.is-style-fill .wp-block-button__link{ background:#fff !important; color:var(--trebede-green) !important; }
.trebede-hero .wp-block-button.is-style-outline .wp-block-button__link{ background:transparent !important; color:#fff !important; border-color:#fff !important; }

/* Indicador scroll (ratón + flecha) */
.trebede-hero > .wp-block-cover__inner-container{ position: static !important; }
.trebede-hero .trebede-scroll-cue{
  position:absolute; left:50%; bottom:40px; transform:translateX(-50%);
  z-index:10; display:inline-flex; flex-direction:column; align-items:center; gap:10px;
  color:#fff; text-decoration:none; opacity:.9;
}
.trebede-hero .trebede-scroll-cue .mouse{ width:28px; height:46px; border:2px solid currentColor; border-radius:20px; position:relative; }
.trebede-hero .trebede-scroll-cue .wheel{ position:absolute; left:50%; top:8px; transform:translateX(-50%); width:4px; height:8px; background: currentColor; border-radius:2px; animation: wheelmove 1.6s ease-in-out infinite; }
.trebede-hero .trebede-scroll-cue .arrow{ width:0; height:0; border-left:7px solid transparent; border-right:7px solid transparent; border-top:10px solid currentColor; animation:bounce 1.6s ease-in-out infinite; opacity:.95; }
@keyframes wheelmove{ 0%{opacity:0; transform:translate(-50%,0)} 30%{opacity:1} 100%{opacity:0; transform:translate(-50%,14px)} }
@keyframes bounce{ 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
@media (max-width:768px){ .trebede-hero .trebede-scroll-cue{ bottom:28px; } }

/* =========================
   BANDAS CTA (cover final)
   ========================= */
.wp-block-cover.trebede-cta-band{
  background:linear-gradient(135deg, rgba(46,125,50,.90), rgba(46,125,50,.70)) !important;
  color:#fff !important; min-height:280px;
}
.wp-block-cover.trebede-cta-band .wp-block-cover__inner-container{ text-align:center; }
.wp-block-cover.trebede-cta-band h2, .wp-block-cover.trebede-cta-band p{ color:#fff !important; }
.wp-block-cover.trebede-cta-band .wp-block-button__link{
  background:#fff !important; color:var(--verde) !important;
  border-radius:999px; padding:.9rem 1.6rem; font-weight:600;
}
.wp-block-cover.trebede-cta-band .wp-block-button__link:hover{ background:#f5f5f5 !important; }

/* =========================
   CARDS (servicios/proyectos/agenda)
   ========================= */
.trebede-card, .trebede-card-agenda{
  background:#fff; border:1px solid #f0f0f0; border-radius:16px;
  box-shadow:0 6px 24px rgba(0,0,0,.08); overflow:hidden;
  transition:.35s transform, .35s box-shadow;
}
.trebede-card:hover{ transform:translateY(-6px); box-shadow:0 12px 36px rgba(0,0,0,.12); }
.trebede-card img{ transition: transform .4s ease; width:100%; height:auto; display:block; }
.trebede-card:hover img{ transform: scale(1.05); }
.trebede-meta{display:flex; gap:16px; flex-wrap:wrap; color:#53636f; font-size:14px;}

/* =========================
   TÍTULOS DE SECCIÓN + MOTIVO
   ========================= */
/* Anula posibles decorativos previos */
.trebede-section-title::before { content: none !important; }
/* Heading centrado dentro del grupo .trebede-section-title */
.wp-block-group.trebede-section-title > :is(h1,h2,h3).wp-block-heading:first-child{
  position:relative; display:inline-block; margin:0; padding-top:84px;
  text-align:center; font-weight:800; font-size:3rem; line-height:1; letter-spacing:-.02em; color:#111;
}
/* Motivo como máscara (ajusta la URL a tu imagen) */
.wp-block-group.trebede-section-title > :is(h1,h2,h3).wp-block-heading:first-child::before{
  --leaf-height:56px; --leaf-top:14px; --leaf-scale:100%;
  content:""; position:absolute; top:var(--leaf-top); left:0; right:0;
  width:100%; height:var(--leaf-height);
  background-color: rgba(46,125,50,0.35);
  -webkit-mask-image: url("https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/assets_task_01k740m71xfb7st8857gy7d8xt_1759997788_img_0.webp");
          mask-image: url("https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/assets_task_01k740m71xfb7st8857gy7d8xt_1759997788_img_0.webp");
  -webkit-mask-repeat:no-repeat; mask-repeat:no-repeat;
  -webkit-mask-position:center;  mask-position:center;
  -webkit-mask-size: var(--leaf-scale) auto; mask-size: var(--leaf-scale) auto;
}
/* Responsive del motivo */
@media (max-width:768px){
  .wp-block-group.trebede-section-title > :is(h1,h2,h3).wp-block-heading:first-child{ padding-top:68px; font-size:2.4rem; }
  .wp-block-group.trebede-section-title > :is(h1,h2,h3).wp-block-heading:first-child::before{
    --leaf-height:44px; --leaf-top:10px; --leaf-scale:100%;
  }
}
/* Blindaje: que las cards no hereden el decorativo */
.trebede-card :is(h1,h2,h3)::before{ content:none !important; }
.trebede-card :is(h1,h2,h3){ padding-top:0 !important; }

/* Estilo unificado H2 (fallback, p.ej. “Qué es Trébede”) */
h2.wp-block-heading{
  font-family:var(--font-head);
  font-weight:800; font-size:3rem; line-height:1; text-align:center; color:#111;
  margin-top:0; margin-bottom:1.5rem;
}
.wp-block-column h2.wp-block-heading{ display:block; text-align:center !important; width:100%; }
.wp-block-group.alignwide > h2.wp-block-heading:first-child{ margin-top:2rem; margin-bottom:1.5rem; }
@media (max-width:1024px){ h2.wp-block-heading{ font-size:2.5rem; line-height:1.1; } }
@media (max-width:768px){ h2.wp-block-heading{ font-size:2rem; line-height:1.2; } }
/* === Corrección de maquetación del contenedor del Blog (Astra fix) === */
@media (min-width: 922px) {
  body.blog .site-content .ast-container {
    display: flex;
    flex-direction: column;
  }
}


/* =========================
   FOOTER UNIFICADO (builder)
   ========================= */
.site-primary-footer-wrap,
.site-below-footer-wrap,
.ast-small-footer,
.ast-small-footer-wrap,
.site-footer,
.ast-footer-overlay{
  background:#1e1e1e !important;
  color:#eaeaea !important;
  border:0 !important;
}
.site-primary-footer-wrap .ast-builder-grid-row-container-inner{
  max-width:1200px !important; margin:0 auto !important; padding:24px 24px !important; box-sizing:border-box;
}
.site-primary-footer-wrap .ast-builder-grid-row{
  display:grid !important; grid-template-columns:1fr 1fr auto !important;
  gap:32px !important; align-items:start !important; width:100% !important; margin:0 !important; padding:0 !important;
}
.site-primary-footer-wrap .ast-builder-grid-column{ margin:0 !important; padding:0 !important; text-align:left; }
.site-footer h4{ margin:0 0 .45rem 0; line-height:1.25; color:#7bdc84; font-weight:600; }
.footer-contact p{ margin:.15rem 0; line-height:1.55; }
.footer-contact a{ color:#b8dfb8 !important; text-decoration:none; }
.footer-contact a:hover{ color:#fff !important; text-decoration:underline; }
.footer-social{ display:flex !important; flex-wrap:wrap; align-items:center; gap:.6rem; }
.footer-social a{
  display:inline-block; background:rgba(255,255,255,.10); color:#fff !important;
  border-radius:10px; padding:.4rem .8rem; transition:background .2s;
}
.footer-social a:hover{ background:rgba(255,255,255,.25); }
.ast-small-footer-wrap .ast-builder-grid-row-container-inner{
  max-width:1200px !important; margin:0 auto !important; padding:10px 24px 18px !important; text-align:center !important;
}
.ast-small-footer-wrap .ast-builder-grid-row{ display:block !important; }
.ast-footer-copyright{
  text-align:center !important; color:#c8c8c8 !important;
  border-top:1px solid rgba(255,255,255,.12); margin:0 auto !important;
}
.site-footer hr, .site-footer .wp-block-separator{ display:none !important; }
/* Alineación base-line en builder */
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .ast-builder-grid-row,
.site-primary-footer-wrap[data-section="section-primary-footer-builder"] .site-footer-section{
  align-items: baseline !important;
}
/* Responsive footer */
@media (max-width:992px){
  .site-primary-footer-wrap .ast-builder-grid-row{
    grid-template-columns:1fr !important; gap:18px !important;
  }
  .site-primary-footer-wrap .ast-builder-grid-row-container-inner{ padding:18px 16px !important; }
  .footer-social{ justify-content:center; }
}
/* Centrado total del título principal con motivo floral */
.trebede-section-title {
  text-align: center !important;
  position: relative;
}

.trebede-section-title h3 {
  text-align: left;
  position: relative;
}
.trebede-section-title  h2.wp-block-heading {
  display: inline-block;
  position: relative;
  font-size: 3rem;
  line-height: 1;
  margin-top: 2rem;
  font-weight: 800;
  color: #212121;
}

/* Motivo floral centrado */
.trebede-section-title h2.wp-block-heading::before {
  content: "";
  display: block;
  position: relative;
  width: 420px; /* mismo ancho del SVG */
  height: 90px;
  margin: 0 auto 1.5rem auto;
  background: url('/wp-content/uploads/2025/10/motif-leaf.svg') no-repeat center / contain;
}
/* Centrado total del título principal con motivo floral */
.trebede-section-title {
  text-align: center !important;
  position: relative;
}

.trebede-section-title h3,p {
  text-align: left !important;
  position: relative;
}
.trebede-section-title  h2.wp-block-heading {
  display: inline-block;
  position: relative;
  font-size: 3rem;
  line-height: 1;
  margin-top: 2rem;
  font-weight: 800;
  color: #212121;
}

/* Motivo floral centrado */
.trebede-section-title h2.wp-block-heading::before {
  content: "";
  display: block;
  position: relative;
  width: 420px; /* mismo ancho del SVG */
  height: 90px;
  margin: 0 auto 1.5rem auto;
  background: url('/wp-content/uploads/2025/10/motif-leaf.svg') no-repeat center / contain;
}
.wp-block-group.trebede-section-title > :is(h1,h2,h3).wp-block-heading:first-child::before {
    --leaf-height: 56px;
    --leaf-top: 14px;
    --leaf-scale: 100%;
    content: "";
    position: absolute;
    top: var(--leaf-top);
    left: 0;
    right: 0;
    width: 100%;
    height: var(--leaf-height);
    background-color: rgba(46, 125, 50, 0.35);
    -webkit-mask-image: url(https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/assets_task_01k740m71xfb7st8857gy7d8xt_1759997788_img_0.webp);
    mask-image: url(https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/assets_task_01k740m71xfb7st8857gy7d8xt_1759997788_img_0.webp);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-size: var(--leaf-scale) auto;
    mask-size: var(--leaf-scale) auto;
}
/* === Centrado perfecto del título "Servicios" y motivo === */
.wp-block-group.trebede-section-title {
  display: flex;
  flex-direction: column;
  align-items: center; /* centra todo el grupo */
  justify-content: center;
  text-align: center;
}
.wp-block-group.trebede-section-title h3 {
  
  text-align: left;
}
/* El h2 principal */
.wp-block-group.trebede-section-title > h2.wp-block-heading:first-child {
  position: relative;
  display: inline-block;
  margin: 0 auto 0.8rem;
  padding-top: 100px; /* hueco para el motivo */
  text-align: center;
}

/* Motivo floral PNG centrado */
.wp-block-group.trebede-section-title > h2.wp-block-heading:first-child::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;           /* ancho del motivo */
  height: 70px;           /* alto del motivo */
  background-image: url("https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/cd3e9fd5-e131-4075-bbd7-3c02a75d5d07.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  opacity: 0.9;
}

/* Móvil / tablet */
@media (max-width: 768px) {
  .wp-block-group.trebede-section-title > h2.wp-block-heading:first-child {
    padding-top: 80px;
  }
  .wp-block-group.trebede-section-title > h2.wp-block-heading:first-child::before {
    width: 200px;
    height: 52px;
    top: 20px;
  }
}
/* === Ajuste de márgenes y separación entre cards de Servicios === */

/* Contenedor general de las cards */
.wp-block-columns {
  gap: 2rem; /* separación entre columnas */
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Márgenes dentro de cada card */
.trebede-card {
  padding: 1.2rem;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.trebede-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* Imagen superior de la card */
.trebede-card img {
  display: block;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Margen inferior de los párrafos dentro de las cards */
.trebede-card p {
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Responsive: menos separación en móvil */
@media (max-width:768px){
  .wp-block-columns {
    gap: 1rem;
    margin: 1rem 0;
  }
  .trebede-card {
    padding: 0.9rem;
  }
}
.ast-footer-copyright p{text-align:center !important;}

.has-black-background-color {background:#2e7d32 !important;}
.has-text-align-center {
    text-align: center !important;
}

/* === TRÉBEDE — ARMONIZACIÓN GLOBAL DE CPT === */

/* HERO unificado */
.trebede-hero,
.wp-block-cover.trebede-hero {
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover !important;
  background-position: center !important;
  color: #fff !important;
}
.trebede-hero h1,
.trebede-hero h2,
.trebede-hero p {
  color: #fff !important;
}
.trebede-hero p {
  opacity: .95;
  max-width: 680px;
  margin: .5rem auto 0;
}

/* Cards (Servicios / Proyectos / Agenda) */
.trebede-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0,0,0,.08);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.trebede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.12);
}
.trebede-card img {
  display: block;
  width: 100%;
  height: auto;
}
.trebede-card h3 {
  font-weight: 600;
  font-size: 1.35rem;
  margin: .8rem 0 .4rem;
  color: #212121;
}
.trebede-card p {
  color: #444;
  line-height: 1.55;
  margin-bottom: 1rem;
}
.trebede-card .wp-block-button__link {
  background: #2e7d32 !important;
  color: #fff !important;
  border-radius: 999px;
  padding: .6rem 1.2rem;
  transition: background .25s;
}
.trebede-card .wp-block-button__link:hover {
  background: #1b5e20 !important;
}

/* Secciones */
.wp-block-group.trebede-section-title {
  text-align: center;
  margin: 4rem 0 2rem;
}
.wp-block-group.trebede-section-title h2 {
  color: #212121;
  font-weight: 800;
  font-size: 2.8rem;
}

/* Botones globales */
a.wp-block-button__link,
.wp-block-button__link {
  font-weight: 600;
  border-radius: 999px;
  padding: .7rem 1.3rem;
  text-decoration: none;
  transition: all .25s;
}

/* Responsive */
@media (max-width: 768px){
  .wp-block-columns{gap:1rem;}
  .trebede-card{margin-bottom:1rem;}
  .wp-block-group.trebede-section-title h2{font-size:2rem;}
}
/* === Título de sección Blog (alineado y coherente con motivo floral) === */
.blog h2.wp-block-heading {
  display: inline-block;
  text-align: center;
  margin: 0 auto 1.5rem;
  font-weight: 800;
  font-size: 3rem;
  color: #212121;
}
/* ============================================
   🔧 CORRECCIÓN DE LAYOUT — FRONT PAGE TREBEDE
   Evita el layout horizontal del contenedor Astra
   ============================================ */

body.home .site-content .ast-container {
  display: flex;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  max-width: 100% !important;
  gap: 0;
}

/* Opcional: asegura márgenes verticales suaves */
body.home section,
body.home .wp-block-group.alignwide {
  margin-top: 3rem;
  margin-bottom: 3rem;
}
/* ====== HOME TREBEDE ====== */
body.home .site-content .ast-container {
  display: block !important;
  max-width: 100% !important;
  padding: 0 !important;
}

/* Hero */
.trebede-hero {
  background: linear-gradient(135deg, rgba(46,125,50,.9), rgba(46,125,50,.7));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 75vh;
}
.trebede-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.trebede-hero .button {
  background: #fff;
  color: #2E7D32;
  border-radius: 999px;
  padding: .9rem 1.6rem;
  font-weight: 600;
}

/* Grids generales */
.trebede-section { max-width: 1200px; margin: 4rem auto; padding: 0 2rem; }
.trebede-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
}
.trebede-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0,0,0,.08);
  overflow: hidden;
  transition: .3s;
}
.trebede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(0,0,0,.12);
}
.trebede-card img { width: 100%; display: block; }
.trebede-card .card-body { padding: 1.2rem; }
.trebede-card .button.verde {
  background: #2E7D32;
  color: #fff;
  border-radius: 999px;
  padding: .6rem 1.2rem;
  display: inline-block;
}

/* Quiénes somos */
.trebede-about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}
.trebede-about img {
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}

/* CTA */
.trebede-cta {
  background: linear-gradient(135deg, rgba(46,125,50,.9), rgba(46,125,50,.7));
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}
.trebede-cta .button.blanco {
  background: #fff;
  color: #2E7D32;
  border-radius: 999px;
  padding: .9rem 1.6rem;
  font-weight: 600;
}
/* ============================================================
   MOTIVO FLORAL SOLO EN "NUESTROS SERVICIOS"
   ============================================================ */
section#servicios .section__title {
  position: relative;
  text-align: center;
  padding-top: 100px; /* deja hueco para el motivo */
}

section#servicios .section__title h2 {
  position: relative;
  display: inline-block;
  font-size: 2.6rem;
  font-weight: 800;
  color: #111;
  margin: 0;
  z-index: 2;
}


/* Contenedor de la Home (Astra) en vertical */
body.home .site-content .ast-container{display:flex;flex-direction:column;max-width:100%;padding:0}

/* Grid y cards */
.trebede-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:2rem}
.trebede-card{background:#fff;border-radius:16px;box-shadow:0 6px 24px rgba(0,0,0,.08);overflow:hidden;transition:.2s}
.trebede-card:hover{transform:translateY(-4px);box-shadow:0 12px 36px rgba(0,0,0,.12)}
.trebede-card>a img{width:100%;height:220px;object-fit:cover;display:block}
.trebede-card .card-body{display:flex;flex-direction:column;gap:.6rem;padding:1.2rem;min-height:168px}
.trebede-card--equal{display:flex;flex-direction:column;height:100%}

/* Botón cohesionado (evita la “pastilla gigante”) */
.trebede-card .wp-block-button__link{display:inline-block;width:auto!important}
.is-style-btn-verde{background:#2E7D32!important;color:#fff!important;border-radius:999px;padding:.6rem 1.2rem!important}
.is-style-btn-verde:hover{background:#1B5E20!important}

/* Motivo floral SOLO en “Nuestros servicios” */
.wp-block-group.trebede-section-title>h2.wp-block-heading:first-child::before{content:none}
.trebede-section-title#servicios{position:relative;padding-top:84px}
.trebede-section-title#servicios>h2.wp-block-heading:first-child::before{
  content:"";position:absolute;top:18px;left:0;right:0;margin:auto;width:160px;height:56px;
  background-color:rgba(46,125,50,.35);
  -webkit-mask-image:url("https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/assets_task_01k740m71xfb7st8857gy7d8xt_1759997788_img_0.webp");
          mask-image:url("https://testprevio.trebedecomunicacion.com/wp-content/uploads/2025/10/assets_task_01k740m71xfb7st8857gy7d8xt_1759997788_img_0.webp");
  -webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;
  -webkit-mask-position:center;mask-position:center;
  -webkit-mask-size:contain;mask-size:contain
}
/* Desactivar cualquier motivo heredado que esté molestando */
.wp-block-group.trebede-section-title > h2.wp-block-heading:first-child::before { content: none !important; }

/* ==== Motivo floral centrado (sólo en grupos con .trebede-motif) ==== */
.trebede-motif { position: relative; padding-top: 90px; }   /* deja hueco arriba del h2 */
.trebede-motif > h2, .trebede-motif .wp-block-heading { 
  position: relative; 
  text-align: center; 
  margin: 0 0 1rem; 
  font-weight: 800;
}

/* responsive suave */
@media (max-width: 768px){
  .trebede-motif{ padding-top: 76px; }
  .trebede-motif::before{ width:130px; height:46px; top:12px; }
}
/* === BOTONES UNIFICADOS TREBEDE === */

/* Base universal (anula Astra/Gutenberg defaults) */
.wp-block-button__link,
.trebede-card .wp-block-button__link,
.trebede-grid .wp-block-button__link,
.is-style-btn-verde .wp-block-button__link {
  display: inline-flex !important;         /* evita ancho completo */
  align-items: center;
  justify-content: center;
  width: auto !important;                  /* quita 100% de Gutenberg */
  max-width: 170px;
  height: auto;
  background-color: #2E7D32 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 999px !important;
  padding: .6rem 1.4rem !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
  transition: all .25s ease-in-out !important;
  text-decoration: none !important;
}

/* Hover y foco coherente */
.wp-block-button__link:hover,
.trebede-card .wp-block-button__link:hover,
.trebede-grid .wp-block-button__link:hover {
  background-color: #1B5E20 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

/* Quita bordes residuales del hover del bloque "Quiénes somos" (outline) */
.wp-block-button.is-style-outline .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  border: none !important;
  box-shadow: none !important;
  background-color: #2E7D32 !important;
  color: #fff !important;
}

/* CTA (Contacta / Escríbenos) igual que los demás */
.wp-block-cover.trebede-cta-band .wp-block-button__link {
  background-color: #fff !important;
  color: #2E7D32 !important;
  border: none !important;
  border-radius: 999px !important;
  padding: .7rem 1.6rem !important;
  font-weight: 600 !important;
  transition: background .25s ease-in-out;
}
.wp-block-cover.trebede-cta-band .wp-block-button__link:hover {
  background-color: #f5f5f5 !important;
  color: #2E7D32 !important;
}

/* Ajuste responsive */
@media (max-width: 768px) {
  .wp-block-button__link {
    min-width: 120px;
    font-size: .95rem;
    padding: .55rem 1.2rem !important;
  }
	.trebede-card .card-body {
    align-items: center;
}
}
.site-logo-img img {
  height:auto !important; width:auto !important;
  max-height:28px !important;
}
@media (max-width:768px){
  .ast-mobile-header-wrap .site-branding{
    display:flex; justify-content:center; align-items:center; width:100%;
  }
  .ast-mobile-header-wrap .site-logo-img img{ max-height:32px !important; }
}

/* === ESPACIADO ENTRE SECCIONES EN MÓVIL === */
@media (max-width: 768px){

  /* Reset de márgenes verticales */
  .home .entry-content > * {
    margin-top: 0;
    margin-bottom: 28px;
  }

  /* Uniformar padding en secciones principales */
  .trebede-section {
    padding: 28px 16px;
    margin: 0 auto !important;
    max-width: 90%;
  }

  /* Evitar hueco extra entre secciones consecutivas */
  .trebede-section + .trebede-section {
    margin-top: 0 !important;
  }

  /* Compactar aún más antes de la sección Experiencia */
  #experiencia, .trebede-section#experiencia {
    margin-top: 12px !important;
    padding-top: 24px !important;
  }

  /* Ajuste de títulos con motivo floral */
  .trebede-motif {
    padding-top: 56px !important;
  }
  .trebede-motif::before {
    width: 120px;
    height: 44px;
    top: 10px;
  }
}

/* === FIX ESPECÍFICO: SECCIÓN “QUÉ ES TRÉBEDE” === */
@media (max-width: 768px){

  /* Contenedor general: más compacto */
  #quienes-somos, .trebede-section#quienes-somos {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
    padding: 28px 16px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.04);
  }
	#quienes-somos ul{
		text-align: left;
	}
	#quienes-somos .wp-block-button__link{
		display: block !important;
	}
  /* Texto */
  #quienes-somos .wp-block-group__inner-container p {
    max-width: 90%;
    margin: 0 auto 16px;
    color: #333;
  }

  /* Imagen: border-radius solo en responsive */
  #quienes-somos img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.06);
  }

/* Centrado del botón en la sección "Qué es Trébede" */
#quienes-somos .wp-block-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

#quienes-somos .wp-block-button,
#quienes-somos .wp-block-button__link {
  margin: 0 auto;                  /* por si algún estilo insiste en alinearlo a la izq */
  width: auto !important;          /* evita ancho 100% por estilos del editor */
}

/* En móvil queda centrado y proporcionado */
@media (max-width: 768px){
  #quienes-somos .wp-block-button__link{
    padding: 10px 22px;
    border-radius: 999px;
  }
}


/* === OPCIONAL: en pantallas medianas, suavizar transición === */
@media (min-width: 769px) and (max-width: 1024px) {
  #quienes-somos img {
    border-radius: 8px;
  }
}
/* === Footer Trébede — centrado en responsive === */

/* Móvil / tablets pequeñas */
@media (max-width: 768px){

	.footer-widget-area-inner, .footer-contact{
		text-align: center !important;
	}

}

/* === ARCHIVO DE SERVICIOS TRÉBEDE === */

/* Título */
#page .site-content .trebede-section-title h2.wp-block-heading {
  text-align: left !important;
  color: var(--verde) !important;
  font-size: 2.2rem !important;
  font-weight: 700 !important;
  margin: 0 0 1rem 0 !important;
  line-height: 1.25;
  display: inline-block;
  position: relative;
}

#page .site-content .trebede-section-title h2.wp-block-heading::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: var(--verde);
  margin-top: .5rem;
  border-radius: 3px;
}

/* Grid */
.trebede-servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto 4rem;
  padding: 0 1rem;
}

.trebede-card {
  flex: 0 1 calc(33.33% - 2rem);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
}

.trebede-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
}

.trebede-card img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.trebede-card-body {
  padding: 1.5rem;
}

.trebede-card-body h3 a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
}

.trebede-card-body p {
  color: var(--ink-60);
  line-height: 1.6;
  margin: .8rem 0 1.2rem;
}

/* Botón corporativo */
.trebede-btn {
  display: inline-block;
  background: var(--verde);
  color: #fff !important;
  font-weight: 600;
  padding: .6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all .3s ease;
}

.trebede-btn:hover {
  background: var(--verde-dark);
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .trebede-card {
    flex: 0 1 calc(50% - 1rem);
  }
}

@media (max-width: 600px) {
  .trebede-card {
    flex: 0 1 100%;
  }
  .trebede-section-title h2.wp-block-heading {
    text-align: center !important;
  }
  .trebede-section-title h2.wp-block-heading::after {
    margin: 0.5rem auto 0;
  }
}

/* === Títulos de sección unificados (Servicios, Quiénes somos, etc.) === */
.entry-title,
.wp-block-heading,
.trebede-section-title h2,
.trebede-section-title h1 {
  font-family: var(--ast-global-font-family, 'Inter', sans-serif);
  font-weight: 700;
  color: var(--verde, #00995C);
  text-align: center;
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem);
  margin: 2.5rem 0 2rem;
  line-height: 1.2;
}

/* === Asegurar margen superior y coherencia visual === */
.ast-page-builder-template .entry-title,
.ast-plain-container .entry-title {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

/* === Ajuste específico para "Servicios" (por PHP) === */
.trebede-section-title {
  margin-top: 3rem !important;
  margin-bottom: 2rem !important;
}
.trebede-section-title h2.wp-block-heading {
  font-size: clamp(1.8rem, 2vw + 1rem, 2.4rem) !important;
  color: var(--verde, #00995C) !important;
  text-align: center !important;
  font-weight: 700 !important;
}

/* === Asegurar que las páginas tipo "Quiénes somos" lean el CSS del child === */
.page .entry-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1rem;
}
/* === RCT: relacionados y CTA === */
.rct-relacionados {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 1200px;
  margin: 4rem auto;
}
.rct-relacionados .trebede-card {
  flex: 0 1 calc(33.33% - 2rem);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  overflow: hidden;
}

.rct-cta {
  background: linear-gradient(135deg, #00995C, #01724C);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
  border-radius: 0;
  margin-top: 4rem;
}
.rct-cta h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.rct-cta p {
  opacity: .9;
  margin-bottom: 2rem;
}
.rct-cta .wp-block-button__link {
  background: #fff;
  color: #00995C;
  border-radius: 999px;
  padding: .7rem 1.8rem;
  font-weight: 600;
  transition: all .2s ease;
}
.rct-cta .wp-block-button__link:hover {
  background: #01724C;
  color: #fff;
}



/* =========================
   FIN
   ========================= */

