body { margin: 0; }

.nd-header, .nd-footer, .nd-main { max-width: 1240px; margin-inline: auto; padding: 1rem 1.5rem; }
.nd-header { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.nd-header .custom-logo { max-width: 150px; height: auto; }
.nd-header ul { display: flex; gap: 1.5rem; list-style: none; margin: 0; padding: 0; }

.nd-lang { display: inline-flex; gap: 0.4em; font-size: 0.875rem; font-weight: 600; letter-spacing: 0.08em; }
.nd-lang a { color: inherit; text-decoration: none; opacity: 0.6; }
.nd-lang a[aria-current], .nd-lang a:hover { opacity: 1; }

.nd-on-dark a { color: inherit; }
.nd-on-dark a { transition: color .2s; }
.nd-on-dark a:hover, .nd-on-dark a:focus-visible { color: var(--e-global-color-primary, #af1a25); }
.nd-on-dark .elementor-widget-copyright .hfe-copyright-wrapper { color: #9a9a9a; }
.nd-on-dark .elementor-widget-copyright .hfe-copyright-wrapper a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.nd-on-dark .elementor-widget-copyright .hfe-copyright-wrapper a:hover, .nd-on-dark .hfe-copyright-wrapper a:focus-visible { color: var(--e-global-color-primary, #af1a25); }
.nd-on-dark .elementor-widget-text-editor p:last-child { margin-bottom: 0; }
.nd-on-dark { color: #fff; }

#nd-loader {
	position: fixed; inset: 0; z-index: 99999;
	display: grid; place-items: center;
	background: #0e0e0e; color: #af1a25;
	animation: nd-loader-out .6s ease 5s forwards;
}
.nd-splash-quick #nd-loader { animation-delay: 2.5s; }
.nd-splash-quick #nd-loader .nd-loader__name, .nd-splash-quick #nd-loader .nd-loader__tagline { display: none; }
.nd-splash-quick #nd-loader svg { width: min(200px, 45vw); }
.nd-leaving #nd-loader { visibility: visible; animation: nd-loader-in .35s ease forwards; }
#nd-loader .nd-loader__inner { display: grid; justify-items: center; gap: 1rem; text-align: center; }
#nd-loader svg { width: min(380px, 72vw); margin-block: -8% -12%; height: auto; overflow: visible; }
#nd-loader .nd-loader__name { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(1.9rem, 6vw, 3.25rem); line-height: 1.1; color: #fff; opacity: 0; animation: nd-rise .7s ease-out .7s forwards; }
#nd-loader .nd-loader__tagline { margin: 0; font-family: Poppins, system-ui, sans-serif; font-size: clamp(.7rem, 2.2vw, .85rem); font-weight: 500; letter-spacing: .35em; text-transform: uppercase; color: #9a9a9a; opacity: 0; animation: nd-rise .7s ease-out 1s forwards; }
#nd-loader .nd-strand, #nd-loader .nd-head { transform-box: fill-box; }
#nd-loader .nd-head { opacity: 0; transform-origin: center; animation: nd-head-in .6s ease-out forwards; }
#nd-loader .nd-strand { opacity: 0; transform-origin: right center; animation: nd-strand-in .6s cubic-bezier(.2,.7,.3,1) forwards, nd-wave 1.6s ease-in-out infinite alternate; }
#nd-loader .nd-strand--1 { animation-delay: .35s, .95s; }
#nd-loader .nd-strand--2 { animation-delay: .2s, .8s; }
.nd-loaded #nd-loader { animation: nd-loader-out .6s ease forwards; }
.nd-loaded #nd-loader .nd-loader__inner { transition: transform .6s ease; transform: scale(1.06); }

@keyframes nd-head-in { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }
@keyframes nd-strand-in { from { opacity: 0; transform: translateX(-35%); } to { opacity: 1; transform: none; } }
@keyframes nd-wave { from { transform: skewY(0) scaleX(1); } to { transform: skewY(-6deg) scaleX(1.06); } }
@keyframes nd-loader-out { to { opacity: 0; visibility: hidden; } }
@keyframes nd-loader-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes nd-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
	#nd-loader .nd-head, #nd-loader .nd-strand, #nd-loader .nd-loader__name, #nd-loader .nd-loader__tagline { animation: none; opacity: 1; }
	.nd-splash-quick #nd-loader { display: none; }
}
/* Las animaciones de entrada de Elementor esperan a que se abra el splash. */
html:not(.nd-loaded) .elementor-element.animated { animation-play-state: paused; }
@media (max-width: 1024px) { .nd-on-dark .elementor-widget-navigation-menu { min-width: 0; } }

@media (prefers-reduced-motion: reduce) {
	.elementor-invisible { visibility: visible !important; }
	.animated, [class*="elementor-animation-"] { animation: none !important; transition: none !important; transform: none !important; }
}

/* Header fijo (HFE free no trae sticky). */
body.ehf-header #masthead, body #masthead { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 1000; transition: box-shadow .3s ease; }
@media (max-width: 600px) { body.ehf-header #masthead, body #masthead { top: 0; } }
#masthead .nd-topbar { max-height: 80px; overflow: hidden; transition: background-color .35s ease, max-height .35s ease, min-height .35s ease, padding .35s ease, opacity .25s ease, border-width .35s ease; }
#masthead .nd-mainbar { transition: background-color .35s ease, padding .35s ease; }
#masthead .nd-mainbar .elementor-widget-site-logo img { transition: max-width .35s ease, width .35s ease; }
.nd-scrolled #masthead { box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .55); }
.nd-scrolled #masthead .nd-topbar { max-height: 0; min-height: 0; padding-block: 0 !important; opacity: 0; border-width: 0; }
.nd-scrolled.nd-topbar-open #masthead .nd-topbar { max-height: 80px; min-height: 38px; padding-block: 4px !important; opacity: 1; border-width: 0 0 1px; }
.nd-scrolled #masthead .nd-mainbar { --padding-top: 8px; --padding-bottom: 8px; }
.nd-scrolled #masthead .nd-mainbar .elementor-widget-site-logo img { width: 120px; max-width: 120px; }
@media (max-width: 767px) { .nd-scrolled #masthead .nd-mainbar .elementor-widget-site-logo img { width: 96px; max-width: 96px; } }
@media (prefers-reduced-motion: reduce) { #masthead, #masthead * { transition: none !important; } }

/* Header transparente sobre el héroe; se vuelve negro al hacer scroll (.nd-scrolled). */
body.nd-overlay-header #masthead { position: fixed; inset-inline: 0; top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { body.nd-overlay-header #masthead { top: 0; } }
html:not(.nd-scrolled) body.nd-overlay-header #masthead .nd-topbar,
html:not(.nd-scrolled) body.nd-overlay-header #masthead .nd-mainbar { background-color: transparent !important; }
html:not(.nd-scrolled) body.nd-overlay-header #masthead::before { content: ""; position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(14, 14, 14, .65), rgba(14, 14, 14, 0)); }

/* Barra superior compacta: texto e íconos alineados al centro. */
#masthead .nd-topbar .elementor-widget-text-editor p { margin: 0; line-height: 1.4; }
#masthead .nd-topbar .elementor-social-icons-wrapper { display: flex; align-items: center; }

/* Servicios compactos (franja de 5 íconos sobre foto fija) */
.nd-svc .elementor-image-box-wrapper { display: block; }
.nd-svc .elementor-image-box-img { margin: 0 0 1.1rem; }
.nd-svc .elementor-image-box-img img { transition: transform .3s ease; }
.nd-svc .elementor-widget-image-box:hover .elementor-image-box-img img { transform: translateY(-4px); }
.nd-svc .elementor-image-box-title { margin: 0 0 .6rem; }
.nd-svc .elementor-image-box-title a { display: inline-block; padding: .4rem .8rem; background: #af1a25; color: #fff; font: 600 13px/1.2 Poppins, sans-serif; letter-spacing: .06em; text-transform: uppercase; transition: background-color .25s; }
.nd-svc .elementor-image-box-title a:hover { background: #791e1e; }
.nd-svc .elementor-image-box-description { font: 400 14px/1.6 Poppins, sans-serif; color: #e4e4e4; }
@media (prefers-reduced-motion: reduce) { .nd-svc .elementor-image-box-img img { transition: none; } }
@media (hover: none), (max-width: 1024px) { .nd-svc, .nd-cta { background-attachment: scroll !important; } }

#contact-form { scroll-margin-top: 140px; }

/* 404: el "404" de fondo marca el tamaño; la altura se deriva de él para que arriba y abajo quede el mismo aire. */
body.error404 { background: #0e0e0e; }
.nd-404 { --nd-404-size: clamp(14rem, 38vw, 34rem); box-sizing: border-box; position: relative; min-height: calc(var(--nd-404-size) * .75 + 100px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 56px 24px; text-align: center; background: #f7f3ef; color: #0e0e0e; overflow: hidden; }
.nd-404::before { content: "404"; position: absolute; z-index: 0; top: 50%; left: 50%; transform: translate(-50%, calc(-50% - .23em)); font: 700 var(--nd-404-size)/.8 "Playfair Display", Georgia, serif; color: rgba(175, 26, 37, .07); pointer-events: none; }
.nd-404 > * { position: relative; z-index: 1; }
.nd-404__eyebrow { margin: 0; font: 600 13px/1.4 Poppins, sans-serif; letter-spacing: 3px; text-transform: uppercase; color: #af1a25; }
.nd-404__title { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1.1; color: #0e0e0e; }
.nd-404__text { margin: 0; max-width: 560px; font: 400 1.15rem/1.7 Poppins, sans-serif; color: #4a4a4a; }
.nd-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: 1rem; }
.nd-404 a.nd-404__btn { padding: 1rem 1.6rem; background: #af1a25; border: 1px solid #af1a25; color: #fff; font: 600 13px/1 Poppins, sans-serif; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; transition: background-color .25s, color .25s, border-color .25s; }
.nd-404 a.nd-404__btn:hover, .nd-404 a.nd-404__btn:focus-visible { background: #791e1e; border-color: #791e1e; color: #fff; }
.nd-404 a.nd-404__btn--outline { background: transparent; border-color: #0e0e0e; color: #0e0e0e; }
.nd-404 a.nd-404__btn--outline:hover, .nd-404 a.nd-404__btn--outline:focus-visible { background: #0e0e0e; border-color: #0e0e0e; color: #fff; }

/* Botones de llamada a la acción: mismo comportamiento en todo el sitio (reemplaza el "grow" de Elementor). */
body .elementor-button { position: relative; overflow: hidden; transition: background-color .3s ease, color .3s ease, border-color .3s ease, transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease; }
body .elementor-button::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-130%); pointer-events: none; }
body .elementor-button:hover::after, body .elementor-button:focus-visible::after { transform: translateX(130%); transition: transform .8s ease; }
body .elementor-button:hover, body .elementor-button:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(175, 26, 37, .75); }
body .elementor-button.elementor-animation-grow:hover { transform: translateY(-2px); }
body .elementor-button:active { transform: translateY(0); box-shadow: none; }
body .elementor-button:focus-visible { outline: 3px solid #e5646d; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body .elementor-button, body .elementor-button::after { transition: none !important; } body .elementor-button:hover { transform: none; } }

/* Header negro (al hacer scroll): el logo rojo pierde contraste, se cambia por el isotipo blanco. */
.nd-scrolled #masthead .nd-mainbar .hfe-site-logo-img { display: none; }
.nd-scrolled #masthead .nd-mainbar .hfe-site-logo-container::before { content: ""; display: block; width: 62px; aspect-ratio: 461 / 303; background: url(../img/isotipo-white.png) center / contain no-repeat; animation: nd-logo-in .45s ease both; }
@keyframes nd-logo-in { from { opacity: 0; transform: scale(.86); } to { opacity: 1; transform: none; } }
@media (max-width: 767px) { .nd-scrolled #masthead .nd-mainbar .hfe-site-logo-container::before { width: 50px; } }
@media (prefers-reduced-motion: reduce) { .nd-scrolled #masthead .nd-mainbar .hfe-site-logo-container::before { animation: none; } }

/* Barra negra compacta (al hacer scroll). */
.nd-scrolled #masthead .nd-mainbar { --padding-top: 6px; --padding-bottom: 6px; padding-block: 6px !important; }
.nd-scrolled #masthead .hfe-nav-menu .menu-item a.hfe-menu-item { padding-top: 9px; padding-bottom: 9px; }
.nd-scrolled #masthead .elementor-button { padding: 10px 22px; }
.nd-scrolled #masthead .nd-mainbar > .e-con-inner { padding-block: 0 !important; }
.nd-scrolled #masthead .nd-mainbar .e-con-full { padding-block: 0 !important; }

/* Íconos de redes del header: sin salto; solo cambian de color. */
#masthead .elementor-social-icon { transition: color .25s ease, opacity .25s ease; }
#masthead .elementor-social-icon:hover, #masthead .elementor-social-icon:focus-visible { transform: none; opacity: 1; }
#masthead .elementor-social-icons-wrapper a.elementor-social-icon:hover i, #masthead .elementor-social-icons-wrapper a.elementor-social-icon:focus-visible i { color: #e5646d !important; }
#masthead .elementor-social-icons-wrapper a.elementor-social-icon:hover svg, #masthead .elementor-social-icons-wrapper a.elementor-social-icon:focus-visible svg, #masthead .elementor-social-icons-wrapper a.elementor-social-icon:hover svg path { fill: #e5646d !important; }

/* Precios: fondo con vida (isotipo gigante tenue + resplandor) sobre el negro de Elementor. */
#prices { position: relative; overflow: hidden; background-image: linear-gradient(180deg, rgba(255, 255, 255, .02), transparent 40%); }
#prices::before { content: ""; position: absolute; z-index: 0; top: auto; left: auto; right: -12%; bottom: -16%; width: min(46vw, 620px); aspect-ratio: 461 / 303; background: url(../img/isotipo-white.png) center / contain no-repeat; opacity: .045; transform: rotate(-9deg); pointer-events: none; }
#prices::after { content: ""; position: absolute; z-index: 0; left: -14%; top: -35%; width: 50%; aspect-ratio: 1; background: radial-gradient(circle, rgba(175, 26, 37, .1), transparent 62%); pointer-events: none; }
#prices > .e-con-inner { position: relative; z-index: 1; }
@media (max-width: 767px) { #prices::before { width: 80vw; right: -22%; bottom: -4%; } #prices::after { width: 90%; left: -30%; } }

/* Encabezado de sección (texto pequeño + título + descripción): un solo bloque compacto.
   El espacio general de la sección (gap) separa el bloque del contenido; entre sus 3 piezas se recupera. */
.nd-h-eyebrow + .nd-h-title { margin-top: calc(12px - var(--row-gap, 40px)); }
.nd-h-title + .nd-h-sub { margin-top: calc(14px - var(--row-gap, 40px)); }
.nd-banner .nd-h-eyebrow + .nd-h-title, .nd-banner .nd-h-title + .nd-h-sub { margin-top: 0; }
.nd-h-eyebrow { min-width: max-content; }
.nd-h-eyebrow .elementor-heading-title { display: inline-flex; align-items: center; gap: 14px; width: max-content; max-width: none; white-space: nowrap; }
.nd-h-eyebrow .elementor-heading-title::before, .nd-h-eyebrow .elementor-heading-title::after { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.nd-h-eyebrow--left .elementor-heading-title::before { display: none; }
.nd-h-title .elementor-heading-title { letter-spacing: -.01em; }
.nd-h-sub .elementor-widget-container, .nd-h-sub p { margin-bottom: 0; }
.nd-h-sub p { font-size: 1rem; }
@media (max-width: 767px) { .nd-h-eyebrow + .nd-h-title { margin-top: calc(10px - var(--row-gap, 40px)); } .nd-h-title + .nd-h-sub { margin-top: calc(12px - var(--row-gap, 40px)); } }

html { overflow-anchor: none; }

/* Página legal (política de privacidad): lectura cómoda, 65–75 caracteres por línea. */
.nd-legal .nd-legal-date { margin: 0 0 8px; }
.nd-legal .nd-legal-date p { margin: 0; font: 500 .875rem/1.5 Poppins, sans-serif; letter-spacing: .02em; }
.nd-legal .nd-legal-h { margin: 44px 0 0; }
.nd-legal .nd-legal-h .elementor-heading-title { margin: 0 0 14px; padding-top: 24px; border-top: 1px solid #e8e2db; font-family: "Playfair Display", Georgia, serif; font-weight: 700; font-size: clamp(1.35rem, 2.4vw, 1.7rem); line-height: 1.25; color: #0e0e0e; }
.nd-legal .nd-legal-p p, .nd-legal .nd-legal-ul .elementor-icon-list-text { max-width: 68ch; font: 400 1.0625rem/1.8 Poppins, sans-serif; color: #3a3a3a; }
.nd-legal .nd-legal-p p { margin: 0 0 16px; }
.nd-legal .nd-legal-ul { margin: 0 0 16px; }
.nd-legal .nd-legal-ul .elementor-icon-list-item { align-items: flex-start; }
.nd-legal .nd-legal-ul .elementor-icon-list-icon { padding-top: .75em; }
.nd-legal a { color: #af1a25; text-decoration: underline; text-underline-offset: 2px; }
.nd-footer-privacy p { margin: 6px 0 0; text-align: center; font: 400 .8125rem/1.5 Poppins, sans-serif; }
.nd-footer-privacy a { color: #d4d4d4; text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.nd-footer-privacy a:hover, .nd-footer-privacy a:focus-visible { color: #fff; }
@media (max-width: 767px) { .nd-legal .nd-legal-p p, .nd-legal .nd-legal-ul .elementor-icon-list-text { font-size: 1rem; line-height: 1.7; } .nd-legal .nd-legal-h { margin-top: 32px; } }

#masthead .hfe-site-logo-img { aspect-ratio: 300 / 136; height: auto; }

/* Editor de Elementor: la animación de entrada queda en pausa con opacidad 0 al hacer scroll; en el editor se desactiva. */
.elementor-editor-active .elementor-invisible,
.elementor-editor-active .animated { visibility: visible !important; opacity: 1 !important; transform: none !important; animation: none !important; }

/* El editor envuelve el texto en elementos propios con el color del widget: se fuerza el blanco de la etiqueta y el fondo fijo se desactiva dentro del marco. */
.nd-svc .elementor-image-box-title,
.nd-svc .elementor-image-box-title a,
.nd-svc .elementor-image-box-title a * { color: #fff !important; }
.elementor-editor-active .nd-svc, .elementor-editor-active .nd-cta { background-attachment: scroll !important; }
.elementor-editor-active .nd-hero__content * { animation: none !important; opacity: 1 !important; transform: none !important; }
.elementor-editor-active .nd-svc .elementor-image-box-description,
.elementor-editor-active .nd-svc .elementor-image-box-description * { color: #e4e4e4 !important; }
html.elementor-html, html.elementor-html body { --wp-admin--admin-bar--height: 0px !important; }
.elementor-editor-active .nd-hero, .elementor-editor-active .nd-hero__slide { min-height: 760px; }
.elementor-editor-active .elementor-background-video-container { display: none !important; }
