/*
Theme Name: Andomes Theme
Theme URI: https://andomes.com
Author: Andomes
Author URI: https://andomes.com
Description: Tema editorial premium para Andomes.com. Directorio andorrano de servicios de limpieza y servicios domesticos. Tipografia Fraunces + Plus Jakarta Sans. Paleta azul profunda profesional.
Version: 2.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
Text Domain: andomes
Tags: blog, services, custom-colors, custom-menu, featured-images, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,700;0,9..144,900;1,9..144,300;1,9..144,700&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.site, #page, #content, #primary, #main,
main, .site-content, .site-main,
.wp-site-blocks, .is-root-container,
.entry-content, .post-content, .page-content,
.wp-block-post-content, .wp-block-group,
article, .hentry, .post, .page,
.entry, .entry-content > *:first-child,
.elementor-section-wrap, .elementor-widget-wrap,
.fl-builder-content, .et_pb_section {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.and-wrap > *:first-child { margin-top: 0 !important; }

:root {
  --and-dark: #081E3A;
  --and-mid: #103F7A;
  --and-blue: #1A6BBF;
  --and-light: #EAF4FB;
  --and-light2: #CFDFF0;
  --and-sky: #16B8E8;
  --and-sky2: #0E9FCE;
  --and-text: #0D1B2A;
  --and-textmid: #334E6A;
  --and-muted: #6A88A4;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--and-text);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--and-blue); text-decoration: none; }
a:hover { color: var(--and-sky2); }

img { max-width: 100%; height: auto; display: block; }

.and-wrap *, .and-wrap *::before, .and-wrap *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.and-wrap {
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--and-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden !important;
  display: block !important;
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 100vw !important;
  position: relative !important;
  left: 50% !important;
  margin-top: 0 !important;
  margin-left: -50vw !important;
  margin-right: 0 !important;
  padding-top: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.and-wrap .and-hero,
.and-wrap .and-ticker,
.and-wrap .and-sec-info,
.and-wrap .and-strip,
.and-wrap .and-trust-band,
.and-wrap .and-section,
.and-wrap .and-sec-seo,
.and-wrap .and-footer {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  float: none !important;
}

@keyframes and-fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes and-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.4); } }
@keyframes and-ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes and-scrollline { 0% { opacity: 0; transform: scaleY(0); transform-origin: top; } 50% { opacity: 1; transform: scaleY(1); transform-origin: top; } 100% { opacity: 0; transform: scaleY(1); transform-origin: bottom; } }

/* Estado oculto SOLO si el JS marcó html.js-anim: sin JS (bots, lectores,
   capturas) el contenido queda siempre visible. */
html.js-anim .and-wrap .and-reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.75s ease, transform 0.75s ease; }
html.js-anim .and-wrap .and-reveal.visible { opacity: 1; transform: translateY(0); }

.and-wrap .and-container { max-width: 1100px; margin: 0 auto; width: 100%; padding: 0 24px; }

.and-wrap .and-overline {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--and-blue);
  margin-bottom: 18px;
}

.and-wrap .and-hl {
  font-family: 'Fraunces', serif;
  font-size: clamp(34px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.05;
  color: var(--and-text);
  margin-bottom: 24px;
}
.and-wrap .and-hl em { font-style: italic; color: var(--and-mid); }

.and-wrap .and-body {
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.8;
  color: var(--and-textmid);
  font-weight: 300;
}
.and-wrap .and-body + .and-body { margin-top: 18px; }
.and-wrap .and-body strong { color: var(--and-text); font-weight: 600; }

/* === BUTTONS (TODOS, dentro o fuera de and-wrap) === */
.and-btn-primary svg,
.and-btn-cream svg,
.and-btn-dark svg,
.and-btn-white svg,
.and-btn-ghost svg {
  width: 17px !important;
  height: 17px !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

/* SVGs sueltos en body editorial: limitarlos para que no se descontrolen */
.and-single-body svg,
.and-archive-header svg,
.and-strip svg,
.and-wrap svg {
  max-width: 100%;
  height: auto;
}
.and-strip svg[width],
.and-wrap svg[width] {
  width: attr(width px);
}

/* === BUTTONS === */
.and-wrap .and-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--and-blue);
  color: #fff !important;
  padding: 17px 34px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--and-blue);
  transition: background .2s, border-color .2s, transform .2s, box-shadow .2s;
}
.and-wrap .and-btn-primary:hover {
  background: var(--and-mid);
  border-color: var(--and-mid);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 14px 44px rgba(26,107,191,.35);
}
.and-wrap .and-btn-primary svg,
.and-wrap .and-btn-cream svg,
.and-wrap .and-btn-dark svg,
.and-wrap .and-btn-white svg { width: 17px; height: 17px; transition: transform .2s; }
.and-wrap .and-btn-primary:hover svg,
.and-wrap .and-btn-cream:hover svg,
.and-wrap .and-btn-dark:hover svg,
.and-wrap .and-btn-white:hover svg { transform: translateX(4px); }

