/*
Theme Name: Divi Child
Template: Divi
Version: 1.0.0
*/

/* =========================================================
   BLOG MONTSE - VARIABLES
========================================================= */
:root{
  --montse-blue-primary:#1492C9;
  --montse-blue-dark:#0B3C5D;
  --montse-blue-medium:#365B9F;
  --montse-blue-soft:#F3FAFF;
  --montse-blue-soft-2:#EAF6FD;
  --montse-text:#264156;
  --montse-text-light:#5D7487;
  --montse-border:rgba(20,146,201,.14);
  --montse-white:#ffffff;
  --montse-shadow:0 18px 50px rgba(11,60,93,.10);
  --montse-radius-xl:28px;
  --montse-radius-lg:22px;
  --montse-radius-md:16px;
}

/* =========================================================
   RESET SOLO PARA EL BLOG
========================================================= */
.montse-blog-page,
.montse-single-page,
.montse-search-page{
  font-family:'Poppins',sans-serif;
  color:var(--montse-text);
  background:linear-gradient(180deg,#ffffff 0%, var(--montse-blue-soft) 100%);
}

.montse-blog-page *,
.montse-single-page *,
.montse-search-page *{
  box-sizing:border-box;
}

.montse-blog-shell,
.montse-single-shell{
  width:min(1180px, calc(100% - 32px));
  margin:0 auto;
}

/* =========================================================
   HERO BLOG
========================================================= */
.montse-blog-hero,
.montse-single-hero{
  position:relative;
  padding:70px 0 34px;
}

.montse-blog-hero__content,
.montse-single-hero__inner{
  background:rgba(255,255,255,.88);
  border:1px solid var(--montse-border);
  border-radius:32px;
  box-shadow:var(--montse-shadow);
  padding:34px;
  backdrop-filter:blur(10px);
}

.montse-blog-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:8px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.2px;
  color:var(--montse-blue-primary);
  background:rgba(20,146,201,.09);
  border:1px solid rgba(20,146,201,.15);
  margin-bottom:16px;
}

.montse-blog-title,
.montse-single-title{
  margin:0;
  color:var(--montse-blue-dark);
  line-height:1.08;
  font-size:clamp(34px, 5vw, 58px);
  font-weight:800;
}

.montse-blog-subtitle{
  margin:16px 0 0;
  max-width:760px;
  color:var(--montse-text-light);
  font-size:17px;
  line-height:1.8;
}

/* =========================================================
   BUSCADOR
========================================================= */
.montse-blog-search{
  margin-top:28px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:center;
  width:100%;
  max-width:760px;
}

.montse-blog-search input[type="search"]{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-width:0;
  height:58px;
  border-radius:18px;
  border:1px solid rgba(20,146,201,.18);
  background:#fff;
  padding:0 18px;
  font-family:'Poppins',sans-serif;
  font-size:15px;
  color:var(--montse-blue-dark);
  outline:none;
  box-shadow:0 10px 24px rgba(20,146,201,.06);
  transition:.25s ease;
}

.montse-blog-search input[type="search"]::placeholder{
  color:#7f95a6;
}

.montse-blog-search input[type="search"]:focus{
  border-color:rgba(20,146,201,.55);
  box-shadow:0 0 0 4px rgba(20,146,201,.08), 0 14px 28px rgba(20,146,201,.10);
}

.montse-blog-search button{
  border:none;
  height:58px;
  padding:0 24px;
  border-radius:18px;
  background:linear-gradient(135deg,var(--montse-blue-primary),var(--montse-blue-medium));
  color:#fff;
  font-family:'Poppins',sans-serif;
  font-size:15px;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 14px 28px rgba(20,146,201,.22);
  transition:transform .22s ease, box-shadow .22s ease, opacity .22s ease;
}

.montse-blog-search button:hover{
  transform:translateY(-2px);
  box-shadow:0 18px 34px rgba(20,146,201,.26);
}

/* =========================================================
   GRID BLOG
========================================================= */
.montse-blog-listing{
  padding:20px 0 80px;
}

.montse-blog-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.montse-blog-card{
  background:#fff;
  border:1px solid var(--montse-border);
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(11,60,93,.08);
  transition:transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.montse-blog-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 48px rgba(11,60,93,.12);
  border-color:rgba(20,146,201,.24);
}

