.elementor-kit-12{--e-global-color-primary:#6EC1E4;--e-global-color-secondary:#54595F;--e-global-color-text:#7A7A7A;--e-global-color-accent:#61CE70;--e-global-typography-primary-font-family:"Roboto";--e-global-typography-primary-font-weight:600;--e-global-typography-secondary-font-family:"Roboto Slab";--e-global-typography-secondary-font-weight:400;--e-global-typography-text-font-family:"Roboto";--e-global-typography-text-font-weight:400;--e-global-typography-accent-font-family:"Roboto";--e-global-typography-accent-font-weight:500;}.elementor-kit-12 e-page-transition{background-color:#FFBC7D;}.elementor-section.elementor-section-boxed > .elementor-container{max-width:1140px;}.e-con{--container-max-width:1140px;}.elementor-widget:not(:last-child){--kit-widget-spacing:20px;}.elementor-element{--widgets-spacing:20px 20px;--widgets-spacing-row:20px;--widgets-spacing-column:20px;}{}h1.entry-title{display:var(--page-title-display);}@media(max-width:1024px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:1024px;}.e-con{--container-max-width:1024px;}}@media(max-width:767px){.elementor-section.elementor-section-boxed > .elementor-container{max-width:767px;}.e-con{--container-max-width:767px;}}:root { --ps-carton:#DCDBD6; --ps-tinta:#1C1C1A; --ps-grafito:#5A5954; --ps-maqueta:#C9C7C1; --ps-croquis:#EFE36A; --ps-font:Overpass; --ps-fs-meta:clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem); --ps-fs-body:clamp(1rem, 0.96rem + 0.18vw, 1.125rem); --ps-fs-lead:clamp(1.25rem, 1.02rem + 0.98vw, 1.875rem); --ps-fs-card:clamp(1.25rem, 0.98rem + 1.15vw, 2.125rem); --ps-fs-statement:clamp(2rem, 0.9rem + 4.7vw, 5.25rem); --ps-fs-title:clamp(3rem, 1.4rem + 5.4vw, 6rem); --ps-fs-wordmark:calc(100cqi / 8.36); --ps-margin:clamp(1rem, 0.5rem + 2.2vw, 3rem); --ps-gap:1.5rem; --ps-space-m:clamp(1.5rem, 1rem + 1.5vw, 2.5rem); --ps-space-l:clamp(3rem, 2rem + 4vw, 6rem); --ps-space-xl:clamp(5rem, 3rem + 8vw, 11rem); }
/* Start custom CSS *//* Paulines Studio – reglas globales (usar siempre variables) */

/* Overpass (Google Fonts) trae el punto medio · con anchura cero y se pega a la palabra siguiente.
   'PS Punto' solo cubre ese carácter (U+00B7) y va delante de Overpass; el resto del texto sigue en Overpass. */
@font-face { font-family: 'PS Punto'; src: local('Helvetica Neue'), local('HelveticaNeue'), local('Helvetica'), local('Arial'), local('Roboto'), local('Segoe UI'); unicode-range: U+00B7; }
body .elementor :is(.ps-statement, .ps-lead, .ps-body, .ps-meta, .ps-link, .e-default-p) { font-family: 'PS Punto', var(--ps-font), sans-serif; }

:root {
  --ps-ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ps-ease-sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

html, body { background-color: var(--ps-carton, #DCDBD6); }
body { color: var(--ps-tinta, #1C1C1A); font-family: 'PS Punto', var(--ps-font, 'Overpass'), sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: var(--ps-croquis, #EFE36A); color: var(--ps-tinta, #1C1C1A); }
:focus-visible { outline: 2px solid var(--ps-tinta, #1C1C1A); outline-offset: 3px; }

/* Enlaces dentro de un texto (páginas legales, cuerpo de proyectos): siempre subrayados */
body .elementor :is(.ps-body, .ps-lead) a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- Revelado: cada bloque aparece una vez, la primera vez que entra en pantalla (contenido, cabecera y pie) ----------
   Lo activan los fragmentos de Código personalizado "PS – Revelado al hacer scroll". Sin ellos (o con movimiento reducido) todo se ve directamente. */
.ps-rv-on :is(.elementor-location-header, [data-elementor-type="wp-page"], .elementor-location-single, .elementor-location-archive, .elementor-location-footer) :is(.ps-brand, .ps-link, .ps-statement, .ps-lead, .ps-body, .ps-title, .ps-meta-row, .ps-meta, .ps-img, .ps-card, .ps-index, .ps-link-on, .ps-wordmark, h2, h3):not(.is-in) { opacity: 0; transform: translateY(12px); }
.ps-rv-on :is(.elementor-location-header, [data-elementor-type="wp-page"], .elementor-location-single, .elementor-location-archive, .elementor-location-footer) .is-in:not(.rv-end) { transition: opacity 850ms var(--ps-ease-out), transform 850ms var(--ps-ease-out); transition-delay: var(--ps-rv-d, 0ms); }
.ps-rv-on.ps-rv-fail:not(.ps-rv-ready) :is(.elementor-location-header, [data-elementor-type="wp-page"], .elementor-location-single, .elementor-location-archive, .elementor-location-footer) :is(.ps-brand, .ps-link, .ps-statement, .ps-lead, .ps-body, .ps-title, .ps-meta-row, .ps-meta, .ps-img, .ps-card, .ps-index, .ps-link-on, .ps-wordmark, h2, h3) { opacity: 1 !important; transform: none !important; }

/* ---------- Enlaces: subrayado que crece desde la izquierda ---------- */
body .elementor .ps-link > a {
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  padding-bottom: 0.08em;
  transition: background-size 260ms var(--ps-ease-out);
}
/* Página activa y enlaces que deben verse siempre subrayados */
body.post-type-archive-proyectos .elementor .ps-nav-proyectos > a,
body.single-proyectos .elementor .ps-nav-proyectos > a,
body.page-id-48 .elementor .ps-nav-estudio > a,
body .elementor .ps-link-on > a,
body .elementor .ps-link > a:focus-visible { background-size: 100% 1px; }

/* ---------- Tarjetas de proyecto ---------- */
body .elementor .ps-card { transition: transform 160ms var(--ps-ease-out); }
body .elementor .ps-card:active { transform: scale(0.99); }
body .elementor .ps-card .ps-card-title {
  align-self: flex-start;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 2px;
  padding-bottom: 0.06em;
  transition: background-size 320ms var(--ps-ease-out);
}
body .elementor .ps-card .ps-img { transition: transform 700ms var(--ps-ease-out); }
body .elementor .ps-card:focus-visible .ps-card-title { background-size: 100% 2px; }

/* Los hover solo con ratón (en táctil el hover se queda pegado) */
@media (hover: hover) and (pointer: fine) {
  body .elementor .ps-link > a:hover { background-size: 100% 1px; }
  body .elementor .ps-card:hover .ps-card-title { background-size: 100% 2px; }
  body .elementor .ps-card:hover .ps-img { transform: scale(1.015); }
}

/* ---------- Popup Contacto: hoja de croquis ---------- */
.elementor-popup-modal .dialog-widget-content { box-shadow: none !important; border-radius: 0; }
#elementor-popup-modal-44 .dialog-widget-content.animated.slideInUp { animation-duration: 480ms !important; animation-timing-function: var(--ps-ease-sheet) !important; }
/* Salida más rápida; la curva va invertida porque Elementor reproduce la animación al revés */
#elementor-popup-modal-44 .dialog-widget-content.animated.slideInUp.reverse { animation-duration: 260ms !important; animation-timing-function: cubic-bezier(1, 0, 0.68, 0.28) !important; }
/* El contenido entra escalonado detrás de la hoja */
@keyframes ps-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
#elementor-popup-modal-44 .ps-grid > * { animation: ps-rise 420ms var(--ps-ease-out) both; }
#elementor-popup-modal-44 .ps-grid > *:nth-child(1) { animation-delay: 140ms; }
#elementor-popup-modal-44 .ps-grid > *:nth-child(2) { animation-delay: 190ms; }
#elementor-popup-modal-44 .ps-grid > *:nth-child(3) { animation-delay: 240ms; }
#elementor-popup-modal-44 .ps-grid > *:nth-child(4) { animation-delay: 280ms; }
#elementor-popup-modal-44 .elementor .ps-link > button {
  display: inline-block;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 100% 1px;
  padding-bottom: 0.08em;
  transition: transform 160ms var(--ps-ease-out);
}
#elementor-popup-modal-44 .elementor .ps-link > button:active { transform: scale(0.96); }

/* ---------- Línea de metadatos ---------- */
.ps-meta-row > *:empty { display: none; }
.ps-meta-row > *:not(:empty) ~ *:not(:empty)::before { content: "·"; margin-right: 0.45em; }

/* Índice de proyectos al final de cada proyecto: en línea */
.ps-index > * { width: auto; flex: 0 0 auto; }

/* Listado de proyectos: las dos primeras posiciones del Orden pesan más */
.ps-loop > * { grid-column: span 4; }
.ps-loop > *:nth-child(-n+2) { grid-column: span 6; }
.ps-loop > *:nth-child(-n+2) .ps-img { aspect-ratio: 4 / 3; }
.ps-loop > *:nth-child(-n+2) .ps-card-title { font-size: calc(var(--ps-fs-card) * 1.4); }
@media (max-width: 1024px) { .ps-loop > * { grid-column: span 6; } .ps-loop > *:nth-child(-n+2) { grid-column: span 12; } }
@media (max-width: 767px) { .ps-loop > *, .ps-loop > *:nth-child(-n+2) { grid-column: 1 / -1; } }
/* Selección de 3 proyectos (Inicio – variante) */
.ps-loop-3 > * { grid-column: span 4; }
@media (max-width: 767px) { .ps-loop-3 > * { grid-column: 1 / -1; } }

/* Movimiento reducido: sin desplazamientos, solo cambios inmediatos */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}/* End custom CSS */