/* =========================================================
   FEEL THE MOUNTAINS · MEC ACTIVIDADES
   Azul / blanco / negro. Sin rojo ni naranja.
   ========================================================= */

:root{
  --ftm-blue:#0878b9;
  --ftm-blue-mid:#07547f;
  --ftm-blue-dark:#063f62;
  --ftm-blue-deep:#032f49;
  --ftm-blue-pale:#eef8fd;
  --ftm-blue-soft:#f7fcff;
  --ftm-border:#d7e9f2;
  --ftm-text:#4b6879;
  --ftm-black:#101820;
  --ftm-white:#fff;
}


/* ---------- HEADER EN FICHAS MEC ----------
   La cabecera original de la web está configurada para funcionar sobre
   fondos oscuros/hero. En la plantilla individual de MEC el fondo es blanco,
   por lo que la normalizamos aquí SOLO para los eventos y hacemos que ocupe
   espacio real en el flujo para que nunca se solape con la ficha. */
body.single-mec-events .elementor-location-header,
body.single-mec-events #masthead,
body.single-mec-events .site-header{
  position:relative !important;
  top:auto !important;
  right:auto !important;
  bottom:auto !important;
  left:auto !important;
  width:100% !important;
  min-height:92px !important;
  margin:0 !important;
  transform:none !important;
  background:#fff !important;
  background-color:#fff !important;
  background-image:none !important;
  color:var(--ftm-blue-dark) !important;
  z-index:99990 !important;
  box-shadow:0 1px 0 rgba(6,63,98,.08) !important;
}

body.single-mec-events .elementor-location-header .e-con,
body.single-mec-events .elementor-location-header .e-con-inner,
body.single-mec-events .elementor-location-header .elementor-container{
  position:relative !important;
  z-index:2 !important;
}

/* Menú principal siempre visible sobre el fondo blanco */
body.single-mec-events .elementor-location-header .elementor-nav-menu--main .elementor-item,
body.single-mec-events .elementor-location-header .elementor-nav-menu--main a,
body.single-mec-events .elementor-location-header nav a,
body.single-mec-events #masthead nav a,
body.single-mec-events .site-header nav a{
  color:var(--ftm-blue-dark) !important;
  text-shadow:none !important;
}

body.single-mec-events .elementor-location-header .elementor-nav-menu--main .elementor-item:hover,
body.single-mec-events .elementor-location-header .elementor-nav-menu--main .elementor-item.elementor-item-active,
body.single-mec-events .elementor-location-header .elementor-nav-menu--main a:hover,
body.single-mec-events .elementor-location-header nav a:hover{
  color:var(--ftm-blue) !important;
}

/* Flechas/submenús */
body.single-mec-events .elementor-location-header .sub-arrow,
body.single-mec-events .elementor-location-header .sub-arrow i,
body.single-mec-events .elementor-location-header .sub-arrow svg{
  color:var(--ftm-blue-dark) !important;
  fill:var(--ftm-blue-dark) !important;
  stroke:var(--ftm-blue-dark) !important;
}

body.single-mec-events .elementor-location-header .elementor-nav-menu--dropdown,
body.single-mec-events .elementor-location-header .elementor-nav-menu--dropdown ul,
body.single-mec-events .elementor-location-header .sub-menu{
  background:#fff !important;
  background-color:#fff !important;
  background-image:none !important;
}

body.single-mec-events .elementor-location-header .elementor-nav-menu--dropdown a,
body.single-mec-events .elementor-location-header .sub-menu a{
  color:var(--ftm-blue-dark) !important;
}

body.single-mec-events .elementor-location-header .elementor-nav-menu--dropdown a:hover,
body.single-mec-events .elementor-location-header .sub-menu a:hover{
  background:var(--ftm-blue-pale) !important;
  color:var(--ftm-blue) !important;
}

/* Hamburguesa: azul/blanco, sin heredar blanco ni naranja */
body.single-mec-events .elementor-location-header .elementor-menu-toggle,
body.single-mec-events .elementor-location-header button.elementor-menu-toggle{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  color:var(--ftm-blue-dark) !important;
  border-color:transparent !important;
  box-shadow:none !important;
}

