/**
 * Theme Name: RURAVIVA
 * Description: Tema hijo de Kadence para RURAVIVA.
 * Version: 1.1.0
 * Author: RURAVIVA
 * Template: kadence
 * Text Domain: ruraviva
 */

:root {
  --rv-forest: #7a2e14;
  --rv-forest-deep: #40150d;
  --rv-leaf: #b85a36;
  --rv-sage: #f3d8d6;
  --rv-cream: #fff8f3;
  --rv-sand: #ecd4c8;
  --rv-clay: #c6532d;
  --rv-ink: #3e2119;
  --rv-muted: #765c54;
  --rv-white: #fff;
  --rv-radius: 22px;
  --rv-shadow: 0 18px 55px rgba(91, 39, 24, .13);
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { color: var(--rv-ink); background: var(--rv-cream); }
body, button, input, textarea, select { font-family: "Segoe UI", Arial, sans-serif; }
h1, h2, h3, .rv-display { font-family: Georgia, "Times New Roman", serif; color: var(--rv-forest-deep); }
a { color: var(--rv-forest); }
.site-main { padding: 0; }
.content-area { margin: 0; }
.entry-content-wrap { padding: 0; }
.content-bg { background: transparent; }
.home #masthead, .home #colophon,
.page #masthead, .page #colophon { display: none !important; }
.rv-home { overflow: hidden; }
.rv-container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.rv-section { padding: clamp(72px, 9vw, 118px) 0; }
.rv-section--white { background: var(--rv-white); }
.rv-section--sage { background: var(--rv-sage); }
.rv-eyebrow { margin: 0 0 14px; color: var(--rv-clay); font-size: .78rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.rv-section-title { max-width: 760px; margin: 0 0 22px; font-size: clamp(2rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; }
.rv-lead { max-width: 720px; color: var(--rv-muted); font-size: clamp(1.05rem, 1.8vw, 1.25rem); line-height: 1.7; }

.rv-header { position: sticky; z-index: 100; top: 0; background: rgba(255,248,243,.96); border-bottom: 1px solid rgba(122,46,20,.12); backdrop-filter: blur(12px); }
.rv-header__inner { min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.rv-brand { flex: 0 0 auto; }
.rv-brand img { display: block; width: 106px; height: 64px; object-fit: contain; object-position: center; }
.rv-nav { display: flex; align-items: center; justify-content: center; gap: clamp(15px, 2.3vw, 30px); }
.rv-nav a { color: var(--rv-ink); font-size: .94rem; font-weight: 700; text-decoration: none; }
.rv-nav a:hover, .rv-nav a:focus-visible { color: var(--rv-clay); }
.rv-header__phone { padding: 10px 17px; border-radius: 999px; background: var(--rv-forest); color: white; font-weight: 750; text-decoration: none; }
.rv-header__phone:hover { background: var(--rv-forest-deep); color: white; }

.rv-hero { position: relative; min-height: 730px; display: grid; align-items: center; background: linear-gradient(90deg, rgba(255,248,243,.99) 0%, rgba(255,248,243,.93) 39%, rgba(255,248,243,.38) 61%, rgba(255,248,243,0) 76%), var(--rv-hero-image) center/cover no-repeat; color: var(--rv-ink); }
.rv-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 80px; background: var(--rv-cream); clip-path: ellipse(58% 55% at 50% 100%); }
.rv-hero__content { position: relative; z-index: 1; max-width: 760px; padding: 110px 0 140px; }
.rv-hero .rv-eyebrow { color: var(--rv-clay); }
.rv-hero h1 { max-width: 760px; margin: 0 0 24px; color: var(--rv-forest-deep); font-size: clamp(3rem, 7vw, 5.8rem); line-height: .96; letter-spacing: -.055em; }
.rv-hero__text { max-width: 650px; margin: 0 0 34px; color: var(--rv-muted); font-size: clamp(1.12rem, 2vw, 1.38rem); line-height: 1.65; }
.rv-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.rv-button { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; padding: 13px 24px; border: 2px solid var(--rv-clay); border-radius: 999px; background: var(--rv-clay); color: var(--rv-white); font-weight: 750; text-decoration: none; transition: .2s ease; }
.rv-button:hover, .rv-button:focus-visible { transform: translateY(-2px); background: #7d371b; border-color: #7d371b; color: var(--rv-white); box-shadow: 0 10px 25px rgba(0,0,0,.16); }
.rv-button--light { border-color: var(--rv-forest); background: transparent; color: var(--rv-forest); }
.rv-button--light:hover, .rv-button--light:focus-visible { background: var(--rv-forest); border-color: var(--rv-forest); color: var(--rv-white); }
.rv-button--outline { background: transparent; color: var(--rv-forest); border-color: var(--rv-forest); }
.rv-button--outline:hover, .rv-button--outline:focus-visible { background: var(--rv-forest); border-color: var(--rv-forest); }

.rv-trustbar { position: relative; z-index: 3; margin: -52px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--rv-white); border-radius: var(--rv-radius); box-shadow: var(--rv-shadow); }
.rv-trustbar__item { padding: 27px 30px; display: flex; gap: 14px; align-items: center; font-weight: 700; }
.rv-trustbar__item + .rv-trustbar__item { border-left: 1px solid #ecd9d2; }
.rv-icon { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--rv-sage); color: var(--rv-forest); font-size: 1.2rem; }

.rv-situations { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 100px); align-items: start; }
.rv-quote-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rv-quote { margin: 0; padding: 26px; background: var(--rv-white); border: 1px solid rgba(122,46,20,.12); border-radius: 18px; box-shadow: 0 10px 30px rgba(91,39,24,.07); font-size: 1.05rem; line-height: 1.55; }
.rv-quote::before { content: "“"; display: block; height: 30px; color: var(--rv-clay); font: 700 2.2rem Georgia,serif; }

.rv-services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 46px; }
.rv-card { position: relative; padding: 34px; overflow: hidden; border-radius: var(--rv-radius); background: var(--rv-white); box-shadow: 0 8px 30px rgba(91,39,24,.08); }
.rv-card__num { color: var(--rv-clay); font-size: .8rem; font-weight: 800; letter-spacing: .12em; }
.rv-card h3 { margin: 22px 0 12px; font-size: 1.55rem; }
.rv-card p { margin: 0; color: var(--rv-muted); line-height: 1.7; }
.rv-card--feature { background: var(--rv-forest); }
.rv-card--feature h3, .rv-card--feature p { color: var(--rv-white); }
.rv-card--feature .rv-card__num { color: #f4bbb0; }

.rv-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; counter-reset: steps; }
.rv-step { position: relative; padding: 30px 28px; border-top: 1px solid rgba(122,46,20,.25); counter-increment: steps; }
.rv-step::before { content: "0" counter(steps); display: block; margin-bottom: 24px; color: var(--rv-clay); font-weight: 800; }
.rv-step h3 { font-size: 1.4rem; margin: 0 0 10px; }
.rv-step p { color: var(--rv-muted); line-height: 1.65; }

.rv-about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 110px); align-items: center; }
.rv-about__visual { min-height: 560px; position: relative; border-radius: 160px 160px 24px 24px; background: var(--rv-about-image) center/cover; }
.rv-about__badge { position: absolute; right: -25px; bottom: 30px; max-width: 220px; padding: 24px; border-radius: 18px; background: var(--rv-clay); color: white; box-shadow: var(--rv-shadow); font-weight: 750; line-height: 1.4; }
.rv-checks { padding: 0; margin: 28px 0 0; list-style: none; }
.rv-checks li { position: relative; padding: 11px 0 11px 34px; border-bottom: 1px solid rgba(122,46,20,.14); }
.rv-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--rv-clay); font-weight: 900; }

