/* ==========================================================================
   AURELYA · Componentes de página (usados por las plantillas de Elementor
   mediante clases CSS). Sin colores literales: todo son tokens.
   ========================================================================== */

.au-upper { text-transform: uppercase; }
.au-center { text-align: center; }

/* ---------- Hero (Inicio desktop) ---------- */
.au-hero__media { position: relative; }
.au-hero__media::after {
	content: ""; position: absolute; top: 24px; right: -8px; left: auto; bottom: auto; width: 160px; height: 1px;
	background: var(--au-copper); transform: rotate(45deg); transform-origin: right top; pointer-events: none;
}
.au-hero__media img { width: 100%; aspect-ratio: 11 / 9; object-fit: cover; display: block; border: 1px solid var(--au-light-gray); }
.au-hero__label { position: absolute; left: 16px; bottom: 32px; background: var(--au-white); padding: 14px 20px; border: 1px solid var(--au-surface-container); max-width: 70%; }
.au-hero__label .elementor-widget { margin: 0; }

/* ---------- Tiles de categoría ---------- */
.au-tile { position: relative; overflow: hidden; border: 1px solid var(--au-light-gray); background: var(--au-surface-container); }
.au-tile--pink { background: var(--au-blush-tint); }
.au-tile > .elementor-widget-image, .au-tile > .elementor-widget-image img { width: 100%; height: 100%; }
.au-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.au-tile__label { position: absolute; left: 16px; bottom: 16px; background: var(--au-white); padding: 14px 18px; border: 1px solid var(--au-surface-container); min-width: 140px; }
.au-tile__label .elementor-widget { margin: 0; }
.au-tile--big .au-tile__label { padding: 18px 20px; }
.au-tile--pink img { width: 74%; height: 62%; object-fit: cover; margin: 6% auto 0; display: block; }
.au-tile--pink .au-tile__label { left: 24px; right: 24px; bottom: 20px; }

/* ---------- Marco copper decorativo (esquina) ---------- */
.au-frame-tr { position: relative; }
.au-frame-tr::before {
	content: ""; position: absolute; top: -14px; right: -14px; left: auto; bottom: auto; width: 140px; height: 70px;
	border-top: 1px solid var(--au-copper); border-right: 1px solid var(--au-copper); pointer-events: none; opacity: .6;
}
.au-frame-bl { position: relative; }
.au-frame-bl::after {
	content: ""; position: absolute; bottom: -16px; left: -16px; top: auto; right: auto; width: 120px; height: 120px;
	border-bottom: 1px solid var(--au-copper); border-left: 1px solid var(--au-copper); pointer-events: none; opacity: .6;
}

/* ---------- Icon-box tipo "Esenciales curados" (mobile) ---------- */
.au-tile-icon { background: var(--au-white); border: 1px solid var(--au-light-gray); padding: 28px 12px; text-align: center; }
.au-tile-icon .elementor-icon-box-icon { color: var(--au-copper); }
.au-tile-icon .elementor-icon-box-title { font-family: var(--au-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--au-teal); }

/* ---------- Link con flecha ---------- */
.au-link-arrow a, a.au-link-arrow { font-family: var(--au-font-body); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--au-teal); }
.au-link-arrow a::after, a.au-link-arrow::after { content: " →"; }

/* ---------- Tarjetas de icono (Precisión estructurada) ---------- */
.au-feature { background: var(--au-white); border: 1px solid var(--au-light-gray); padding: 28px; }
.au-feature .elementor-icon-box-icon { margin-bottom: 20px; }
.au-feature .elementor-icon-box-title { margin-bottom: 8px; }

/* ---------- Ocultar título de página automático ---------- */
.elementor-page .page-header, body.page .entry-header { display: none; }

/* ---------- Sección con textura (banner Catálogo) ---------- */
.au-banner { position: relative; overflow: hidden; }
.au-banner::after {
	content: ""; position: absolute; right: 0; bottom: 0; width: 90px; height: 90px;
	border-top: 1px solid var(--au-copper); border-left: 1px solid var(--au-copper); pointer-events: none;
}
.au-m-hero__img img { width: 100% !important; max-width: none; }

/* ---------- Fotos con borde ---------- */
.au-photo img { border: 1px solid var(--au-light-gray); width: 100%; }