.montse-blog-card__thumb{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
  background:#edf7fd;
}

.montse-blog-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .45s ease;
}

.montse-blog-card:hover .montse-blog-card__thumb img{
  transform:scale(1.05);
}

.montse-blog-card__content{
  padding:22px 22px 24px;
}

.montse-blog-card__meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:14px;
}

.montse-blog-card__date,
.montse-blog-card__cat{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.montse-blog-card__date{
  background:rgba(20,146,201,.08);
  color:var(--montse-blue-primary);
}

.montse-blog-card__cat{
  background:rgba(11,60,93,.07);
  color:var(--montse-blue-dark);
}

.montse-blog-card__title{
  margin:0 0 12px;
  font-size:24px;
  line-height:1.25;
  font-weight:800;
}

.montse-blog-card__title a{
  color:var(--montse-blue-dark);
  text-decoration:none;
}

.montse-blog-card__title a:hover{
  color:var(--montse-blue-primary);
}

.montse-blog-card__excerpt{
  color:var(--montse-text-light);
  font-size:15px;
  line-height:1.85;
}

.montse-blog-card__link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:18px;
  color:var(--montse-blue-primary);
  text-decoration:none;
  font-size:14px;
  font-weight:800;
}

.montse-blog-card__link:hover{
  color:var(--montse-blue-dark);
}

/* =========================================================
   PAGINACIÓN
========================================================= */
.montse-blog-pagination{
  margin-top:42px;
  display:flex;
  justify-content:center;
}

.montse-blog-pagination .page-numbers{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  height:48px;
  margin:0 5px;
  padding:0 14px;
  border-radius:14px;
  text-decoration:none;
  font-weight:700;
  font-size:14px;
  color:var(--montse-blue-dark);
  background:#fff;
  border:1px solid var(--montse-border);
  box-shadow:0 10px 24px rgba(11,60,93,.06);
}

.montse-blog-pagination .page-numbers.current,
.montse-blog-pagination .page-numbers:hover{
  background:linear-gradient(135deg,var(--montse-blue-primary),var(--montse-blue-medium));
  color:#fff;
  border-color:transparent;
}

/* =========================================================
   SINGLE POST
========================================================= */
.montse-single-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-bottom:18px;
  color:var(--montse-text-light);
  font-size:14px;
  font-weight:600;
}

.montse-single-meta__divider{
  opacity:.5;
}

.montse-single-featured{
  margin-top:28px;
  border-radius:26px;
  overflow:hidden;
  box-shadow:0 18px 40px rgba(11,60,93,.10);
}

.montse-single-featured img{
  width:100%;
  height:auto;
  display:block;
}

.montse-single-content-wrap{
  padding:10px 0 50px;
}

.montse-single-content{
  background:#fff;
  border:1px solid var(--montse-border);
  border-radius:28px;
  box-shadow:0 18px 40px rgba(11,60,93,.08);
  padding:40px;
}

/* =========================================================
   ESTILOS DE CONTENIDO DEL ARTÍCULO
========================================================= */
.montse-single-content h2,
.montse-single-content h3,
.montse-single-content h4{
  color:var(--montse-blue-dark);
  margin-top:1.9em;
  margin-bottom:.7em;
  line-height:1.25;
  font-weight:800;
}

.montse-single-content h2{ font-size:clamp(28px,3vw,38px); }
.montse-single-content h3{ font-size:clamp(23px,2.4vw,30px); }
.montse-single-content h4{ font-size:clamp(19px,2vw,24px); }

.montse-single-content p{
  margin:0 0 1.2em;
  color:var(--montse-text);
  font-size:17px;
  line-height:1.95;
}

.montse-single-content strong{
  color:var(--montse-blue-dark);
  font-weight:800;
}

.montse-single-content a{
  color:var(--montse-blue-primary);
  text-decoration:none;
  font-weight:700;
}

.montse-single-content a:hover{
  color:var(--montse-blue-dark);
}

/* LISTAS IMPORTANTES */
.montse-single-content ul,
.montse-single-content ol{
  margin:0 0 1.6em 1.4em;
  padding-left:1.2em;
}

.montse-single-content ul{
  list-style:disc !important;
}

.montse-single-content ol{
  list-style:decimal !important;
}

