/* ==========================================================================
   Rotoformas — estilos del tema
   Colores: tinta #12202E · noche #0B1824 · acero #3C4B5A · gris #F4F5F2
            rosa #C8304F (acento) · naranja #F6A552 (sobre fondo oscuro)
   ========================================================================== */

/* Fuentes alojadas en el propio servidor (sin llamadas a Google: RGPD) */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/archivo-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/archivo-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/archivo-latin-800-normal.woff2") format("woff2"); }

:root {
	--rf-ink: #12202E;
	--rf-ink-deep: #0B1824;
	--rf-steel: #3C4B5A;
	--rf-muted: #5A6876;
	--rf-mist: #F4F5F2;
	--rf-line: #E2E5E0;
	--rf-field: #B9C1C8;
	--rf-accent: #C8304F;
	--rf-accent-dark: #9E2440;
	--rf-orange: #F6A552;
	--rf-on-dark: #C9D4DE;
	--rf-display: "Archivo", "Inter", sans-serif;
	--rf-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--rf-radius: 8px;
	--rf-gutter: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font-family: var(--rf-body); font-size: 16px; line-height: 1.6; color: var(--rf-ink); background: #fff; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--rf-accent); }
a:hover { color: var(--rf-accent-dark); }
:focus-visible { outline: 3px solid var(--rf-orange); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--rf-display); color: inherit; }

.rf-wrap { width: 100%; max-width: 1240px; margin-left: auto; margin-right: auto; padding-left: var(--rf-gutter); padding-right: var(--rf-gutter); }
.rf-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 12px 16px; }
.rf-skip:focus { left: 16px; top: 16px; }