/* ---------- Marco copper pequeño (esquina superior derecha de cards) ---------- */
.au-frame-tr-sm { position: relative; }
.au-frame-tr-sm::before { content: ""; position: absolute; top: -1px; right: -1px; left: auto; bottom: auto; width: 36px; height: 36px; border-top: 1px solid var(--au-copper); border-right: 1px solid var(--au-copper); pointer-events: none; }
.au-corner-pink { position: relative; overflow: hidden; }
.au-corner-pink::before { content: ""; position: absolute; top: 0; right: 0; left: auto; bottom: auto; width: 0; height: 0; border-style: solid; border-width: 0 72px 72px 0; border-color: transparent var(--au-blush-tint) transparent transparent; pointer-events: none; }

/* ---------- Sticky (índice Políticas) ---------- */
@media (min-width: 1025px) { .au-sticky { position: sticky; top: 24px; } }
.au-toc .elementor-icon-list-item a { font-family: var(--au-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.au-toc .elementor-icon-list-item:not(:first-child) { padding-left: 16px; }
.au-toc .elementor-icon-list-item:not(:first-child) a { font-weight: 400; color: var(--au-on-surface-variant); }
.au-toc .elementor-icon-list-icon i { color: var(--au-copper); }
.au-policy-list .elementor-icon-list-icon { padding-top: 4px; }
.au-policy-list .elementor-icon-list-text { font-size: 14px; line-height: 1.6; }
.au-policy-list--diamond .elementor-icon-list-icon i { transform: rotate(45deg); font-size: 8px; }

/* ---------- Formulario (Fluent Forms) ---------- */
.au-form .fluentform .ff-el-group { margin-bottom: 20px; }
.au-form .fluentform .ff-el-input--label label { font-family: var(--au-font-body); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--au-on-surface); margin-bottom: 6px; }
.au-form .fluentform .ff-el-input--label.asterisk-right label::after { color: var(--au-copper); }
.au-form .fluentform .ff-el-form-control { width: 100%; background: var(--au-white); border: 1px solid var(--au-white); border-bottom: 1px solid var(--au-light-gray); border-radius: 0; padding: 12px 14px; font-family: var(--au-font-body); font-size: 15px; color: var(--au-on-surface); box-shadow: none; height: auto; }
.au-form .fluentform .ff-el-form-control:focus { border-bottom-color: var(--au-copper); box-shadow: none; outline: 0; }
.au-form .fluentform .ff-el-form-control::placeholder { color: var(--au-outline); }
.au-form .fluentform select.ff-el-form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%236e7979' stroke-width='1.5'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; }
.au-form .fluentform .ff-t-container { gap: 24px; }
.au-form .fluentform .ff-t-cell { padding: 0 !important; }
.au-form .fluentform .ff-btn-submit { display: inline-flex; align-items: center; justify-content: center; padding: 16px 32px; border: 1px solid var(--au-teal); background: var(--au-teal); color: var(--au-white); font-family: var(--au-font-headline); font-weight: 700; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1; cursor: pointer; transition: background var(--au-transition); border-radius: 0; }
.au-form .fluentform .ff-btn-submit:hover { background: var(--au-teal-dark); box-shadow: var(--au-shadow-hover); }
.au-form .fluentform .ff-message-success { border: 1px solid var(--au-teal); background: var(--au-teal-tint); color: var(--au-teal-dark); font-family: var(--au-font-body); padding: 16px; box-shadow: none; }
.au-form .fluentform .ff-el-is-error .ff-el-form-control { border-bottom-color: var(--au-error); }
.au-form .fluentform .text-danger { color: var(--au-error); font-family: var(--au-font-body); font-size: 12px; }
@media (max-width: 767px) { .au-form .fluentform .ff-t-container { flex-direction: column; gap: 0; } .au-form .fluentform .ff-t-cell { width: 100%; margin-bottom: 20px; } }

/* ---------- Lista de contacto ---------- */
.au-contact-list .elementor-icon-list-text { font-size: 16px; line-height: 1.5; }
.au-contact-list .elementor-icon-list-icon { padding-top: 2px; }
.au-link-arrow--plain a { font-family: var(--au-font-body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.au-m-hero__img { width: 100% !important; }
.au-tile > .au-tile__label { width: auto !important; max-width: calc(100% - 32px); right: auto; --width: auto; }
.au-tile--pink > .au-tile__label { max-width: calc(100% - 48px); }
.au-tile--big > .au-tile__label { min-width: 200px; }
.au-banner.au-pattern-45 { background-image: repeating-linear-gradient(45deg, var(--au-surface-highest) 0 1px, transparent 1px 32px); }
.au-banner::before { content: ""; position: absolute; top: 24px; right: 24px; left: auto; bottom: auto; width: 140px; height: 1px; background: var(--au-copper); transform: rotate(-45deg); transform-origin: right top; opacity: .7; pointer-events: none; }
