/*
Theme Name: Totem
Author: Alberto
Version: 1.0.0
Text Domain: totem
*/



/* YouTube responsive, centrado y con buen tamaño */
.wp-block-embed,
.wp-block-embed-youtube,
.wp-block-embed__wrapper{ width:100%; }

.wp-block-embed-youtube,
.wp-block-embed.is-type-video{
  margin-left:auto !important;
  margin-right:auto !important;
  max-width:980px;
}

.wp-block-embed__wrapper iframe,
figure.wp-block-embed iframe,
iframe[src*="youtube.com"],
iframe[src*="youtu.be"]{
  display:block;
  width:100% !important;
  max-width:980px;
  margin:18px auto !important;
  border:0;
  border-radius:14px;
  box-shadow:0 14px 34px rgba(0,0,0,.22);
  aspect-ratio:16/9;
  height:auto;
}

@media (max-width:768px){
  .wp-block-embed-youtube,
  .wp-block-embed.is-type-video,
  .wp-block-embed-youtube iframe,
  iframe[src*="youtube.com"],
  iframe[src*="youtu.be"]{
    max-width:100% !important;
    margin:14px auto !important;
    border-radius:12px;
  }
}

/* fallback */
.wp-block-embed__wrapper{ position:relative; }
.wp-block-embed__wrapper::before{ content:""; display:block; padding-top:56.25%; }
.wp-block-embed__wrapper iframe{ position:absolute; inset:0; width:100% !important; height:100% !important; }


/* Espaciado vertical antes y después de cada video */
.wp-block-embed,
.wp-block-embed-youtube,
.wp-block-embed.is-type-video{
  margin-top: 42px !important;
  margin-bottom: 42px !important;
}

/* Mobile: un poco menos de aire */
@media (max-width:768px){
  .wp-block-embed,
  .wp-block-embed-youtube,
  .wp-block-embed.is-type-video{
    margin-top: 28px !important;
    margin-bottom: 28px !important;
  }
}




/* =========================
   TIPOGRAFÍA GLOBAL (más grande y legible)
   ========================= */
:root{
  --mv-body-size: 18px;        /* PC */
  --mv-body-line: 1.75;
  --mv-body-color:#101418;
  --mv-link:#123a7a;
  --mv-link-hover:#1a5cff;
}

html{ font-size: var(--mv-body-size); }

body{
  color: var(--mv-body-color);
  line-height: var(--mv-body-line);
}

/* Contenido típico WordPress */
.entry-content,
.wp-block-post-content,
.page .entry-content{
  font-size: 1rem;
}

/* Títulos un poco más claros y con mejor ritmo */
.entry-content h1{ font-size: clamp(30px, 3.2vw, 46px); line-height:1.15; }
.entry-content h2{ font-size: clamp(24px, 2.4vw, 34px); line-height:1.18; margin-top:1.2em; }
.entry-content h3{ font-size: clamp(20px, 2.0vw, 28px); line-height:1.22; margin-top:1.1em; }
.entry-content p,
.entry-content li{ font-size: 1rem; }

/* Tablas más legibles */
.entry-content table{
  width:100%;
  border-collapse:collapse;
  font-size: 0.98rem;
}
.entry-content th,
.entry-content td{
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
}
.entry-content th{
  font-weight: 800;
  background: rgba(0,0,0,.03);
}

/* =========================
   LINKS BONITOS (anchor links)
   ========================= */
.entry-content a,
.wp-block-post-content a{
  color: var(--mv-link);
  font-weight: 800;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: transform .15s ease, color .15s ease, background-size .15s ease, opacity .15s ease;
  opacity: .98;
}

.entry-content a:hover,
.wp-block-post-content a:hover{
  color: var(--mv-link-hover);
  background-size: 100% 4px;
}

/* Links dentro de títulos: más elegantes y visibles */
.entry-content h1 a,
.entry-content h2 a,
.entry-content h3 a{
  font-weight: 900;
  background-size: 100% 3px;
}
.entry-content h1 a:hover,
.entry-content h2 a:hover,
.entry-content h3 a:hover{
  background-size: 100% 5px;
}

