/*
Theme Name: Maternal Warmth
Theme URI: https://example.com/maternal-warmth
Author: Maternal Warmth Team
Author URI: https://example.com
Description: Theme cálido, emocional y minimalista enfocado en maternidad y bebés demandantes. Diseño basado en tarjetas, tonos pastel, totalmente responsive y optimizado para SEO. Sin necesidad de constructores visuales.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: maternal-warmth
Tags: blog, one-column, two-columns, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, block-styles, wide-blocks
*/

/* ================= Design Tokens ================= */
:root{
  --mw-bg:#fdfaf6;
  --mw-surface:#ffffff;
  --mw-cream:#f7efe5;
  --mw-beige:#ead7c2;
  --mw-pink:#f6d7d7;
  --mw-pink-strong:#e8a9a9;
  --mw-green:#d8e8d2;
  --mw-green-strong:#9bbf8a;
  --mw-text:#3a3530;
  --mw-muted:#7a6f66;
  --mw-border:#ece3d6;
  --mw-primary:#c98a8a;
  --mw-primary-hover:#b06f6f;
  --mw-radius:18px;
  --mw-shadow:0 8px 24px rgba(122,111,102,.08);
  --mw-shadow-lg:0 18px 40px rgba(122,111,102,.14);
  --mw-font-body:'Nunito', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mw-font-heading:'Lora', Georgia, 'Times New Roman', serif;
  --mw-container:1140px;
}

/* ================= Reset / Base ================= */
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:var(--mw-font-body);
  background:var(--mw-bg);
  color:var(--mw-text);
  line-height:1.7;
  font-size:17px;
  -webkit-font-smoothing:antialiased;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--mw-primary);text-decoration:none;transition:color .2s ease}
a:hover{color:var(--mw-primary-hover)}
h1,h2,h3,h4,h5,h6{font-family:var(--mw-font-heading);color:var(--mw-text);line-height:1.25;margin:0 0 .6em;font-weight:600}
h1{font-size:clamp(2rem,4.5vw,3rem)}
h2{font-size:clamp(1.6rem,3vw,2.2rem)}
h3{font-size:1.35rem}
p{margin:0 0 1.1em}
.mw-container{max-width:var(--mw-container);margin:0 auto;padding:0 1.25rem}

/* ================= Buttons ================= */
.mw-btn{
  display:inline-block;padding:.85rem 1.6rem;border-radius:999px;
  background:var(--mw-primary);color:#fff;font-weight:700;
  box-shadow:var(--mw-shadow);transition:transform .2s ease, background .2s ease;
  border:none;cursor:pointer;font-family:var(--mw-font-body);
}
.mw-btn:hover{background:var(--mw-primary-hover);color:#fff;transform:translateY(-2px)}
.mw-btn--ghost{background:transparent;color:var(--mw-primary);border:2px solid var(--mw-primary);box-shadow:none}
.mw-btn--ghost:hover{background:var(--mw-primary);color:#fff}

/* ================= Header ================= */
.mw-site-header{
  position:sticky;top:0;z-index:50;
  background:rgba(253,250,246,.92);backdrop-filter:saturate(140%) blur(8px);
  border-bottom:1px solid var(--mw-border);
}
.mw-header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1rem 24px;max-width:1200px;
  margin:0 auto;}
.mw-brand{display:flex;align-items:center;gap:.6rem;font-family:var(--mw-font-heading);font-size:1.25rem;color:var(--mw-text)}
.mw-brand__mark{width:36px;height:36px;border-radius:50%;background:linear-gradient(135deg,var(--mw-pink),var(--mw-beige));display:grid;place-items:center;color:#fff;font-weight:700}
.mw-nav{display:flex;align-items:center;gap:1.25rem}
.mw-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:1.25rem;flex-wrap:wrap}
.mw-nav a{color:var(--mw-text);font-weight:600}
.mw-nav a:hover{color:var(--mw-primary)}
.mw-menu-toggle{display:none;background:transparent;border:0;font-size:1.6rem;cursor:pointer;color:var(--mw-text)} 
.custom-logo {
	max-height: 50px;
	width: auto;
}


/* --- DROPDOWN --- */
.mw-nav ul li {
	position: relative;
}

/* submenu oculto */
.mw-nav ul li ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: #fff;
	display: none;
	flex-direction: column;
	min-width: 200px;
	padding: 10px 0;
	box-shadow: 0 10px 20px rgba(0,0,0,0.08);
	border-radius: 8px;
}

/* mostrar al pasar el mouse */
.mw-nav ul li:hover > ul {
	display: flex;
}

