/*
Theme Name: Rosa Micó Asesores
Description: Tema para la web de Rosa Micó Asesores (asesoría fiscal, laboral y contable — Almería). Implementa el diseño 2026 (prototipo /test) y está pensado para exportación estática con Simply Static. Los calendarios embeben sus datos como JSON y calculan el "próximo evento" en el navegador.
Version: 0.3.2
Requires at least: 6.0
License: GNU General Public License v2 or later
Text Domain: rosamico
*/

/* ---------------------------------------------------------------------------
   Design tokens (diseño 2026 — prototipo /test)
--------------------------------------------------------------------------- */
:root {
  --rma-navy: #1f294f;        /* azul marino principal */
  --rma-navy-dark: #141b38;   /* texto sobre claro / azul profundo */
  --rma-footer-bg: #11172f;   /* pie de página */
  --rma-gray: #666a73;        /* texto secundario */
  --rma-soft: #8b8d93;        /* texto terciario / etiquetas */
  --rma-silver: #aeb4c2;      /* etiquetas destacadas */
  --rma-light: #f6f7f9;       /* fondo de secciones alternas */
  --rma-line: #dfe2e8;        /* bordes */
  --rma-line-soft: #eeeff1;   /* bordes internos */
  --rma-note: #eef0f6;        /* avisos */
  --rma-badge-soft: #d7dce6;  /* insignias laborales/autonómicas */
  --rma-shadow: 0 18px 50px rgba(31, 41, 79, 0.10);
  --rma-radius: 18px;
  --rma-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --rma-font-display: "Playfair Display", Georgia, serif;
}

/* ---------------------------------------------------------------------------
   Base
--------------------------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--rma-navy-dark);
  font-family: var(--rma-font-body);
  font-size: 16px;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: inherit; }

.rma-container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.rma-main { display: block; }

/* Encabezados de página (plantillas interiores) */
.rma-h1 {
  font-family: var(--rma-font-display);
  font-weight: 700;
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--rma-navy-dark);
  margin: 0 0 1.2rem;
}

.rma-h2 {
  font-family: var(--rma-font-display);
  font-size: 1.7rem;
  color: var(--rma-navy-dark);
  margin: 2rem 0 1.2rem;
}

/* Títulos de sección de la portada (diseño 2026) */
.rma-display {
  font-family: var(--rma-font-display);
  font-size: clamp(38px, 4.5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0;
}

.rma-section { padding: 3.5rem 0 4rem; }
.rma-section--divided { border-top: 1px solid var(--rma-line); }
.rma-section--narrow { max-width: 680px; }

.rma-section-label {
  margin: 0 0 17px;
  font-size: 12px;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--rma-navy);
}
.rma-section-label--light { color: var(--rma-silver); }

.rma-lede {
  max-width: 680px;
  color: var(--rma-gray);
  margin: 0 0 1rem;
}

.rma-note {
  border-left: 3px solid var(--rma-navy);
  background: var(--rma-note);
  padding: 0.8rem 1rem;
  font-size: 0.9rem;
  border-radius: 0 12px 12px 0;
  max-width: 680px;
  margin: 0 0 2rem;
}

.rma-backlink {
  color: var(--rma-soft);
  font-size: 0.88rem;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 1rem;
}
.rma-backlink:hover { color: var(--rma-navy); }

.rma-linkmore {
  color: var(--rma-navy);
  font-weight: 600;
  text-decoration: none;
}
.rma-linkmore:hover { text-decoration: underline; }

/* Cabecera de sección con enlace "Ver todas →" */
.rma-sectionhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 40px;
}
.rma-sectionhead .rma-linkmore { margin-bottom: 10px; }
.rma-linkmore--small { font-size: 0.9rem; }

/* ---------------------------------------------------------------------------
   Cabecera fija: marca + navegación + teléfono (diseño 2026)
--------------------------------------------------------------------------- */
.rma-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 41, 79, 0.08);
}