/* Foco accesible (teclado) */
.entry-content a:focus-visible,
.wp-block-post-content a:focus-visible{
  outline: 3px solid rgba(26, 92, 255, .35);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================
   ANCHOR TARGET (cuando brincas con #algo)
   sube un poco para que no quede pegado al header
   ========================= */
:target{
  scroll-margin-top: 130px;
}

/* =========================
   MOBILE: un poco más grande y cómodo
   ========================= */
@media (max-width: 768px){
  :root{ --mv-body-size: 17px; }
  .entry-content th,
  .entry-content td{ padding: 10px 12px; }
}



/* =========================
   TIPOGRAFÍA GLOBAL (más grande y legible)
   ========================= */
:root{
  --mv-body-size: 18px;        /* PC */
  --mv-body-line: 1.75;
  --mv-body-color:#101418;
  --mv-link:#123a7a;
  --mv-link-hover:#1a5cff;
}

html{ font-size: var(--mv-body-size); }

body{
  color: var(--mv-body-color);
  line-height: var(--mv-body-line);
}

/* Contenido típico WordPress */
.entry-content,
.wp-block-post-content,
.page .entry-content{
  font-size: 1rem;
}

/* Títulos un poco más claros y con mejor ritmo */
.entry-content h1{ font-size: clamp(30px, 3.2vw, 46px); line-height:1.15; }
.entry-content h2{ font-size: clamp(24px, 2.4vw, 34px); line-height:1.18; margin-top:1.2em; }
.entry-content h3{ font-size: clamp(20px, 2.0vw, 28px); line-height:1.22; margin-top:1.1em; }
.entry-content p,
.entry-content li{ font-size: 1rem; }

/* Tablas más legibles */
.entry-content table{
  width:100%;
  border-collapse:collapse;
  font-size: 0.98rem;
}
.entry-content th,
.entry-content td{
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.10);
  vertical-align: top;
}
.entry-content th{
  font-weight: 800;
  background: rgba(0,0,0,.03);
}

/* =========================
   LINKS BONITOS (anchor links)
   ========================= */
.entry-content a,
.wp-block-post-content a{
  color: var(--mv-link);
  font-weight: 800;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: transform .15s ease, color .15s ease, background-size .15s ease, opacity .15s ease;
  opacity: .98;
}

.entry-content a:hover,
.wp-block-post-content a:hover{
  color: var(--mv-link-hover);
  background-size: 100% 4px;
}

/* Links dentro de títulos: más elegantes y visibles */
.entry-content h1 a,
.entry-content h2 a,
.entry-content h3 a{
  font-weight: 900;
  background-size: 100% 3px;
}
.entry-content h1 a:hover,
.entry-content h2 a:hover,
.entry-content h3 a:hover{
  background-size: 100% 5px;
}

/* Foco accesible (teclado) */
.entry-content a:focus-visible,
.wp-block-post-content a:focus-visible{
  outline: 3px solid rgba(26, 92, 255, .35);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================
   ANCHOR TARGET (cuando brincas con #algo)
   sube un poco para que no quede pegado al header
   ========================= */
:target{
  scroll-margin-top: 130px;
}

/* =========================
   MOBILE: un poco más grande y cómodo
   ========================= */
@media (max-width: 768px){
  :root{ --mv-body-size: 17px; }
  .entry-content th,
  .entry-content td{ padding: 10px 12px; }
}
 

/* =========================
   ANCHOR LINKS FORZADOS
   ========================= */

/* Normal (no clic) */
.entry-content a,
.wp-block-post-content a,
.entry-content a:link,
.wp-block-post-content a:link{
  color:#18b6a4 !important;
  font-weight:800;
  text-decoration:none;
}

/* Hover */
.entry-content a:hover,
.wp-block-post-content a:hover{
  color:#0fd1bc !important;
  text-decoration:underline;
}

/* Visitado (ya clickeado) */
.entry-content a:visited,
.wp-block-post-content a:visited{
  color:#7b5cff !important; /* morado */
}

/* Activo / focus (click presionado o teclado) */
.entry-content a:active,
.entry-content a:focus,
.wp-block-post-content a:active,
.wp-block-post-content a:focus{
  color:#9a7dff !important;
  outline:none;
}

/* =========================
   LINKS INLINE QUE NO SE VEAN RAROS
   ========================= */

/* Texto normal: que el link no cambie el grosor */
.mv-content p a,
.mv-content li a,
.mv-content blockquote a{
  font-weight: inherit !important;
  color:#18b6a4 !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(24,182,164,.45);
  padding-bottom: 1px;
}

/* Hover: más marcado pero elegante */
.mv-content p a:hover,
.mv-content li a:hover,
.mv-content blockquote a:hover{
  border-bottom-color: rgba(24,182,164,.95);
}

/* Visitado: morado pero igual de fino */
.mv-content p a:visited,
.mv-content li a:visited,
.mv-content blockquote a:visited{
  color:#7b5cff !important;
  border-bottom-color: rgba(123,92,255,.55);
}

/* En headings sí puede ser un poquito más “pro”, pero sin saltos raros */
.mv-content h1 a,
.mv-content h2 a,
.mv-content h3 a,
.mv-content h4 a{
  font-weight: inherit !important;
  color:#18b6a4 !important;
  text-decoration:none !important;
  border-bottom: 3px solid rgba(24,182,164,.40);
  padding-bottom: 2px;
}

.mv-content h1 a:visited,
.mv-content h2 a:visited,
.mv-content h3 a:visited,
.mv-content h4 a:visited{
  color:#7b5cff !important;
  border-bottom-color: rgba(123,92,255,.50);
}

/* =========================
   LINKS INLINE QUE NO SE VEAN RAROS
   ========================= */

/* Texto normal: que el link no cambie el grosor */
.mv-content p a,
.mv-content li a,
.mv-content blockquote a{
  font-weight: inherit !important;
  color:#18b6a4 !important;
  text-decoration: none !important;
  border-bottom: 2px solid rgba(24,182,164,.45);
  padding-bottom: 1px;
}

/* Hover: más marcado pero elegante */
.mv-content p a:hover,
.mv-content li a:hover,
.mv-content blockquote a:hover{
  border-bottom-color: rgba(24,182,164,.95);
}

/* Visitado: morado pero igual de fino */
.mv-content p a:visited,
.mv-content li a:visited,
.mv-content blockquote a:visited{
  color:#7b5cff !important;
  border-bottom-color: rgba(123,92,255,.55);
}

/* En headings sí puede ser un poquito más “pro”, pero sin saltos raros */
.mv-content h1 a,
.mv-content h2 a,
.mv-content h3 a,
.mv-content h4 a{
  font-weight: inherit !important;
  color:#18b6a4 !important;
  text-decoration:none !important;
  border-bottom: 3px solid rgba(24,182,164,.40);
  padding-bottom: 2px;
}

.mv-content h1 a:visited,
.mv-content h2 a:visited,
.mv-content h3 a:visited,
.mv-content h4 a:visited{
  color:#7b5cff !important;
  border-bottom-color: rgba(123,92,255,.50);
}


/* =========================
   Contact Form 7 - PRO UI (FIX SIN HUECOS)
   ========================= */

/* Contenedor general del form */
.wpcf7{
  max-width: 780px;
  margin: 48px auto 64px !important;
  padding: 0 18px;
}

/* Tarjeta */
.wpcf7 form.wpcf7-form{
  background: #ffffff;
  border: 1px solid rgba(15,31,23,.10);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.10);
  padding: 28px 26px;
}

/* Separación estándar */
.wpcf7 form.wpcf7-form p{
  margin: 0 0 16px !important;
}

/* Labels */
.wpcf7 form.wpcf7-form label{
  display:block;
  font-weight: 800;
  font-size: 14px;
  color: rgba(15,31,23,.85);
  margin: 0 0 8px;
}

/* Inputs, selects, textarea */
.wpcf7 .wpcf7-form-control:not(.wpcf7-submit):not(.wpcf7-acceptance),
.wpcf7 input[type="text"],
.wpcf7 input[type="email"],
.wpcf7 input[type="tel"],
.wpcf7 input[type="url"],
.wpcf7 input[type="number"],
.wpcf7 select,
.wpcf7 textarea{
  width: 100% !important;
  box-sizing: border-box;
  border-radius: 14px;
  border: 1px solid rgba(15,31,23,.18);
  background: rgba(15,31,23,.03);
  padding: 14px 14px;
  font-size: 16px;
  font-weight: 600;
  color: rgba(15,31,23,.92);
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}

/* Textarea */
.wpcf7 textarea{
  min-height: 140px;
  resize: vertical;
}

/* Focus PRO */
.wpcf7 .wpcf7-form-control:focus,
.wpcf7 input:focus,
.wpcf7 select:focus,
.wpcf7 textarea:focus{
  border-color: rgba(24,182,164,.70);
  background: rgba(24,182,164,.05);
  box-shadow: 0 0 0 6px rgba(24,182,164,.16);
}

/* Placeholders */
.wpcf7 ::placeholder{
  color: rgba(15,31,23,.45);
  font-weight: 600;
}

/* Botón */
.wpcf7 .wpcf7-submit{
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .2px;
  cursor: pointer;
  background: linear-gradient(90deg, rgba(24,182,164,1), rgba(10,127,72,1));
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.wpcf7 .wpcf7-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0,0,0,.20);
  filter: brightness(1.05);
}

.wpcf7 .wpcf7-submit:active{
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(0,0,0,.16);
}

/* Mensajes CF7 */
.wpcf7 .wpcf7-response-output{
  margin: 18px 0 0 !important;
  padding: 14px 14px !important;
  border-radius: 14px !important;
  font-weight: 800;
  border: 1px solid rgba(15,31,23,.12) !important;
  background: rgba(15,31,23,.04) !important;
  color: rgba(15,31,23,.90) !important;
}

.wpcf7 .wpcf7-not-valid-tip{
  font-weight: 800;
  font-size: 13px;
  margin-top: 8px;
  color: #b42318;
}

/* Spinner */
.wpcf7 .wpcf7-spinner{
  margin-left: 10px;
}

/* =========================
   Desktop PRO: filas label + input (sin huecos)
   ========================= */
@media (min-width: 820px){

  /* Más ancho solo en PC */
  .wpcf7{
    max-width: 1100px;
    padding-left: 24px;
    padding-right: 24px;
  }

  .wpcf7 form.wpcf7-form{
    padding: 34px 34px;
  }

  /* Cada <p> se vuelve una fila: label fijo, input flexible */
  .wpcf7 form.wpcf7-form p{
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 0 0 16px !important;
  }

  /* Label como columna izquierda, centrado vertical */
  .wpcf7 form.wpcf7-form label{
    flex: 0 0 260px;     /* ajusta 220-300 si quieres */
    margin: 0;
    line-height: 1.2;
  }

  /* El wrapper de CF7 toma el espacio */
  .wpcf7 form.wpcf7-form .wpcf7-form-control-wrap{
    flex: 1 1 auto;
    min-width: 0;
  }

  /* El textarea se ve mejor en top align */
  .wpcf7 form.wpcf7-form p:nth-last-child(2){
    align-items: flex-start;
  }

  /* Textarea y submit a ancho completo */
  .wpcf7 form.wpcf7-form p:nth-last-child(2),
  .wpcf7 form.wpcf7-form p:last-child{
    display: block;
  }

  /* Si el botón quedara angosto por markup, lo forzamos */
  .wpcf7 form.wpcf7-form p:last-child .wpcf7-submit{
    width: 100%;
  }
}

/* Mobile ajustes */
@media (max-width: 819px){
  .wpcf7 form.wpcf7-form{
    padding: 22px 18px;
  }
}


/* =========================
   Bien
   ========================= */

/* =========================
   Botón flotante "Subir arriba" (PRO – Compact + Smooth)
   PON ESTE BLOQUE AL FINAL DEL style.css
   ========================= */

.mv-to-top{
  position: fixed;
  right: 34px !important;
  bottom: 150px !important; /* más abajo (PC) */
  z-index: 9999;

  width: 56px;              /* ⬅️ un poco más pequeño */
  height: 56px;             /* ⬅️ un poco más pequeño */
  border: 0;
  border-radius: 999px;
  cursor: pointer;

  background: linear-gradient(135deg, rgba(24,182,164,.76), rgba(10,127,72,.76));
  backdrop-filter: blur(10px);

  box-shadow:
    0 18px 44px rgba(0,0,0,.26),
    inset 0 1px 0 rgba(255,255,255,.22);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  opacity: 0;
  transform: translateY(18px) scale(.92);
  pointer-events: none;

  transition:
    opacity .22s ease,
    transform .22s ease,
    box-shadow .22s ease,
    filter .22s ease;
}

/* visible (SIN animación flotante para que no “salte”) */
.mv-to-top.is-visible{
  opacity: .72;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: none !important; /* ⬅️ clave */
}

/* Hover elegante */
.mv-to-top:hover{
  opacity: 1;
  transform: translateY(-2px) scale(1.05);
  box-shadow:
    0 26px 70px rgba(0,0,0,.32),
    inset 0 1px 0 rgba(255,255,255,.28);
  filter: brightness(1.07);
}

/* Active real */
.mv-to-top:active{
  transform: translateY(0) scale(.98);
  box-shadow: 0 14px 34px rgba(0,0,0,.24);
}

/* Flecha */
.mv-to-top-icon{
  color:#fff;
  font-size: 20px; /* ⬅️ un poco más pequeño */
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

/* Halo suave */
.mv-to-top::before{
  content:"";
  position:absolute;
  inset:-14px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(24,182,164,.18), rgba(24,182,164,0) 62%);
  opacity:.85;
  pointer-events:none;
}

/* Shine sutil */
.mv-to-top::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:999px;
  background: linear-gradient(120deg, rgba(255,255,255,0) 30%, rgba(255,255,255,.22) 50%, rgba(255,255,255,0) 70%);
  transform: translateX(-120%);
  opacity:.55;
  pointer-events:none;
}