/* items del dropdown */
.mw-nav ul li ul li a {
	padding: 10px 15px;
	display: block;
	font-weight: 500;
}

/* flechita */
.mw-nav ul li.menu-item-has-children > a::after {
	content: " ▾";
	font-size: 12px;
	margin-left: 5px;
}



/* ================= Hero ================= */
.mw-hero{padding:4.5rem 0 3rem;background:radial-gradient(1200px 500px at 80% -10%,var(--mw-pink) 0%,transparent 60%),radial-gradient(900px 400px at 0% 10%,var(--mw-green) 0%,transparent 55%),var(--mw-bg)}
.mw-hero__grid{display:grid;grid-template-columns:1.1fr .9fr;gap:3rem;align-items:center}
.mw-hero h1{margin-bottom:.4em}
.mw-hero__lead{font-size:1.15rem;color:var(--mw-muted);max-width:52ch}
.mw-hero__cta{margin-top:1.5rem;display:flex;gap:.75rem;flex-wrap:wrap}
.mw-hero__art{aspect-ratio:1/1;border-radius:50%;background:linear-gradient(135deg,var(--mw-cream),var(--mw-pink));box-shadow:var(--mw-shadow-lg);overflow:hidden;display:grid;place-items:center;font-size:6rem}

/* ================= Cards / Cluster ================= */
.mw-section{padding:4rem 0}
.mw-section__head{text-align:center;max-width:60ch;margin:0 auto 2.5rem}
.mw-section__head p{color:var(--mw-muted)}
.mw-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.mw-card{
  background:var(--mw-surface);border:1px solid var(--mw-border);border-radius:var(--mw-radius);
  padding:1.75rem;box-shadow:var(--mw-shadow);transition:transform .25s ease, box-shadow .25s ease;
  display:flex;flex-direction:column;gap:.75rem;
}
.mw-card:hover{transform:translateY(-4px);box-shadow:var(--mw-shadow-lg)}
.mw-card__icon{width:52px;height:52px;border-radius:14px;display:grid;place-items:center;font-size:1.5rem;background:var(--mw-cream)}
.mw-card--pink .mw-card__icon{background:var(--mw-pink)}
.mw-card--green .mw-card__icon{background:var(--mw-green)}
.mw-card--beige .mw-card__icon{background:var(--mw-beige)}
.mw-card h3{margin:.2em 0}
.mw-card a{color:var(--mw-text);font-weight:700}
.mw-card a:hover{color:var(--mw-primary)}