.rma-nav-wrap {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.rma-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.rma-brand img {
  width: 52px;
  height: 52px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px;
  display: block;
}
.rma-brand span { display: flex; flex-direction: column; line-height: 1; }
.rma-brand strong { letter-spacing: 0.16em; font-size: 17px; color: var(--rma-navy-dark); }
.rma-brand small { margin-top: 7px; color: var(--rma-gray); letter-spacing: 0.27em; font-size: 9px; }

.rma-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 14px;
  font-weight: 600;
}
.rma-nav ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rma-nav a {
  text-decoration: none;
  color: var(--rma-navy-dark);
}
.rma-nav a:not(.rma-nav-cta):hover { color: var(--rma-navy); }
.rma-nav .current-menu-item > a:not(.rma-nav-cta),
.rma-nav .current-menu-ancestor > a:not(.rma-nav-cta),
.rma-nav .current_page_ancestor > a:not(.rma-nav-cta) {
  color: var(--rma-navy);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.rma-nav a.rma-nav-cta {
  background: var(--rma-navy);
  color: #ffffff;
  padding: 11px 17px;
  border-radius: 999px;
  white-space: nowrap;
}
.rma-nav a.rma-nav-cta:hover { color: #ffffff; opacity: 0.92; }

.rma-menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 25px;
  color: var(--rma-navy);
  cursor: pointer;
  padding: 4px;
}

/* ---------------------------------------------------------------------------
   Portada — héroe (diseño 2026)
--------------------------------------------------------------------------- */
.rma-hero {
  position: relative;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: linear-gradient(120deg, #ffffff 0%, #fbfbfc 62%, #f0f2f6 100%);
}
.rma-hero::after {
  content: "";
  position: absolute;
  width: 70%;
  height: 190px;
  right: -12%;
  bottom: -100px;
  background: var(--rma-navy);
  border-radius: 50% 0 0 0 / 100% 0 0 0;
  transform: rotate(-5deg);
}
.rma-hero__bg {
  position: absolute;
  width: 55%;
  height: 1px;
  right: -2%;
  bottom: 115px;
  background: var(--rma-silver);
  transform: rotate(-7deg);
}

.rma-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 80px;
  align-items: center;
  padding: 90px 0 130px;
}

.rma-hero__title {
  font-family: var(--rma-font-display);
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin: 0;
  font-weight: 700;
}
.rma-hero__title em { color: var(--rma-navy); font-style: normal; }

.rma-hero__text {
  max-width: 650px;
  color: #626773;
  font-size: 18px;
  margin: 28px 0 32px;
}

.rma-hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

.rma-trust-line {
  margin-top: 44px;
  display: flex;
  gap: 13px;
  align-items: center;
  color: #777b84;
  letter-spacing: 0.17em;
  font-size: 10px;
  font-weight: 700;
}

.rma-hero-card {
  justify-self: end;
  width: min(100%, 390px);
  padding: 1px;
  background: linear-gradient(145deg, rgba(31, 41, 79, 0.45), rgba(174, 180, 194, 0.3));
  border-radius: 26px;
  box-shadow: var(--rma-shadow);
  transform: rotate(2deg);
}
.rma-hero-card__inner {
  min-height: 390px;
  border-radius: 25px;
  padding: 45px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, var(--rma-navy), #2d3762);
  color: #ffffff;
}
.rma-card-kicker { letter-spacing: 0.18em; font-size: 10px; opacity: 0.72; }
.rma-hero-card h2 {
  font-family: var(--rma-font-display);
  font-size: 42px;
  line-height: 1.08;
  margin: 18px 0;
  font-weight: 700;
}
.rma-hero-card p { opacity: 0.78; font-size: 13px; margin: 0; }
.rma-hero-card a { margin-top: 18px; font-weight: 700; font-size: 14px; }

/* ---------------------------------------------------------------------------
   Portada — introducción "Quiénes somos" (diseño 2026)
--------------------------------------------------------------------------- */
.rma-intro { padding: 105px 0; }
.rma-intro__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: start;
}
.rma-intro p {
  color: #626773;
  font-size: 16px;
  margin-top: 0;
}
.rma-intro p + p { margin-top: 18px; }

/* ---------------------------------------------------------------------------
   Portada — servicios (diseño 2026)
--------------------------------------------------------------------------- */
.rma-services { padding: 100px 0 120px; background: var(--rma-light); }

.rma-section-heading { max-width: 680px; margin-bottom: 50px; }
.rma-section-heading > p:last-of-type { color: #70747e; margin: 16px 0 0; }

.rma-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.rma-service-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e8e9ed;
  border-radius: var(--rma-radius);
  padding: 35px;
  box-shadow: 0 8px 30px rgba(31, 41, 79, 0.04);
}
.rma-service-card--featured {
  background: var(--rma-navy);
  color: #ffffff;
  border-color: var(--rma-navy);
}

