/*
Theme Name: Reformas Profesionales
Theme URI: https://reformasprofesionales.com
Author: Reformas Profesionales
Author URI: https://reformasprofesionales.com
Description: Tema profesional dedicado, preparado para Elementor, para la empresa de reformas integrales en Madrid y norte de la Comunidad. Incluye cabecera sticky, mega menú, CTA de presupuesto, schema local y diseño editorial de obra.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reformas-profesionales
Tags: elementor, one-column, custom-logo, custom-menu, featured-images, full-width-template, translation-ready, block-styles
*/

:root {
  --rp-charcoal: #1a1a1a;
  --rp-ink: #111111;
  --rp-terracotta: #c45c26;
  --rp-terracotta-dark: #9a4318;
  --rp-cream: #f6f1ea;
  --rp-sand: #efe6d9;
  --rp-stone: #d9d0c4;
  --rp-muted: #6b645c;
  --rp-white: #ffffff;
  --rp-line: rgba(26, 26, 26, 0.12);
  --rp-shadow: 0 24px 60px rgba(17, 17, 17, 0.12);
  --rp-radius: 18px;
  --rp-max: 1240px;
  --rp-font-display: "Cormorant Garamond", Georgia, serif;
  --rp-font-body: "Outfit", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--rp-ink);
  background: var(--rp-white);
  font-family: var(--rp-font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--rp-terracotta);
  text-decoration: none;
}

a:hover {
  color: var(--rp-terracotta-dark);
}

h1,
h2,
h3,
h4,
.rp-display {
  font-family: var(--rp-font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--rp-charcoal);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1.1em;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.rp-container {
  width: min(100% - 40px, var(--rp-max));
  margin-inline: auto;
}

.rp-topbar {
  background: var(--rp-charcoal);
  color: #ece7e0;
  font-size: 13px;
  letter-spacing: 0.04em;
}

.rp-topbar .rp-container {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.rp-topbar a {
  color: #ece7e0;
}

.rp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--rp-line);
}

.rp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.rp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--rp-charcoal);
}

.rp-brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.rp-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.rp-brand-text strong {
  font-family: var(--rp-font-display);
  font-size: 1.28rem;
  font-weight: 600;
}

.rp-brand-text span {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rp-muted);
}

.rp-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.rp-menu,
.rp-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rp-menu {
  display: flex;
  gap: 22px;
  align-items: center;
}

.rp-menu a {
  color: var(--rp-charcoal);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.rp-menu .sub-menu {
  display: none;
  position: absolute;
  min-width: 240px;
  background: #fff;
  box-shadow: var(--rp-shadow);
  border-radius: 14px;
  padding: 12px;
  margin-top: 10px;
}

.rp-menu li {
  position: relative;
}

.rp-menu li:hover > .sub-menu {
  display: block;
}

.rp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--rp-terracotta);
  color: #fff !important;
  border: 0;
  border-radius: 999px;
  padding: 13px 22px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 13px;
  cursor: pointer;
  transition: 0.2s ease;
}

.rp-btn:hover {
  background: var(--rp-terracotta-dark);
}

.rp-btn-ghost {
  background: transparent;
  color: var(--rp-charcoal) !important;
  border: 1px solid var(--rp-charcoal);
}

.rp-btn-ghost:hover {
  background: var(--rp-charcoal);
  color: #fff !important;
}

.rp-hero {
  position: relative;
  min-height: 86vh;
  display: grid;
  align-items: end;
  color: #fff;
  overflow: hidden;
  background: #111;
}

.rp-hero img.rp-hero-bg,
.rp-hero .rp-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rp-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.28) 58%, rgba(10, 10, 10, 0.12) 100%);
}

.rp-hero-content {
  position: relative;
  z-index: 2;
  padding: 90px 0 70px;
  max-width: 760px;
}

.rp-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--rp-terracotta);
  margin-bottom: 18px;
}

.rp-kicker::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.rp-hero h1,
.rp-hero p {
  color: #fff;
}

.rp-hero p {
  font-size: 1.12rem;
  max-width: 58ch;
  color: #ece7e0;
}

.rp-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.rp-section {
  padding: 92px 0;
}

.rp-section-cream {
  background: var(--rp-cream);
}

.rp-section-dark {
  background: var(--rp-charcoal);
  color: #ece7e0;
}

.rp-section-dark h2,
.rp-section-dark h3 {
  color: #fff;
}

.rp-grid {
  display: grid;
  gap: 24px;
}

.rp-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.rp-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.rp-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.rp-card {
  background: #fff;
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow);
}

.rp-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.rp-card-body {
  padding: 24px;
}

.rp-card h3 {
  margin-top: 0;
}

.rp-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.rp-split img {
  width: 100%;
  border-radius: 28px;
  height: 520px;
  object-fit: cover;
}

.rp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.rp-stat {
  border-top: 1px solid var(--rp-line);
  padding-top: 18px;
}

.rp-stat b {
  display: block;
  font-family: var(--rp-font-display);
  font-size: 2.4rem;
  line-height: 1;
}

.rp-zones {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rp-chip {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--rp-line);
  color: var(--rp-charcoal);
  font-size: 14px;
}

.rp-process {
  counter-reset: step;
}

.rp-process article {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--rp-line);
}

.rp-process article::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--rp-font-display);
  font-size: 2rem;
  color: var(--rp-terracotta);
}

.rp-footer {
  background: #101010;
  color: #cfc8bf;
  padding: 64px 0 28px;
}

.rp-footer h3,
.rp-footer .rp-brand-text strong {
  color: #fff;
}

.rp-footer a {
  color: #ece7e0;
}

.rp-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}

.rp-footer-bottom {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
}

.rp-whatsapp {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 1200;
  background: #25d366;
  color: #fff !important;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: 0;
}

.rp-whatsapp::after {
  content: "WA";
  font-size: 14px;
  font-weight: 700;
}

.rp-form,
.wpcf7-form {
  display: grid;
  gap: 14px;
}

.rp-form input,
.rp-form textarea,
.rp-form select,
.wpcf7-form input,
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  border: 1px solid var(--rp-line);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.content-area,
.rp-article {
  width: min(100% - 40px, 860px);
  margin: 48px auto 80px;
}

.rp-page-hero {
  background: var(--rp-charcoal);
  color: #fff;
  padding: 72px 0 56px;
}

.rp-page-hero h1 {
  color: #fff;
  margin: 0 0 12px;
}

.site-main .alignwide {
  width: min(100% - 40px, var(--rp-max));
  margin-inline: auto;
}

.elementor-kit-1 {
  --e-global-color-primary: #1a1a1a;
}

@media (max-width: 980px) {
  .rp-nav .rp-menu {
    display: none;
  }

  .rp-grid-3,
  .rp-grid-4,
  .rp-grid-2,
  .rp-split,
  .rp-stats,
  .rp-footer-grid {
    grid-template-columns: 1fr;
  }

  .rp-hero {
    min-height: 78vh;
  }
}