/* Posts grid */
.mw-posts{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.mw-post-card{background:var(--mw-surface);border:1px solid var(--mw-border);border-radius:var(--mw-radius);overflow:hidden;box-shadow:var(--mw-shadow);display:flex;flex-direction:column;transition:transform .25s ease}
.mw-post-card:hover{transform:translateY(-4px)}
.mw-post-card__thumb{aspect-ratio:16/10;background:linear-gradient(135deg,var(--mw-cream),var(--mw-pink));overflow:hidden}
.mw-post-card__thumb img{width:100%;height:100%;object-fit:cover}
.mw-post-card__body{padding:1.25rem 1.25rem 1.5rem;display:flex;flex-direction:column;gap:.5rem}
.mw-post-card__meta{font-size:.85rem;color:var(--mw-muted)}
.mw-post-card__title{font-family:var(--mw-font-heading);font-size:1.2rem;margin:0}
.mw-post-card__title a{color:var(--mw-text)}
.mw-post-card__title a:hover{color:var(--mw-primary)}

/* Testimonials */
.mw-testimonials{display:grid;grid-template-columns:repeat(3,1fr);gap:1.5rem}
.mw-quote{background:var(--mw-cream);border-radius:var(--mw-radius);padding:1.75rem;border:1px solid var(--mw-border)}
.mw-quote p{font-family:var(--mw-font-heading);font-style:italic;color:var(--mw-text)}
.mw-quote cite{display:block;margin-top:.75rem;color:var(--mw-muted);font-style:normal;font-weight:700}

/* Contact CTA */
.mw-cta-band{background:linear-gradient(135deg,var(--mw-pink) 0%,var(--mw-cream) 100%);border-radius:24px;padding:3rem;text-align:center}

/* Single / Article */
.mw-article{max-width:760px;margin:0 auto;padding:3rem 1.25rem}
.mw-article header{margin-bottom:2rem}
.mw-article h1{margin-bottom:.4em}
.mw-article .mw-meta{color:var(--mw-muted);font-size:.95rem}
.mw-article h2{margin-top:2rem}
.mw-article h3{margin-top:1.5rem}
.mw-article blockquote{border-left:4px solid var(--mw-pink-strong);padding:.5rem 1.25rem;margin:1.5rem 0;background:var(--mw-cream);border-radius:0 12px 12px 0}
.mw-article img{border-radius:var(--mw-radius);margin:1.5rem 0}
.mw-article ul,.mw-article ol{padding-left:1.25rem}

/* Breadcrumbs */
.mw-breadcrumbs{font-size:.9rem;color:var(--mw-muted);margin:1.25rem 0}
.mw-breadcrumbs a{color:var(--mw-muted)}
.mw-breadcrumbs a:hover{color:var(--mw-primary)}

/* Archive */
.mw-archive-head{padding:3rem 0 1rem;text-align:center}
.mw-archive-head p{color:var(--mw-muted);max-width:60ch;margin:0 auto}

/* Pagination */
.mw-pagination{display:flex;justify-content:center;gap:.5rem;margin:2.5rem 0}
.mw-pagination a,.mw-pagination span{padding:.5rem .9rem;border-radius:999px;border:1px solid var(--mw-border);color:var(--mw-text)}
.mw-pagination .current{background:var(--mw-primary);color:#fff;border-color:var(--mw-primary)}

/* Footer */
.mw-site-footer{background:#2f2a26;color:#f3ece3;padding:3rem 0 1.5rem;margin-top:4rem}
.mw-footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:2rem;margin-bottom:2rem}
.mw-site-footer h4{color:#fff;font-family:var(--mw-font-heading);margin:0 0 .8rem}
.mw-site-footer a{color:#f3ece3;opacity:.85}
.mw-site-footer a:hover{opacity:1;color:#fff}
.mw-footer-bottom{border-top:1px solid rgba(255,255,255,.1);padding-top:1rem;text-align:center;color:#cdbfb1;font-size:.9rem}
.mw-footer-nav ul{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:.4rem}

/* Forms */
.mw-form{display:flex;flex-direction:column;gap:.9rem;max-width:520px;margin:0 auto}
.mw-form input,.mw-form textarea{
  width:100%;padding:.85rem 1rem;border-radius:14px;border:1px solid var(--mw-border);
  background:#fff;font-family:inherit;font-size:1rem;color:var(--mw-text);
}
.mw-form input:focus,.mw-form textarea:focus{outline:2px solid var(--mw-pink-strong);border-color:var(--mw-pink-strong)}
.mw-form textarea{min-height:140px;resize:vertical}

/* Comments */
.mw-comments{max-width:760px;margin:2rem auto;padding:0 1.25rem}
.mw-comments ol{list-style:none;padding:0}
.mw-comments .comment{background:var(--mw-surface);border:1px solid var(--mw-border);border-radius:var(--mw-radius);padding:1.25rem;margin-bottom:1rem}

/* Utility */
.mw-tag{display:inline-block;background:var(--mw-cream);color:var(--mw-text);padding:.2rem .65rem;border-radius:999px;font-size:.8rem;font-weight:700}
.screen-reader-text{position:absolute !important;clip:rect(1px,1px,1px,1px);height:1px;width:1px;overflow:hidden}

/* ================= Responsive ================= */
@media (max-width: 960px){
  .mw-hero__grid{grid-template-columns:1fr;text-align:center}
  .mw-hero__art{margin:0 auto;max-width:340px}
  .mw-cards,.mw-posts,.mw-testimonials{grid-template-columns:repeat(2,1fr)}
  .mw-footer-grid{grid-template-columns:1fr 1fr}
}
@media (max-width: 640px){
  .mw-menu-toggle{display:block}
  .mw-nav{display:none;position:absolute;top:100%;left:0;right:0;background:var(--mw-bg);border-bottom:1px solid var(--mw-border);padding:1rem}
  .mw-nav.is-open{display:block}
  .mw-nav ul{flex-direction:column;gap:.75rem}
  .mw-cards,.mw-posts,.mw-testimonials,.mw-footer-grid{grid-template-columns:1fr}
  .mw-section{padding:2.5rem 0}
  .mw-hero{padding:2.5rem 0 2rem}
  .mw-cta-band{padding:2rem 1.25rem}
}
@media (max-width: 768px) {

	/* menú vertical */
	.mw-nav ul {
		flex-direction: column;
		gap: 0;
	}

	/* submenú en flujo normal */
	.mw-nav ul li ul {
		position: static;
		display: none;
		box-shadow: none;
		padding-left: 15px;
	}

	/* cuando se abre */
	.mw-nav ul li.open > ul {
		display: block;
	}

	/* espacio entre items */
	.mw-nav ul li {
		padding: 8px 0;
	}

}
@media (max-width: 768px) {
	.custom-logo {
		max-height: 40px;
	}
}