.rma-service-number {
  color: var(--rma-silver);
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
}
.rma-service-card h3 {
  margin: 12px 0 8px;
  font-family: var(--rma-font-display);
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
}
.rma-service-card > p { color: #70747e; margin-top: 0; }
.rma-service-card--featured > p { color: rgba(255, 255, 255, 0.72); }

.rma-service-card ul { margin: 22px 0 0; padding-left: 20px; color: #626773; }
.rma-service-card li { margin: 8px 0; }
.rma-service-card--featured ul { color: rgba(255, 255, 255, 0.8); }

.rma-subservice {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}
.rma-subservice h4 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
   Portada — próximos 14 días (agenda)
--------------------------------------------------------------------------- */
.rma-agenda { padding: 100px 0 60px; }

.rma-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
.rma-grid--agenda { grid-template-columns: repeat(2, 1fr); gap: 22px; }
.rma-grid--news {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
}

.rma-card {
  background: #ffffff;
  border: 1px solid #e8e9ed;
  border-radius: var(--rma-radius);
  padding: 1.6rem;
}
.rma-card--agenda { padding: 35px; box-shadow: 0 8px 30px rgba(31, 41, 79, 0.04); }
.rma-card--service {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.rma-card--service .rma-card__summary { flex: 1; }

.rma-card__title {
  font-family: var(--rma-font-display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--rma-navy-dark);
}

.rma-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--rma-soft);
  margin-bottom: 0.9rem;
}

.rma-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  text-decoration: none;
}
.rma-badge--fiscal,
.rma-badge--nacional { background: var(--rma-navy); color: #ffffff; }
.rma-badge--laboral,
.rma-badge--autonomico { background: var(--rma-badge-soft); color: var(--rma-navy); }
.rma-badge--contable,
.rma-badge--local { background: var(--rma-silver); color: var(--rma-navy); }
.rma-badge--actualidad { background: var(--rma-navy-dark); color: #ffffff; }

/* Listados de eventos (filas fecha + insignia + título) */
.rma-event-row {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.65rem 0 0.65rem 0.9rem;
  border-bottom: 1px solid var(--rma-line-soft);
}
.rma-event-row:last-child { border-bottom: none; }
.rma-event-date {
  font-size: 0.85rem;
  color: var(--rma-navy);
  font-weight: 600;
  white-space: nowrap;
}
.rma-event-title { font-size: 0.95rem; }

.rma-fallback {
  font-size: 0.8rem;
  color: var(--rma-soft);
  margin-top: 0.6rem;
}

/* ---------------------------------------------------------------------------
   Portada — últimas noticias
--------------------------------------------------------------------------- */
.rma-noticias { padding: 60px 0 100px; }

.rma-news-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.6rem;
  box-shadow: 0 8px 30px rgba(31, 41, 79, 0.04);
}
.rma-news-card .rma-badge { align-self: flex-start; }
.rma-news-card__title {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--rma-navy-dark);
  text-decoration: none;
}
.rma-news-card__title:hover { color: var(--rma-navy); }
.rma-news-card__excerpt {
  color: var(--rma-gray);
  font-size: 0.92rem;
  flex: 1;
}
.rma-news-card__date { font-size: 0.78rem; color: var(--rma-soft); }