/* Botones -------------------------------------------------------------- */
.rf-button,
.wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button,
.woocommerce a.button.alt, .woocommerce button.button.alt {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 44px; padding: 12px 20px; border: 1px solid var(--rf-accent); border-radius: 6px;
	background: var(--rf-accent); color: #fff; font-family: var(--rf-body); font-size: 15px; font-weight: 600; line-height: 1.2;
	text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s;
}
.rf-button:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover {
	background: var(--rf-accent-dark); border-color: var(--rf-accent-dark); color: #fff;
}
.rf-button--outline, .is-style-outline > .wp-block-button__link { background: transparent; color: var(--rf-ink); border-color: var(--rf-field); }
.rf-button--outline:hover, .is-style-outline > .wp-block-button__link:hover { background: var(--rf-mist); color: var(--rf-ink); border-color: var(--rf-ink); }
.rf-dark .is-style-outline > .wp-block-button__link { color: #fff; border-color: #4A6178; }
.rf-dark .is-style-outline > .wp-block-button__link:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.wp-block-buttons { gap: 12px; }
.rf-arrow { font-weight: 600; text-decoration: none; }
.rf-arrow::after { content: " →"; }

/* Barra superior y cabecera --------------------------------------------- */
.rf-topbar { background: var(--rf-ink); color: var(--rf-on-dark); font-size: 13px; }
.rf-topbar__in { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; }
.rf-topbar__info { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.rf-topbar a { color: var(--rf-on-dark); text-decoration: none; }
.rf-topbar a:hover { color: #fff; }
.rf-lang { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.rf-lang a { display: inline-block; padding: 4px 8px; border: 1px solid transparent; border-radius: 4px; font-weight: 500; }
.rf-lang a.is-current { color: #fff; font-weight: 600; border-color: #3C5266; }

.rf-header { background: #fff; border-bottom: 1px solid var(--rf-line); position: relative; z-index: 20; }
.rf-header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 18px; padding-bottom: 18px; }
.rf-logo { display: block; line-height: 0; flex: 0 0 auto; }
.rf-logo img { height: 40px; width: auto; }
.rf-header__nav { display: flex; align-items: center; gap: 28px; }
.rf-menu { display: flex; flex-wrap: wrap; gap: 4px 28px; list-style: none; margin: 0; padding: 0; }
.rf-menu a { color: var(--rf-ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 10px 0; display: inline-block; }
.rf-menu a:hover, .rf-menu .current-menu-item > a { color: var(--rf-accent); }
.rf-header__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-header__cta .rf-button { font-size: 14px; }
.rf-burger { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 10px 14px; background: #fff; border: 1px solid var(--rf-field); border-radius: 6px; font: inherit; font-weight: 600; color: var(--rf-ink); cursor: pointer; }
.rf-burger__bars, .rf-burger__bars::before, .rf-burger__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.rf-burger__bars::before, .rf-burger__bars::after { content: ""; position: absolute; left: 0; }
.rf-burger__bars::before { top: -6px; }
.rf-burger__bars::after { top: 6px; }

@media (max-width: 1080px) {
	.rf-burger { display: inline-flex; }
	.rf-header__nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--rf-line); padding: 16px var(--rf-gutter) 24px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: 0 12px 24px rgba(18,32,46,.08); }
	.rf-header__nav.is-open { display: flex; }
	.rf-menu { flex-direction: column; gap: 0; }
	.rf-menu a { display: block; padding: 12px 0; border-bottom: 1px solid var(--rf-line); }
	.rf-header__cta .rf-button { flex: 1 1 200px; }
}

/* Secciones de contenido (patrones) ------------------------------------- */
.rf-full > * { margin-top: 0; margin-bottom: 0; }
.rf-section { padding: 96px 0; }
.rf-section > .rf-wrap > * + * { margin-top: 0; }
.rf-mist { background: var(--rf-mist); }
.rf-dark { background: var(--rf-ink); color: #fff; }
.rf-kicker { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--rf-accent); }
.rf-dark .rf-kicker { color: var(--rf-orange); }
.rf-h2 { margin: 0 0 16px; font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.01em; line-height: 1.1; }
.rf-lead { margin: 0; font-size: 17px; color: var(--rf-steel); max-width: 640px; }
.rf-dark .rf-lead, .rf-dark p { color: var(--rf-on-dark); }
.rf-dark .rf-h2, .rf-dark h1, .rf-dark h2, .rf-dark h3 { color: #fff; }
.rf-dark a:not(.wp-block-button__link) { color: var(--rf-orange); }
.rf-head { margin-bottom: 48px !important; }
.rf-head.wp-block-columns { align-items: flex-end !important; gap: 24px 48px; }

/* Cabecera de portada */
.rf-hero { padding: 72px 0 88px; }
.rf-hero .wp-block-columns { gap: 48px; align-items: center !important; margin: 0; }
.rf-hero h1 { margin: 0 0 24px; font-size: clamp(38px, 5.4vw, 60px); line-height: 1.04; letter-spacing: -.02em; font-weight: 800; }
.rf-hero .rf-lead { font-size: 19px; margin-bottom: 32px; max-width: 560px; }
.rf-hero .wp-block-button__link { font-size: 16px; padding: 16px 24px; }
.rf-cover-img { margin: 0; }
.rf-cover-img img { width: 100%; height: 440px; object-fit: cover; border-radius: var(--rf-radius); display: block; }

/* Datos */
.rf-facts { background: var(--rf-mist); border-bottom: 1px solid var(--rf-line); padding: 32px 0; }
.rf-facts .wp-block-columns { gap: 24px; margin: 0; }
.rf-fact-title { margin: 0 0 4px; font-family: var(--rf-display); font-size: 26px; font-weight: 700; line-height: 1.2; }
.rf-fact-text { margin: 0; font-size: 15px; color: var(--rf-steel); }

/* Tarjetas */
.rf-cards.wp-block-columns { gap: 24px; margin: 0; }
.rf-card { padding: 28px; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); background: #fff; }
.rf-card h3 { margin: 12px 0 12px; font-size: 22px; font-weight: 700; }
.rf-card p { margin: 0; font-size: 15px; color: var(--rf-steel); }
.rf-num { font-family: var(--rf-display); font-weight: 800; font-size: 15px; color: var(--rf-accent) !important; }

.rf-sector { background: #fff; border-radius: var(--rf-radius); overflow: hidden; display: flex; flex-direction: column; }
.rf-sector .wp-block-image { margin: 0; }
.rf-sector img { width: 100%; height: 220px; object-fit: cover; display: block; }
.rf-sector__body { padding: 24px; }
.rf-sector h3 { margin: 0 0 10px; font-size: 22px; font-weight: 700; }
.rf-sector p { margin: 0 0 10px; font-size: 15px; color: var(--rf-steel); }
.rf-sector p.rf-link { margin: 0; }

/* Área de clientes */
.rf-split.wp-block-columns { gap: 48px; align-items: center !important; margin: 0; }
.rf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.rf-tile { padding: 24px; background: var(--rf-mist); border-radius: var(--rf-radius); border-top: 3px solid var(--rf-accent); }
.rf-tile h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; }
.rf-tile p { margin: 0; font-size: 14px; color: var(--rf-steel); }
.rf-split .wp-block-buttons { margin-top: 24px; }

/* Calidad */
.rf-quality img { width: 100%; height: 340px; object-fit: cover; border-radius: var(--rf-radius); display: block; }
.rf-quality .wp-block-image { margin: 0; }
.rf-quality .rf-h2 { font-size: clamp(28px, 3.4vw, 38px); }
.rf-quality p { font-size: 17px; }

/* Contacto */
.rf-contact.wp-block-columns { gap: 48px; margin: 0; }
.rf-contact-data { margin: 24px 0 0; font-size: 15px; color: var(--rf-steel); }
.rf-contact-data a { color: var(--rf-ink); }

/* Formulario */
.rf-form { background: #fff; border-radius: var(--rf-radius); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.rf-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.rf-field--full, .rf-form__foot, .rf-form__notice { grid-column: 1 / -1; }
.rf-field input, .rf-field select, .rf-field textarea { font: inherit; font-weight: 400; padding: 12px; border: 1px solid var(--rf-field); border-radius: 6px; background: #fff; color: var(--rf-ink); width: 100%; }
.rf-field textarea { resize: vertical; }
.rf-form__foot { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.rf-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--rf-steel); }
.rf-check input { width: 18px; height: 18px; }
.rf-form .rf-button { font-size: 16px; padding: 16px 28px; }
.rf-form__notice { margin: 0; padding: 14px 16px; border-radius: 6px; font-weight: 500; }
.rf-form__notice--ok { background: #E7F3EC; color: #1C5B37; }
.rf-form__notice--error { background: #FBE9EC; color: #8A1F35; }
.rf-hp { position: absolute !important; left: -9999px !important; height: 1px; overflow: hidden; }

/* Publicidad de la subvención ------------------------------------------- */
.rf-funding-band { background: #fff; border-top: 1px solid var(--rf-line); }
.rf-funding-band__in { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; padding-top: 56px; padding-bottom: 56px; }
.rf-funding-logos { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; }
.rf-funding-logos img { width: auto; display: block; }
.rf-funding-logos img[height="56"] { height: 56px; }
.rf-funding-logos img[height="64"] { height: 64px; }
.rf-funding-band__text { flex: 1 1 420px; min-width: 0; }
.rf-funding-band__text h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.rf-funding-band__text p { margin: 0 0 8px; font-size: 15px; color: var(--rf-steel); }

.rf-funding { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; padding: 20px; background: #fff; border-radius: var(--rf-radius); color: var(--rf-ink); }
.rf-funding img { width: auto; display: block; }
.rf-funding img[height="46"] { height: 46px; }
.rf-funding img[height="40"] { height: 40px; }
.rf-funding p { flex: 1 1 320px; margin: 0; font-size: 13px; line-height: 1.5; color: var(--rf-ink); }
.rf-funding a { color: var(--rf-accent); font-weight: 600; }

/* Pie --------------------------------------------------------------------- */
.rf-footer { background: var(--rf-ink-deep); color: var(--rf-on-dark); padding: 64px 0 32px; font-size: 14px; }
.rf-footer a { color: var(--rf-on-dark); text-decoration: none; }
.rf-footer a:hover { color: #fff; text-decoration: underline; }
.rf-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; margin-bottom: 40px; }
.rf-footer__brand img { height: 34px; width: auto; display: block; margin-bottom: 14px; }
.rf-footer__brand p { margin: 0; }
.rf-footer__title { margin: 0 0 10px; font-family: var(--rf-body); font-size: 14px; font-weight: 600; color: #fff; }
.rf-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rf-footer__bottom { display: flex; flex-wrap: wrap; gap: 16px 20px; justify-content: space-between; align-items: center; margin-top: 32px; padding-top: 20px; border-top: 1px solid #22364A; font-size: 13px; }
.rf-footer .rf-legal { flex-direction: row; flex-wrap: wrap; gap: 20px; }

/* Páginas interiores ------------------------------------------------------ */
.rf-page__head { background: var(--rf-mist); border-bottom: 1px solid var(--rf-line); padding: 56px 0 40px; }
.rf-page__title { margin: 0; font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.01em; }
.rf-content { padding-top: 48px; padding-bottom: 80px; }
.rf-content > * { max-width: 820px; }
.rf-content > .alignwide, .rf-content.rf-shop > * { max-width: none; }
.rf-content h2 { font-size: 28px; margin: 40px 0 12px; }
.rf-content h3 { font-size: 21px; margin: 28px 0 8px; }
.rf-content table { width: 100%; border-collapse: collapse; }
.rf-content th, .rf-content td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rf-line); }
.rf-project-logos { display: flex; flex-wrap: wrap; gap: 24px 32px; align-items: center; padding: 24px; border: 1px solid var(--rf-line); border-radius: var(--rf-radius); }
.rf-project-logos figure { margin: 0; }
.rf-project-logos img { height: 60px; width: auto; }

/* Área privada (WooCommerce) --------------------------------------------- */
.rf-pbar { background: var(--rf-ink); color: #fff; }
.rf-pbar__in { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; justify-content: space-between; }
.rf-pbar__nav { display: flex; flex-wrap: wrap; gap: 4px; }
.rf-pbar__nav a { color: var(--rf-on-dark); text-decoration: none; padding: 16px 12px; font-size: 15px; font-weight: 500; border-bottom: 3px solid transparent; }
.rf-pbar__nav a:hover { color: #fff; }
.rf-pbar__nav a.is-current { color: #fff; border-bottom-color: var(--rf-orange); }
.rf-pbar__who { font-size: 13px; color: var(--rf-on-dark); padding: 8px 0; }
.rf-pbar__who a { color: var(--rf-orange); }
.rf-pnote { margin: 0 0 32px; font-size: 13px; color: var(--rf-muted); }
.rf-login-intro { max-width: 640px; font-size: 16px; color: var(--rf-steel); margin-bottom: 24px; }

.rf-shop { padding-top: 40px; }
.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--rf-muted); margin-bottom: 24px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--rf-muted); }
.woocommerce ul.products li.product { border: 1px solid var(--rf-line); border-radius: var(--rf-radius); padding: 0 0 20px; overflow: hidden; }
.woocommerce ul.products li.product a img { margin: 0 0 16px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--rf-display); font-size: 19px; font-weight: 700; padding: 0 20px; color: var(--rf-ink); }
.woocommerce ul.products li.product .price { padding: 0 20px; color: var(--rf-ink); font-weight: 600; }
.woocommerce ul.products li.product .button { margin: 12px 20px 0; }
.woocommerce div.product .product_title { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--rf-ink); font-family: var(--rf-display); font-size: 28px; font-weight: 800; }
.woocommerce div.product form.cart .variations { margin-bottom: 16px; }
.woocommerce div.product form.cart .variations th.label { padding-right: 16px; }
.woocommerce div.product form.cart .variations select { min-width: 280px; min-height: 44px; padding: 10px 12px; border: 1px solid var(--rf-field); border-radius: 6px; font: inherit; background: #fff; }
.woocommerce div.product form.cart .quantity .qty { min-height: 44px; width: 80px; border: 1px solid var(--rf-field); border-radius: 6px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { border-bottom-color: #fff; }
.woocommerce span.onsale { background: var(--rf-accent); }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; border-bottom: 1px solid var(--rf-line); color: var(--rf-ink); text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { color: var(--rf-accent); font-weight: 600; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select { min-height: 44px; padding: 10px 12px; border: 1px solid var(--rf-field); border-radius: 6px; }
.woocommerce-message, .woocommerce-info { border-top-color: var(--rf-accent); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--rf-accent); }

/* Móvil ------------------------------------------------------------------- */
@media (max-width: 781px) {
	.rf-section { padding: 64px 0; }
	.rf-hero { padding: 48px 0 56px; }
	.rf-cover-img img { height: 280px; }
	.rf-form { padding: 20px; }
}

/* Ajustes tras revisión ----------------------------------------------------- */
.rf-tiles > *, .rf-cards > *, .rf-sector__body > *:first-child { margin-top: 0 !important; }
.rf-tiles > * { margin: 0 !important; }
.rf-footer .rf-funding a { color: var(--rf-accent); }
.rf-footer .rf-funding a:hover { color: var(--rf-accent-dark); }
.rf-certs td { vertical-align: middle; }
.rf-certs .rf-button { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.rf-form__info { grid-column: 1 / -1; margin: 0; font-size: 12px; line-height: 1.5; color: var(--rf-muted); }
.rf-check a { color: var(--rf-steel); text-decoration: underline; }
.rf-content .wp-block-table { overflow-x: auto; margin: 16px 0 24px; }
.rf-content .wp-block-table table { font-size: 14px; min-width: 640px; }
.rf-content .wp-block-table th { background: var(--rf-mist); font-weight: 600; }

/* Aviso de cookies */
.rf-cookies { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--rf-ink); color: #fff; border-radius: var(--rf-radius); box-shadow: 0 12px 32px rgba(11,24,36,.28); font-size: 14px; line-height: 1.5; }
.rf-cookies[hidden] { display: none; }
.rf-cookies p { flex: 1 1 380px; margin: 0; color: var(--rf-on-dark); }
.rf-cookies a { color: var(--rf-orange); margin-left: 4px; }
.rf-cookies .rf-button { flex: 0 0 auto; }
.rf-cookies__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rf-button--light { background: transparent; border-color: #4A6178; color: #fff; }
.rf-button--light:hover { background: rgba(255,255,255,.08); border-color: #fff; color: #fff; }
.rf-linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--rf-on-dark); cursor: pointer; }
.rf-linkbtn:hover { color: #fff; text-decoration: underline; }
