/*
Theme Name: Mengod Investments Client Area v83
Theme URI: https://mengodinvestments.com
Author: OpenAI
Description: Tema fiel al HTML original de Mengod Investments, con controles en Personalizar.
Version: 83.0
Text Domain: mengod-client-area-v82
*/

/* ==================================================
   MENGOD INVESTMENTS V19 PRO DIVI VISUAL EDITABLE
   No iframe. Secciones y módulos editables.
   ================================================== */

.mg19-page{font-family:Arial,Helvetica,sans-serif;color:#061a3a;background:#fff;overflow-x:hidden}
.mg19-page *{box-sizing:border-box}
.mg19-section{padding:78px 0}
.mg19-section-alt{background:#f6f9fd}
.mg19-container{max-width:1180px;margin:0 auto;padding:0 28px}
.mg19-header{background:#fff;box-shadow:0 8px 28px rgba(15,23,42,.06);position:sticky;top:0;z-index:9999;padding:0!important}
.mg19-header-row{height:86px;display:flex!important;align-items:center;justify-content:space-between;gap:18px;max-width:1180px!important;width:100%!important;margin:0 auto!important;padding:0 28px!important}
.mg19-logo img{max-width:210px!important;max-height:58px!important;width:auto!important;height:auto!important;object-fit:contain!important}
.mg19-nav{display:flex;align-items:center;gap:16px;white-space:nowrap;flex-wrap:nowrap}
.mg19-nav a{color:#061a3a;text-decoration:none;font-size:12px;font-weight:900;letter-spacing:.3px;text-transform:uppercase}
.mg19-pill{display:inline-flex!important;align-items:center!important;justify-content:center!important;height:34px!important;padding:0 16px!important;border-radius:999px!important;background:#c89b3c!important;color:#061a3a!important;font-size:11px!important;font-weight:900!important;letter-spacing:.7px!important;text-transform:uppercase!important;box-shadow:0 8px 18px rgba(0,0,0,.16)!important}
.mg19-lang{display:flex;gap:6px;align-items:center}
.mg19-lang span{height:34px;min-width:38px;border-radius:999px;background:#eef4fb;color:#061a3a;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:900}
.mg19-lang .active{background:#1464f6;color:#fff}
.mg19-search{position:relative}
.mg19-search-btn{width:44px!important;height:44px!important;border-radius:999px!important;border:1px solid rgba(6,26,58,.18)!important;background:#fff!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;box-shadow:0 8px 22px rgba(7,20,38,.08)!important;color:#061a3a!important;text-decoration:none!important;font-size:18px!important}
.mg19-search-panel{display:none;position:absolute;right:0;top:56px;width:330px;max-width:calc(100vw - 32px);background:#fff;border:1px solid rgba(6,26,58,.12);border-radius:18px;padding:12px;box-shadow:0 18px 46px rgba(7,20,38,.18);z-index:99999;gap:8px}
.mg19-search.open .mg19-search-panel{display:flex}
.mg19-search-panel input{flex:1;height:42px;border:1px solid rgba(6,26,58,.14);border-radius:12px;padding:0 13px;font-size:14px;color:#061a3a;background:#f8fbff}
.mg19-search-panel button{height:42px;min-width:72px;padding:0 14px;border-radius:12px;border:0;background:#c89b3c;color:#061a3a;font-size:12px;font-weight:900;text-transform:uppercase}
.mg19-contact-btn{background:#061a3a;color:#fff!important;padding:15px 22px;border-radius:7px;text-decoration:none;font-size:12px;font-weight:900;text-transform:uppercase}

.mg19-hero{min-height:610px;color:#fff;background:linear-gradient(90deg,rgba(4,14,32,.96),rgba(6,24,55,.82),rgba(6,24,55,.18)),url('https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1800&q=90') center right/cover no-repeat;padding:0!important}
.mg19-hero-inner{max-width:1180px;margin:0 auto;padding:28px 28px 110px}
.mg19-login{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:7px;backdrop-filter:blur(10px);box-shadow:0 12px 30px rgba(0,0,0,.18);width:max-content}
.mg19-login input{width:132px;height:36px;border:0;border-radius:8px;padding:0 11px;font-size:13px;color:#061a3a;background:#fff}
.mg19-login button{width:38px;height:36px;border:0;border-radius:9px;background:#c89b3c;color:#061a3a;font-size:18px;font-weight:900;display:inline-flex;align-items:center;justify-content:center}
.mg19-news{display:grid;grid-template-columns:126px minmax(0,1fr);align-items:center;column-gap:18px;width:min(1120px,calc(100vw - 72px));height:126px;min-height:126px;padding:16px 22px;border-radius:24px;margin:22px 0 34px;background:linear-gradient(135deg,rgba(6,26,58,.98),rgba(8,34,75,.95));box-shadow:0 20px 48px rgba(3,12,28,.24);border:1px solid rgba(255,255,255,.10);overflow:hidden}
.mg19-news-label{display:inline-flex;align-items:center;justify-content:center;width:104px;height:34px;border-radius:999px;background:#c89b3c;color:#061a3a;font-size:11px;font-weight:900;letter-spacing:.7px;text-transform:uppercase}
.mg19-news-stage{position:relative;height:94px;overflow:hidden}
.mg19-news-slide{position:absolute;inset:0;display:grid;grid-template-columns:116px minmax(0,1fr);gap:18px;align-items:center;height:94px;opacity:0;visibility:hidden;transform:translateX(14px);transition:.45s ease;text-decoration:none}
.mg19-news-slide.active{opacity:1;visibility:visible;transform:translateX(0)}
.mg19-news-img{width:116px;height:76px;border-radius:16px;background-size:cover;background-position:center}
.mg19-news-copy small{display:block;color:#c89b3c;font-size:9.5px;font-weight:900;letter-spacing:.9px;text-transform:uppercase;margin-bottom:6px}
.mg19-news-copy strong{display:block;color:#fff;font-size:16.5px;line-height:1.24;font-weight:900;text-transform:uppercase}
.mg19-hero-content{max-width:720px}
.mg19-kicker{display:inline-flex;align-items:center;padding:11px 18px;border-radius:999px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.18);color:#fff;font-size:12px;font-weight:900;letter-spacing:.6px;text-transform:uppercase}
.mg19-hero h1{font-size:clamp(38px,5.2vw,66px);line-height:1.02;margin:24px 0 18px;text-transform:uppercase;letter-spacing:-1.5px;color:#fff}
.mg19-hero p{color:#e5efff;font-size:18px;line-height:1.7;max-width:620px}
.mg19-buttons{display:flex;gap:12px;margin-top:28px}
.mg19-btn{display:inline-flex;align-items:center;justify-content:center;padding:14px 22px;border-radius:10px;font-weight:900;font-size:13px;text-decoration:none}
.mg19-btn.primary{background:#c89b3c;color:#061a3a}.mg19-btn.secondary{border:1px solid rgba(255,255,255,.25);color:#fff;background:rgba(255,255,255,.08)}
.mg19-stats{display:flex;gap:14px;margin-top:28px}.mg19-stat{padding:15px 18px;border-radius:14px;background:rgba(255,255,255,.10);border:1px solid rgba(255,255,255,.14)}.mg19-stat strong{display:block;color:#fff;font-size:28px;font-weight:900}.mg19-stat span{color:#e5efff;font-size:12px}

.mg19-eyebrow{color:#c89b3c;text-transform:uppercase;font-weight:900;letter-spacing:1px;font-size:12px;margin:0 0 8px}
.mg19-title{font-size:clamp(30px,3.4vw,46px);line-height:1.08;margin:0 0 24px;color:#061a3a}
.mg19-line{width:72px;height:4px;background:#c89b3c;border-radius:999px;margin-bottom:32px}
.mg19-grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.mg19-card{background:#fff;border-radius:22px;overflow:hidden;box-shadow:0 18px 48px rgba(7,20,38,.10);border:1px solid rgba(6,26,58,.08)}
.mg19-card-img{height:170px;background-size:cover;background-position:center}
.mg19-card-body{padding:22px}.mg19-card h3{margin:0 0 10px;color:#061a3a;font-size:18px;line-height:1.2}.mg19-card p{color:#42526a;font-size:14px;line-height:1.65}.mg19-card a{color:#c89b3c;font-weight:900;text-decoration:none;font-size:13px}
.mg19-detail{display:grid;grid-template-columns:1.1fr .9fr;gap:34px;align-items:center;margin-bottom:42px}.mg19-detail-img{min-height:330px;border-radius:26px;background-size:cover;background-position:center;box-shadow:0 20px 55px rgba(7,20,38,.14)}.mg19-detail-text{background:#fff;border-radius:24px;padding:30px;box-shadow:0 18px 48px rgba(7,20,38,.10)}.mg19-detail-text h3{margin:0 0 12px;color:#061a3a;font-size:26px}.mg19-detail-text p{color:#42526a;line-height:1.7}
.mg19-about{display:grid;grid-template-columns:1fr 1fr;gap:34px;align-items:center}.mg19-about-img{min-height:420px;border-radius:30px;background:url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1200&q=90') center/cover no-repeat}
.mg19-cta{background:#061a3a;color:#fff;padding:72px 0}.mg19-cta h2{color:#fff}.mg19-cta p{color:#dbeafe}.mg19-contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:34px}.mg19-form{background:#fff;padding:24px;border-radius:24px}.mg19-form input,.mg19-form textarea{width:100%;margin-bottom:12px;border:1px solid #d7e0ea;padding:13px;border-radius:10px;font-size:14px}.mg19-form textarea{min-height:120px}
.mg19-footer{background:#061a3a;color:#dbeafe;padding:52px 0 18px}.mg19-footer-grid{display:grid;grid-template-columns:1.35fr .75fr .82fr .95fr;gap:34px;align-items:start}.mg19-footer-logo img{max-width:232px;max-height:78px;width:auto;height:auto;object-fit:contain}.mg19-footer h4{color:#fff;font-size:14px;margin:0 0 16px;text-transform:uppercase;letter-spacing:.8px;font-weight:900}.mg19-footer p,.mg19-footer a,.mg19-footer li{color:#dbeafe;font-size:14px;line-height:1.55;text-decoration:none}.mg19-footer ul{list-style:none;margin:0;padding:0}.mg19-footer li{margin-bottom:8px}.mg19-social{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}.mg19-social a{width:36px;height:36px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.13);font-weight:900}.mg19-whatsapp:before{content:"";width:17px;height:17px;border-radius:999px;background:#25D366;display:inline-flex;margin-right:7px}.mg19-phone:before{content:"☎";color:#c89b3c;margin-right:7px}.mg19-legal{border-top:1px solid rgba(255,255,255,.10);margin-top:26px;padding-top:16px}.mg19-legal p,.mg19-legal a{font-size:10px;color:rgba(219,234,254,.68)}
@media(max-width:1080px){.mg19-nav{gap:10px}.mg19-nav a{font-size:10.5px}.mg19-grid4{grid-template-columns:repeat(2,1fr)}.mg19-footer-grid{grid-template-columns:1fr 1fr}}
@media(max-width:760px){.mg19-header-row{height:auto;flex-wrap:wrap;padding:14px 28px!important}.mg19-nav{flex-wrap:wrap}.mg19-news{display:block;height:auto;min-height:190px}.mg19-news-label{margin-bottom:12px}.mg19-news-stage{height:132px}.mg19-news-slide{grid-template-columns:92px minmax(0,1fr);height:132px}.mg19-news-img{width:92px;height:66px}.mg19-grid4,.mg19-detail,.mg19-about,.mg19-contact-grid,.mg19-footer-grid{grid-template-columns:1fr}.mg19-stats{flex-direction:column}}

/* ===== V19.1 FINAL READY PATCH ===== */
.mg19-portfolio-wrap{background:#fff}
.mg19-portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:26px}
.mg19-portfolio-card{background:#fff;border-radius:26px;overflow:hidden;box-shadow:0 18px 48px rgba(7,20,38,.10);border:1px solid rgba(6,26,58,.08)}
.mg19-portfolio-card-img{min-height:260px;background-size:cover;background-position:center}
.mg19-portfolio-card-body{padding:26px}
.mg19-portfolio-card-body h3{color:#061a3a;font-size:24px;line-height:1.2;margin:0 0 12px}
.mg19-portfolio-card-body p{color:#42526a;font-size:15px;line-height:1.7;margin:0}
.mg19-legal-section{background:#f6f9fd;padding:78px 0}
.mg19-legal-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.mg19-legal-card{background:#fff;border:1px solid rgba(6,26,58,.08);border-radius:18px;padding:22px;box-shadow:0 14px 36px rgba(7,20,38,.08);min-height:170px}
.mg19-legal-card h3{color:#061a3a;font-size:17px;line-height:1.25;margin:0 0 10px;font-weight:900}
.mg19-legal-card p{color:#42526a;font-size:13px;line-height:1.6;margin:0}
@media(max-width:900px){.mg19-portfolio-grid,.mg19-legal-grid{grid-template-columns:1fr}}


/* ===== V19.2 PORTAFOLIO MODELO V7 - 3 FOTOS POR AREA ===== */
.mg19-v7-portfolio{
  background:#fff;
}
.mg19-v7-detail{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:32px;
  align-items:center;
  margin:0 0 46px;
}
.mg19-v7-detail:nth-of-type(even){
  grid-template-columns:.95fr 1.05fr;
}
.mg19-v7-detail:nth-of-type(even) .mg19-v7-gallery{
  order:2;
}
.mg19-v7-detail:nth-of-type(even) .mg19-v7-text{
  order:1;
}
.mg19-v7-gallery{
  display:grid;
  grid-template-columns:1.55fr .9fr;
  grid-template-rows:repeat(2,160px);
  gap:14px;
  min-height:334px;
}
.mg19-v7-photo{
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  border-radius:22px;
  box-shadow:0 18px 45px rgba(7,20,38,.12);
  overflow:hidden;
}
.mg19-v7-photo.big{
  grid-row:1 / span 2;
  min-height:334px;
}
.mg19-v7-text{
  background:#fff;
  border-radius:24px;
  padding:30px;
  box-shadow:0 18px 48px rgba(7,20,38,.10);
  border:1px solid rgba(6,26,58,.08);
}
.mg19-v7-text h3{
  margin:0 0 12px;
  color:#061a3a;
  font-size:26px;
  line-height:1.18;
}
.mg19-v7-text p{
  color:#42526a;
  line-height:1.7;
  font-size:15px;
  margin:0;
}
.mg19-v7-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  height:30px;
  padding:0 13px;
  border-radius:999px;
  background:rgba(200,155,60,.15);
  color:#8a651e;
  font-size:11px;
  line-height:1;
  font-weight:900;
  letter-spacing:.7px;
  text-transform:uppercase;
  margin-bottom:12px;
}
@media(max-width:900px){
  .mg19-v7-detail,
  .mg19-v7-detail:nth-of-type(even){
    grid-template-columns:1fr;
  }
  .mg19-v7-detail:nth-of-type(even) .mg19-v7-gallery,
  .mg19-v7-detail:nth-of-type(even) .mg19-v7-text{
    order:initial;
  }
}
@media(max-width:650px){
  .mg19-v7-gallery{
    grid-template-columns:1fr;
    grid-template-rows:none;
    min-height:0;
  }
  .mg19-v7-photo,
  .mg19-v7-photo.big{
    min-height:220px;
    grid-row:auto;
  }
}


/* ===== V19.3 SERVICIOS HOVER + CLICK ===== */
.mg19-card{
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease!important;
  cursor:pointer!important;
}
.mg19-card:hover{
  transform:translateY(-10px)!important;
  box-shadow:0 26px 62px rgba(7,20,38,.18)!important;
  border-color:rgba(200,155,60,.35)!important;
}
.mg19-card:hover .mg19-card-img{
  transform:scale(1.045)!important;
}
.mg19-card-img{
  transition:transform .35s ease!important;
}
.mg19-card:hover h3{
  color:#c89b3c!important;
}


/* ===== V19.6 MENU FIJO + AGRICOLA TROPICAL ===== */

/* Cinta del menú fija arriba */
.mg19-header{
  position:fixed!important;
  top:0!important;
  left:0!important;
  right:0!important;
  width:100%!important;
  z-index:99999!important;
}

/* El resto baja para no quedar tapado por el menú */
.mg19-page{
  padding-top:86px!important;
}

/* Ajuste responsive del header fijo */
@media(max-width:760px){
  .mg19-page{
    padding-top:128px!important;
  }
}


/* ===== V19.8 COCOS SUBIDO + WHATSAPP MOVIL ===== */
.mg19-whatsapp-floating{
  position:fixed!important;
  right:22px!important;
  bottom:22px!important;
  z-index:999999!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:10px!important;
  min-width:58px!important;
  height:58px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  background:#25D366!important;
  color:#fff!important;
  font-size:14px!important;
  font-weight:900!important;
  text-decoration:none!important;
  box-shadow:0 14px 34px rgba(37,211,102,.35)!important;
}
.mg19-whatsapp-floating span{
  color:#fff!important;
  white-space:nowrap!important;
}
.mg19-whatsapp-floating::before{
  content:"☎"!important;
  width:28px!important;
  height:28px!important;
  border-radius:999px!important;
  background:#fff!important;
  color:#25D366!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  font-size:18px!important;
  line-height:1!important;
}
@media(max-width:760px){
  .mg19-whatsapp-floating{
    right:16px!important;
    bottom:16px!important;
    width:58px!important;
    min-width:58px!important;
    padding:0!important;
  }
  .mg19-whatsapp-floating span{
    display:none!important;
  }
}


/* ===== V19.9 WHATSAPP FLOTANTE VISIBLE FINAL ===== */
#mg-whatsapp-fixed,
.mg-whatsapp-fixed{
  position:fixed!important;
  right:24px!important;
  bottom:24px!important;
  z-index:2147483647!important;
  width:64px!important;
  height:64px!important;
  min-width:64px!important;
  min-height:64px!important;
  border-radius:999px!important;
  background:#25D366!important;
  color:#fff!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  text-decoration:none!important;
  box-shadow:0 14px 38px rgba(37,211,102,.42)!important;
  border:4px solid rgba(255,255,255,.9)!important;
  opacity:1!important;
  visibility:visible!important;
  transform:none!important;
  pointer-events:auto!important;
}
#mg-whatsapp-fixed svg,
.mg-whatsapp-fixed svg{
  width:34px!important;
  height:34px!important;
  fill:#fff!important;
  display:block!important;
}
#mg-whatsapp-fixed:hover,
.mg-whatsapp-fixed:hover{
  transform:translateY(-3px)!important;
  box-shadow:0 18px 44px rgba(37,211,102,.52)!important;
}
@media(max-width:760px){
  #mg-whatsapp-fixed,
  .mg-whatsapp-fixed{
    right:16px!important;
    bottom:16px!important;
    width:60px!important;
    height:60px!important;
    min-width:60px!important;
    min-height:60px!important;
  }
}





/* ===== FOOTER LOGO EXACTO V7 ===== */
.mg19-footer-logo,
.mg19-footer-logo img{
  background:transparent!important;
  border:none!important;
  box-shadow:none!important;
}
.mg19-footer-logo img{
  width:auto!important;
  max-width:260px!important;
  height:auto!important;
  max-height:90px!important;
  object-fit:contain!important;
  display:block!important;
}







/* ===== SOCIAL SVG EXACT FINAL ===== */
.mg19-social{
  display:flex!important;
  align-items:center!important;
  gap:18px!important;
  margin-top:14px!important;
  flex-wrap:wrap!important;
}
.mg19-social a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:24px!important;
  height:24px!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  color:#fff!important;
  text-decoration:none!important;
  padding:0!important;
  margin:0!important;
  line-height:0!important;
  transition:opacity .18s ease, transform .18s ease!important;
}
.mg19-social a:hover{
  opacity:.82!important;
  transform:translateY(-1px)!important;
}
.mg19-social svg{
  display:block!important;
  width:22px!important;
  height:22px!important;
  color:#fff!important;
  fill:currentColor!important;
}
.mg19-social a:nth-child(7) svg,
.mg19-social a:nth-child(7) svg path{
  width:23px!important;
  height:23px!important;
  fill:#25D366!important;
  color:#25D366!important;
}
/* Anular iconos anteriores por pseudo-elementos */
.mg19-social a::before,
.mg19-social a::after{
  content:none!important;
  display:none!important;
}
/* WhatsApp de contacto: solo icono verde SVG, sin icono anterior */
.mg19-whatsapp::before,
a[href*="whatsapp"]::before,
a[href*="wa.me"]::before{
  content:none!important;
  display:none!important;
}
.mg19-whatsapp .wa-icon,
a[href*="whatsapp"] .wa-icon,
a[href*="wa.me"] .wa-icon{
  display:inline-flex!important;
  width:20px!important;
  height:20px!important;
  margin-right:8px!important;
  vertical-align:middle!important;
}
.mg19-whatsapp .wa-icon svg,
a[href*="whatsapp"] .wa-icon svg,
a[href*="wa.me"] .wa-icon svg{
  width:20px!important;
  height:20px!important;
  display:block!important;
}





/* ===== FINAL EXACT FIX: LUPA + SWITCH + WA FOOTER ===== */

/* 1) LUPA REAL VISIBLE SIN COLORES */
.mg19-search-btn{
  width:42px!important;
  height:42px!important;
  min-width:42px!important;
  min-height:42px!important;
  border-radius:999px!important;
  border:1.5px solid #111827!important;
  background:transparent!important;
  box-shadow:none!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  color:#111827!important;
  text-indent:0!important;
  font-size:0!important;
  line-height:0!important;
  overflow:visible!important;
}
.mg19-search-btn::before,
.mg19-search-btn::after{
  content:none!important;
  display:none!important;
}
.mg19-search-btn svg.mg19-search-svg-clean{
  display:block!important;
  width:19px!important;
  height:19px!important;
  fill:none!important;
  stroke:#111827!important;
  stroke-width:2.2!important;
  stroke-linecap:round!important;
  stroke-linejoin:round!important;
  background:transparent!important;
  color:#111827!important;
  opacity:1!important;
  visibility:visible!important;
}
.mg19-search-btn svg.mg19-search-svg-clean *{
  display:block!important;
  fill:none!important;
  stroke:#111827!important;
  background:transparent!important;
  opacity:1!important;
  visibility:visible!important;
}

/* 2) ES/EN TIPO SWITCH */
.mg19-lang{
  display:inline-flex!important;
  align-items:center!important;
  gap:0!important;
  padding:4px!important;
  border-radius:999px!important;
  background:#eef2f7!important;
  border:1px solid rgba(6,26,58,.12)!important;
  box-shadow:inset 0 1px 2px rgba(6,26,58,.06)!important;
}
.mg19-lang span{
  min-width:42px!important;
  height:34px!important;
  border-radius:999px!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:transparent!important;
  color:#061a3a!important;
  font-size:12px!important;
  line-height:1!important;
  font-weight:900!important;
  cursor:pointer!important;
  transition:background .2s ease,color .2s ease,box-shadow .2s ease!important;
}
.mg19-lang span.active{
  background:#1464f6!important;
  color:#fff!important;
  box-shadow:0 6px 14px rgba(20,100,246,.25)!important;
}

/* 3) WHATSAPP DE SIGUENOS EN EN BLANCO */
.mg19-social a:nth-child(7) svg,
.mg19-social a:nth-child(7) svg path{
  fill:#ffffff!important;
  color:#ffffff!important;
  stroke:none!important;
}


/* ===== FINAL MOBILE/TABLET MENU ===== */
.mg19-mobile-menu-toggle{display:none!important;}
@media(max-width:980px){
  .mg19-header-row{position:relative!important;min-height:78px!important;height:auto!important;}
  .mg19-mobile-menu-toggle{
    display:inline-flex!important;align-items:center!important;justify-content:center!important;
    width:44px!important;height:44px!important;border-radius:999px!important;
    border:1.5px solid #111827!important;background:transparent!important;color:#111827!important;
    font-size:0!important;cursor:pointer!important;padding:0!important;margin-left:auto!important;
    z-index:100001!important;position:relative!important;
  }
  .mg19-mobile-menu-toggle span,
  .mg19-mobile-menu-toggle::before,
  .mg19-mobile-menu-toggle::after{
    content:""!important;display:block!important;width:19px!important;height:2px!important;
    background:#111827!important;border-radius:999px!important;position:absolute!important;
    transition:transform .22s ease, opacity .22s ease!important;
  }
  .mg19-mobile-menu-toggle span{position:relative!important;}
  .mg19-mobile-menu-toggle::before{transform:translateY(-7px)!important;}
  .mg19-mobile-menu-toggle::after{transform:translateY(7px)!important;}
  .mg19-header.mobile-menu-open .mg19-mobile-menu-toggle span{opacity:0!important;}
  .mg19-header.mobile-menu-open .mg19-mobile-menu-toggle::before{transform:rotate(45deg)!important;}
  .mg19-header.mobile-menu-open .mg19-mobile-menu-toggle::after{transform:rotate(-45deg)!important;}

  .mg19-nav{
    position:absolute!important;top:100%!important;left:18px!important;right:18px!important;
    display:none!important;flex-direction:column!important;align-items:stretch!important;gap:0!important;
    background:#ffffff!important;border:1px solid rgba(6,26,58,.10)!important;border-radius:18px!important;
    box-shadow:0 22px 54px rgba(7,20,38,.16)!important;padding:12px!important;z-index:100000!important;
    white-space:normal!important;
  }
  .mg19-header.mobile-menu-open .mg19-nav{display:flex!important;}
  .mg19-nav a{
    display:flex!important;align-items:center!important;justify-content:space-between!important;
    width:100%!important;padding:13px 14px!important;border-radius:12px!important;
    color:#061a3a!important;font-size:13px!important;line-height:1!important;text-decoration:none!important;
  }
  .mg19-nav a:hover{background:#f3f6fb!important;}
  .mg19-nav .mg19-pill{justify-content:center!important;width:100%!important;margin:4px 0!important;}
}
@media(max-width:760px){
  .mg19-header-row{gap:10px!important;}
  .mg19-logo img{max-width:170px!important;max-height:48px!important;}
  .mg19-contact-btn{display:none!important;}
}




/* FOOTER LOGO V7 FIX FOR PREVIEW */
.mg19-footer-logo img,
.mg19-footer .logo img,
.footer-logo img{
  background:transparent!important;
  box-shadow:none!important;
  border:none!important;
  
}

/* WP patch: mantener header fijo aunque exista barra admin */
body.admin-bar .mg19-header{top:32px!important;}
@media(max-width:782px){body.admin-bar .mg19-header{top:46px!important;}}
body{margin:0;}

/* ===== V10 BUSQUEDA NATIVA WORDPRESS ===== */
.mg19-search form.mg19-search-panel{display:none;margin:0!important;}
.mg19-search.open form.mg19-search-panel{display:flex!important;}
.mg19-search-btn{appearance:none!important;-webkit-appearance:none!important;cursor:pointer!important;}
.mg19-search-submit{cursor:pointer!important;}


/* ===== V11 BUSQUEDA FINAL: MISMO LOOK, FUNCIONAL SIN DEPENDER SOLO DE JS ===== */
.mg19-search{position:relative!important;display:inline-flex!important;align-items:center!important;}
.mg19-search .mg19-search-btn{cursor:pointer!important;}
.mg19-search form.mg19-search-panel{
  display:none!important;
  position:absolute!important;
  right:0!important;
  top:56px!important;
  width:330px!important;
  max-width:calc(100vw - 32px)!important;
  background:#fff!important;
  border:1px solid rgba(6,26,58,.12)!important;
  border-radius:18px!important;
  padding:12px!important;
  box-shadow:0 18px 46px rgba(7,20,38,.18)!important;
  z-index:999999!important;
  gap:8px!important;
  margin:0!important;
}
.mg19-search.open form.mg19-search-panel,
.mg19-search:focus-within form.mg19-search-panel{
  display:flex!important;
}
.mg19-search-panel input[type="search"]{
  flex:1!important;
  min-width:0!important;
  height:42px!important;
}
.mg19-search-panel button[type="submit"]{
  height:42px!important;
  min-width:72px!important;
  cursor:pointer!important;
}
.mg19-search-results-page{background:#f6f9fd;min-height:70vh;padding:90px 0;font-family:Arial,Helvetica,sans-serif;color:#061a3a;}
.mg19-search-results-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:28px;}
.mg19-search-result-card{display:block;background:#fff;border-radius:20px;padding:24px;text-decoration:none;box-shadow:0 18px 48px rgba(7,20,38,.10);border:1px solid rgba(6,26,58,.08);transition:.22s ease;}
.mg19-search-result-card:hover{transform:translateY(-6px);border-color:rgba(200,155,60,.35);}
.mg19-search-result-card small{display:block;color:#c89b3c;font-weight:900;text-transform:uppercase;letter-spacing:.7px;margin-bottom:8px;font-size:11px;}
.mg19-search-result-card h3{margin:0 0 9px;color:#061a3a;font-size:20px;line-height:1.2;}
.mg19-search-result-card p{margin:0;color:#42526a;font-size:14px;line-height:1.6;}
.mg19-search-empty{background:#fff;border-radius:22px;padding:30px;box-shadow:0 18px 48px rgba(7,20,38,.10);}
@media(max-width:900px){.mg19-search-results-grid{grid-template-columns:1fr}.mg19-search form.mg19-search-panel{right:-80px;width:min(330px,calc(100vw - 36px))!important;}}

/* ===== V12 BUSQUEDA NATIVA DEFINITIVA ===== */
form.mg19-search{position:relative!important;display:inline-flex!important;align-items:center!important;margin:0!important;padding:0!important;}
form.mg19-search .mg19-search-btn{width:42px!important;height:42px!important;min-width:42px!important;min-height:42px!important;border-radius:999px!important;border:1.5px solid #111827!important;background:transparent!important;box-shadow:none!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;padding:0!important;margin:0!important;color:#111827!important;cursor:pointer!important;font-size:0!important;line-height:0!important;}
form.mg19-search .mg19-search-btn svg.mg19-search-svg-clean{display:block!important;width:19px!important;height:19px!important;fill:none!important;stroke:#111827!important;stroke-width:2.2!important;stroke-linecap:round!important;stroke-linejoin:round!important;}
form.mg19-search .mg19-search-panel{display:none!important;position:absolute!important;right:0!important;top:56px!important;width:330px!important;max-width:calc(100vw - 32px)!important;background:#fff!important;border:1px solid rgba(6,26,58,.12)!important;border-radius:18px!important;padding:12px!important;box-shadow:0 18px 46px rgba(7,20,38,.18)!important;z-index:2147483000!important;gap:8px!important;align-items:center!important;}
form.mg19-search.open .mg19-search-panel,form.mg19-search:focus-within .mg19-search-panel{display:flex!important;}
form.mg19-search .mg19-search-panel input[type="search"]{flex:1!important;min-width:0!important;height:42px!important;border:1px solid rgba(6,26,58,.14)!important;border-radius:12px!important;padding:0 13px!important;font-size:14px!important;color:#061a3a!important;background:#f8fbff!important;outline:none!important;}
form.mg19-search .mg19-search-panel button[type="submit"]{height:42px!important;min-width:72px!important;padding:0 14px!important;border-radius:12px!important;border:0!important;background:#c89b3c!important;color:#061a3a!important;font-size:12px!important;font-weight:900!important;text-transform:uppercase!important;cursor:pointer!important;}
@media(max-width:980px){form.mg19-search .mg19-search-panel{right:-74px!important;width:min(330px,calc(100vw - 36px))!important;}}

/* ===== V13 BUSQUEDA CON RESALTADO ===== */
.mg19-search-results-page{padding:150px 0 90px;background:#f6f9fd;min-height:70vh;font-family:Arial,Helvetica,sans-serif;color:#061a3a}
.mg19-search-page-form{display:flex;gap:10px;max-width:720px;margin:0 0 28px;background:#fff;border:1px solid rgba(6,26,58,.10);border-radius:18px;padding:10px;box-shadow:0 14px 36px rgba(7,20,38,.08)}
.mg19-search-page-form input{flex:1;height:46px;border:1px solid #d7e0ea;border-radius:12px;padding:0 14px;font-size:15px;color:#061a3a;background:#f8fbff}
.mg19-search-page-form button{height:46px;border:0;border-radius:12px;padding:0 20px;background:#c89b3c;color:#061a3a;font-weight:900;text-transform:uppercase;cursor:pointer}
.mg19-search-subtitle{font-size:24px;margin:24px 0 16px;color:#061a3a}
.mg19-search-results-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:24px}
.mg19-search-result-card{display:block;background:#fff;border:1px solid rgba(6,26,58,.08);border-radius:18px;padding:22px;text-decoration:none;box-shadow:0 14px 36px rgba(7,20,38,.08);transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.mg19-search-result-card:hover{transform:translateY(-4px);box-shadow:0 22px 48px rgba(7,20,38,.13);border-color:rgba(200,155,60,.35)}
.mg19-search-result-card small{display:block;color:#c89b3c;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.7px;margin-bottom:8px}
.mg19-search-result-card h3{margin:0 0 10px;color:#061a3a;font-size:20px;line-height:1.25}
.mg19-search-result-card p{margin:0;color:#42526a;font-size:14px;line-height:1.65}
.mg19-search-highlight{background:#ffe08a;color:#061a3a;border-radius:4px;padding:0 3px;font-weight:900}
.mg19-search-note{background:#fff;border-left:4px solid #c89b3c;border-radius:12px;padding:14px 16px;color:#42526a;box-shadow:0 10px 26px rgba(7,20,38,.07)}
@media(max-width:760px){.mg19-search-results-page{padding-top:170px}.mg19-search-results-grid{grid-template-columns:1fr}.mg19-search-page-form{flex-direction:column}.mg19-search-page-form button{width:100%}}


/* V25 hard fix: mobile/tablet hamburger must open above every layer */
@media(max-width:980px){
  .mg19-header{overflow:visible!important;}
  .mg19-header-row{overflow:visible!important;}
  .mg19-mobile-menu-toggle{display:inline-flex!important;pointer-events:auto!important;touch-action:manipulation!important;}
  .mg19-header.mobile-menu-open .mg19-nav{
    display:flex!important;
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transform:none!important;
  }
  .mg19-header.mobile-menu-open{overflow:visible!important;}
}

.mg19-client-address{border:1px solid rgba(11,79,159,.18);border-radius:14px;padding:14px;margin:14px 0;background:#fbfdff}.mg19-client-address legend{font-weight:700;color:#061a3a;padding:0 8px}


/* ===== V63 FIX RESPONSIVE BUSCADOR TABLET / MOVIL =====
   Mantiene el panel de busqueda dentro del ancho visible y evita que el boton
   "Buscar" salga del marco cuando se abre en tablet o celular. */
@media (max-width: 782px){
  .mg19-header-row{
    overflow: visible!important;
  }
  .mg19-search{
    position: static!important;
  }
  .mg19-search form.mg19-search-panel,
  .mg19-search .mg19-search-panel{
    position: absolute!important;
    left: 16px!important;
    right: 16px!important;
    top: calc(100% + 10px)!important;
    width: auto!important;
    max-width: none!important;
    box-sizing: border-box!important;
    display: none!important;
    flex-direction: row!important;
    align-items: stretch!important;
    gap: 8px!important;
    padding: 10px!important;
    overflow: hidden!important;
  }
  .mg19-search.open form.mg19-search-panel,
  .mg19-search.open .mg19-search-panel,
  .mg19-search:focus-within form.mg19-search-panel,
  .mg19-search:focus-within .mg19-search-panel{
    display: flex!important;
  }
  .mg19-search-panel input[type="search"],
  .mg19-search-panel input[name="s"]{
    width: 100%!important;
    min-width: 0!important;
    flex: 1 1 auto!important;
    box-sizing: border-box!important;
  }
  .mg19-search-panel button[type="submit"],
  .mg19-search-panel .mg19-search-submit{
    flex: 0 0 auto!important;
    min-width: 78px!important;
    max-width: 104px!important;
    white-space: nowrap!important;
    box-sizing: border-box!important;
    padding-left: 10px!important;
    padding-right: 10px!important;
  }
}

@media (max-width: 420px){
  .mg19-search form.mg19-search-panel,
  .mg19-search .mg19-search-panel{
    left: 12px!important;
    right: 12px!important;
    flex-direction: column!important;
  }
  .mg19-search-panel button[type="submit"],
  .mg19-search-panel .mg19-search-submit{
    width: 100%!important;
    max-width: none!important;
  }
}


/* ===== V64 MEJORA ENCUADRE BUSCADOR RESPONSIVE =====
   Panel centrado en viewport para tablet/movil, evita desplazamientos por el header
   y mantiene input + boton siempre dentro del marco. */
@media (max-width: 980px){
  body .mg19-header,
  body .mg19-header-row,
  body .mg19-nav,
  body .mg19-actions{
    overflow: visible!important;
  }
  body form.mg19-search{
    position: relative!important;
    display: inline-flex!important;
    align-items: center!important;
    justify-content: center!important;
    z-index: 2147482000!important;
  }
  body form.mg19-search .mg19-search-panel,
  body .mg19-search .mg19-search-panel,
  body .mg19-search form.mg19-search-panel{
    position: fixed!important;
    top: 78px!important;
    left: 50%!important;
    right: auto!important;
    transform: translateX(-50%)!important;
    width: min(440px, calc(100vw - 28px))!important;
    max-width: calc(100vw - 28px)!important;
    min-width: 0!important;
    margin: 0!important;
    padding: 12px!important;
    border-radius: 18px!important;
    box-sizing: border-box!important;
    display: none!important;
    grid-template-columns: minmax(0, 1fr) auto!important;
    gap: 9px!important;
    align-items: center!important;
    overflow: hidden!important;
  }
  body form.mg19-search.open .mg19-search-panel,
  body form.mg19-search:focus-within .mg19-search-panel,
  body .mg19-search.open .mg19-search-panel,
  body .mg19-search:focus-within .mg19-search-panel,
  body .mg19-search.open form.mg19-search-panel,
  body .mg19-search:focus-within form.mg19-search-panel{
    display: grid!important;
  }
  body form.mg19-search .mg19-search-panel input[type="search"],
  body .mg19-search-panel input[type="search"],
  body .mg19-search-panel input[name="s"]{
    width: 100%!important;
    max-width: 100%!important;
    min-width: 0!important;
    box-sizing: border-box!important;
    height: 42px!important;
  }
  body form.mg19-search .mg19-search-panel button[type="submit"],
  body .mg19-search-panel button[type="submit"],
  body .mg19-search-panel .mg19-search-submit{
    width: auto!important;
    min-width: 82px!important;
    max-width: 112px!important;
    height: 42px!important;
    box-sizing: border-box!important;
    white-space: nowrap!important;
    padding: 0 12px!important;
  }
}

@media (max-width: 520px){
  body form.mg19-search .mg19-search-panel,
  body .mg19-search .mg19-search-panel,
  body .mg19-search form.mg19-search-panel{
    top: 70px!important;
    width: calc(100vw - 24px)!important;
    max-width: calc(100vw - 24px)!important;
    grid-template-columns: 1fr!important;
    gap: 8px!important;
    padding: 11px!important;
    border-radius: 16px!important;
  }
  body form.mg19-search .mg19-search-panel button[type="submit"],
  body .mg19-search-panel button[type="submit"],
  body .mg19-search-panel .mg19-search-submit{
    width: 100%!important;
    max-width: none!important;
    min-width: 0!important;
  }
}


/* V66 - Noticias avanzadas respetando visual v64 */
.mg19-news{position:relative;padding-bottom:28px!important}
.mg19-news-dots{position:absolute;left:50%;bottom:8px;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:7px;z-index:4}
.mg19-news-dot{width:8px;height:8px;border-radius:999px;border:0;background:rgba(255,255,255,.38);padding:0;cursor:pointer;transition:.2s ease}
.mg19-news-dot.active{width:24px;background:#c89b3c}
.mg19-news-detail{padding:70px 0;background:#f6f9fd;min-height:72vh}
.mg19-news-detail-card{max-width:980px;margin:0 auto;background:#fff;border-radius:28px;padding:34px;box-shadow:0 24px 70px rgba(3,12,28,.12);border:1px solid rgba(6,26,58,.08)}
.mg19-news-detail-hero{width:100%;height:330px;border-radius:24px;background-size:cover;background-position:center;margin-bottom:24px;background-color:#e8eef6}
.mg19-news-detail-label{display:inline-flex;margin-bottom:10px;border-radius:999px;background:#c89b3c;color:#061a3a;padding:8px 13px;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.7px}
.mg19-news-detail-card h1{margin:0 0 16px;font-size:clamp(28px,4vw,46px);line-height:1.06;color:#061a3a}
.mg19-news-detail-content{font-size:17px;line-height:1.72;color:#263447}
.mg19-news-detail-video{margin-top:26px;position:relative;width:100%;border-radius:22px;overflow:hidden;background:#061a3a}
.mg19-news-detail-video iframe,.mg19-news-detail-video video{display:block;width:100%;aspect-ratio:16/9;border:0}
.mg19-news-files{margin-top:28px;border-top:1px solid #d8e2ee;padding-top:22px}
.mg19-news-files h3{margin:0 0 12px;color:#061a3a}
.mg19-news-files-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.mg19-news-file{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-radius:16px;background:#f6f9fd;color:#061a3a;text-decoration:none;font-weight:800;border:1px solid #d8e2ee}
.mg19-news-file:hover{background:#eef4fb;color:#0b4f9f}
.mg19-news-back{display:inline-flex;margin-bottom:22px;color:#0b4f9f;text-decoration:none;font-weight:900}
@media(max-width:760px){.mg19-news{padding-bottom:32px!important}.mg19-news-dots{bottom:10px}.mg19-news-detail{padding:34px 0}.mg19-news-detail-card{border-radius:22px;padding:20px}.mg19-news-detail-hero{height:220px;border-radius:18px}}


/* V71 - Noticias públicas con 7 campos en Customize y carpetas públicas */
.mg19-news-slot-admin-title{font-weight:800;margin-top:14px}


/* V73 - Noticias Mengod: medios automaticos */
.mg19-news-auto-block{margin-top:28px;padding-top:22px;border-top:1px solid rgba(11,79,159,.14)}
.mg19-news-auto-block h3{margin:0 0 14px;font-size:1.25rem;color:#172033}
.mg19-news-gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
.mg19-news-gallery-grid a{display:block;border-radius:16px;overflow:hidden;box-shadow:0 12px 30px rgba(15,23,42,.10);background:#f4f7fb}
.mg19-news-gallery-grid img{display:block;width:100%;height:155px;object-fit:cover}
.mg19-news-video-file{margin:0 0 18px;background:#fff;border:1px solid rgba(11,79,159,.12);border-radius:18px;padding:12px;box-shadow:0 14px 35px rgba(15,23,42,.08)}
.mg19-news-video-file video{width:100%;max-height:520px;border-radius:14px;background:#000}
.mg19-news-video-file figcaption{font-size:.92rem;color:#556070;margin-top:8px}
.mg19-news-pdf-card{margin-bottom:20px;background:#fff;border:1px solid rgba(11,79,159,.12);border-radius:18px;padding:14px;box-shadow:0 14px 35px rgba(15,23,42,.08)}
.mg19-news-pdf-title{font-weight:700;margin-bottom:10px;color:#172033}
.mg19-news-pdf-card iframe{width:100%;height:520px;border:1px solid #d8e2ee;border-radius:14px;background:#f8fafc}
@media (max-width:768px){.mg19-news-pdf-card iframe{height:420px}.mg19-news-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mg19-news-gallery-grid img{height:130px}}
@media (max-width:480px){.mg19-news-pdf-card iframe{height:360px}.mg19-news-gallery-grid{grid-template-columns:1fr}}

/* v77 client area download return */
.mg19-download-frame{display:none;width:0;height:0;border:0;visibility:hidden;}
.mg19-client-return-row{margin-top:18px;display:flex;justify-content:flex-end;}
@media (max-width:700px){.mg19-client-return-row{justify-content:center}.mg19-client-return-row .mg19-client-btn{width:100%;text-align:center}}


/* v79 - Client bulk downloads */
.mg19-client-bulk-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 0 18px;padding:14px 16px;border:1px solid rgba(6,26,58,.10);border-radius:18px;background:#fbfaf7}
.mg19-client-file-card{gap:14px}
.mg19-client-file-select{display:flex;align-items:center;justify-content:center;margin:0}
.mg19-client-file-select input,.mg19-client-bulk-toolbar input{width:18px;height:18px;accent-color:#061f44}
@media (max-width:640px){.mg19-client-bulk-toolbar{align-items:stretch;flex-direction:column}.mg19-client-bulk-toolbar .mg19-client-btn{width:100%;justify-content:center}.mg19-client-file-card{grid-template-columns:auto auto 1fr;align-items:center}.mg19-client-file-card .mg19-client-btn{grid-column:1 / -1;width:100%;justify-content:center}}


/* V81 - aviso legal previo al registro */
.mg19-prelegal-box{border:1px solid #d8e2ee;background:#f8fbff;border-radius:14px;padding:16px;margin:14px 0 18px 0;box-shadow:0 6px 18px rgba(15,23,42,.04)}
.mg19-prelegal-box h3{margin:0 0 8px 0;color:#061a3a;font-size:18px;line-height:1.3}
.mg19-prelegal-box p{margin:0 0 10px 0;color:#30445f;font-size:14px;line-height:1.55}
.mg19-prelegal-box ul{margin:8px 0 10px 20px;padding:0;color:#30445f;font-size:13px;line-height:1.55}
.mg19-prelegal-scroll{max-height:220px;overflow:auto;border:1px solid #e5edf7;background:#fff;border-radius:10px;padding:12px;margin-top:10px}
.mg19-prelegal-small{font-size:12px!important;color:#5b6d85!important}
.mg19-prelegal-policy{display:none}
.mg19-prelegal-policy.active{display:block}
