/* Cabecera y menú: HTML clásico, sin wp:blocks. */
.fr-header { border-bottom:1px solid var(--fr-line); }
.fr-header__inner { min-height:78px; display:flex; justify-content:space-between; align-items:center; gap:2rem; }
.fr-brand { color:var(--fr-text); font-size:1.12rem; font-weight:750; letter-spacing:-.045em; text-decoration:none; white-space:nowrap; }
.fr-brand:hover { color:var(--fr-text); }
.fr-nav { display:flex; align-items:center; gap:clamp(1rem,2.4vw,2.5rem); }
.fr-nav a { font-size:.92rem; color:var(--fr-text); text-decoration:none; transition:color .2s ease,background-color .2s ease,transform .2s ease; }
.fr-nav a:hover { color:#fff; }
.fr-nav a.fr-nav-cta { border:1px solid var(--fr-accent); padding:.62rem 1.15rem; border-radius:var(--fr-radius); }
.fr-nav a.fr-nav-cta:hover { background:var(--fr-text); color:var(--fr-bg); }
.fr-menu-toggle { display:none; width:44px; height:44px; padding:10px; border:1px solid var(--fr-line); border-radius:var(--fr-radius); background:var(--fr-surface); cursor:pointer; }
.fr-menu-toggle span { display:block; height:2px; background:var(--fr-text); margin:5px 0; border-radius:2px; }
/* Hero centrado */
.fr-hero { padding-block:clamp(4.5rem,9vw,8rem) clamp(3rem,6vw,5rem); text-align:center; display:flex; flex-direction:column; align-items:center; }
.fr-hero__nombre { font-size:clamp(3.8rem,8.1vw,7.6rem); font-weight:760; letter-spacing:-.068em; line-height:1.04; margin:0 0 1.9rem; white-space:nowrap; max-width:100%; }
.fr-hero__texto { max-width:43rem; margin:0 0 2rem; color:var(--fr-muted); font-size:clamp(1.05rem,1.5vw,1.32rem); }
.fr-wave { display:block; margin-top:clamp(3rem,6vw,5rem); width:100%; height:95px; opacity:.86; }
.fr-wave rect { fill:var(--fr-accent); }
/* Botones */
.fr-button, button:not(.fr-menu-toggle), input[type=submit], .wp-element-button, .wp-block-button__link { display:inline-flex; align-items:center; justify-content:center; gap:.75rem; min-height:46px; padding:.84rem 1.5rem; background:var(--fr-text); color:var(--fr-bg); border:1px solid var(--fr-text); border-radius:var(--fr-radius); text-decoration:none; font:inherit; font-size:.94rem; font-weight:680; line-height:1.2; cursor:pointer; transition:transform .2s ease,background .2s ease,color .2s ease,border-color .2s ease; }
.fr-button:hover, button:not(.fr-menu-toggle):hover, input[type=submit]:hover, .wp-element-button:hover, .wp-block-button__link:hover { background:var(--fr-accent); border-color:var(--fr-accent); color:var(--fr-bg); transform:translateY(-2px); }
.fr-button--outline { color:var(--fr-text); background:transparent; border-color:var(--fr-accent); }
.fr-button--outline:hover { color:var(--fr-bg); background:var(--fr-text); }
/* Secciones y filas */
.fr-seccion { padding-block:clamp(3.2rem,6vw,5.5rem); border-top:1px solid var(--fr-line); }
.fr-seccion h2 { font-size:clamp(1.8rem,3.4vw,2.9rem); margin-bottom:1.7rem; }
.fr-seccion__cabecera { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:1rem; margin-bottom:2rem; }
.fr-seccion__cabecera h2 { margin:0; }
.fr-text-link { text-decoration:none; border-bottom:1px solid var(--fr-line); padding-bottom:.3rem; }
.fr-text-link:hover { border-color:var(--fr-accent); }
.fr-placeholder { padding:1.8rem 2rem; border:1px solid var(--fr-line); border-radius:var(--fr-radius); background:var(--fr-surface); color:var(--fr-muted); }
.fr-placeholder p, p.fr-placeholder { margin-bottom:0; }
.fr-fila { display:grid; grid-template-columns:minmax(12rem,1fr) minmax(0,1.5fr); gap:1rem 3rem; align-items:start; border-top:1px solid var(--fr-line); padding:1.35rem 0; }
.fr-fila:last-child { border-bottom:1px solid var(--fr-line); }
.fr-fila h3 { margin:0; font-size:1.08rem; }
.fr-fila p { margin:0; color:var(--fr-muted); }
.fr-contacto > p:not(.fr-overline) { max-width:40rem; color:var(--fr-muted); }
/* Páginas interiores */
.fr-interior { padding-block:clamp(4rem,7vw,7rem); }
.fr-interior__heading { margin-bottom:clamp(2.5rem,5vw,4rem); max-width:70rem; }
.fr-interior__heading h1 { font-size:clamp(2.6rem,6.5vw,5.3rem); margin-bottom:1.1rem; }
.fr-interior__heading p:not(.fr-overline) { color:var(--fr-muted); max-width:52rem; font-size:clamp(1.05rem,1.5vw,1.27rem); }
.fr-interior__heading .fr-button { margin-top:1rem; }
.fr-article__cover { margin-bottom:2rem; }
.fr-article__cover img { width:100%; height:auto; border-radius:var(--fr-radius); }
/* Cards futuras, sin crear lógica de proyectos */
.fr-project-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1.2rem,2vw,2.2rem); }
.fr-project-card { min-width:0; }
.fr-project-card img { width:100%; aspect-ratio:4/3; object-fit:cover; background:var(--fr-surface); border-radius:5px; transition:transform .35s ease; }
.fr-project-card:hover img { transform:scale(1.018); }
.fr-project-card a { text-decoration:none; }
.fr-project-card h2 { margin:.9rem 0 .3rem; font-size:1.2rem; }
.fr-project-card p { color:var(--fr-muted); }
.fr-pagination { margin-top:3rem; }
/* Pie de página */
.fr-footer { border-top:1px solid var(--fr-line); padding:3.1rem 0 1.5rem; }
.fr-footer__grid { display:flex; align-items:flex-start; justify-content:space-between; flex-wrap:wrap; gap:2rem; }
.fr-footer__grid p { margin:.5rem 0 0; color:var(--fr-muted); font-size:.88rem; }
.fr-footer__nav { display:flex; align-items:center; flex-wrap:wrap; gap:1.5rem; }
.fr-footer__nav a { font-size:.9rem; text-decoration:none; }
.fr-footer__bottom { border-top:1px solid var(--fr-line); margin-top:2.7rem; padding-top:1.2rem; color:var(--fr-muted); }
/* Elementos de formulario */
input:not([type=submit]):not([type=checkbox]):not([type=radio]), textarea, select { font:inherit; background:var(--fr-surface); color:var(--fr-text); border:1px solid #707b89; border-radius:var(--fr-radius); padding:.8rem 1rem; max-width:100%; }
input::placeholder, textarea::placeholder { color:#b0bac6; opacity:1; }
select option { background:var(--fr-surface); color:var(--fr-text); }

/* Servicios de la página Inicio (template-parts/inicio-servicios.php). */
.fr-servicios > h2 { margin-bottom:clamp(1.6rem,3vw,2.5rem); }
.fr-servicios .fr-fila { gap:clamp(1rem,3.2vw,4rem); padding:clamp(1.35rem,2.6vw,2.1rem) 0; }
.fr-servicios .fr-fila h3 { font-size:clamp(1.1rem,1.6vw,1.45rem); line-height:1.3; }
.fr-servicios .fr-fila p { font-size:clamp(.99rem,1.1vw,1.12rem); max-width:65ch; }
/* No duplicar el separador inferior con el borde superior de la siguiente sección. */
.fr-servicios .fr-fila:last-child { border-bottom:0; }
/* Página Sobre mí: el contenido permanece editable desde WP. */
.fr-about-page__content { max-width:760px; }
.fr-about-page__cta { margin-top:2.5rem; }
.fr-about-page__cta-block { margin-top:3rem; padding-top:2rem; border-top:1px solid var(--fr-line); }
.fr-about-page__cta-block h2 { font-size:clamp(1.45rem,2.8vw,2rem); margin:0 0 .6rem; }
.fr-about-page__cta-block p { color:var(--fr-muted); }
.fr-about-whatsapp { margin-top:.5rem; }

/* Enlaces con aspecto de botón dentro de páginas editables: contraste correcto
   en reposo, hover, focus y enlaces visitados. */
.fr-content a.fr-button,
.fr-content a.fr-button:visited,
.fr-about-page__content a.fr-button,
.fr-about-page__content a.fr-button:visited {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:var(--fr-text);
  border:1px solid var(--fr-text);
  color:var(--fr-bg);
  text-decoration:none;
  text-decoration-color:transparent;
}
.fr-content a.fr-button:hover,
.fr-content a.fr-button:focus-visible,
.fr-about-page__content a.fr-button:hover,
.fr-about-page__content a.fr-button:focus-visible {
  background:var(--fr-accent);
  border-color:var(--fr-accent);
  color:var(--fr-bg);
  text-decoration:none;
  transform:translateY(-2px);
}
.fr-content a.fr-button span,
.fr-about-page__content a.fr-button span { color:inherit; }
