/*
Theme Name: Riego Fácil
Theme URI: https://todoriegofacil.com/
Author: Riego Fácil
Description: Tema editorial para una web de afiliación especializada en riego automático para macetas, balcones y terrazas.
Version: 1.1.0
Text Domain: riegofacil
*/

:root {
  --ink: #17352f;
  --ink-2: #244941;
  --cream: #f7f3e9;
  --paper: #fffdf8;
  --lime: #dce982;
  --blue: #8fd1e2;
  --coral: #f18a67;
  --line: rgba(23, 53, 47, 0.14);
  --muted: #63746f;
  --shadow: 0 22px 65px rgba(24, 55, 48, 0.13);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(23,53,47,.055) .75px, transparent .75px);
  background-size: 17px 17px;
}
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--coral); }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }
.screen-reader-text { position:absolute !important; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.wrap { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 999; padding: 10px 16px; background: var(--paper); }
.skip-link:focus { left: 12px; }

h1, h2, h3, h4 {
  margin: 0 0 .65em;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
}
h1 { font-size: clamp(3rem, 7vw, 6.6rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 4.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.8rem); }
p { margin: 0 0 1.25em; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 22px;
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 9px; background: var(--coral); }
.muted { color: var(--muted); }
.section { padding: 92px 0; }
.section-head { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 38px; }
.section-head > div { max-width: 710px; }
.section-head p { max-width: 470px; margin-bottom: 8px; color: var(--muted); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 243, 233, .89);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 900; letter-spacing: -.03em; font-size: 1.2rem; }
.brand-mark {
  position: relative;
  width: 31px;
  height: 38px;
  transform: rotate(45deg);
  border-radius: 56% 50% 56% 12%;
  background: var(--blue);
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--lime);
}
.brand-mark::after { content: ""; position: absolute; width: 7px; height: 7px; left: 8px; top: 8px; border-radius: 50%; background: var(--paper); }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display:flex; align-items:center; gap:28px; margin:0; padding:0; list-style:none; }
.primary-nav a { text-decoration: none; font-size: .91rem; font-weight: 750; }
.primary-nav a:hover { color: #a5492c; }
.header-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  background: var(--paper);
}
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); cursor: pointer; }