.montse-single-content li{
  margin:0 0 .75em;
  color:var(--montse-text);
  font-size:17px;
  line-height:1.9;
}

.montse-single-content ul li::marker,
.montse-single-content ol li::marker{
  color:var(--montse-blue-primary);
  font-weight:800;
}

.montse-single-content blockquote{
  margin:1.8em 0;
  padding:24px 24px 24px 28px;
  border-left:5px solid var(--montse-blue-primary);
  background:linear-gradient(180deg, rgba(20,146,201,.06), rgba(20,146,201,.03));
  border-radius:0 20px 20px 0;
  color:var(--montse-blue-dark);
  font-size:18px;
  line-height:1.8;
  font-weight:600;
}

.montse-single-content img{
  max-width:100%;
  height:auto;
  border-radius:20px;
}

.montse-single-content table{
  width:100%;
  border-collapse:collapse;
  margin:2em 0;
  overflow:hidden;
  border-radius:18px;
  box-shadow:0 12px 28px rgba(11,60,93,.08);
}

.montse-single-content table th,
.montse-single-content table td{
  padding:14px 16px;
  border:1px solid rgba(20,146,201,.12);
  text-align:left;
}

.montse-single-content table th{
  background:#eef8fd;
  color:var(--montse-blue-dark);
  font-weight:800;
}

.montse-single-content hr{
  border:none;
  border-top:1px solid rgba(20,146,201,.12);
  margin:2.2em 0;
}

/* =========================================================
   RELACIONADOS
========================================================= */
.montse-related-section{
  padding:0 0 90px;
}

.montse-related-head{
  margin-bottom:26px;
}

.montse-related-head h2{
  margin:0;
  font-size:clamp(28px, 3vw, 40px);
  color:var(--montse-blue-dark);
  line-height:1.15;
  font-weight:800;
}

.montse-related-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
}

.montse-related-card{
  background:#fff;
  border:1px solid var(--montse-border);
  border-radius:24px;
  overflow:hidden;
  box-shadow:0 18px 36px rgba(11,60,93,.08);
  transition:transform .25s ease, box-shadow .25s ease;
}

.montse-related-card:hover{
  transform:translateY(-5px);
  box-shadow:0 24px 40px rgba(11,60,93,.12);
}

.montse-related-card__thumb{
  display:block;
  aspect-ratio:16/10;
  overflow:hidden;
}

.montse-related-card__thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

.montse-related-card__body{
  padding:18px 20px 22px;
}

.montse-related-card__date{
  display:inline-block;
  margin-bottom:10px;
  font-size:12px;
  font-weight:700;
  color:var(--montse-blue-primary);
  background:rgba(20,146,201,.08);
  padding:7px 12px;
  border-radius:999px;
}

.montse-related-card h3{
  margin:0;
  font-size:20px;
  line-height:1.35;
  font-weight:800;
}

.montse-related-card h3 a{
  color:var(--montse-blue-dark);
  text-decoration:none;
}

.montse-related-card h3 a:hover{
  color:var(--montse-blue-primary);
}

/* =========================================================
   EMPTY
========================================================= */
.montse-blog-empty{
  background:#fff;
  border:1px solid var(--montse-border);
  border-radius:26px;
  box-shadow:var(--montse-shadow);
  text-align:center;
  padding:50px 24px;
}

.montse-blog-empty h2{
  margin:0 0 10px;
  color:var(--montse-blue-dark);
  font-size:30px;
}

.montse-blog-empty p{
  margin:0;
  color:var(--montse-text-light);
  font-size:16px;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 980px){
  .montse-blog-grid,
  .montse-related-grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .montse-blog-hero,
  .montse-single-hero{
    padding:50px 0 24px;
  }

  .montse-blog-hero__content,
  .montse-single-hero__inner,
  .montse-single-content{
    padding:28px;
  }

  .montse-blog-title,
  .montse-single-title{
    font-size:clamp(30px, 6vw, 46px);
  }
}