body.single-mec-events .elementor-location-header .elementor-menu-toggle i,
body.single-mec-events .elementor-location-header .elementor-menu-toggle svg,
body.single-mec-events .elementor-location-header .elementor-menu-toggle svg path{
  color:var(--ftm-blue-dark) !important;
  fill:var(--ftm-blue-dark) !important;
  stroke:var(--ftm-blue-dark) !important;
}

body.single-mec-events .elementor-location-header .elementor-menu-toggle:hover,
body.single-mec-events .elementor-location-header .elementor-menu-toggle:focus{
  color:var(--ftm-blue) !important;
  outline:none !important;
}

/* Evita cualquier margen negativo heredado por la ficha */
body.single-mec-events .ftm-event-single-page{
  position:relative !important;
  z-index:1 !important;
  margin-top:0 !important;
}

/* ---------- FICHA INDIVIDUAL ---------- */
.ftm-event-single-page{
  background:#fff;
  color:var(--ftm-black);
  padding:50px 22px 90px;
}

.ftm-event-single-container{
  width:min(1180px,100%);
  margin:0 auto;
}

.ftm-event-hero{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);
  align-items:stretch;
  background:linear-gradient(125deg,var(--ftm-blue-deep) 0%,var(--ftm-blue-mid) 58%,var(--ftm-blue) 100%);
  overflow:hidden;
  border-radius:7px;
  box-shadow:0 24px 60px rgba(3,47,73,.16);
}

.ftm-event-hero-copy{
  padding:64px 58px 58px;
  color:#fff;
}

.ftm-event-eyebrow{
  display:block;
  margin-bottom:15px;
  color:#b9e6fa;
  font-size:12px;
  font-weight:800;
  letter-spacing:1.5px;
  text-transform:uppercase;
}

.ftm-event-hero h1{
  margin:0 0 28px !important;
  color:#fff !important;
  font-family:'Oswald',inherit,sans-serif !important;
  font-size:clamp(42px,5vw,68px) !important;
  font-weight:700 !important;
  line-height:1.02 !important;
  letter-spacing:-.7px !important;
  text-transform:uppercase !important;
}

.ftm-event-meta-row{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:28px;
}

.ftm-event-meta-pill{
  min-width:0;
  padding:13px 14px;
  border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.08);
}

.ftm-event-meta-pill span{
  display:block;
  margin-bottom:5px;
  color:#a9dff7;
  font-size:9px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

.ftm-event-meta-pill strong{
  display:block;
  color:#fff;
  font-size:12.5px;
  line-height:1.45;
}

.ftm-event-short-description p{
  margin:0 0 16px !important;
  max-width:720px;
  color:rgba(255,255,255,.91) !important;
  font-size:16px !important;
  line-height:1.75 !important;
}

.ftm-event-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:27px;
}

.ftm-event-btn,
.ftm-mec-inline-btn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  text-decoration:none !important;
  border-radius:3px !important;
  box-shadow:none !important;
  text-transform:uppercase !important;
  letter-spacing:.6px !important;
  font-weight:800 !important;
  transition:.2s ease !important;
}

.ftm-event-btn{
  min-height:48px;
  padding:14px 22px !important;
  font-size:12px !important;
}

.ftm-event-btn-primary{
  background:#fff !important;
  background-color:#fff !important;
  background-image:none !important;
  color:var(--ftm-blue) !important;
  border:2px solid #fff !important;
}

.ftm-event-btn-primary:hover{
  background:var(--ftm-blue) !important;
  background-color:var(--ftm-blue) !important;
  color:#fff !important;
  border-color:#fff !important;
  transform:translateY(-2px);
}

.ftm-event-btn-secondary{
  background:transparent !important;
  background-image:none !important;
  color:#fff !important;
  border:2px solid rgba(255,255,255,.72) !important;
}

.ftm-event-btn-secondary:hover{
  background:#fff !important;
  color:var(--ftm-blue) !important;
  border-color:#fff !important;
  transform:translateY(-2px);
}