.and-wrap .and-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(234,244,251,.65);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  padding: 17px 0;
  border-bottom: 1px solid rgba(234,244,251,.2);
  transition: color .2s, border-color .2s;
}
.and-wrap .and-btn-ghost:hover { color: var(--and-light); border-color: rgba(234,244,251,.5); }

.and-wrap .and-btn-cream {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--and-light);
  color: var(--and-dark) !important;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s, transform .2s, box-shadow .2s;
}
.and-wrap .and-btn-cream:hover { background: #fff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.2); }

.and-wrap .and-btn-dark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--and-dark);
  color: var(--and-light) !important;
  padding: 15px 30px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid var(--and-dark);
  transition: background .2s, transform .2s, box-shadow .2s;
}
.and-wrap .and-btn-dark:hover { background: var(--and-mid); border-color: var(--and-mid); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(8,30,58,.28); }

.and-wrap .and-btn-white {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--and-blue) !important;
  padding: 18px 40px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.and-wrap .and-btn-white:hover { transform: translateY(-3px); box-shadow: 0 16px 50px rgba(0,0,0,.2); }

/* === HEADER (top) === */
.and-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--and-light2);
}
.and-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.and-brand {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-weight: 900;
  color: var(--and-dark) !important;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.and-brand:hover { color: var(--and-mid) !important; }
.and-brand em { color: var(--and-blue); font-style: italic; }
.and-nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.and-nav a {
  color: var(--and-textmid);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color .15s;
}
.and-nav a:hover { color: var(--and-sky2); }
.and-nav a.and-nav-cta {
  background: var(--and-blue);
  color: #fff !important;
  padding: 10px 18px;
  border-radius: 8px;
  transition: background .15s, transform .15s;
}
.and-nav a.and-nav-cta:hover { background: var(--and-mid); transform: translateY(-1px); }

/* === HERO === */
.and-wrap .and-hero {
  background: var(--and-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 24px 120px;
}
.and-wrap .and-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 15% 55%, rgba(22,107,191,.35) 0%, transparent 65%),
    radial-gradient(ellipse 35% 50% at 85% 25%, rgba(22,184,232,.07) 0%, transparent 55%);
  pointer-events: none;
}
.and-wrap .and-hero-mountains { position: absolute; bottom: 0; left: 0; right: 0; height: 210px; opacity: .055; }
.and-wrap .and-hero-inner { max-width: 1100px; margin: 0 auto; width: 100%; position: relative; z-index: 1; }
.and-wrap .and-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(22,184,232,.12);
  border: 1px solid rgba(22,184,232,.28);
  color: var(--and-sky);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 36px;
  opacity: 0;
  animation: and-fadeUp .7s ease .15s forwards;
}
.and-wrap .and-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--and-sky); animation: and-pulse 2s ease infinite; }
.and-wrap .and-hero-hl {
  font-family: 'Fraunces', serif;
  font-size: clamp(40px, 7vw, 90px);
  font-weight: 900;
  line-height: 1.0;
  color: var(--and-light);
  max-width: 920px;
  margin-bottom: 28px;
  opacity: 0;
  animation: and-fadeUp .75s ease .35s forwards;
}
.and-wrap .and-hero-hl em { font-style: italic; color: var(--and-sky); }
.and-wrap .and-hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(234,244,251,.65);
  max-width: 600px;
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 52px;
  opacity: 0;
  animation: and-fadeUp .75s ease .55s forwards;
}
.and-wrap .and-hero-sub strong { color: var(--and-light); font-weight: 500; }
.and-wrap .and-hero-cta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
  opacity: 0;
  animation: and-fadeUp .75s ease .75s forwards;
}
.and-wrap .and-hero-stats {
  display: flex;
  gap: 48px;
  margin-top: 88px;
  padding-top: 40px;
  border-top: 1px solid rgba(234,244,251,.07);
  flex-wrap: wrap;
  opacity: 0;
  animation: and-fadeUp .75s ease .95s forwards;
}
.and-wrap .and-stat-num { font-family: 'Fraunces', serif; font-size: 38px; font-weight: 700; color: var(--and-light); line-height: 1; }
.and-wrap .and-stat-label { font-size: 13px; color: rgba(234,244,251,.45); font-weight: 300; margin-top: 4px; }
.and-wrap .and-scroll-hint { position: absolute; bottom: 32px; right: 40px; display: flex; flex-direction: column; align-items: center; gap: 8px; opacity: .35; z-index: 1; }
.and-wrap .and-scroll-line { width: 1px; height: 64px; background: linear-gradient(to bottom, transparent, var(--and-light)); animation: and-scrollline 1.6s ease-in-out infinite; }
.and-wrap .and-scroll-text { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--and-light); writing-mode: vertical-lr; }