@media (max-width: 767px){
  .montse-blog-shell,
  .montse-single-shell{
    width:min(100% - 20px, 1180px);
  }

  .montse-blog-grid,
  .montse-related-grid{
    grid-template-columns:1fr;
    gap:18px;
  }

  .montse-blog-search{
    grid-template-columns:1fr;
  }

  .montse-blog-search button,
  .montse-blog-search input[type="search"]{
    width:100%;
  }

  .montse-blog-hero__content,
  .montse-single-hero__inner,
  .montse-single-content{
    padding:22px 18px;
    border-radius:24px;
  }

  .montse-single-content p,
  .montse-single-content li{
    font-size:16px;
    line-height:1.85;
  }

  .montse-blog-card__title{
    font-size:22px;
  }

  .montse-related-card h3{
    font-size:19px;
  }
}







.montse-single-content ul{
  list-style-type: disc !important;
  padding-left: 1.4em !important;
  margin-left: 0 !important;
}

.montse-single-content ol{
  list-style-type: decimal !important;
  padding-left: 1.4em !important;
  margin-left: 0 !important;
}

.montse-single-content li{
  display: list-item !important;
}














/* =========================================
   AJUSTE HERO BLOG - MÁS ABAJO Y CENTRADO
========================================= */

/* separa el bloque del blog del menú superior */
.montse-blog-page .montse-blog-hero{
  padding-top: 120px !important;
  padding-bottom: 34px;
}

/* por si Divi o el header flotante lo empuja raro */
.montse-blog-page .montse-blog-shell{
  position: relative;
  z-index: 1;
}

/* centrar contenido del header del blog */
.montse-blog-page .montse-blog-hero__content{
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* badge centrado */
.montse-blog-page .montse-blog-badge{
  margin-left: auto;
  margin-right: auto;
}

/* titulo centrado */
.montse-blog-page .montse-blog-title{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 980px;
}

/* subtitulo centrado */
.montse-blog-page .montse-blog-subtitle{
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  max-width: 760px;
}

/* buscador centrado */
.montse-blog-page .montse-blog-search{
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
}

/* tablet */
@media (max-width: 980px){
  .montse-blog-page .montse-blog-hero{
    padding-top: 95px !important;
  }
}

/* móvil */
@media (max-width: 767px){
  .montse-blog-page .montse-blog-hero{
    padding-top: 100px !important;
  }

  .montse-blog-page .montse-blog-title{
    max-width: 100%;
  }

  .montse-blog-page .montse-blog-subtitle{
    max-width: 100%;
  }
}










/* =========================================
   SEPARACIÓN DE ARTÍCULOS DEL HEADER
========================================= */

.montse-single-page{
  padding-top: 60px;
}

/* por si el hero del artículo sigue pegado */
.montse-single-hero{
  margin-top: 40px;
}

/* tablet */
@media (max-width:980px){
  .montse-single-page{
    padding-top:40px;
  }
}

/* móvil */
@media (max-width:767px){
  .montse-single-page{
    padding-top:20px;
  }
}













/* =========================================
   BLOG EN MÓVIL A 2 COLUMNAS
========================================= */
@media (max-width: 767px){
  .montse-blog-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px;
  }

  .montse-blog-card{
    border-radius: 18px;
  }

  .montse-blog-card__content{
    padding: 14px 14px 16px;
  }

  .montse-blog-card__title{
    font-size: 18px;
    line-height: 1.25;
    margin-bottom: 10px;
  }

  .montse-blog-card__excerpt{
    font-size: 14px;
    line-height: 1.6;
  }

  .montse-blog-card__thumb{
    aspect-ratio: 1 / 1;
  }

  .montse-blog-card__meta{
    gap: 6px;
    margin-bottom: 10px;
  }

  .montse-blog-card__date,
  .montse-blog-card__cat{
    font-size: 11px;
    padding: 6px 9px;
  }

  .montse-blog-card__link{
    margin-top: 12px;
    font-size: 13px;
  }
}
@media (max-width: 767px){
  .montse-blog-card__excerpt{
    display: none;
  }
}







/* =========================================
   TITULOS DEL BLOG EN MOVIL
========================================= */

@media (max-width:767px){

  .montse-blog-card__title{
    font-size:16px;
    line-height:1.35;
    word-break:break-word;
    overflow-wrap:break-word;
  }

  .montse-blog-card__title a{
    display:-webkit-box;
    -webkit-line-clamp:4; /* máximo 4 líneas */
    -webkit-box-orient:vertical;
    overflow:hidden;
  }

}