.ftm-event-hero-media{
  min-height:520px;
  background:var(--ftm-blue-dark);
}

.ftm-event-hero-media img{
  display:block;
  width:100%;
  height:100%;
  min-height:520px;
  object-fit:cover;
}

.ftm-event-image-placeholder{
  min-height:520px;
  height:100%;
  display:flex;
  flex-direction:column;
  justify-content:flex-end;
  padding:35px;
  background:linear-gradient(145deg,var(--ftm-blue-dark),var(--ftm-blue));
  color:#fff;
}

.ftm-event-image-placeholder span{
  color:#b9e6fa;
  font-size:11px;
  font-weight:800;
  letter-spacing:1px;
  text-transform:uppercase;
}

.ftm-event-image-placeholder strong{
  margin-top:8px;
  font-family:'Oswald',inherit,sans-serif;
  font-size:30px;
  line-height:1.1;
  text-transform:uppercase;
}

.ftm-event-map-section{
  display:grid;
  grid-template-columns:320px minmax(0,1fr);
  gap:36px;
  align-items:stretch;
  margin-top:42px;
}

.ftm-event-section-heading{
  padding:34px 0;
}

.ftm-event-section-heading span,
.ftm-event-bottom-cta > div > span{
  display:block;
  margin-bottom:8px;
  color:var(--ftm-blue);
  font-size:11px;
  font-weight:800;
  letter-spacing:1.3px;
  text-transform:uppercase;
}

.ftm-event-section-heading h2,
.ftm-event-bottom-cta h2{
  margin:0 0 12px !important;
  color:var(--ftm-blue-dark) !important;
  font-family:'Oswald',inherit,sans-serif !important;
  font-size:30px !important;
  line-height:1.15 !important;
  text-transform:uppercase !important;
}

.ftm-event-section-heading p{
  color:var(--ftm-text);
  line-height:1.6;
}

.ftm-event-map-frame{
  overflow:hidden;
  min-height:380px;
  border:1px solid var(--ftm-border);
  background:var(--ftm-blue-pale);
  border-radius:5px;
}

.ftm-event-map-frame iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:380px;
  border:0;
}

.ftm-event-bottom-cta{
  margin-top:42px;
  padding:32px 34px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:var(--ftm-blue-pale);
  border-left:4px solid var(--ftm-blue);
}