.mv-to-top:hover::after{
  transition: transform .8s ease;
  transform: translateX(120%);
}

/* ===== MOBILE ===== */
@media (max-width: 768px){
  .mv-to-top{
    right: 16px !important;
    bottom: 120px !important; /* más abajo (mobile) */
    width: 50px;              /* ⬅️ más pequeño */
    height: 50px;             /* ⬅️ más pequeño */
  }
  .mv-to-top-icon{ font-size: 18px; }
}

/* Safe-area SUMA sin bloquear */
@supports (padding: max(0px)){
  .mv-to-top{
    bottom: calc(150px + env(safe-area-inset-bottom)) !important;
    right:  calc(34px + env(safe-area-inset-right)) !important;
  }
  @media (max-width: 768px){
    .mv-to-top{
      bottom: calc(120px + env(safe-area-inset-bottom)) !important;
      right:  calc(16px + env(safe-area-inset-right)) !important;
    }
  }
}



/* =========================
   MV UI GLOBAL
   SOLO inputs + botones (NO texto)
   EXCLUYE Contact Form 7
   ========================= */

/* =========================
   INPUTS / SELECTS / TEXTAREA
   ========================= */

.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(
  input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
){
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;

  border-radius: 14px !important;
  border: 1px solid rgba(15,31,23,.18) !important;
  background: rgba(15,31,23,.03) !important;

  padding: 12px 14px !important;
  min-height: 44px;

  font-size: 16px;
  font-weight: 600;

  /* TEXTO INTERNO SOLAMENTE */
  color: rgba(15,31,23,.92) !important;

  outline: none !important;

  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

/* Textarea */
.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) textarea{
  min-height: 140px;
  resize: vertical;
}