.rma-filter {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.rma-filter-btn {
  border: 1px solid var(--rma-navy);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  background: #ffffff;
  color: var(--rma-navy);
}
.rma-filter-btn.is-active { background: var(--rma-navy); color: #ffffff; }
.rma-filter-btn--laboral.is-active { background: var(--rma-badge-soft); color: var(--rma-navy); }
.rma-filter-btn--contable.is-active { background: var(--rma-silver); color: var(--rma-navy); }
.rma-filter-btn--actualidad.is-active { background: var(--rma-navy-dark); color: #ffffff; }

/* Entrada individual de noticia */
.rma-single__meta {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  margin-bottom: 1rem;
}
.rma-single__date { font-size: 0.82rem; color: var(--rma-soft); }
.rma-single__morelink { margin-top: 2rem; font-size: 0.92rem; }

/* ---------------------------------------------------------------------------
   Portada — banda de cierre (diseño 2026)
--------------------------------------------------------------------------- */
.rma-highlight {
  background: var(--rma-navy);
  color: #ffffff;
  padding: 75px 0;
  position: relative;
  overflow: hidden;
}
.rma-highlight::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  right: -170px;
  top: -240px;
}
.rma-highlight__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.rma-highlight .rma-display {
  max-width: 700px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
}

/* ---------------------------------------------------------------------------
   Portada — contacto (diseño 2026)
--------------------------------------------------------------------------- */
.rma-contact { padding: 105px 0; }
.rma-contact__grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 90px;
  align-items: center;
}
.rma-contact__lead {
  color: #626773;
  max-width: 590px;
  font-size: 17px;
  margin: 25px 0 35px;
}
.rma-contact__list { display: grid; gap: 18px; }
.rma-contact__item {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 15px 0;
  border-bottom: 1px solid var(--rma-line);
  text-decoration: none;
}
.rma-contact__icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--rma-navy);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 21px;
  flex: 0 0 auto;
}
.rma-contact__item span:last-child { display: flex; flex-direction: column; }
.rma-contact__item small {
  color: #888c95;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.rma-contact__item strong { font-size: 15px; }

.rma-contact-panel {
  background: linear-gradient(145deg, var(--rma-navy), #2b3560);
  color: #ffffff;
  border-radius: 24px;
  padding: 45px;
  box-shadow: var(--rma-shadow);
}
.rma-panel-kicker { font-size: 10px; letter-spacing: 0.2em; opacity: 0.65; }
.rma-contact-panel h3 {
  font-family: var(--rma-font-display);
  font-size: 48px;
  margin: 15px 0 8px;
  font-weight: 700;
}
.rma-contact-panel > p { color: rgba(255, 255, 255, 0.75); margin: 0; }
.rma-panel-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 25px 0; }
.rma-small-note { font-size: 12px; opacity: 0.65; margin: 0; }

/* Contenido libre del editor al final de la portada */
.rma-closing { padding-top: 0; }

/* ---------------------------------------------------------------------------
   Botones (diseño 2026 — pastilla)
--------------------------------------------------------------------------- */
.rma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
  cursor: pointer;
  border: none;
  transition: 0.2s ease;
  background: var(--rma-navy);
  color: #ffffff;
}
.rma-btn:hover { transform: translateY(-2px); }