/* === TICKER === */
.and-wrap .and-ticker { background: var(--and-blue); overflow: hidden; padding: 13px 0; white-space: nowrap; }
.and-wrap .and-ticker-track { display: inline-flex; animation: and-ticker 35s linear infinite; }
.and-wrap .and-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 0 22px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: #fff;
}
.and-wrap .and-ticker-item::after { content: '✦'; opacity: .5; }

/* === SECTIONS === */
.and-wrap .and-section { padding: 110px 24px; }
.and-wrap .and-sec-problem { background: #fff; }

.and-wrap .and-problem-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; margin-top: 64px; }
.and-wrap .and-callout {
  background: var(--and-dark);
  color: var(--and-light);
  padding: 44px;
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}
.and-wrap .and-callout::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(22,184,232,.12) 0%, transparent 60%);
  pointer-events: none;
}
.and-wrap .and-callout p {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  position: relative;
  z-index: 1;
  color: var(--and-light); /* el callout es de fondo oscuro: texto claro (antes heredaba oscuro y no se leía) */
}
.and-wrap .and-callout p strong { color: var(--and-sky); font-style: normal; font-weight: 800; }
.and-wrap .and-check-list { list-style: none; margin-top: 36px; }
.and-wrap .and-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--and-light2);
  font-size: 15px;
  color: var(--and-textmid);
  line-height: 1.5;
}
.and-wrap .and-check-list li:first-child { border-top: 1px solid var(--and-light2); }
.and-wrap .and-ico-good { color: var(--and-blue); flex-shrink: 0; font-size: 17px; margin-top: 1px; }

.and-wrap .and-sec-how { background: #fff; }
.and-wrap .and-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; margin-top: 64px; }
.and-wrap .and-step-num {
  font-family: 'Fraunces', serif;
  font-size: 80px;
  font-weight: 900;
  color: var(--and-blue);
  line-height: 1;
  margin-bottom: 18px;
  transition: color .3s;
}
.and-wrap .and-step:hover .and-step-num { color: var(--and-mid); }
.and-wrap .and-step-title { font-size: 19px; font-weight: 600; color: var(--and-text); margin-bottom: 12px; line-height: 1.3; }
.and-wrap .and-step-body { font-size: 15px; color: var(--and-textmid); line-height: 1.75; }