/* =========================
   FOCUS – GLOW PREMIUM (NO VERDE SÓLIDO)
   ========================= */

.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(
  input:not([type="submit"]):not([type="button"]):not([type="reset"]):not([type="checkbox"]):not([type="radio"]),
  select,
  textarea
):focus{
  border-color: rgba(24,182,164,.38) !important;
  background: rgba(15,31,23,.02) !important;

  /* Glow elegante tipo glass */
  box-shadow:
    0 0 0 4px rgba(24,182,164,.12),
    0 10px 22px rgba(0,0,0,.08) !important;
}

/* Placeholder */
.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(input, textarea)::placeholder{
  color: rgba(15,31,23,.45) !important;
  font-weight: 600;
}

/* =========================
   CHECKBOX / RADIO
   ========================= */

.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(
  input[type="checkbox"],
  input[type="radio"]
){
  width: 18px;
  height: 18px;
  accent-color: rgb(24,182,164);
}

/* =========================
   BOTONES (NO CF7)
   ========================= */

.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"]
){
  border: 0 !important;
  border-radius: 14px !important;
  padding: 12px 18px !important;

  font-size: 15px;
  font-weight: 900;
  letter-spacing: .2px;

  cursor: pointer;

  background: linear-gradient(
    90deg,
    rgba(24,182,164,1),
    rgba(10,127,72,1)
  ) !important;

  box-shadow: 0 16px 34px rgba(0,0,0,.16) !important;

  color: #ffffff !important;

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

/* Hover */
.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"]
):hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 44px rgba(0,0,0,.20) !important;
  filter: brightness(1.05);
}