.hero { overflow: hidden; padding: 88px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: clamp(50px, 7vw, 100px); }
.hero h1 span { position: relative; white-space: nowrap; }
.hero h1 span::after { content: ""; position: absolute; left: 1%; right: -2%; bottom: .08em; height: .14em; z-index: -1; background: var(--lime); transform: rotate(-1.4deg); }
.hero-copy > p { max-width: 630px; color: var(--ink-2); font-size: clamp(1.06rem, 1.7vw, 1.27rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.button, .wp-block-button__link, .amazon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 850;
  box-shadow: 4px 4px 0 var(--lime);
  transition: transform .2s ease, box-shadow .2s ease;
}
.button:hover, .amazon-button:hover { transform: translate(-2px,-2px); box-shadow: 7px 7px 0 var(--lime); }
.button.secondary { color: var(--ink); background: transparent; box-shadow: none; }
.hero-note { margin-top: 19px; font-size: .82rem; color: var(--muted); }

.irrigation-card {
  position: relative;
  min-height: 505px;
  border: 2px solid var(--ink);
  border-radius: 36px;
  background: var(--blue);
  box-shadow: 13px 14px 0 var(--ink);
  transform: rotate(1.2deg);
  overflow: hidden;
}
.irrigation-card::before, .irrigation-card::after { content: ""; position: absolute; border: 2px solid var(--ink); border-radius: 50%; background: var(--lime); }
.irrigation-card::before { width: 210px; height: 210px; right: -85px; top: -68px; }
.irrigation-card::after { width: 105px; height: 105px; left: -43px; bottom: 60px; background: var(--coral); }
.visual-panel { position: absolute; inset: 48px 42px auto; z-index: 2; padding: 28px; border: 2px solid var(--ink); border-radius: 22px; background: var(--paper); box-shadow: var(--shadow); }
.visual-panel-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 20px; margin-bottom: 21px; border-bottom: 1px solid var(--line); }
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.status::before { content:""; width: 10px; height: 10px; background: #5ba95f; border-radius: 50%; box-shadow: 0 0 0 4px rgba(91,169,95,.15); }
.visual-drops { display: flex; gap: 5px; }
.visual-drops i { display:block; width: 8px; height: 12px; border-radius: 60% 50% 60% 20%; transform: rotate(45deg); background: var(--blue); border: 1px solid var(--ink); }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.metric { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #fbf7ec; }
.metric strong { display:block; font-family: Georgia, serif; font-size: 1.9rem; line-height: 1; }
.metric span { display:block; margin-top: 5px; color: var(--muted); font-size: .75rem; font-weight: 700; }
.plant-row { position: absolute; left: 60px; right: 48px; bottom: 29px; z-index: 3; display: flex; justify-content: space-between; align-items: end; }
.pot { position: relative; width: 61px; height: 47px; border: 2px solid var(--ink); border-radius: 6px 6px 18px 18px; background: var(--coral); box-shadow: 4px 4px 0 var(--ink); }
.pot:nth-child(2) { transform: scale(1.15); background: var(--lime); }
.pot:nth-child(3) { background: var(--paper); }
.pot::before, .pot::after { content:""; position:absolute; bottom: 39px; width: 33px; height: 62px; border: 2px solid var(--ink); background: #5ca76b; border-radius: 80% 10% 80% 10%; transform: rotate(-23deg); transform-origin: bottom; }
.pot::after { left: 27px; transform: scale(.85) rotate(33deg); background: #7dbb66; border-radius: 10% 80% 10% 80%; }

.trust-strip { border-block: 1px solid var(--line); background: var(--paper); }
.trust-inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { padding: 23px 28px; text-align: center; font-size: .82rem; font-weight: 800; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }

.chooser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.choice-card {
  position: relative;
  min-height: 270px;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: 0 7px 24px rgba(23,53,47,.06);
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease;
}
.choice-card:hover { transform: translateY(-6px); border-color: var(--ink); }
.choice-card:nth-child(2) { background: var(--lime); }
.choice-card:nth-child(3) { background: #d8edf0; }
.choice-no { display:block; margin-bottom: 29px; color: var(--muted); font-size: .72rem; font-weight: 850; letter-spacing: .12em; }
.choice-card p { color: var(--ink-2); font-size: .92rem; }
.arrow { position:absolute; right:25px; bottom:23px; display:grid; place-items:center; width: 42px; height:42px; border: 1px solid var(--ink); border-radius:50%; font-weight:900; }

.posts-section { background: var(--ink); color: #f7f3e9; }
.posts-section .eyebrow::before { background: var(--blue); }
.posts-section .section-head p, .posts-section .muted { color: #b8cbc5; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display:flex; flex-direction:column; overflow:hidden; min-height: 390px; border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius); background:#21473f; }
.post-card:nth-child(3n+2) { background:#24443f; }
.post-card-top { display:flex; align-items:end; justify-content:space-between; min-height:120px; padding: 25px; border-bottom:1px solid rgba(255,255,255,.13); background:linear-gradient(145deg, rgba(143,209,226,.2), rgba(220,233,130,.07)); }
.post-card-top span { font-size:.7rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; color:var(--lime); }
.post-card-icon { display:grid; place-items:center; width:48px; height:48px; border:1px solid rgba(255,255,255,.3); border-radius:50%; color:var(--blue); font-size:1.15rem; }
.post-card-body { display:flex; flex:1; flex-direction:column; padding:27px; }
.post-card h3 { font-size:1.63rem; }
.post-card h3 a { text-decoration:none; }
.post-card p { color:#bfd0ca; font-size:.9rem; }
.card-meta { display:flex; justify-content:space-between; gap:12px; margin-top:auto; color:#9fbab2; font-size:.73rem; font-weight:700; }
.text-link { font-size:.85rem; font-weight:850; }

.home-products { background:#edf1df; border-block:1px solid var(--line); }
.product-category-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; }
.product-category-card { display:flex; flex-direction:column; min-height:260px; padding:28px; border:2px solid var(--ink); border-radius:20px; background:var(--paper); text-decoration:none; box-shadow:6px 7px 0 var(--ink); transition:transform .2s ease, box-shadow .2s ease; }
.product-category-card:nth-child(2) { background:var(--blue); }
.product-category-card:nth-child(3) { background:var(--lime); }
.product-category-card:hover { transform:translate(-2px,-3px); box-shadow:9px 11px 0 var(--ink); }
.product-category-card > span { font-size:.7rem; font-weight:900; letter-spacing:.13em; }
.product-category-card h3 { margin-top:35px; }
.product-category-card p { color:var(--ink-2); font-size:.9rem; }
.product-category-card b { margin-top:auto; font-size:.8rem; }
.products-all-link { display:flex; justify-content:center; margin-top:34px; }
.hostinger-product-zone { margin:12px 0 32px; }
.hostinger-product-zone > * { max-width:none; }
.hostinger-product-zone [class*="hostinger"], .product-content [class*="hostinger"] { font-family:Inter,ui-sans-serif,system-ui,sans-serif; }
.topic-pills { display:flex; flex-wrap:wrap; gap:9px; margin-top:28px; }
.topic-pills a { padding:9px 14px; border:1px solid var(--ink); border-radius:999px; background:var(--paper); text-decoration:none; font-size:.78rem; font-weight:800; }
.blog-grid { padding-top:62px; }
.product-subnav { border-bottom:1px solid var(--line); background:var(--paper); }
.product-subnav .wrap { display:flex; gap:27px; overflow-x:auto; padding-block:16px; }
.product-subnav a { flex:0 0 auto; text-decoration:none; font-size:.8rem; font-weight:850; }
.product-page-layout { display:grid; grid-template-columns:minmax(0,820px) 280px; gap:62px; align-items:start; padding:65px 0 100px; }
.product-content h2 { padding-top:.35em; }
.plugin-product-placeholder { padding:25px; border:2px dashed var(--line); border-radius:18px; background:var(--paper); color:var(--muted); }

.method-grid { display:grid; grid-template-columns:.85fr 1.15fr; gap:72px; align-items:start; }
.method-list { border-top:1px solid var(--line); }
.method-item { display:grid; grid-template-columns:55px 1fr; gap:14px; padding:24px 0; border-bottom:1px solid var(--line); }
.method-item strong { font-family:Georgia,serif; font-size:1.25rem; }
.method-item p { margin:0; color:var(--muted); font-size:.9rem; }

.site-footer { padding: 62px 0 30px; background:#102d28; color:#f7f3e9; }
.footer-grid { display:grid; grid-template-columns:1.6fr 1fr 1fr; gap:55px; padding-bottom:44px; }
.footer-intro { max-width:500px; }
.footer-intro p { color:#b9cbc6; }
.footer-title { margin-bottom:15px; font-size:.75rem; font-weight:850; letter-spacing:.12em; text-transform:uppercase; color:var(--lime); }
.footer-links { display:grid; gap:8px; }
.footer-links a { text-decoration:none; color:#dbe6e2; font-size:.9rem; }
.footer-bottom { display:flex; justify-content:space-between; gap:30px; padding-top:26px; border-top:1px solid rgba(255,255,255,.13); color:#a9bdb7; font-size:.73rem; }
.affiliate-note { max-width:760px; }

.page-hero { padding: 75px 0 52px; border-bottom:1px solid var(--line); }
.page-hero h1 { max-width:920px; font-size:clamp(2.7rem,6vw,5.2rem); }
.page-hero p { max-width:720px; color:var(--muted); font-size:1.08rem; }
.content-layout { display:grid; grid-template-columns:minmax(0,760px) 280px; gap:70px; align-items:start; padding:70px 0 100px; }
.article-content { min-width:0; }
.article-content > p:first-child { font-size:1.16rem; color:var(--ink-2); }
.article-content h2 { margin:1.6em 0 .55em; font-size:clamp(1.8rem,3.6vw,2.8rem); }
.article-content h3 { margin:1.5em 0 .5em; }
.article-content ul, .article-content ol { padding-left:1.3em; }
.article-content li { margin:.55em 0; }
.article-content blockquote { margin:2em 0; padding:24px 28px; border:0; border-left:5px solid var(--coral); border-radius:0 16px 16px 0; background:var(--paper); font-family:Georgia,serif; font-size:1.25rem; }
.article-content table { width:100%; margin:28px 0; border-collapse:separate; border-spacing:0; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:var(--paper); font-size:.9rem; }
.article-content th, .article-content td { padding:14px; border-bottom:1px solid var(--line); text-align:left; }
.article-content th { background:#e8eee8; }
.article-content tr:last-child td { border-bottom:0; }
.amazon-box { margin:30px 0; padding:25px; border:2px solid var(--ink); border-radius:18px; background:var(--lime); box-shadow:6px 6px 0 var(--ink); }
.amazon-box p { margin:0 0 15px; font-weight:800; }
.amazon-button { min-height:45px; padding:10px 18px; font-size:.82rem; box-shadow:none; }
.article-sidebar { position:sticky; top:105px; }
.sidebar-box { padding:24px; border:1px solid var(--line); border-radius:18px; background:var(--paper); }
.sidebar-box + .sidebar-box { margin-top:18px; }
.sidebar-box h3 { font-size:1.28rem; }
.sidebar-box ul { margin:0; padding:0; list-style:none; }
.sidebar-box li + li { margin-top:10px; }
.sidebar-box a { font-size:.85rem; font-weight:720; }
.disclosure { font-size:.76rem; color:var(--muted); }
.article-meta { display:flex; flex-wrap:wrap; gap:17px; margin-top:24px; color:var(--muted); font-size:.78rem; font-weight:700; }
.archive-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; padding:55px 0 95px; }
.archive-grid .post-card { color:#f7f3e9; }
.pagination { margin:0 0 80px; }
.pagination .nav-links { display:flex; gap:8px; }
.pagination a, .pagination span { display:grid; place-items:center; min-width:42px; height:42px; border:1px solid var(--line); border-radius:50%; text-decoration:none; }
.search-form { display:flex; gap:8px; }
.search-form label { flex:1; }
.search-field { width:100%; min-height:46px; padding:10px 14px; border:1px solid var(--line); border-radius:999px; background:var(--paper); }
.search-submit { min-height:46px; padding:10px 17px; border:0; border-radius:999px; background:var(--ink); color:#fff; font-weight:800; cursor:pointer; }
.empty-state { padding:85px 0 120px; text-align:center; }

@media (max-width: 980px) {
  .primary-nav { position:absolute; inset:78px 20px auto; display:none; padding:20px; border:1px solid var(--line); border-radius:18px; background:var(--paper); box-shadow:var(--shadow); }
  .primary-nav.is-open { display:grid; }
  .primary-nav ul { display:grid; gap:14px; }
  .header-search { display:none; }
  .menu-toggle { display:inline-grid; place-items:center; }
  .hero-grid, .method-grid { grid-template-columns:1fr; }
  .hero-copy { max-width:760px; }
  .irrigation-card { max-width:620px; min-height:470px; }
  .chooser-grid, .post-grid, .archive-grid { grid-template-columns:repeat(2,1fr); }
  .product-category-grid { grid-template-columns:repeat(2,1fr); }
  .product-page-layout { grid-template-columns:1fr; }
  .content-layout { grid-template-columns:1fr; }
  .article-sidebar { position:static; display:grid; grid-template-columns:repeat(2,1fr); gap:18px; }
  .sidebar-box + .sidebar-box { margin-top:0; }
}

@media (max-width: 680px) {
  body { font-size:16px; }
  .wrap { width:min(calc(100% - 28px), var(--max)); }
  .section { padding:68px 0; }
  .hero { padding:61px 0 56px; }
  h1 { font-size:clamp(2.8rem,14vw,4.6rem); }
  .hero h1 span { white-space:normal; }
  .irrigation-card { min-height:425px; border-radius:27px; box-shadow:8px 9px 0 var(--ink); }
  .visual-panel { inset:35px 24px auto; padding:20px; }
  .plant-row { left:38px; right:32px; }
  .pot { transform:scale(.82); }
  .pot:nth-child(2) { transform:scale(.95); }
  .trust-inner { grid-template-columns:1fr; }
  .trust-item + .trust-item { border-left:0; border-top:1px solid var(--line); }
  .section-head { display:block; }
  .chooser-grid, .post-grid, .archive-grid { grid-template-columns:1fr; }
  .product-category-grid { grid-template-columns:1fr; }
  .choice-card { min-height:225px; }
  .method-grid { gap:40px; }
  .footer-grid { grid-template-columns:1fr; gap:35px; }
  .footer-bottom { display:block; }
  .footer-bottom > * + * { margin-top:15px; }
  .article-sidebar { grid-template-columns:1fr; }
  .content-layout { padding-top:45px; gap:45px; }
  .article-content table { display:block; overflow-x:auto; }
}

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