/* Elizabeth Charlone · SocialGam — versión 0.6 */
:root {
  --ec-plum: #541047;
  --ec-purple: #88228b;
  --ec-purple-light: #ae5ba8;
  --ec-gold: #ca9a3a;
  --ec-paper: #fffafc;
  --ec-rose: #f7e8f1;
  --ec-ink: #34303a;
  --ec-border: #f0dfe9;
  --ec-width: 1180px;
}
*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ec-ink); background: white; }
body, input, button, textarea, select { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { text-underline-offset: .16em; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #d9ad49; outline-offset: 3px; }
.ec-site-header, .ec-site-footer, .ec-hero, .ec-section { position: relative; isolation: isolate; }
.ec-site-header { z-index: 20; background: rgba(255,252,254,.98); border-bottom: 1px solid #f6eaf0; }
.ec-header-inner { max-width: var(--ec-width); margin: 0 auto; min-height: 104px; padding: 12px 24px; gap: 24px; }
.ec-header-inner.wp-block-group.is-layout-flex { align-items: center; }
.ec-brand { position: relative; min-width: 260px; padding: 8px 0 8px 68px; }
.ec-brand::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 70px; width: 72px; background: url('../images/simbolo-marca.svg') center/contain no-repeat; }
.ec-brand .wp-block-site-title { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.35rem, 2.15vw, 1.75rem); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
.ec-brand .wp-block-site-title a { color: var(--ec-plum); text-decoration: none; }
.ec-brand p { font-size: .63rem; color: #9d6e21; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; line-height: 1.2; margin: 5px 0 0; }
.ec-site-header .wp-block-navigation { gap: clamp(13px, 2.8vw, 30px); }
.ec-site-header .wp-block-navigation-item__content { color: var(--ec-plum); text-decoration: none; font-size: .88rem; padding-block: 8px; }
.ec-site-header .wp-block-navigation-item__content:hover { color: var(--ec-purple); }
.ec-site-header .wp-block-navigation__responsive-container-open { color: var(--ec-plum); }
.ec-site-header .wp-block-navigation-item.current-menu-item > a { color: var(--ec-purple); }
.ec-site-header .wp-block-navigation__responsive-container.is-menu-open { background: #fff8fc; color: var(--ec-plum); }

/* Home */
.ec-hero { overflow: hidden; background: radial-gradient(ellipse at 0% 30%, rgba(250,218,234,.65),transparent 43%),linear-gradient(110deg,#fffafd 0%,#fff 55%,#fffcfa 100%); }
.ec-hero::before { content:""; position:absolute; z-index:-1; width:430px; height:430px; border-radius:50%; top:-170px; left:-260px; background:radial-gradient(circle,#f8dce9,transparent 72%); filter:blur(28px); }
.ec-hero-inner { max-width: var(--ec-width); margin:auto; min-height: 448px; padding: 36px 24px 34px; gap: 18px; }
.ec-hero-copy { flex-basis: 51%; z-index: 2; position: relative; }
.ec-hero-copy .ec-kicker { margin-bottom:16px; }
.ec-kicker { color: var(--ec-plum); letter-spacing: .32em; font-size: .73rem; font-weight: 800; text-transform: uppercase; line-height: 1.5; }
.ec-kicker::after { content:""; display:inline-block; width:52px; height:1px; background:var(--ec-gold); vertical-align: middle; margin-left:14px; }
.ec-kicker--gold { color: #a76d20; }
.ec-hero-copy h1 { color:var(--ec-plum); font-size:clamp(2.65rem,5vw,4.65rem); letter-spacing:-.045em; font-weight:400; line-height:1.02; max-width:720px; margin:0 0 18px; }
.ec-hero-copy p:not(.ec-kicker) { max-width: 500px; font-size:1.03rem; line-height:1.6; margin-bottom:21px; }
.ec-hero-actions { gap:12px; margin-top:0; }
.wp-block-button.ec-button-primary .wp-block-button__link, .ec-button-primary .wp-block-button__link { background:linear-gradient(95deg,#79217f,#971193); box-shadow:0 5px 14px rgba(118,20,115,.12); color:white; border:1px solid transparent; transition:transform .2s,box-shadow .2s; }
.wp-block-button.ec-button-primary .wp-block-button__link:hover { transform:translateY(-2px); box-shadow:0 8px 20px rgba(118,20,115,.22); }
.wp-block-button.ec-button-secondary .wp-block-button__link { border:1px solid var(--ec-gold); background:transparent; color:#95601c; transition: background .2s; }
.wp-block-button.ec-button-secondary .wp-block-button__link:hover { background:#fff5e9; }
.ec-hero-photo { flex-basis: 49%; margin-right:-40px !important; }
.ec-hero-photo img { display:block; height:380px; min-height:380px; width:100%; object-fit:cover; object-position:65% center; border-radius:60px 0 0 70px; -webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 100%); mask-image:linear-gradient(90deg,transparent 0%,#000 22%,#000 100%); }
.ec-hero-photo figure { margin:0; }
.ec-ornament { border:0 !important; height:20px; background:transparent; max-width:300px !important; margin:16px auto 22px !important; opacity:1; position:relative; }
.ec-ornament::before { content:'✦  ☾  ✦'; position:absolute; left:0; top:0; width:100%; height:22px; color:#d5a438; text-align:center; letter-spacing:8px; line-height:22px; font-size:17px; background:linear-gradient(90deg,transparent 0%,#eac76a 19%,transparent 35%, transparent 65%,#eac76a 81%,transparent 100%) center/100% 1px no-repeat; }
.ec-section { padding:20px 24px 60px; overflow:hidden; }
.ec-section > .wp-block-group, .ec-section > .wp-block-columns { max-width:var(--ec-width); margin-left:auto; margin-right:auto; }
.ec-section-intro { text-align:center; max-width:760px; margin:0 auto 24px; }
.ec-section-intro h2 { font-size:clamp(2.3rem,4vw,3.6rem); line-height:1.07; margin:6px auto 12px; }
.ec-section-intro p { font-size:.98rem; margin:0 auto; }
.ec-cards { gap:18px; align-items:stretch !important; }
.ec-cards > .wp-block-column { display:flex; }
.ec-feature-card { background:linear-gradient(140deg,#fdf7fa,#faf0f4); border:1px solid #f8eff4; border-radius:24px; padding:27px 20px 25px; text-align:center; min-height:248px; display:flex; flex-direction:column; justify-content:flex-start; align-items:center; width:100%; box-shadow:0 3px 12px rgba(129,50,114,.025); }
.ec-feature-card .wp-block-image { background:#f3e3f0; display:flex; align-items:center; justify-content:center; border-radius:50%; width:68px; height:68px; margin:0 auto 12px; padding:13px; }
.ec-feature-card img { width:42px; height:42px; object-fit:contain; }
.ec-feature-card h3 { font-size:1.65rem; font-weight:400; line-height:1.2; margin:2px 0 9px; }
.ec-feature-card p { font-size:.87rem; max-width:340px; line-height:1.45; margin:0 auto 14px; }
.ec-feature-card .wp-block-buttons { margin-top:auto; }
.ec-feature-card .wp-block-button__link { color:var(--ec-plum); border:1px solid var(--ec-purple); background:transparent; padding:.46rem 1.15rem; font-size:.8rem; }
.ec-feature-card .wp-block-button__link:hover { color:#fff; background:var(--ec-purple); }
.ec-product { background:radial-gradient(ellipse at 0% 55%,rgba(253,225,238,.88),transparent 30%),radial-gradient(ellipse at 100% 90%,rgba(252,217,236,.8),transparent 32%),#fff; padding-top:45px; padding-bottom:45px; }
.ec-product-inner { gap:5%; align-items:center !important; }
.ec-product-image { flex-basis:43% !important; text-align:center; }
.ec-product-image figure { margin:0 auto; background:transparent; border:0; box-shadow:none; }
.ec-product-image img { display:block; max-height:440px; max-width:100%; width:auto; height:auto; margin-inline:auto; object-fit:contain; background:transparent; border:0; box-shadow:none; filter:drop-shadow(0 13px 12px rgba(58,25,47,.14)); }
.ec-product-copy { flex-basis:52% !important; }
.ec-product-copy h2 { font-size:clamp(2.6rem,4.4vw,4.2rem); line-height:1.08; margin:3px 0 14px; letter-spacing:-.03em; }
.ec-product-copy p:not(.ec-kicker) { font-size:1rem; line-height:1.65; max-width:560px; }
.ec-product-copy .wp-block-buttons { margin-top:20px; }
.ec-resources { padding-top:32px; padding-bottom:55px; background:linear-gradient(#fff,#fffbfd); }
.ec-resource-cards { gap:18px; }
.ec-resource-card { background:#fbf3f7; border-radius:16px; border:1px solid #f9eff3; overflow:hidden; display:grid !important; grid-template-columns: 43% minmax(0,1fr); min-height:146px; gap:0; }
.ec-resource-card .wp-block-image { margin:0; height:100%; }
.ec-resource-card img { display:block; height:100%; width:100%; object-fit:cover; }
.ec-resource-text { padding:15px 14px; }
.ec-resource-text .ec-kicker { font-size:.59rem; letter-spacing:.2em; margin:0 0 7px; }
.ec-resource-text .ec-kicker::after { width:20px; margin-left:5px; }
.ec-resource-text h3 { font-size:1.06rem; line-height:1.2; margin:0 0 10px; }
.ec-resource-text a { color:var(--ec-purple); font-size:.79rem; font-weight:600; }
.ec-about { padding:40px 24px 70px; background:radial-gradient(circle at 6% 50%,rgba(251,220,236,.7),transparent 23%),radial-gradient(circle at 100% 90%,rgba(251,231,241,.8),transparent 23%),white; }
.ec-about-inner { max-width:1010px !important; align-items:center !important; gap:48px; }
.ec-about-photo { flex-basis:31% !important; }
.ec-about-photo figure { width:min(285px,100%); height:auto; aspect-ratio:1; border:2px solid #ddb44a; border-radius:50%; padding:6px; margin:auto; overflow:hidden; }
.ec-about-photo img { border-radius:50%; height:100%; width:100%; object-fit:cover; }
.ec-about-copy { flex-basis:69% !important; }
.ec-about-copy h2 { font-size:clamp(2.5rem,4vw,3.8rem); margin:0 0 13px; }
.ec-about-copy p:not(.ec-kicker) { max-width:650px; margin:0 0 13px; line-height:1.6; }
.ec-about-copy .wp-block-button__link { padding:.52rem 1.15rem; font-size:.83rem; }

/* Footer */
.ec-site-footer { background:linear-gradient(105deg,#f6e7f1,#f9eff4 48%,#f5e3f2); border-top:1px solid #f4dfe9; padding:35px 24px 15px; }
.ec-footer-inner { max-width:var(--ec-width); margin:0 auto; gap:28px; }
.ec-footer-brand { flex-basis:35% !important; }
.ec-footer-brand .ec-brand { min-width:0; }
.ec-footer-links,.ec-footer-contact { flex-basis:32.5% !important; }
.ec-site-footer h3 { font-family:inherit; color:var(--ec-purple); font-weight:700; font-size:.93rem; margin:0 0 12px; }
.ec-site-footer p,.ec-site-footer a { color:var(--ec-plum); font-size:.84rem; line-height:1.55; }
.ec-site-footer .wp-block-navigation { gap:5px; }
.ec-site-footer .wp-block-navigation .wp-block-navigation-item__content { text-decoration:none; }
.ec-site-footer .wp-block-navigation-item__content:hover { text-decoration:underline; }
.ec-footer-small { text-align:center; border-top:1px solid #e6cddc; padding-top:13px; margin-top:25px; color:#815073; font-size:.74rem; }

/* Pages & blog */
.ec-page-shell { padding:54px 24px 88px; background:linear-gradient(180deg,#fffafd,white 230px); }
.ec-page-content { max-width:760px; margin:auto; }
.ec-page-content h1 { font-size:clamp(2.4rem,5vw,4rem); margin:8px 0 26px; }
.ec-page-content h2 { font-size:clamp(1.6rem,2.6vw,2.4rem); margin-top:38px; }
.ec-page-content > .wp-block-post-featured-image img { border-radius:20px; }
.ec-page-content p { line-height:1.75; }
.ec-page-content ul li, .ec-page-content ol li { margin-bottom:8px; }
.ec-archive { max-width:var(--ec-width); margin:auto; }
.ec-archive .wp-block-post-template { gap:28px; }
.ec-archive .wp-block-post { border:1px solid var(--ec-border); border-radius:18px; padding:22px; background:#fffbfd; }
.ec-archive .wp-block-post-title { font-size:1.65rem; }
.ec-archive .wp-block-post-featured-image img { border-radius:12px; aspect-ratio:16/10; object-fit:cover; }
.ec-post-meta { font-size:.84rem; color:#82687c; }
.ec-article-content a { text-decoration:underline; }
.ec-article-content blockquote { padding-left:20px; border-left:3px solid var(--ec-gold); }

/* WooCommerce — skin only; blocks and logic remain WooCommerce's */
.woocommerce .wp-block-woocommerce-product-details, .woocommerce .woocommerce-product-details__short-description { line-height:1.7; }
.woocommerce div.product .product_title, .wc-block-components-product-name, .wc-block-grid__product-title { color:var(--ec-plum); font-family:Georgia,"Times New Roman",serif; }
.woocommerce div.product p.price, .woocommerce div.product span.price, .wc-block-components-product-price { color:var(--ec-purple); }
.woocommerce button.button, .woocommerce a.button, .woocommerce .button.alt, .wc-block-components-button:not(.is-link) { background:var(--ec-purple) !important; color:white !important; border-radius:100px !important; }
.woocommerce button.button:hover, .woocommerce a.button:hover, .wc-block-components-button:not(.is-link):hover { background:var(--ec-plum) !important; }
.woocommerce .woocommerce-breadcrumb { color:#826b7d; font-size:.84rem; }
.woocommerce .woocommerce-breadcrumb a { color:var(--ec-purple); }
.woocommerce .woocommerce-message,.woocommerce .woocommerce-info { border-top-color:var(--ec-gold); }
.woocommerce div.product div.images img { border-radius:12px; }
.wp-site-blocks > .wp-block-group:not(.ec-site-header):not(.ec-site-footer) { margin-block-start:0; }
@media (max-width: 1000px) {
  .ec-header-inner { min-height:90px; }
  .ec-brand { min-width:225px; padding-left:59px; }
  .ec-brand::before { width:58px; height:62px; }
  .ec-site-header .wp-block-navigation { gap:13px; }
  .ec-hero-copy h1 { font-size:clamp(2.4rem,4.6vw,3.6rem); }
  .ec-feature-card { padding:22px 14px; }
  .ec-feature-card h3 { font-size:1.4rem; }
  .ec-resource-card { grid-template-columns:40% 60%; }
}
@media (max-width: 781px) {
  .ec-site-header .wp-block-navigation { justify-content:flex-end; }
  .ec-header-inner { padding:10px 20px; }
  .ec-hero-inner { flex-direction:column-reverse !important; gap:0; min-height:0; padding:0 0 38px; }
  .ec-hero-photo { width:100%; margin-right:0 !important; }
  .ec-hero-photo img { height:340px; min-height:0; border-radius:0 0 60px 60px; object-position:center 38%; -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 82%,transparent 100%); mask-image:linear-gradient(180deg,#000 0%,#000 82%,transparent 100%); }
  .ec-hero-copy { width:100%; padding:0 24px; }
  .ec-hero-copy h1 { max-width:620px; font-size:clamp(2.45rem,7vw,3.6rem); }
  .ec-section { padding:26px 20px 54px; }
  .ec-cards { flex-direction:column; gap:15px; }
  .ec-feature-card { min-height:0; padding:24px; }
  .ec-feature-card p { max-width:430px; }
  .ec-product-inner { flex-direction:column !important; }
  .ec-product-image img { max-height:360px; }
  .ec-product-copy { text-align:center; }
  .ec-product-copy .ec-kicker::after { display:none; }
  .ec-product-copy .wp-block-buttons { justify-content:center; }
  .ec-resource-cards { flex-direction:column; }
  .ec-resource-card { max-width:620px; margin:auto; width:100%; }
  .ec-about-inner { flex-direction:column !important; text-align:center; gap:20px; }
  .ec-about-photo { width:100%; }
  .ec-about-photo figure { width:220px; }
  .ec-about-copy .ec-kicker::after { display:none; }
  .ec-about-copy .wp-block-buttons { justify-content:center; }
  .ec-footer-inner { flex-wrap:wrap !important; }
  .ec-footer-brand { flex-basis:100% !important; }
  .ec-footer-links,.ec-footer-contact { flex-basis:45% !important; }
}
@media (max-width: 520px) {
  .ec-header-inner { min-height:78px; }
  .ec-brand { min-width:0; padding-left:51px; }
  .ec-brand::before { width:52px; height:57px; }
  .ec-brand .wp-block-site-title { font-size:1.26rem; }
  .ec-brand p { letter-spacing:.1em; font-size:.55rem; }
  .ec-hero-photo img { height:255px; }
  .ec-hero-copy { padding:0 18px; }
  .ec-hero-copy h1 { font-size:clamp(2.26rem,10vw,3rem); }
  .ec-hero-actions { flex-direction:column; align-items:stretch; }
  .ec-hero-actions .wp-block-button { width:100%; }
  .ec-hero-actions .wp-block-button__link { width:100%; }
  .ec-kicker { font-size:.64rem; }
  .ec-kicker::after { width:30px; margin-left:7px; }
  .ec-section-intro h2 { font-size:2.25rem; }
  .ec-product-copy h2,.ec-about-copy h2 { font-size:2.5rem; }
  .ec-resource-card { min-height:125px; }
  .ec-resource-text h3 { font-size:.98rem; }
  .ec-footer-inner { flex-direction:column; }
  .ec-footer-links,.ec-footer-contact { flex-basis:100% !important; }
  .ec-page-shell { padding:35px 18px 65px; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; } }
/* Fine tuning after responsive visual review. */
.ec-site-header .ec-header-inner { display:flex; align-items:center; justify-content:space-between; }
.ec-site-header .ec-header-inner > .ec-nav { margin-left:auto; }
.ec-site-header .ec-header-inner > nav { margin-left:auto; }
.ec-hero h1, .ec-section h2, .ec-section h3,
.ec-page-shell h1, .ec-page-shell h2, .ec-page-shell h3 {
  font-family:Georgia,"Times New Roman",serif; font-weight:400;
}
.ec-resource-card { display:flex !important; align-items:stretch; }
.ec-resource-card > .wp-block-image { flex:0 0 43%; width:43%; min-width:0; align-self:stretch; }
.ec-resource-card > .wp-block-image img { display:block; height:100%; width:100%; object-fit:cover; }
.ec-resource-card > .ec-resource-text { flex:1; min-width:0; }
.ec-resource-text { display:flex; flex-direction:column; justify-content:center; }
.ec-resource-text h3 { font-family:Georgia,"Times New Roman",serif; }
.ec-about-photo figure { display:flex; align-items:center; justify-content:center; }
.ec-about-photo img { display:block; aspect-ratio:1; width:100%; height:auto; object-fit:cover; }
.ec-site-footer .ec-footer-inner .wp-block-navigation { display:flex; flex-wrap:wrap; column-gap:12px; }
@media(max-width:781px) { .ec-resource-card > .wp-block-image { flex-basis:40%; width:40%; } }


/* v0.2 — cabecera compacta y logotipo independiente del título SEO del sitio. */
.ec-site-header .ec-header-inner {
  width: 100%;
  max-width: 1260px;
  min-height: 88px;
  padding: 10px 22px;
  gap: 24px;
  flex-wrap: nowrap !important;
  align-items: center;
}
.ec-site-header .ec-brand {
  flex: 0 0 300px;
  width: 300px;
  max-width: 300px;
  min-width: 0;
  padding: 10px 0 10px 61px;
}
.ec-site-header .ec-brand::before { width: 59px; height: 62px; }
.ec-brand .ec-brand-name {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.52rem;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.15;
  margin: 0;
}
.ec-brand .ec-brand-name a {
  display: inline-block;
  color: var(--ec-plum);
  text-decoration: none;
  white-space: nowrap;
}
.ec-brand .ec-brand-tagline {
  color: #9d6e21;
  font-size: .60rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
  line-height: 1.4;
  margin: 5px 0 0;
}
.ec-site-header nav.ec-nav {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  margin-left: auto;
  justify-content: flex-end;
}
.ec-site-header nav.ec-nav .wp-block-navigation__container {
  flex-wrap: nowrap !important;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(13px, 1.6vw, 25px);
}
.ec-site-header nav.ec-nav .wp-block-navigation-item__content {
  white-space: nowrap;
  font-size: .875rem;
}
.ec-site-footer .ec-brand .ec-brand-name { font-size: 1.35rem; }
.ec-site-footer .ec-brand { width: auto; max-width: 330px; }

@media (max-width: 980px) {
  .ec-site-header .ec-brand { flex: 0 0 270px; width: 270px; max-width: 270px; }
  .ec-site-header .ec-brand .ec-brand-name { font-size: 1.35rem; }
  /* Fuerza el menú hamburguesa también en tablets para evitar dos líneas. */
  .ec-site-header nav.ec-nav .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .ec-site-header nav.ec-nav .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .ec-site-header nav.ec-nav .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
  }
  .ec-site-header nav.ec-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
    flex-direction: column;
    align-items: flex-start;
    flex-wrap: wrap !important;
    gap: 12px;
  }
}
@media (max-width: 520px) {
  .ec-site-header .ec-header-inner { min-height: 74px; padding: 8px 17px; }
  .ec-site-header .ec-brand { padding: 8px 0 8px 49px; flex: 0 1 auto; width: auto; max-width: calc(100% - 54px); }
  .ec-site-header .ec-brand::before { width: 46px; height: 49px; }
  .ec-site-header .ec-brand .ec-brand-name { font-size: clamp(1.1rem, 5vw, 1.35rem); }
  .ec-site-header .ec-brand .ec-brand-tagline { font-size: .50rem; letter-spacing: .12em; }
}

/* v0.3 — Cuaderno recortado sobre el fondo de la sección (sin tarjeta blanca). */
.ec-product-image .wp-block-image,
.ec-product-image .wp-block-image img { background:transparent !important; border:0; box-shadow:none; }


/* v0.4 — Recursos: tarjetas más compactas y miniaturas más cercanas a la maqueta aprobada. */
.ec-resources .ec-section-intro { margin-bottom: 22px; }
.ec-resource-cards {
  gap: 20px;
  align-items: stretch;
}
.ec-resource-card {
  background: #fcf5f8;
  border: 1px solid #f5e8ef;
  border-radius: 18px;
  min-height: 0;
  padding: 14px 16px;
  gap: 16px;
  box-shadow: none;
}
.ec-resource-card > .wp-block-image {
  flex: 0 0 152px;
  width: 152px;
  align-self: center;
  margin: 0;
}
.ec-resource-card > .wp-block-image img {
  width: 100%;
  height: 108px;
  min-height: 108px;
  max-height: 108px;
  object-fit: cover;
  border-radius: 14px;
}
.ec-resource-card > .ec-resource-text {
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
}
.ec-resource-text {
  padding: 2px 0;
  justify-content: space-between;
  gap: 10px;
}
.ec-resource-text .ec-kicker {
  margin: 0 0 2px;
  font-size: .60rem;
  letter-spacing: .26em;
}
.ec-resource-text .ec-kicker::after {
  width: 28px;
  margin-left: 7px;
}
.ec-resource-text h3 {
  font-size: 1.02rem;
  line-height: 1.18;
  margin: 0;
  max-width: 17ch;
}
.ec-resource-text p:last-child {
  margin: 0;
}
.ec-resource-text a {
  font-size: .80rem;
  font-weight: 600;
  text-decoration: underline;
}
@media (max-width: 1100px) {
  .ec-resource-card {
    padding: 12px 13px;
    gap: 13px;
  }
  .ec-resource-card > .wp-block-image {
    flex-basis: 136px;
    width: 136px;
  }
  .ec-resource-card > .wp-block-image img {
    height: 96px;
    min-height: 96px;
    max-height: 96px;
  }
  .ec-resource-text h3 {
    font-size: .96rem;
  }
}
@media (max-width: 781px) {
  .ec-resource-cards {
    gap: 14px;
  }
  .ec-resource-card {
    max-width: 700px;
    padding: 12px;
    gap: 12px;
  }
  .ec-resource-card > .wp-block-image {
    flex: 0 0 120px;
    width: 120px;
    align-self: center;
  }
  .ec-resource-card > .wp-block-image img {
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    border-radius: 12px;
  }
  .ec-resource-text h3 {
    max-width: none;
  }
}
@media (max-width: 520px) {
  .ec-resource-card {
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
  }
  .ec-resource-card > .wp-block-image {
    flex: 0 0 98px;
    width: 98px;
  }
  .ec-resource-card > .wp-block-image img {
    height: 82px;
    min-height: 82px;
    max-height: 82px;
    border-radius: 11px;
  }
  .ec-resource-text {
    gap: 8px;
  }
  .ec-resource-text .ec-kicker {
    font-size: .56rem;
  }
  .ec-resource-text h3 {
    font-size: .92rem;
    line-height: 1.15;
  }
  .ec-resource-text a {
    font-size: .75rem;
  }
}

/* v0.6: el retrato real es cuadrado y se adapta al marco circular sin ampliaciones desproporcionadas. */
.ec-about-photo figure {
  overflow: hidden;
}
.ec-about-photo figure img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-position: center center;
  object-fit: cover;
  border-radius: 50%;
}


/* v0.7 — Footer más cercano a la maqueta aprobada. */
.ec-site-footer {
  background: linear-gradient(180deg, #f7edf3 0%, #f4e7ef 100%);
  border-top: 1px solid #eed8e4;
  padding: 24px 24px 10px;
}
.ec-footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  gap: 0;
  align-items: flex-start !important;
}
.ec-footer-inner > .wp-block-column {
  padding: 0 18px;
}
.ec-footer-inner > .wp-block-column:not(:last-child) {
  border-right: 1px solid #dcbfd1;
}
.ec-footer-brand {
  flex-basis: 30% !important;
}
.ec-site-footer .ec-brand {
  padding: 4px 0 4px 58px;
  max-width: 260px;
}
.ec-site-footer .ec-brand::before {
  width: 52px;
  height: 55px;
}
.ec-site-footer .ec-brand .ec-brand-name {
  font-size: 1.22rem;
  line-height: 1.08;
}
.ec-site-footer .ec-brand .ec-brand-tagline {
  font-size: .63rem;
  letter-spacing: .20em;
  margin-top: 6px;
}
.ec-footer-links {
  flex-basis: 16.5% !important;
}
.ec-footer-contact {
  flex-basis: 37% !important;
}
.ec-site-footer h3 {
  color: var(--ec-purple);
  font-size: .96rem;
  font-weight: 700;
  margin: 0 0 12px;
}
.ec-site-footer p,
.ec-site-footer a,
.ec-site-footer .wp-block-navigation-item__content {
  color: #6b2b64;
  font-size: .84rem;
  line-height: 1.45;
}
.ec-site-footer .wp-block-navigation {
  gap: 6px;
}
.ec-site-footer .wp-block-navigation .wp-block-navigation-item__content {
  padding: 0;
  text-decoration: none;
}
.ec-site-footer .wp-block-navigation .wp-block-navigation-item__content:hover,
.ec-site-footer a:hover {
  text-decoration: underline;
}
.ec-footer-links-secondary .wp-block-spacer {
  margin: 0;
}
.ec-footer-contact p {
  margin: 0 0 10px;
}
.ec-footer-social {
  margin-top: 8px;
}
.ec-footer-social .wp-social-link {
  background: transparent !important;
}
.ec-footer-social .wp-block-social-link-anchor {
  padding: 0 !important;
}
.ec-footer-social svg {
  width: 21px;
  height: 21px;
}
.ec-footer-small {
  text-align: center;
  border-top: 1px solid #ddc3d3;
  padding-top: 10px;
  margin-top: 14px;
  color: #815073;
  font-size: .72rem;
}
.ec-footer-small a {
  color: #7b2281;
  text-decoration: none;
}
@media (max-width: 900px) {
  .ec-footer-inner {
    gap: 18px;
  }
  .ec-footer-inner > .wp-block-column {
    border-right: 0 !important;
    padding: 0;
  }
  .ec-footer-brand,
  .ec-footer-links,
  .ec-footer-contact {
    flex-basis: 100% !important;
  }
  .ec-footer-links-secondary .wp-block-spacer {
    display: none;
  }
}
@media (max-width: 520px) {
  .ec-site-footer {
    padding: 22px 18px 10px;
  }
  .ec-site-footer .ec-brand {
    padding-left: 50px;
  }
  .ec-site-footer .ec-brand::before {
    width: 44px;
    height: 48px;
  }
  .ec-footer-small {
    font-size: .69rem;
    line-height: 1.5;
  }
}


/* v0.8 — Footer afinado: marca con mayor presencia, navegación en 2 columnas
   alineadas, solo 2 separadores e iconos sociales circulares. */
@media (min-width: 901px) {
  .ec-site-footer .ec-footer-inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    max-width: 1180px;
    gap: 0;
    margin: 0 auto;
  }
  .ec-site-footer .ec-footer-inner > .wp-block-column {
    min-width: 0;
    flex-grow: 0 !important;
    flex-shrink: 0 !important;
    padding: 1px 26px;
  }
  .ec-site-footer .ec-footer-inner > .ec-footer-brand {
    flex-basis: 29% !important;
    padding-left: 0;
    padding-right: 25px;
  }
  .ec-site-footer .ec-footer-inner > .ec-footer-links {
    flex-basis: 36% !important;
    padding-left: 28px;
    padding-right: 26px;
  }
  .ec-site-footer .ec-footer-inner > .ec-footer-contact {
    flex-basis: 35% !important;
    padding-left: 28px;
    padding-right: 0;
  }
  .ec-site-footer .ec-footer-inner > .wp-block-column:not(:last-child) {
    border-right: 1px solid #d6afc7;
  }
  .ec-site-footer .ec-footer-inner > .wp-block-column:last-child {
    border-right: 0;
  }
}
.ec-site-footer .ec-footer-brand .ec-brand {
  padding: 7px 0 8px 76px;
  max-width: none;
  min-width: 0;
}
.ec-site-footer .ec-footer-brand .ec-brand::before {
  width: 70px;
  height: 72px;
}
.ec-site-footer .ec-footer-brand .ec-brand-name {
  font-size: clamp(1.15rem, 1.75vw, 1.44rem);
  line-height: 1.12;
}
.ec-site-footer .ec-footer-brand .ec-brand-tagline {
  font-size: .64rem;
  letter-spacing: .17em;
}
.ec-site-footer .ec-footer-links h3,
.ec-site-footer .ec-footer-contact h3 {
  margin: 0 0 13px;
}
/* Una sola navegación permite mantener las dos columnas exactamente alineadas. */
.ec-site-footer nav.ec-footer-nav {
  display: block;
  width: 100%;
  max-width: 100%;
}
.ec-site-footer nav.ec-footer-nav .wp-block-navigation__container {
  display: grid !important;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  column-gap: 16px;
  row-gap: 7px;
  width: 100%;
  justify-content: stretch;
  align-content: start;
  align-items: start;
  flex-wrap: nowrap !important;
}
.ec-site-footer nav.ec-footer-nav .wp-block-navigation-item {
  margin: 0;
  padding: 0;
  min-width: 0;
  width: auto;
}
.ec-site-footer nav.ec-footer-nav .wp-block-navigation-item__content {
  display: inline-block;
  padding: 0;
  line-height: 1.5;
}
.ec-site-footer .ec-footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 10px 0 0;
}
.ec-site-footer .ec-footer-social .wp-social-link {
  background: #88228b !important;
  border-radius: 50% !important;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  transition: background-color .2s ease, transform .2s ease;
}
.ec-site-footer .ec-footer-social .wp-social-link:hover {
  background: #5c165e !important;
  transform: translateY(-1px);
}
.ec-site-footer .ec-footer-social .wp-block-social-link-anchor {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px !important;
  width: 36px;
  height: 36px;
  color: white !important;
}
.ec-site-footer .ec-footer-social svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}
.ec-site-footer .ec-footer-small {
  margin-top: 18px;
  padding-top: 11px;
}
@media (max-width: 900px) {
  .ec-site-footer .ec-footer-inner {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: 22px 28px;
  }
  .ec-site-footer .ec-footer-inner > .ec-footer-brand {
    grid-column: 1 / -1;
  }
  .ec-site-footer .ec-footer-inner > .ec-footer-links,
  .ec-site-footer .ec-footer-inner > .ec-footer-contact {
    width: 100%;
    flex-basis: auto !important;
  }
  .ec-site-footer .ec-footer-inner > .wp-block-column {
    border-right: 0 !important;
    padding: 0;
  }
}
@media (max-width: 600px) {
  .ec-site-footer .ec-footer-inner { grid-template-columns: minmax(0,1fr); gap: 24px; }
  .ec-site-footer .ec-footer-inner > .ec-footer-brand { grid-column: auto; }
  .ec-site-footer .ec-footer-brand .ec-brand { padding-left: 66px; }
  .ec-site-footer .ec-footer-brand .ec-brand::before { width: 61px; height: 64px; }
  .ec-site-footer nav.ec-footer-nav .wp-block-navigation__container { column-gap: 12px; }
}
