/*
Theme Name:   Eternity Soft
Theme URI:    https://eternitysoft.com.mx/
Description:  Tema hijo de Blocksy con la identidad visual de Eternity Soft (colores, tipografía, tienda y botones de WhatsApp).
Author:       Eternity Soft
Template:     blocksy
Version:      1.0.0
Text Domain:  blocksy
*/

/* =========================================================================
   1. Tokens de marca
   ========================================================================= */
:root {
	--es-navy: #2f4f68;        /* azul del logotipo: acción principal */
	--es-navy-dk: #22394d;     /* hover */
	--es-ink: #2a4660;         /* titulares */
	--es-text: #4b5a68;        /* texto */
	--es-muted: #6a7682;       /* texto secundario */
	--es-blue: #94b0c2;        /* azul empolvado del catálogo */
	--es-blue-50: #eef3f6;     /* fondo pastel azul */
	--es-ivory: #f6f2ec;       /* fondo marfil */
	--es-hero: #ede7de;        /* fondo de la animación */
	--es-blush: #f6e8e5;       /* rosa de la capa de espuma */
	--es-line: #e2e7ec;
	--es-white: #ffffff;
	--es-serif: "Newsreader", Georgia, "Times New Roman", serif;
	--es-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--es-radius: 18px;
	--es-radius-sm: 12px;
	--es-shadow: 0 22px 44px -28px rgba(42, 70, 96, 0.35);
	--es-shadow-sm: 0 10px 24px -18px rgba(42, 70, 96, 0.35);
	--es-gutter: clamp(20px, 4vw, 48px);
	--es-section: clamp(64px, 8vw, 116px);
	--es-ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================================
   2. Base tipográfica
   ========================================================================= */
body {
	color: var(--es-text);
	-webkit-font-smoothing: antialiased;
}

h1, h2, h3, .es-serif {
	font-family: var(--es-serif);
	font-weight: 500;
	letter-spacing: -0.012em;
	color: var(--es-ink);
	line-height: 1.12;
}

h4, h5, h6 {
	font-family: var(--es-sans);
	color: var(--es-ink);
}

.entry-content p,
.entry-content li {
	line-height: 1.75;
}

a { transition: color .2s var(--es-ease), background-color .2s var(--es-ease), border-color .2s var(--es-ease); }

:where(a, button, summary, input, select, textarea):focus-visible {
	outline: 2px solid var(--es-navy);
	outline-offset: 3px;
	border-radius: 6px;
}

/* Etiqueta pequeña sobre titulares (se usa con moderación). */
.es-eyebrow {
	font-family: var(--es-sans);
	font-size: 12.5px !important;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--es-navy) !important;
	margin-bottom: 14px !important;
}

.es-lead {
	font-size: clamp(16px, 1.25vw, 18px);
	line-height: 1.7;
	color: var(--es-text);
	max-width: 36rem;
}

/* =========================================================================
   3. Botones
   ========================================================================= */
.wp-block-button__link,
.es-btn,
.woocommerce .button,
.woocommerce button.button,
.woocommerce a.button {
	font-family: var(--es-sans);
	font-weight: 500;
	letter-spacing: .01em;
	transition: background-color .25s var(--es-ease), color .25s var(--es-ease), border-color .25s var(--es-ease), transform .25s var(--es-ease), box-shadow .25s var(--es-ease);
}

.wp-block-button__link:hover,
.es-btn:hover { transform: translateY(-1px); }
.wp-block-button__link:active,
.es-btn:active { transform: translateY(0); }

.wp-block-button.is-style-outline > .wp-block-button__link {
	background: transparent;
	color: var(--es-navy);
	border: 1.5px solid currentColor;
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background: var(--es-navy);
	border-color: var(--es-navy);
	color: #fff;
}

/* Botón claro para fondos oscuros */
.wp-block-button.es-btn-light > .wp-block-button__link {
	background: #fff;
	color: var(--es-navy);
}
.wp-block-button.es-btn-light > .wp-block-button__link:hover { background: var(--es-blue-50); }
.wp-block-button.es-btn-ghost-light > .wp-block-button__link {
	background: transparent;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .6);
}
.wp-block-button.es-btn-ghost-light > .wp-block-button__link:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }

/* Ícono de WhatsApp antes del texto en botones marcados con es-btn-wa */
.wp-block-button.es-btn-wa > .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.wp-block-button.es-btn-wa > .wp-block-button__link::before {
	content: "";
	width: 18px;
	height: 18px;
	flex: none;
	background: currentColor;
	-webkit-mask: var(--es-ico-wa) center / contain no-repeat;
	mask: var(--es-ico-wa) center / contain no-repeat;
}

/* Botones creados desde PHP (ficha de producto) */
.es-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 52px;
	padding: 0 30px;
	border-radius: 999px;
	font-size: 15px;
	text-decoration: none;
}
.es-btn--primary { background: var(--es-navy); color: #fff; }
.es-btn--primary:hover { background: var(--es-navy-dk); color: #fff; }
.es-wa-icon { width: 20px; height: 20px; flex: none; }

/* =========================================================================
   4. Íconos de línea (máscaras SVG, sin librerías)
   ========================================================================= */
:root {
	--es-ico-wa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M16.04 3C9.1 3 3.46 8.63 3.46 15.56c0 2.22.58 4.38 1.68 6.29L3.36 28.4l6.71-1.76a12.6 12.6 0 0 0 5.97 1.52c6.93 0 12.57-5.63 12.57-12.56 0-3.36-1.31-6.51-3.69-8.88A12.5 12.5 0 0 0 16.04 3Zm0 22.98c-1.88 0-3.72-.5-5.33-1.46l-.38-.23-3.98 1.04 1.06-3.88-.25-.4a10.4 10.4 0 0 1-1.6-5.54c0-5.76 4.69-10.45 10.49-10.45 2.8 0 5.43 1.09 7.41 3.07a10.4 10.4 0 0 1 3.07 7.4c0 5.77-4.7 10.45-10.48 10.45Zm5.75-7.82c-.32-.16-1.86-.92-2.15-1.02-.29-.11-.5-.16-.71.16-.21.31-.82 1.02-1 1.23-.18.21-.37.24-.68.08-.32-.16-1.33-.49-2.53-1.56-.94-.83-1.57-1.86-1.75-2.18-.18-.31-.02-.48.14-.64.14-.14.32-.37.47-.55.16-.18.21-.31.32-.52.1-.21.05-.39-.03-.55-.08-.16-.71-1.71-.97-2.34-.26-.62-.52-.53-.71-.54h-.61c-.21 0-.55.08-.84.39-.29.31-1.1 1.07-1.1 2.62 0 1.54 1.13 3.04 1.29 3.25.16.21 2.22 3.39 5.38 4.75.75.32 1.34.52 1.8.66.75.24 1.44.2 1.98.12.6-.09 1.86-.76 2.12-1.49.26-.73.26-1.36.18-1.49-.08-.13-.29-.21-.6-.37Z'/%3E%3C/svg%3E");
	--es-ico-snow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2v20M4.2 6.5l15.6 11M19.8 6.5 4.2 17.5'/%3E%3Cpath d='m9 3.5 3 2.5 3-2.5M9 20.5l3-2.5 3 2.5M3.3 10.2l3.6 1.1-.9 3.6M20.7 13.8l-3.6-1.1.9-3.6M3.7 14.5l3.6-.9-.7-3.6M20.3 9.5l-3.6.9.7 3.6'/%3E%3C/svg%3E");
	--es-ico-layers: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 3 9 4.5-9 4.5-9-4.5L12 3Z'/%3E%3Cpath d='m3 12 9 4.5 9-4.5M3 16.5 12 21l9-4.5'/%3E%3C/svg%3E");
	--es-ico-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5V8Z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8M7.5 5.5l9 5'/%3E%3C/svg%3E");
	--es-ico-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12.5a7.5 7.5 0 0 1-11.1 6.6L4 20.5l1.4-4.6A7.5 7.5 0 1 1 20 12.5Z'/%3E%3Cpath d='M8.5 12.5h.01M12.5 12.5h.01M16.5 12.5h.01'/%3E%3C/svg%3E");
	--es-ico-tool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14.7 6.3a4 4 0 0 0 5 5L21 13l-8 8-3-3 6.7-6.7'/%3E%3Cpath d='M14.7 6.3 11 2.6a2 2 0 0 0-2.8 0L6.6 4.2a2 2 0 0 0 0 2.8l3.7 3.7'/%3E%3Cpath d='m3 21 5-5'/%3E%3C/svg%3E");
	--es-ico-palette: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a9 9 0 1 0 0 18c1.1 0 1.8-.9 1.8-1.9 0-.5-.2-.9-.5-1.3-.3-.3-.5-.8-.5-1.3 0-1 .8-1.8 1.8-1.8h2.1A4.3 4.3 0 0 0 21 10.4C21 6.3 17 3 12 3Z'/%3E%3Ccircle cx='7.5' cy='11.5' r='1'/%3E%3Ccircle cx='10' cy='7.5' r='1'/%3E%3Ccircle cx='15' cy='7.5' r='1'/%3E%3C/svg%3E");
	--es-ico-ruler: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='8' width='19' height='8' rx='1.5'/%3E%3Cpath d='M6.5 8v3M10.5 8v4M14.5 8v3M18.5 8v4'/%3E%3C/svg%3E");
	--es-ico-user: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E");
	--es-ico-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
	--es-ico-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
	--es-ico-mail: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6 8.5-6'/%3E%3C/svg%3E");
	--es-ico-phone: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 1.1 4.2 2 2 0 0 1 3.1 2h3a2 2 0 0 1 2 1.7c.1.9.4 1.8.7 2.7a2 2 0 0 1-.5 2.1L7.1 9.8a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.7.7a2 2 0 0 1 1.8 2Z'/%3E%3C/svg%3E");
}

.es-ico {
	position: relative;
}
.es-ico::before {
	content: "";
	display: block;
	width: 30px;
	height: 30px;
	margin-bottom: 14px;
	background: var(--es-navy);
	-webkit-mask: var(--es-ico, var(--es-ico-layers)) center / contain no-repeat;
	mask: var(--es-ico, var(--es-ico-layers)) center / contain no-repeat;
}
.es-ico--snow { --es-ico: var(--es-ico-snow); }
.es-ico--layers { --es-ico: var(--es-ico-layers); }
.es-ico--box { --es-ico: var(--es-ico-box); }
.es-ico--chat { --es-ico: var(--es-ico-chat); }
.es-ico--tool { --es-ico: var(--es-ico-tool); }
.es-ico--palette { --es-ico: var(--es-ico-palette); }
.es-ico--ruler { --es-ico: var(--es-ico-ruler); }
.es-ico--mail { --es-ico: var(--es-ico-mail); }
.es-ico--phone { --es-ico: var(--es-ico-phone); }
.es-ico--wa { --es-ico: var(--es-ico-wa); }

/* =========================================================================
   5. Secciones (páginas construidas con bloques)
   ========================================================================= */
.es-page .entry-content > .alignfull:first-child,
.es-page .entry-content > *:first-child { margin-top: 0; }

.es-section {
	padding-top: var(--es-section) !important;
	padding-bottom: var(--es-section) !important;
	padding-left: var(--es-gutter) !important;
	padding-right: var(--es-gutter) !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.es-section--tight {
	padding-top: clamp(36px, 4vw, 56px) !important;
	padding-bottom: clamp(36px, 4vw, 56px) !important;
}
.es-bg-ivory { background: var(--es-ivory); }
.es-bg-blue { background: var(--es-blue-50); }
.es-bg-blush { background: var(--es-blush); }
.es-bg-navy { background: var(--es-navy); color: #e7eef3; }
.es-bg-navy :is(h1, h2, h3, h4) { color: #fff; }
.es-bg-navy p { color: #dfe8ee; }

.es-section-head { margin-bottom: clamp(32px, 4vw, 52px) !important; max-width: 40rem; }
.es-section-head h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 12px; }
.es-section-head p { margin: 0; color: var(--es-muted); }
.es-section-head--center { margin-left: auto !important; margin-right: auto !important; text-align: center; }

/* ---- Hero ---- */
.es-hero {
	position: relative;
	background: linear-gradient(180deg, #efe9e1 0%, var(--es-hero) 100%);
	padding: clamp(40px, 5vw, 72px) var(--es-gutter) clamp(48px, 6vw, 88px) !important;
	margin-top: 0 !important;
	overflow: hidden;
}
.es-hero > .wp-block-columns { align-items: center !important; gap: clamp(24px, 4vw, 64px) !important; margin: 0 auto; }
.es-hero h1 {
	font-size: clamp(38px, 4.6vw, 64px);
	line-height: 1.06;
	margin: 0 0 22px;
	max-width: 11.5em;
}
.es-hero h1 em { font-style: italic; color: var(--es-navy); }
.es-hero .es-lead { margin: 0 0 32px; }
.es-hero__media { margin: 0 !important; }
.es-hero__media video,
.es-hero__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1150 / 720;
	object-fit: cover;
	background: var(--es-hero);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 6%, #000 94%, transparent 100%);
	mask-composite: intersect;
}

/* ---- Beneficios ---- */
.es-benefits > .wp-block-columns { gap: 0 !important; margin: 0 auto; }
.es-benefits .wp-block-column { padding: 6px clamp(16px, 2.2vw, 32px); }
.es-benefits .wp-block-column + .wp-block-column { border-left: 1px solid var(--es-line); }
.es-benefits h3 {
	font-family: var(--es-sans);
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0;
	margin: 0 0 6px;
}
.es-benefits p { font-size: 14.5px; line-height: 1.6 !important; color: var(--es-muted); margin: 0; }

/* ---- Categorías (bento) ---- */
.es-cats {
	display: grid !important;
	grid-template-columns: 1.2fr 1fr;
	grid-template-rows: auto auto;
	gap: clamp(16px, 2vw, 28px);
}
.es-cats > * { margin: 0 !important; }
.es-cat { position: relative; display: flex; flex-direction: column; }
.es-cat--big { grid-row: span 2; }
.es-cat .wp-block-image { margin: 0 0 18px !important; overflow: hidden; border-radius: var(--es-radius); flex: 1 1 auto; background: var(--es-ivory); }
.es-cat .wp-block-image a, .es-cat .wp-block-image img { display: block; width: 100%; height: 100%; }
.es-cat .wp-block-image img { object-fit: cover; aspect-ratio: 16 / 10; transition: transform .8s var(--es-ease); }
.es-cat--big .wp-block-image img { aspect-ratio: auto; min-height: 100%; }
.es-cat:hover .wp-block-image img { transform: scale(1.035); }
.es-cat h3 { font-size: clamp(24px, 2.2vw, 30px); margin: 0 0 4px; }
.es-cat h3 a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 12px; }
.es-cat h3 a::after {
	content: "";
	width: 22px; height: 22px;
	background: currentColor;
	-webkit-mask: var(--es-ico-arrow) center / contain no-repeat;
	mask: var(--es-ico-arrow) center / contain no-repeat;
	transition: transform .3s var(--es-ease);
}
.es-cat:hover h3 a::after { transform: translateX(5px); }
.es-cat p { margin: 0; color: var(--es-muted); font-size: 15px; }
/* Toda la tarjeta es clicable a través del enlace del título */
.es-cat h3 a::before { content: ""; position: absolute; inset: 0; z-index: 1; }

/* ---- Editorial / tecnología ---- */
.es-split > .wp-block-columns { align-items: center !important; gap: clamp(28px, 5vw, 88px) !important; margin: 0 auto; }
.es-split h2 { font-size: clamp(30px, 3.4vw, 46px); margin: 0 0 18px; }
.es-photo img { border-radius: var(--es-radius); display: block; width: 100%; height: auto; box-shadow: var(--es-shadow); }
.es-photo--tall img { aspect-ratio: 4 / 5; object-fit: cover; }
.es-photo { margin: 0 !important; }

.es-links { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 26px; }
.es-links p { margin: 0; }
.es-links a, a.es-arrow-link {
	color: var(--es-navy);
	font-weight: 500;
	text-decoration: none;
	border-bottom: 1px solid rgba(47, 79, 104, .35);
	padding-bottom: 2px;
}
.es-links a:hover, a.es-arrow-link:hover { border-color: var(--es-navy); }

/* Capas numeradas */
ol.es-layers {
	list-style: none;
	counter-reset: es-layer;
	padding: 0 !important;
	margin: 26px 0 0 !important;
	border-top: 1px solid var(--es-line);
}
ol.es-layers > li {
	counter-increment: es-layer;
	position: relative;
	padding: 15px 0 15px 52px;
	border-bottom: 1px solid var(--es-line);
	line-height: 1.55 !important;
	font-size: 15px;
}
ol.es-layers > li::before {
	content: counter(es-layer, decimal-leading-zero);
	position: absolute;
	left: 0;
	top: 15px;
	font-family: var(--es-serif);
	font-size: 20px;
	line-height: 1.2;
	color: var(--es-blue);
}
ol.es-layers strong { color: var(--es-ink); font-weight: 600; }

.es-specs { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 30px !important; padding: 0 !important; list-style: none; }
.es-specs li {
	margin: 0 !important;
	padding: 8px 16px;
	border-radius: 999px;
	background: #fff;
	border: 1px solid var(--es-line);
	font-size: 13.5px;
	line-height: 1.3 !important;
	color: var(--es-ink);
}

/* ---- Cómo comprar (pasos) ---- */
ol.es-steps {
	list-style: none;
	counter-reset: es-step;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 0;
	padding: 0 !important;
	margin: 0 0 40px !important;
}
ol.es-steps > li {
	counter-increment: es-step;
	position: relative;
	padding: 62px 18px 0 0;
	font-size: 15px;
	line-height: 1.55 !important;
	color: var(--es-ink);
}
ol.es-steps > li::before {
	content: counter(es-step);
	position: absolute;
	left: 0; top: 0;
	width: 42px; height: 42px;
	border-radius: 50%;
	display: grid; place-items: center;
	background: #fff;
	color: var(--es-navy);
	font-family: var(--es-serif);
	font-size: 19px;
	box-shadow: inset 0 0 0 1px rgba(47, 79, 104, .18);
	z-index: 1;
}
ol.es-steps > li::after {
	content: "";
	position: absolute;
	left: 50px; right: 12px; top: 21px;
	border-top: 1px dashed rgba(47, 79, 104, .3);
}
ol.es-steps > li:last-child::after { display: none; }
ol.es-steps strong { display: block; font-weight: 600; margin-bottom: 2px; }
ol.es-steps span { color: var(--es-muted); font-size: 14px; }

/* ---- Preguntas frecuentes ---- */
.es-faq { border-top: 1px solid var(--es-line); }
.wp-block-details.es-q {
	border-bottom: 1px solid var(--es-line);
	padding: 0 !important;
	margin: 0 !important;
}
.wp-block-details.es-q > summary {
	list-style: none;
	cursor: pointer;
	position: relative;
	padding: 22px 52px 22px 0;
	font-family: var(--es-sans);
	font-size: clamp(16px, 1.3vw, 18px);
	font-weight: 500;
	color: var(--es-ink);
}
.wp-block-details.es-q > summary::-webkit-details-marker { display: none; }
.wp-block-details.es-q > summary::after {
	content: "";
	position: absolute;
	right: 4px; top: 50%;
	width: 22px; height: 22px;
	margin-top: -11px;
	background: var(--es-navy);
	-webkit-mask: var(--es-ico-plus) center / contain no-repeat;
	mask: var(--es-ico-plus) center / contain no-repeat;
	transition: transform .3s var(--es-ease);
}
.wp-block-details.es-q[open] > summary::after { transform: rotate(45deg); }
.wp-block-details.es-q > :not(summary) { margin: 0 0 22px; max-width: 46rem; color: var(--es-text); }
.wp-block-details.es-q[open] > :not(summary) { animation: es-fade .35s var(--es-ease); }
.es-faq-group { margin-top: 48px !important; }
.es-faq-group > h2 { font-size: clamp(24px, 2.4vw, 30px); margin: 0 0 8px; }

/* ---- CTA final ---- */
.es-cta { text-align: center; }
.es-cta h2 { font-size: clamp(30px, 3.6vw, 48px); margin: 0 auto 14px; max-width: 18em; }
.es-cta p { max-width: 34rem; margin: 0 auto 30px; }
.es-cta .wp-block-buttons { justify-content: center; }

/* ---- Encabezado de páginas interiores ---- */
.es-pagehead { text-align: left; }
.es-pagehead h1 { font-size: clamp(38px, 4.4vw, 60px); margin: 0 0 14px; }
.es-pagehead p { max-width: 38rem; margin: 0; }

/* ---- Contacto ---- */
.es-contact-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.es-contact-list > * { margin: 0 !important; }
.es-contact-card {
	background: #fff;
	border: 1px solid var(--es-line);
	border-radius: var(--es-radius);
	padding: 30px 28px !important;
	transition: box-shadow .3s var(--es-ease), transform .3s var(--es-ease);
}
.es-contact-card:hover { box-shadow: var(--es-shadow); transform: translateY(-2px); }
.es-contact-card h3 { font-family: var(--es-sans); font-size: 15px; font-weight: 600; letter-spacing: .02em; margin: 0 0 6px; }
.es-contact-card p { margin: 0 0 4px; }
.es-contact-card p a { color: var(--es-navy); font-weight: 500; text-decoration: none; word-break: break-word; }
.es-contact-card--main { background: var(--es-navy); border-color: var(--es-navy); }
.es-contact-card--main :is(h3, p, a) { color: #fff !important; }
.es-contact-card--main.es-ico::before { background: #fff; }

/* ---- Aparición progresiva ---- */
@keyframes es-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes es-failsafe { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
	html.es-js .es-reveal {
		opacity: 0;
		transform: translateY(22px);
		transition: opacity .9s var(--es-ease), transform .9s var(--es-ease);
		animation: es-failsafe 0s 3.5s forwards;
	}
	html.es-js .es-reveal.is-in { opacity: 1; transform: none; animation: none; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =========================================================================
   6. Encabezado y pie (Blocksy)
   ========================================================================= */
#header [data-row="middle"] { border-bottom: 1px solid rgba(47, 79, 104, .08); }
#header .ct-menu-link { font-weight: 500; }

.es-header-links { display: inline-flex; align-items: center; gap: 18px; }
.es-header-account {
	display: inline-flex;
	width: 22px; height: 22px;
	background: var(--theme-text-color, var(--es-ink));
	-webkit-mask: var(--es-ico-user) center / contain no-repeat;
	mask: var(--es-ico-user) center / contain no-repeat;
	font-size: 0;
}
.es-header-account:hover { background: var(--es-navy); }
.es-header-wa {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px;
	border: 1.5px solid rgba(47, 79, 104, .35);
	border-radius: 999px;
	font-size: 13.5px !important;
	font-weight: 500;
	color: var(--es-navy) !important;
	text-decoration: none;
	white-space: nowrap;
}
.es-header-wa::before {
	content: ""; width: 16px; height: 16px;
	background: currentColor;
	-webkit-mask: var(--es-ico-wa) center / contain no-repeat;
	mask: var(--es-ico-wa) center / contain no-repeat;
}
.es-header-wa:hover { border-color: var(--es-navy); background: var(--es-navy); color: #fff !important; }

.ct-footer { font-size: 14.5px; }
.ct-footer .widget-title, .ct-footer h2, .ct-footer h3 {
	font-family: var(--es-sans);
	font-size: 13px !important;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--es-ink);
	margin-bottom: 18px;
}
.ct-footer ul { list-style: none; padding: 0; margin: 0; }
.ct-footer li { margin: 0 0 10px; }
.ct-footer a { text-decoration: none; }
.ct-footer .es-footer-logo img { max-width: 200px; height: auto; }

/* =========================================================================
   7. Botón flotante de WhatsApp
   ========================================================================= */
.es-wa-float {
	position: fixed;
	right: clamp(14px, 2vw, 26px);
	bottom: clamp(14px, 2vw, 26px);
	z-index: 90;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	height: 54px;
	padding: 0 16px;
	border-radius: 999px;
	background: #fff;
	color: #1f9d55;
	box-shadow: 0 14px 30px -14px rgba(42, 70, 96, .45), 0 0 0 1px rgba(47, 79, 104, .08);
	text-decoration: none;
	transition: transform .3s var(--es-ease), box-shadow .3s var(--es-ease);
}
.es-wa-float .es-wa-icon { width: 26px; height: 26px; }
.es-wa-float__label { color: var(--es-ink); font-size: 14px; font-weight: 500; max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .45s var(--es-ease); }
.es-wa-float:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -14px rgba(42, 70, 96, .5), 0 0 0 1px rgba(47, 79, 104, .1); }
.es-wa-float:hover .es-wa-float__label, .es-wa-float:focus-visible .es-wa-float__label { max-width: 220px; }
@media (max-width: 689px) { .es-wa-float { height: 50px; padding: 0 12px; } .es-wa-float__label { display: none; } }

/* =========================================================================
   8. WooCommerce
   ========================================================================= */
.es-price-ask {
	font-family: var(--es-sans);
	font-size: 14px;
	font-weight: 500;
	color: var(--es-muted);
	letter-spacing: .01em;
}

/* Tarjetas de producto */
[data-products] .product { transition: transform .35s var(--es-ease); }
[data-products] .product figure,
[data-products] .ct-media-container { border-radius: var(--es-radius); overflow: hidden; background: var(--es-ivory); }
[data-products] .product img { transition: transform .8s var(--es-ease); }
[data-products] .product:hover img { transform: scale(1.04); }
[data-products] .woocommerce-loop-product__title {
	font-family: var(--es-serif) !important;
	font-weight: 500 !important;
	font-size: 21px !important;
	letter-spacing: -.01em;
	color: var(--es-ink);
	margin-top: 16px !important;
}
[data-products] .price { font-size: 15px; }
[data-products] .ct-woo-card-actions .button,
[data-products] .button.es-loop-more {
	background: transparent;
	color: var(--es-navy);
	border: 1.5px solid rgba(47, 79, 104, .35);
	border-radius: 999px;
	min-height: 42px;
	padding: 0 20px;
	font-size: 13.5px;
}
[data-products] .ct-woo-card-actions .button:hover,
[data-products] .button.es-loop-more:hover { background: var(--es-navy); border-color: var(--es-navy); color: #fff; }

/* Ficha de producto */
.single-product .product_title { font-size: clamp(32px, 3.4vw, 46px) !important; }
.single-product .summary .price { margin-bottom: 18px; }
.single-product .woocommerce-product-details__short-description { color: var(--es-text); }
.single-product .woocommerce-product-details__short-description ul { padding-left: 0; list-style: none; }
.single-product .woocommerce-product-details__short-description li { position: relative; padding-left: 24px; margin-bottom: 6px; }
.single-product .woocommerce-product-details__short-description li::before {
	content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%;
	background: var(--es-blue);
}
.es-quote { margin: 24px 0 28px; }
.es-quote .es-btn { width: 100%; max-width: 380px; }
.es-quote__note { margin: 10px 0 0; font-size: 13.5px; color: var(--es-muted); }
.es-quote--secondary { margin: 10px 0 24px; }
.es-link-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--es-navy); font-weight: 500; text-decoration: none; font-size: 14.5px; }
.es-link-wa .es-wa-icon { width: 18px; height: 18px; color: #1f9d55; }
.es-link-wa:hover span { text-decoration: underline; text-underline-offset: 3px; }
.woocommerce-tabs .tabs a { font-weight: 500; }
.woocommerce-product-attributes th { color: var(--es-ink); font-weight: 600; }
.single-product .woocommerce-product-gallery img { border-radius: var(--es-radius); }

/* Archivo de tienda y categorías */
.woocommerce-products-header .page-description,
.term-description { max-width: 40rem; color: var(--es-text); }

/* Carrito, pago y mi cuenta */
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content,
.woocommerce-account .entry-content { --es-card: #fff; }
.woocommerce-checkout #order_review,
.woocommerce .cart-collaterals .cart_totals,
.ct-cart-totals,
.woocommerce-checkout .woocommerce-checkout-review-order {
	border-radius: var(--es-radius);
}
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; text-decoration: none; }
.woocommerce-MyAccount-navigation li.is-active a { color: var(--es-navy); font-weight: 600; }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
	border-radius: var(--es-radius-sm);
}
.cart-empty.woocommerce-info { background: var(--es-blue-50); color: var(--es-ink); border: 0; }

/* =========================================================================
   9. Responsive
   ========================================================================= */
@media (max-width: 999px) {
	.es-benefits > .wp-block-columns { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px !important; }
	.es-benefits .wp-block-column { border-left: 0 !important; padding: 0 16px 0 0; }
	ol.es-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 30px; }
	ol.es-steps > li::after { display: none; }
	.es-contact-list { grid-template-columns: 1fr; }
}
@media (max-width: 781px) {
	.es-hero { padding-top: 28px !important; }
	.es-hero > .wp-block-columns { flex-direction: column-reverse; }
	.es-hero .wp-block-column { flex-basis: 100% !important; }
	.es-hero h1 { font-size: clamp(34px, 9vw, 44px); }
	.es-cats { grid-template-columns: 1fr; }
	.es-cat--big { grid-row: auto; }
	.es-cat--big .wp-block-image img { aspect-ratio: 4 / 3.4; }
	.es-split .wp-block-column { flex-basis: 100% !important; }
	.es-split--media-last > .wp-block-columns { flex-direction: column-reverse; }
}
@media (max-width: 480px) {
	.es-benefits > .wp-block-columns { grid-template-columns: 1fr; }
	ol.es-steps { grid-template-columns: 1fr; }
	ol.es-steps > li { padding: 4px 0 0 60px; min-height: 42px; }
	.es-hero .wp-block-buttons { flex-direction: column; align-items: stretch; }
	.es-hero .wp-block-button, .es-hero .wp-block-button__link { width: 100%; text-align: center; justify-content: center; }
}

/* =========================================================================
   10. Ajustes tras la primera revisión
   ========================================================================= */
:root { --theme-button-border-radius: 999px; }

/* Páginas construidas con bloques: sin espacio extra arriba ni abajo */
.ct-container-full:has(> article > .entry-content > .alignfull:first-child) { padding-top: 0 !important; }
.ct-container-full:has(> article > .entry-content > .alignfull:last-child) { padding-bottom: 0 !important; }

.es-hero .wp-block-buttons { gap: 12px; }
.es-hero .wp-block-button__link { padding-left: 26px; padding-right: 26px; white-space: nowrap; }

/* Menú en minúsculas, más sereno */
#header .ct-menu-link { text-transform: none; font-size: 14.5px; letter-spacing: 0; }
/* Carrito solo con ícono */
#header .ct-cart-item .ct-label { display: none; }

/* Fondo general blanco; marfil y azul solo en secciones */
body { background-color: #fff; }

/* Hero: dos líneas de titular y botones en una fila en escritorio */
.es-hero h1 { font-size: clamp(36px, 3.9vw, 56px); max-width: none; }
@media (min-width: 1000px) {
	.es-hero .wp-block-column:first-child { flex-basis: 48% !important; }
	.es-hero .wp-block-column:last-child { flex-basis: 52% !important; }
	.es-hero .wp-block-buttons { flex-wrap: nowrap; }
}
ol.es-steps { margin: 0 auto 40px !important; }

/* Tarjetas de producto en móvil (2 columnas) */
@media (max-width: 689px) {
	[data-products] .woocommerce-loop-product__title { font-size: 17px !important; margin-top: 10px !important; }
	[data-products] .button.es-loop-more { min-height: 38px; padding: 0 14px; font-size: 12.5px; }
	[data-products] .entry-meta { display: none; }
}

.es-faq { max-width: 860px; margin-left: auto !important; margin-right: auto !important; width: 100%; }
.es-faq-group .es-faq { max-width: none; }

/* Textos angostos alineados a la izquierda del contenedor de 1200px */
.es-section > .es-section-head:not(.es-section-head--center),
.es-pagehead > p,
.es-pagehead > .wp-block-columns { margin-left: max(0px, calc((100% - 1200px) / 2)) !important; margin-right: auto !important; }

/* Descripción de producto con medida de lectura cómoda */
.woocommerce-Tabs-panel { max-width: 780px; margin-left: auto; margin-right: auto; }
.woocommerce-Tabs-panel h3 { font-size: 24px; margin-top: 34px; }