/* Active */
.mv-content :where(form):not(.wpcf7-form):not(.wpcf7 *) :where(
  button,
  input[type="submit"],
  input[type="button"],
  input[type="reset"]
):active{
  transform: translateY(0);
  box-shadow: 0 12px 28px rgba(0,0,0,.16) !important;
}



/* =========================
   TIPOGRAFÍA SYSTEM UI
   Estilo mxmarks.com (texto más grande)
   ========================= */

:root{
  --mv-font-system: -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell,
    "Helvetica Neue", Arial, sans-serif;

  --mv-text-color: #0f172a;
  --mv-heading-color: #020617;
}

/* Base global */
html{
  font-size: 19px;
}

html, body{
  font-family: var(--mv-font-system);
  color: var(--mv-text-color);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* CONTENIDO */
.entry-content,
.wp-block-post-content,
.page .entry-content,
.mv-content{
  font-family: var(--mv-font-system);
  font-weight: 400;
}

/* Párrafos */
.entry-content p,
.wp-block-post-content p,
.mv-content p{
  font-size: 1.05rem;
  line-height: 1.8;
  font-weight: 400;
}

/* Listas */
.entry-content li,
.wp-block-post-content li{
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =========================
   TÍTULOS (legal / SaaS)
   ========================= */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.wp-block-post-content h1,
.wp-block-post-content h2,
.wp-block-post-content h3,
.wp-block-post-content h4{
  font-family: var(--mv-font-system);
  color: var(--mv-heading-color);
  font-weight: 800;
  letter-spacing: -0.025em;
}

/* ⬇️ H1 AJUSTADO (más controlado, como antes) */
.entry-content h1{
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.14;
}

/* Resto igual */
.entry-content h2{
  font-size: clamp(28px, 2.8vw, 38px);
  line-height: 1.18;
}

.entry-content h3{
  font-size: clamp(24px, 2.3vw, 30px);
  line-height: 1.22;
}

.entry-content h4{
  font-size: 22px;
  line-height: 1.25;
}

/* Espaciado limpio */
.entry-content h2,
.entry-content h3,
.entry-content h4{
  margin-top: 1.6em;
}

/* =========================
   LINKS (sobrios y pro)
   ========================= */

.entry-content a,
.wp-block-post-content a{
  font-family: var(--mv-font-system);
  font-weight: 600;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 768px){
  html{
    font-size: 17.5px;
  }

  .entry-content p,
  .entry-content li{
    font-size: 1.02rem;
  }

  .entry-content h1{
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.18;
  }
}