.and-wrap .and-sec-info { background: var(--and-dark); position: relative; overflow: hidden; padding: 110px 24px; }
.and-wrap .and-sec-info::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 55% at 80% 50%, rgba(22,107,191,.45) 0%, transparent 60%);
  pointer-events: none;
}
.and-wrap .and-info-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.and-wrap .and-info-text .and-overline { color: rgba(22,184,232,.75); }
.and-wrap .and-info-text .and-hl { color: var(--and-light); }
.and-wrap .and-info-text .and-hl em { color: var(--and-sky); }
.and-wrap .and-info-text .and-body { color: rgba(234,244,251,.6); }
.and-wrap .and-info-text .and-body strong { color: var(--and-light); }
.and-wrap .and-info-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; overflow: hidden; }
.and-wrap .and-info-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 22px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,.06); }
.and-wrap .and-info-row:last-child { border-bottom: none; }
.and-wrap .and-info-row.and-hd { background: rgba(255,255,255,.05); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; padding: 12px 22px; color: rgba(234,244,251,.5); }
.and-wrap .and-row-label { color: rgba(234,244,251,.5); font-weight: 300; }
.and-wrap .and-row-val { color: #7DDFF5; font-weight: 700; white-space: nowrap; }
.and-wrap .and-row-val.big { color: var(--and-sky); font-size: 15px; }

.and-wrap .and-sec-services { background: #fff; }
.and-wrap .and-services-intro { max-width: 640px; margin-bottom: 64px; }
.and-wrap .and-services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.and-wrap .and-svc-card {
  background: #fff;
  border: 1px solid var(--and-light2);
  border-radius: 18px;
  padding: 30px;
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.and-wrap .and-svc-card:hover { border-color: var(--and-sky); box-shadow: 0 10px 36px rgba(0,0,0,.07); transform: translateY(-4px); }
.and-wrap .and-svc-icon { font-size: 30px; display: block; margin-bottom: 16px; }
.and-wrap .and-svc-name { font-size: 16px; font-weight: 600; color: var(--and-text); margin-bottom: 8px; }
.and-wrap .and-svc-desc { font-size: 14px; color: var(--and-textmid); line-height: 1.65; }

.and-wrap .and-trust-band { background: #fff; padding: 64px 24px; border-top: 1px solid var(--and-light2); border-bottom: 1px solid var(--and-light2); }
.and-wrap .and-trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; align-items: start; }
.and-wrap .and-trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.and-wrap .and-trust-ico { font-size: 34px; }
.and-wrap .and-trust-label { font-size: 14px; font-weight: 600; color: var(--and-text); }
.and-wrap .and-trust-sub { font-size: 13px; color: var(--and-textmid); font-weight: 400; line-height: 1.5; }

.and-wrap .and-sec-dual { background: #fff; }
.and-wrap .and-dual-intro { text-align: center; margin-bottom: 52px; }
.and-wrap .and-dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.and-wrap .and-dual-card { border-radius: 22px; padding: 56px 48px; position: relative; overflow: hidden; }
.and-wrap .and-dual-hire { background: var(--and-dark); }
.and-wrap .and-dual-work { background: #fff; border: 2px solid var(--and-light2); }
.and-wrap .and-dual-hire .and-overline { color: rgba(22,184,232,.7); }
.and-wrap .and-dual-work .and-overline { color: var(--and-blue); }
.and-wrap .and-dual-title { font-family: 'Fraunces', serif; font-size: clamp(24px, 3vw, 38px); font-weight: 700; line-height: 1.12; margin-bottom: 16px; }
.and-wrap .and-dual-hire .and-dual-title { color: var(--and-light); }
.and-wrap .and-dual-work .and-dual-title { color: var(--and-text); }
.and-wrap .and-dual-body { font-size: 15px; line-height: 1.75; font-weight: 300; margin-bottom: 40px; }
.and-wrap .and-dual-hire .and-dual-body { color: rgba(234,244,251,.6); }
.and-wrap .and-dual-work .and-dual-body { color: var(--and-muted); }
.and-wrap .and-dual-work .and-dual-body strong { color: var(--and-text); }

.and-wrap .and-sec-seo { background: #fff; padding: 88px 24px; }
.and-wrap .and-seo-block { max-width: 900px; margin: 0 auto; }
.and-wrap .and-seo-block h2 { font-family: 'Fraunces', serif; font-size: clamp(22px, 3vw, 34px); font-weight: 700; color: var(--and-text); margin-bottom: 18px; margin-top: 56px; }
.and-wrap .and-seo-block h2:first-child { margin-top: 0; }
.and-wrap .and-seo-block h3 { font-size: 18px; font-weight: 600; color: var(--and-text); margin-bottom: 12px; margin-top: 36px; }
.and-wrap .and-seo-block p { font-size: 15px; color: var(--and-muted); line-height: 1.85; margin-bottom: 16px; }
.and-wrap .and-seo-block p strong { color: var(--and-textmid); font-weight: 600; }
.and-wrap .and-seo-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.and-wrap .and-seo-tag { background: var(--and-light); color: var(--and-textmid); padding: 6px 14px; border-radius: 100px; font-size: 13px; font-weight: 500; }

.and-wrap .and-strip { background: var(--and-blue); padding: 72px 24px; text-align: center; }
.and-wrap .and-strip h2 { font-family: 'Fraunces', serif; font-size: clamp(28px, 4.5vw, 54px); font-weight: 900; color: #fff; line-height: 1.1; margin-bottom: 12px; }
.and-wrap .and-strip h2 em { font-style: italic; opacity: .85; }
.and-wrap .and-strip p { font-size: 17px; color: rgba(255,255,255,.8); font-weight: 300; margin-bottom: 40px; }

/* === BLOG SECTION ON HOME === */
.and-wrap .and-sec-blog { background: var(--and-light); padding: 88px 24px; }
.and-wrap .and-blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 48px; }
.and-wrap .and-post-card {
  background: #fff;
  border: 1px solid var(--and-light2);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.and-wrap .and-post-card:hover { border-color: var(--and-sky); transform: translateY(-3px); box-shadow: 0 10px 36px rgba(0,0,0,.07); }
.and-wrap .and-post-card a { color: inherit; text-decoration: none; display: block; }
.and-wrap .and-post-thumb { aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--and-mid) 0%, var(--and-dark) 100%); position: relative; }
.and-wrap .and-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.and-wrap .and-post-thumb-fallback { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--and-light); font-family: 'Fraunces', serif; font-weight: 700; }
.and-wrap .and-post-cat { position: absolute; top: 16px; left: 16px; background: rgba(255,255,255,.95); color: var(--and-dark); padding: 5px 12px; border-radius: 100px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.and-wrap .and-post-body { padding: 24px; }
.and-wrap .and-post-title { font-family: 'Fraunces', serif; font-size: 19px; font-weight: 700; color: var(--and-text); margin-bottom: 10px; line-height: 1.3; }
.and-wrap .and-post-excerpt { color: var(--and-muted); font-size: 14px; line-height: 1.65; }

/* === SINGLE POST === */
.and-single-wrap { background: #fff; }
.and-single-header { background: var(--and-dark); padding: 80px 24px 60px; text-align: center; color: var(--and-light); }
.and-single-header .and-overline { color: var(--and-sky); }
.and-single-header h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(28px, 5vw, 56px);
  font-weight: 900;
  line-height: 1.1;
  color: var(--and-light);
  max-width: 880px;
  margin: 0 auto 16px;
  letter-spacing: -0.02em;
}
.and-single-header .and-meta { font-size: 13px; color: rgba(234,244,251,.5); letter-spacing: .04em; }
.and-single-header .and-meta a { color: var(--and-sky); }
.and-single-featured { max-width: 1100px; margin: -40px auto 0; padding: 0 24px; }
.and-single-featured img { border-radius: 16px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.and-single-body {
  max-width: 760px;
  margin: 60px auto;
  padding: 0 24px;
  font-size: 17px;
  line-height: 1.85;
  color: var(--and-text);
}
.and-single-body h2 { font-family: 'Fraunces', serif; font-size: clamp(22px, 3vw, 32px); font-weight: 700; margin: 48px 0 18px; color: var(--and-text); }
.and-single-body h3 { font-size: 22px; font-weight: 600; margin: 36px 0 14px; color: var(--and-text); }
.and-single-body p { margin: 0 0 18px; color: var(--and-text); }
.and-single-body strong, .and-single-body b { color: var(--and-text); font-weight: 700; }
/* Enlaces de contenido en cian subrayado — PERO no los botones del plugin
   (clases pd-*), que tienen su propio color de texto (antes salía cian sobre
   el fondo del botón = texto invisible, p.ej. "Buscar profesionales"). */
/* Enlaces de contenido: azul legible y subrayado. Excluye los botones del tema
   (and-btn-*) y del plugin (pd-*) para no pisar su color propio. */
.and-single-body a:not([class*="btn"]):not([class*="pd-"]) { color: var(--and-blue) !important; border-bottom: 2px solid rgba(26,107,191,.3); font-weight: 600; text-decoration: none; }
.and-single-body a:not([class*="btn"]):not([class*="pd-"]):hover { color: var(--and-mid) !important; border-bottom-color: var(--and-blue); }
.and-single-body a[class*="btn"], .and-single-body a[class*="pd-"] { border-bottom: 0; }
.and-single-body ul, .and-single-body ol { margin: 0 0 24px 22px; padding: 0; }
.and-single-body li { margin-bottom: 8px; color: var(--and-text); }
.and-single-body blockquote {
  border-left: 4px solid var(--and-sky);
  padding: 18px 24px;
  margin: 28px 0;
  background: var(--and-light);
  border-radius: 8px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  color: var(--and-textmid);
}

/* === ARCHIVE / CATEGORY === */
.and-archive-header { background: var(--and-dark); padding: 80px 24px 60px; text-align: center; color: var(--and-light); }
.and-archive-header h1 { font-family: 'Fraunces', serif; font-size: clamp(32px, 5vw, 56px); font-weight: 900; color: var(--and-light); margin: 0 auto 14px; letter-spacing: -0.02em; }
.and-archive-header p { color: rgba(234,244,251,.6); max-width: 600px; margin: 0 auto; font-size: 16px; }

/* === FOOTER === */
.and-footer { background: var(--and-dark); color: rgba(234,244,251,.7); padding: 60px 24px 24px; }
.and-footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.and-footer-brand { font-family: 'Fraunces', serif; font-size: 26px; font-weight: 900; color: var(--and-light); margin-bottom: 14px; letter-spacing: -.02em; }
.and-footer-brand em { color: var(--and-sky); font-style: italic; }
.and-footer p { font-size: 14px; line-height: 1.65; color: rgba(234,244,251,.55); }
.and-footer h4 { color: var(--and-light); font-size: 14px; font-weight: 600; margin-bottom: 14px; text-transform: uppercase; letter-spacing: .08em; }
.and-footer ul { list-style: none; padding: 0; margin: 0; }
.and-footer li { margin-bottom: 9px; }
.and-footer a { color: rgba(234,244,251,.55); font-size: 14px; }
.and-footer a:hover { color: var(--and-sky); }
.and-footer-bottom { max-width: 1100px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.06); text-align: center; font-size: 13px; color: rgba(234,244,251,.4); }

/* === PAGINATION === */
.and-pagination { display: flex; gap: 8px; justify-content: center; margin: 48px 0; flex-wrap: wrap; }
.and-pagination a, .and-pagination span { padding: 10px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--and-light2); color: var(--and-textmid); font-weight: 600; font-size: 14px; text-decoration: none; }
.and-pagination a:hover { background: var(--and-sky); color: #fff; border-color: var(--and-sky); }
.and-pagination .current { background: var(--and-dark); color: var(--and-light); border-color: var(--and-dark); }

/* === 404 === */
.and-404 { max-width: 600px; margin: 100px auto; text-align: center; padding: 0 24px; }
.and-404 h1 { font-family: 'Fraunces', serif; font-size: 130px; font-weight: 900; color: var(--and-sky); line-height: 1; margin: 0; letter-spacing: -.04em; }
.and-404 p { color: var(--and-muted); margin: 16px 0 28px; font-size: 17px; }

/* === RESPONSIVE === */
@media (max-width: 840px) {
  .and-wrap .and-section { padding: 64px 20px; }
  .and-wrap .and-sec-info { padding: 64px 20px; }
  .and-wrap .and-sec-seo { padding: 64px 20px; }
  .and-wrap .and-sec-blog { padding: 64px 20px; }
  .and-wrap .and-trust-band { padding: 48px 20px; }
  .and-wrap .and-strip { padding: 56px 20px; }
  .and-wrap .and-problem-layout, .and-wrap .and-info-layout, .and-wrap .and-dual-grid { grid-template-columns: 1fr; gap: 32px; }
  .and-wrap .and-steps-grid { grid-template-columns: 1fr; gap: 40px; }
  .and-wrap .and-hero-stats { gap: 24px; margin-top: 52px; }
  .and-wrap .and-dual-card { padding: 36px 24px; }
  .and-wrap .and-scroll-hint { display: none; }
  .and-wrap .and-services-intro { margin-bottom: 40px; }
  .and-footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .and-footer-inner > .and-footer-col:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .and-footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .and-header-inner { padding: 14px 16px; gap: 14px; flex-direction: column; }
  .and-nav { gap: 16px; justify-content: center; }
  .and-nav a { font-size: 13px; }
}
@media (max-width: 480px) {
  .and-wrap .and-hero { padding: 60px 20px 80px; min-height: 90vh; }
  .and-wrap .and-hero-cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .and-wrap .and-btn-primary, .and-wrap .and-btn-cream, .and-wrap .and-btn-dark, .and-wrap .and-btn-white { width: 100%; justify-content: center; }
  .and-wrap .and-btn-ghost { padding: 12px 0; }
  .and-wrap .and-hero-stats { flex-direction: column; gap: 20px; margin-top: 40px; }
  .and-wrap .and-section { padding: 52px 16px; }
  .and-wrap .and-sec-info { padding: 52px 16px; }
  .and-wrap .and-sec-seo { padding: 52px 16px; }
  .and-wrap .and-trust-band { padding: 40px 16px; }
  .and-wrap .and-strip { padding: 48px 16px; }
  .and-wrap .and-dual-card { padding: 28px 20px; }
  .and-wrap .and-callout { padding: 32px 24px; }
  .and-wrap .and-step-num { font-size: 60px; }
  .and-wrap .and-services-grid { grid-template-columns: 1fr; }
  .and-wrap .and-trust-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .and-wrap .and-ticker-item { font-size: 11px; gap: 14px; padding: 0 14px; }
  .and-wrap .and-seo-tags { gap: 6px; }
  .and-wrap .and-info-row { font-size: 13px; padding: 12px 16px; flex-wrap: wrap; gap: 4px; }
  .and-wrap .and-info-row .and-row-val { margin-left: auto; }
}

/* === WP defaults === */
.alignleft { float: left; margin: 0 1rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1rem; }
.aligncenter { display: block; margin: 1rem auto; }
.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); padding: 0 !important; border: 0 !important; height: 1px !important; width: 1px !important; overflow: hidden; }

/* ══════════ Móvil-app: robustez y ergonomía ══════════ */
/* Sin scroll horizontal nunca (clip no crea contenedor de scroll) */
html, body { overflow-x: clip; }

/* Header con respeto al notch (iOS añadido a pantalla de inicio) */
.and-header { padding-top: env(safe-area-inset-top); }

@media (max-width: 640px) {
  /* Targets táctiles del menú ≥44px */
  .and-nav a {
    padding: 10px 6px;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .and-nav .and-nav-cta { padding: 10px 18px; }
  /* Botones principales cómodos al pulgar */
  .and-wrap .and-btn-sky,
  .and-wrap .and-btn-white,
  .and-wrap .and-btn-cream,
  .and-wrap .and-btn-dark {
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }
}