.ftm-event-bottom-cta .ftm-event-actions{margin-top:0}
.ftm-event-bottom-cta .ftm-event-btn-primary{background:var(--ftm-blue) !important;color:#fff !important;border-color:var(--ftm-blue) !important}
.ftm-event-bottom-cta .ftm-event-btn-secondary{background:#fff !important;color:var(--ftm-blue) !important;border-color:var(--ftm-blue) !important}

/* ---------- CALENDARIO / PANEL LATERAL ---------- */
.ftm-mec-calendar-extra{
  margin-top:15px;
  padding-top:15px;
  border-top:1px solid var(--ftm-border);
}

.ftm-mec-calendar-image{
  display:block;
  width:100%;
  height:190px;
  overflow:hidden;
  margin-bottom:14px;
  background:var(--ftm-blue-pale);
}

.ftm-mec-calendar-image img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.ftm-mec-calendar-location{
  display:flex;
  align-items:flex-start;
  gap:7px;
  margin:0 0 10px;
  color:var(--ftm-blue-mid);
  font-size:12px;
  font-weight:700;
}

.ftm-mec-calendar-location svg{
  flex:0 0 16px;
  width:16px;
  height:16px;
  fill:none;
  stroke:var(--ftm-blue);
  stroke-width:1.8;
}

.ftm-mec-calendar-description{
  margin:0 0 13px !important;
  color:var(--ftm-text) !important;
  font-size:13px !important;
  line-height:1.58 !important;
}

.ftm-mec-calendar-map{
  overflow:hidden;
  height:150px;
  margin:12px 0 14px;
  background:var(--ftm-blue-pale);
  border:1px solid var(--ftm-border);
}

.ftm-mec-calendar-map iframe{
  display:block;
  width:100%;
  height:100%;
  border:0;
}

.ftm-mec-inline-actions{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
}

.ftm-mec-inline-btn{
  min-height:35px;
  padding:8px 11px !important;
  font-size:10px !important;
}

.ftm-mec-inline-btn-blue{
  background:var(--ftm-blue) !important;
  background-color:var(--ftm-blue) !important;
  background-image:none !important;
  color:#fff !important;
  border:1px solid var(--ftm-blue) !important;
}

.ftm-mec-inline-btn-detail{
  background:#fff !important;
  background-image:none !important;
  color:var(--ftm-blue) !important;
  border:1px solid var(--ftm-blue) !important;
}

.ftm-mec-inline-btn-light{
  background:var(--ftm-blue-dark) !important;
  background-color:var(--ftm-blue-dark) !important;
  background-image:none !important;
  color:#fff !important;
  border:1px solid var(--ftm-blue-dark) !important;
}

.ftm-mec-inline-btn:hover{
  transform:translateY(-1px);
  opacity:.9;
}

/* Evita colores globales naranja/rojo de tema/Elementor en nuestros botones */
.ftm-event-single-page a.ftm-event-btn,
.ftm-mec-calendar-extra a.ftm-mec-inline-btn{
  text-shadow:none !important;
}

/* ---------- INICIO: MINIATURA EN TARJETAS MEC ---------- */
.ftm-mec-home-card .ftm-mec-home-thumb{
  display:block;
  width:100%;
  height:145px;
  overflow:hidden;
  margin:13px 0 18px;
  background:var(--ftm-blue-pale);
  border:0 !important;
}

.ftm-mec-home-card .ftm-mec-home-thumb img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:transform .3s ease;
}

.ftm-mec-home-card .ftm-mec-home-thumb:hover img{
  transform:scale(1.035);
}

/* ---------- RESPONSIVE ---------- */
@media(max-width:980px){
  body.single-mec-events .elementor-location-header,
  body.single-mec-events #masthead,
  body.single-mec-events .site-header{
    min-height:118px !important;
  }

  body.single-mec-events .elementor-location-header .e-con-inner,
  body.single-mec-events .elementor-location-header .elementor-container{
    min-height:118px !important;
    align-items:center !important;
  }

  .ftm-event-single-page{padding-top:34px}
  .ftm-event-hero{grid-template-columns:1fr}
  .ftm-event-hero-media,.ftm-event-hero-media img,.ftm-event-image-placeholder{min-height:390px}
  .ftm-event-map-section{grid-template-columns:1fr;gap:10px}
  .ftm-event-section-heading{padding-bottom:10px}
}

@media(max-width:680px){
  body.single-mec-events .elementor-location-header,
  body.single-mec-events #masthead,
  body.single-mec-events .site-header{
    min-height:112px !important;
  }

  body.single-mec-events .elementor-location-header .e-con-inner,
  body.single-mec-events .elementor-location-header .elementor-container{
    min-height:112px !important;
    padding-top:8px !important;
    padding-bottom:8px !important;
    align-items:center !important;
  }

  body.single-mec-events .elementor-location-header .elementor-menu-toggle{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    margin:0 !important;
    z-index:10 !important;
  }

  .ftm-event-single-page{padding:24px 12px 60px !important}
  .ftm-event-hero{margin-top:0 !important}
  .ftm-event-hero-copy{padding:46px 22px 34px}
  .ftm-event-hero h1{font-size:38px !important}
  .ftm-event-meta-row{grid-template-columns:1fr}
  .ftm-event-hero-media,.ftm-event-hero-media img,.ftm-event-image-placeholder{min-height:300px}
  .ftm-event-actions{flex-direction:column}
  .ftm-event-btn{width:100%}
  .ftm-event-map-frame,.ftm-event-map-frame iframe{min-height:310px}
  .ftm-event-bottom-cta{align-items:stretch;flex-direction:column;padding:26px 22px}
  .ftm-event-bottom-cta .ftm-event-actions{width:100%}
  .ftm-mec-calendar-image{height:170px}
}