.rv-area { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 90px); align-items: center; }
.rv-area__art { min-height: 430px; border-radius: var(--rv-radius); background: linear-gradient(rgba(122,46,20,.08),rgba(122,46,20,.08)), url('../../uploads/2026/04/pic-3.jpg') center/cover; box-shadow: var(--rv-shadow); }

.rv-faq { max-width: 850px; margin-top: 38px; }
.rv-faq details { border-top: 1px solid rgba(122,46,20,.22); }
.rv-faq details:last-child { border-bottom: 1px solid rgba(122,46,20,.22); }
.rv-faq summary { padding: 23px 40px 23px 0; cursor: pointer; color: var(--rv-forest-deep); font-size: 1.12rem; font-weight: 750; list-style: none; }
.rv-faq summary::-webkit-details-marker { display: none; }
.rv-faq summary::after { content: "+"; float: right; margin-right: -34px; color: var(--rv-clay); font-size: 1.5rem; }
.rv-faq details[open] summary::after { content: "−"; }
.rv-faq p { max-width: 720px; margin: -6px 0 24px; color: var(--rv-muted); line-height: 1.7; }

.rv-contact { background: var(--rv-forest-deep); color: var(--rv-white); }
.rv-contact h2 { color: var(--rv-white); }
.rv-contact .rv-lead { color: #f1dcd5; }
.rv-contact__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 8vw, 95px); align-items: start; }
.rv-contact-links { display: grid; gap: 12px; margin-top: 30px; }
.rv-contact-links a { color: var(--rv-white); font-size: 1.08rem; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rv-form { padding: clamp(25px, 5vw, 44px); border-radius: var(--rv-radius); background: var(--rv-white); color: var(--rv-ink); }
.rv-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rv-form label { display: block; margin-bottom: 15px; color: var(--rv-forest-deep); font-weight: 700; }
.rv-form input:not([type=checkbox]), .rv-form textarea, .rv-form select { width: 100%; margin-top: 7px; padding: 13px 14px; border: 1px solid #d5b9af; border-radius: 9px; background: #fffaf7; color: var(--rv-ink); }
.rv-form textarea { min-height: 125px; resize: vertical; }
.rv-form__consent { display: grid !important; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .88rem; font-weight: 500 !important; line-height: 1.45; }
.rv-form__consent input { margin-top: 4px; }
.rv-form__notice { margin: 0 0 20px; padding: 13px 15px; border-radius: 8px; background: #f5e2d9; color: #5c2819; }
.rv-form__notice--error { background: #fae5df; color: #7a2b1a; }
.rv-hp { position: absolute !important; left: -9999px !important; }

.rv-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.rv-footer { padding: 60px 0 25px; background: #2b0f09; color: #f0d8d0; }
.rv-footer__grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 50px; }
.rv-footer strong { color: white; font-family: Georgia,"Times New Roman",serif; font-size: 1.2rem; }
.rv-footer p { margin: 12px 0 0; line-height: 1.65; }
.rv-footer a { color: white; }
.rv-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.15); font-size: .85rem; }
.rv-footer__legal { display: flex; flex-wrap: wrap; gap: 8px; }
.rv-footer__legal a { text-underline-offset: 4px; }
.rv-form__consent a { color: var(--rv-clay); text-underline-offset: 3px; }

/* Páginas legales */
.rv-inner { min-height: 60vh; background: var(--rv-cream); }
.rv-inner__hero { padding: clamp(70px, 9vw, 115px) 0 clamp(48px, 6vw, 72px); background: linear-gradient(135deg, #fff8f3 0%, #f3d8d6 100%); border-bottom: 1px solid rgba(122,46,20,.12); }
.rv-inner__hero h1 { max-width: 850px; margin: 0 0 24px; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.rv-inner__back { color: var(--rv-forest); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.rv-inner__content { padding: clamp(55px, 8vw, 95px) 0; }
.rv-legal { max-width: 850px; margin: 0 auto; padding: 18px 0 50px; color: #39231d; }
.rv-legal__updated { padding: 13px 16px; border-left: 4px solid #a6503a; background: #fff3ee; color: #6c463b; }
.rv-legal h2 { margin-top: 2.2rem; color: #542419; font-size: clamp(1.35rem, 2vw, 1.7rem); }
.rv-legal p, .rv-legal li { line-height: 1.75; }
.rv-legal li + li { margin-top: .35rem; }
.rv-legal a { color: #8e3e2d; text-underline-offset: 3px; }
.rv-legal code { padding: 2px 5px; border-radius: 4px; background: #f3e5df; }

@media (max-width: 900px) {
  .rv-nav { display: none; }
  .rv-trustbar, .rv-process { grid-template-columns: 1fr; }
  .rv-trustbar__item + .rv-trustbar__item { border-left: 0; border-top: 1px solid #ecd9d2; }
  .rv-situations, .rv-about, .rv-area, .rv-contact__grid, .rv-footer__grid { grid-template-columns: 1fr; }
  .rv-about__visual { width: min(520px, 92%); min-height: 430px; }
  .rv-about__badge { right: -8%; }
}

@media (max-width: 620px) {
  .rv-container { width: min(100% - 28px, 1160px); }
  .rv-hero {
    min-height: 0;
    padding-bottom: 370px;
    background-image:
      linear-gradient(180deg, rgba(255,248,243,.99) 0%, rgba(255,248,243,.95) 48%, rgba(255,248,243,.30) 72%, rgba(255,248,243,0) 88%),
      var(--rv-hero-image);
    background-size: 100% 100%, auto 370px;
    background-position: center, 58% bottom;
    background-repeat: no-repeat;
  }
  .rv-hero__content { padding: 55px 0 40px; }
  .rv-quote-grid, .rv-services, .rv-form__row { grid-template-columns: 1fr; }
  .rv-card { padding: 27px; }
  .rv-about__visual {
    width: 100%;
    min-height: 520px;
    background-position: center 18%;
  }
  .rv-about__badge {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: auto;
    max-width: none;
    margin: 0;
    transform: none;
  }
  .rv-actions .rv-button { width: 100%; }
  .rv-footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