.rma-btn--primary { background: var(--rma-navy); color: #ffffff; box-shadow: 0 10px 24px rgba(31, 41, 79, 0.18); }
.rma-btn--secondary,
.rma-btn--outline { border: 1px solid var(--rma-navy); color: var(--rma-navy); background: #ffffff; }
.rma-btn--light { background: #ffffff; color: var(--rma-navy); }
.rma-btn--whatsapp { background: #ffffff; color: var(--rma-navy); border: 1px solid rgba(255, 255, 255, 0.55); }

.rma-btnrow { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------------------------------------------------------------------------
   Contenido de páginas y entradas
--------------------------------------------------------------------------- */
.rma-prose > p { margin: 0 0 1.1rem; }
.rma-prose ul { margin: 0 0 1.6rem; padding-left: 1.3rem; }
.rma-prose li { margin-bottom: 0.5rem; }
.rma-prose h2 {
  margin-top: 2rem;
  font-family: var(--rma-font-display);
  color: var(--rma-navy-dark);
}
.rma-prose a { color: var(--rma-navy); }

/* ---------------------------------------------------------------------------
   Calendarios — listado tipo tabla (render en servidor)
--------------------------------------------------------------------------- */
.rma-tablecard {
  background: #ffffff;
  border: 1px solid var(--rma-line);
  border-radius: var(--rma-radius);
  overflow: hidden;
}
.rma-yearrow {
  padding: 0.6rem 1.3rem;
  background: var(--rma-note);
  color: var(--rma-navy);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}
.rma-tablecard__row {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 1.3rem;
  border-bottom: 1px solid var(--rma-line-soft);
}
.rma-tablecard__row:last-child { border-bottom: none; }
.rma-tablecard__date {
  font-size: 0.86rem;
  color: var(--rma-navy);
  font-weight: 600;
  width: 110px;
  flex-shrink: 0;
}
.rma-tablecard__text { font-size: 0.92rem; }

/* Siguiente evento y ocultación de caducados (> 7 días) */
[hidden] { display: none !important; }
.rma-row--pasada { display: none; }
.rma-row--next {
	background: var(--rma-note);
	box-shadow: inset 3px 0 0 var(--rma-navy);
}
.rma-row--next .rma-event-date,
.rma-row--next .rma-tablecard__date { font-weight: 700; }

/* ---------------------------------------------------------------------------
   Calendario laboral — buscador de municipio
--------------------------------------------------------------------------- */
.rma-searchbox {
  position: relative;
  max-width: 420px;
  margin-bottom: 1rem;
}
.rma-searchbox__label {
  font-size: 0.85rem;
  color: var(--rma-gray);
  margin-bottom: 0.5rem;
}
.rma-searchbox__label strong { color: var(--rma-navy); }
.rma-searchbox input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1px solid var(--rma-line);
  border-radius: 12px;
  font-size: 0.92rem;
  font-family: inherit;
  background: #ffffff;
}

.rma-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #ffffff;
  border: 1px solid var(--rma-line);
  border-top: none;
  border-radius: 0 0 12px 12px;
  z-index: 5;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.rma-suggestions div {
  padding: 0.6rem 0.9rem;
  cursor: pointer;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--rma-line-soft);
}
.rma-suggestions div:hover { background: var(--rma-light); }
.rma-suggestions div:last-child { border-bottom: none; }

/* ---------------------------------------------------------------------------
   Página de contacto (plantilla propia)
--------------------------------------------------------------------------- */
.rma-contact-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
  max-width: 680px;
}
.rma-contact-card {
  background: #ffffff;
  border: 1px solid var(--rma-line);
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: var(--rma-navy-dark);
  display: block;
}
a.rma-contact-card:hover { border-color: var(--rma-navy); }
.rma-contact-card__label {
  font-size: 0.78rem;
  color: var(--rma-soft);
  margin-bottom: 0.25rem;
}
.rma-contact-card__value { font-weight: 500; }
a.rma-contact-card .rma-contact-card__value {
  font-weight: 600;
  color: var(--rma-navy);
}

.rma-map {
  width: 100%;
  max-width: 680px;
  height: 160px;
  border-radius: var(--rma-radius);
  margin-bottom: 1.2rem;
  background-image: repeating-linear-gradient(45deg, #edeef0 0, #edeef0 12px, #f6f7f9 12px, #f6f7f9 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid var(--rma-line);
  text-decoration: none;
  color: var(--rma-soft);
  font-size: 0.8rem;
}
.rma-map:hover { border-color: var(--rma-navy); color: var(--rma-navy); }
.rma-map strong { font-size: 0.88rem; }

/* ---------------------------------------------------------------------------
   Página 404
--------------------------------------------------------------------------- */
.rma-404 { padding: 6rem 0; text-align: center; }

/* ---------------------------------------------------------------------------
   Pie de página (diseño 2026)
--------------------------------------------------------------------------- */
.rma-footer {
  background: var(--rma-footer-bg);
  color: #ffffff;
  padding: 45px 0 22px;
  margin-top: 0;
}
.rma-footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}
.rma-footer-grid strong { letter-spacing: 0.16em; }
.rma-footer-grid p {
  color: rgba(255, 255, 255, 0.5);
  margin: 8px 0 0;
  font-size: 13px;
}
.rma-footer-links {
  display: flex;
  gap: 25px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}
.rma-footer-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}
.rma-footer-links a:hover { color: #ffffff; }
.rma-footer-bottom {
  margin-top: 35px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}

/* ---------------------------------------------------------------------------
   Responsive
--------------------------------------------------------------------------- */
@media (max-width: 850px) {
  .rma-menu-toggle { display: block; }
  .rma-nav {
    display: none;
    position: absolute;
    left: 20px;
    right: 20px;
    top: 82px;
    background: #ffffff;
    padding: 18px;
    border-radius: 15px;
    box-shadow: var(--rma-shadow);
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .rma-nav.open { display: flex; }
  .rma-nav ul { flex-direction: column; align-items: stretch; gap: 10px; }
  .rma-nav a { padding: 10px; }
  .rma-nav-cta { text-align: center; }

  .rma-hero { min-height: auto; }
  .rma-hero__grid { grid-template-columns: 1fr; gap: 45px; padding: 70px 0 100px; }
  .rma-hero-card { justify-self: start; width: 100%; transform: none; }
  .rma-intro__grid { grid-template-columns: 1fr; gap: 45px; }
  .rma-service-grid { grid-template-columns: 1fr; }
  .rma-grid--agenda { grid-template-columns: 1fr; }
  .rma-contact__grid { grid-template-columns: 1fr; gap: 45px; }
  .rma-highlight__inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .rma-container { width: min(100% - 28px, 1160px); }
  .rma-brand img { width: 44px; height: 44px; }
  .rma-brand strong { font-size: 14px; }
  .rma-hero__title { font-size: 45px; }
  .rma-hero__text { font-size: 16px; }
  .rma-trust-line { flex-wrap: wrap; }
  .rma-service-card,
  .rma-card--agenda,
  .rma-contact-panel { padding: 27px; }
  .rma-footer-grid,
  .rma-footer-bottom { flex-direction: column; }
  .rma-tablecard__date { width: auto; }
  .rma-tablecard__row { flex-wrap: wrap; }
}

