﻿:root{
      --primary:#0f9d7a;
      --primary-dark:#0b6e58;
      --secondary:#103730;
      --text:#1e1f22;
      --muted:#62666d;
      --border:#e6e8eb;
      --bg:#f7f9fb;
      --white:#ffffff;
      --shadow:0 10px 30px rgba(16, 40, 34, 0.08);
      --radius:18px;
      --container:1280px;
      --header-height:88px;
    }

    *{ margin:0; padding:0; box-sizing:border-box; }
    html{ scroll-behavior:smooth; }
    body{
      font-family:"Inter", sans-serif;
      color:var(--text);
      background:var(--white);
      line-height:1.55;
      -webkit-font-smoothing:antialiased;
      text-rendering:optimizeLegibility;
    }
    img{ display:block; max-width:100%; height:auto; }
    a{ color:inherit; text-decoration:none; }
    button,input{ font:inherit; }
    .container{ width:min(var(--container), calc(100% - 40px)); margin-inline:auto; }
    .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; }

    .topbar{ background:#0d2f28; color:#dff7ef; font-size:.92rem; }
    .topbar-inner{ min-height:42px; display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; padding:8px 0; }
    .topbar-left,.topbar-right{ display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
    .topbar a:hover{ text-decoration:underline; }

    .site-header{ position:sticky; top:0; z-index:1000; background:rgba(255,255,255,.95); backdrop-filter:blur(10px); border-bottom:1px solid rgba(0,0,0,.05); }
    .header-inner{ min-height:var(--header-height); display:flex; align-items:center; justify-content:space-between; gap:24px; }
    .logo{ flex-shrink:0; }
    .logo a{ display:flex; align-items:center; gap:12px; font-weight:800; color:var(--secondary); }
    .logo-mark{ width:46px; height:46px; border-radius:14px; background:linear-gradient(135deg, var(--primary), #28c59e); display:grid; place-items:center; color:#fff; font-weight:800; box-shadow:var(--shadow); }
    .logo-text{ display:flex; flex-direction:column; line-height:1.05; }
    .logo-title{ font-size:1.2rem; letter-spacing:-0.02em; }
    .logo-sub{ font-size:.78rem; color:var(--muted); font-weight:600; }
    .nav{ flex:1; display:flex; justify-content:center; }
    .nav ul{ list-style:none; display:flex; align-items:center; gap:28px; flex-wrap:wrap; }
    .nav a{ color:#394049; font-weight:600; font-size:.98rem; transition:.2s ease; }
    .nav a:hover,.nav a.active{ color:var(--primary-dark); }

    .header-actions{ display:flex; align-items:center; gap:12px; flex-shrink:0; position:relative; }
    .icon-btn{ width:42px; height:42px; border-radius:50%; border:1px solid var(--border); background:#fff; display:grid; place-items:center; cursor:pointer; transition:.2s ease; position:relative; }
    .icon-btn:hover{ background:var(--bg); }
    .cart-btn{ overflow:visible; }
    .cart-count{ position:absolute; top:-8px; right:-8px; min-width:22px; height:22px; padding:0 6px; border-radius:999px; background:#ff4d4f; color:#fff; font-size:12px; font-weight:800; display:flex; align-items:center; justify-content:center; line-height:1; border:2px solid #fff; }

    .search-box{ position:absolute; top:calc(100% + 12px); right:0; width:min(360px, calc(100vw - 24px)); background:#fff; border:1px solid var(--border); border-radius:16px; padding:14px; box-shadow:var(--shadow); display:none; z-index:2000; }
    .search-box.active{ display:block; }
    .search-form{ display:flex; gap:8px; }
    .search-form input{ flex:1; min-width:0; border:1px solid var(--border); border-radius:10px; padding:11px 12px; outline:none; }
    .search-form input:focus{ border-color:var(--primary); }
    .search-message{ margin-top:10px; color:#c0392b; font-size:.9rem; display:none; }

    .btn{ display:inline-flex; align-items:center; justify-content:center; gap:10px; padding:13px 20px; border-radius:12px; border:1px solid transparent; font-weight:700; transition:.2s ease; cursor:pointer; }
    .btn-primary{ background:var(--primary); color:#fff; box-shadow:var(--shadow); }
    .btn-primary:hover{ background:var(--primary-dark); }
    .btn-secondary{ background:#fff; color:var(--secondary); border-color:var(--border); }
    .btn-secondary:hover{ background:var(--bg); }

    .blog-hero{ position:relative; overflow:hidden; background:#f7fbfa; }
    .blog-hero::before{ content:""; position:absolute; inset:0; background:linear-gradient(90deg, rgba(8,30,25,.72) 0%, rgba(8,30,25,.45) 45%, rgba(8,30,25,.22) 100%); z-index:1; }
    .blog-hero img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; min-height:620px; }
    .blog-hero-inner{ position:relative; z-index:2; min-height:620px; display:flex; align-items:center; }
    .blog-hero-content{ max-width:820px; color:#fff; padding:72px 0; }
    .eyebrow{ display:inline-flex; align-items:center; gap:10px; padding:8px 14px; border-radius:999px; background:rgba(255,255,255,.14); color:#ffffff; font-weight:700; font-size:.86rem; margin-bottom:18px; backdrop-filter:blur(6px); }
    .blog-hero h1{ font-size:clamp(2.5rem, 5vw, 5rem); line-height:1.02; letter-spacing:-0.04em; margin-bottom:18px; color:#fff; }
    .blog-hero h1 span{ color:#9ef0d8; }
    .hero-lead{ font-size:1.08rem; color:rgba(255,255,255,.92); max-width:650px; margin-bottom:28px; }
    .hero-cta{ display:flex; gap:14px; flex-wrap:wrap; }
    .blog-hero .btn-secondary{ background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.28); color:#fff; backdrop-filter:blur(4px); }
    .blog-hero .btn-secondary:hover{ background:rgba(255,255,255,.2); }

    .blog-stats{ margin-top:-34px; position:relative; z-index:3; }
    .stats-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
    .stat-card{ background:#fff; border:1px solid var(--border); border-radius:18px; padding:22px; box-shadow:var(--shadow); }
    .stat-card strong{ display:block; font-size:1.6rem; color:var(--secondary); margin-bottom:4px; }
    .stat-card span{ color:var(--muted); font-size:.96rem; }

    .blog-photo-strip{ padding:64px 0 10px; background:#fff; }
    .blog-photo-grid{ display:grid; grid-template-columns:1.1fr .9fr 1fr; gap:18px; align-items:stretch; }
    .blog-photo-grid article{ position:relative; min-height:280px; overflow:hidden; border-radius:24px; box-shadow:var(--shadow); border:1px solid rgba(16,55,48,.12); background:#0d2f28; }
    .blog-photo-grid img{ width:100%; height:100%; min-height:280px; object-fit:cover; transition:transform .45s ease; }
    .blog-photo-grid article:hover img{ transform:scale(1.04); }
    .blog-photo-grid span{ position:absolute; left:18px; bottom:18px; z-index:2; display:inline-flex; min-height:36px; align-items:center; padding:0 14px; border-radius:999px; color:#fff; background:rgba(13,47,40,.72); border:1px solid rgba(255,255,255,.2); font-weight:900; backdrop-filter:blur(8px); }

    section{ padding:82px 0; }
    .section-head{ max-width:800px; margin:0 auto 42px; text-align:center; }
    .section-head .label{ display:inline-block; color:var(--primary-dark); text-transform:uppercase; letter-spacing:.14em; font-size:.8rem; font-weight:800; margin-bottom:12px; }
    .section-head h2{ font-size:clamp(2rem, 3.5vw, 3.2rem); line-height:1.08; letter-spacing:-0.03em; margin-bottom:14px; color:#162621; }
    .section-head p{ color:var(--muted); font-size:1.02rem; }

    .blog-toolbar{ display:flex; justify-content:space-between; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom:28px; }
    .category-filters{ display:flex; gap:10px; flex-wrap:wrap; }
    .filter-btn{ border:1px solid var(--border); background:#fff; color:#394049; padding:11px 16px; border-radius:999px; font-weight:700; cursor:pointer; transition:.2s ease; }
    .filter-btn:hover,.filter-btn.active{ background:var(--primary); color:#fff; border-color:var(--primary); }
    .blog-search{ width:min(360px,100%); border:1px solid var(--border); border-radius:999px; padding:13px 18px; outline:none; }
    .blog-search:focus{ border-color:var(--primary); }

    .featured-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:26px; align-items:stretch; }
    .featured-post{ background:#fff; border:1px solid var(--border); border-radius:26px; overflow:hidden; box-shadow:var(--shadow); }
    .featured-post img{ width:100%; height:360px; object-fit:cover; }
    .post-body{ padding:28px; }
    .post-meta{ display:flex; gap:14px; flex-wrap:wrap; color:#7a7f86; font-size:.92rem; margin-bottom:14px; }
    .pill{ display:inline-flex; border-radius:999px; background:#ebfaf5; color:var(--primary-dark); padding:7px 12px; font-weight:800; font-size:.82rem; margin-bottom:12px; }
    .featured-post h2,.side-post h3,.post-card h3{ color:var(--secondary); line-height:1.15; letter-spacing:-0.02em; }
    .featured-post h2{ font-size:2rem; margin-bottom:12px; }
    .post-body p{ color:var(--muted); margin-bottom:18px; }
    .side-list{ display:grid; gap:18px; }
    .side-post{ display:grid; grid-template-columns:170px 1fr; gap:18px; align-items:center; background:#fff; border:1px solid var(--border); border-radius:22px; padding:14px; box-shadow:var(--shadow); }
    .side-post img{ width:100%; height:130px; object-fit:cover; border-radius:16px; }
    .side-post h3{ font-size:1.12rem; margin-bottom:8px; }
    .side-post p{ color:var(--muted); font-size:.95rem; }

    .posts-block{ background:var(--bg); }
    .posts-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; }
    .post-card{ background:#fff; border:1px solid var(--border); border-radius:22px; overflow:hidden; box-shadow:var(--shadow); transition:transform .22s ease, box-shadow .22s ease; }
    .post-card:hover{ transform:translateY(-6px); box-shadow:0 18px 40px rgba(10,45,38,.12); }
    .post-card img{ width:100%; aspect-ratio:16/10; object-fit:cover; }
    .post-media{ display:block; overflow:hidden; }
    .loading-card:hover{ transform:none; }
    .post-card h3{ font-size:1.24rem; margin-bottom:10px; }
    .post-card p{ color:var(--muted); margin-bottom:18px; }
    .text-link{ color:var(--primary-dark); font-weight:700; }
    .empty-state{ color:var(--muted); font-weight:800; text-align:center; margin-top:18px; }

    .guide-grid{ display:grid; grid-template-columns:1fr 1fr; gap:36px; align-items:center; }
    .guide-copy h2{ font-size:clamp(2rem, 3vw, 3rem); line-height:1.08; margin-bottom:16px; color:#162621; letter-spacing:-0.03em; }
    .guide-copy p{ color:var(--muted); margin-bottom:16px; }
    .check-list{ list-style:none; display:grid; gap:12px; margin-top:20px; }
    .check-list li{ display:flex; gap:12px; color:#3e4650; font-weight:500; }
    .check-list li span{ color:var(--primary); font-weight:800; }
    .guide-media{ border-radius:26px; overflow:hidden; box-shadow:var(--shadow); }
    .guide-media img{ width:100%; height:100%; min-height:420px; object-fit:cover; }

    .newsletter{ padding:0 0 90px; }
    .newsletter-box{ background:linear-gradient(135deg, #0f7c63 0%, #16b48d 100%); border-radius:28px; padding:42px; color:#fff; display:grid; grid-template-columns:1fr .85fr; gap:28px; align-items:center; box-shadow:0 20px 60px rgba(15,157,122,.22); }
    .newsletter h2{ font-size:clamp(2rem, 3vw, 3rem); line-height:1.06; letter-spacing:-0.03em; margin-bottom:10px; }
    .newsletter p{ color:rgba(255,255,255,.92); }
    .newsletter-form{ display:flex; gap:10px; flex-wrap:wrap; }
    .newsletter-form input{ flex:1; min-width:220px; border:1px solid rgba(255,255,255,.35); background:rgba(255,255,255,.14); color:#fff; border-radius:12px; padding:14px 16px; outline:none; }
    .newsletter-form input::placeholder{ color:rgba(255,255,255,.75); }
    .newsletter-form .btn{ background:#fff; color:#0d5f4d; }

    .site-footer{ background:#0f1514; color:#d1d7d5; padding:64px 0 28px; }
    .footer-grid{ display:grid; grid-template-columns:1.2fr 1fr 1fr 1fr; gap:28px; margin-bottom:36px; }
    .footer-brand p{ margin-top:16px; color:#99a3a0; max-width:320px; }
    .footer-title{ color:#fff; margin-bottom:14px; font-size:1rem; font-weight:700; }
    .footer-links{ list-style:none; display:grid; gap:10px; }
    .footer-links a{ color:#aab4b1; }
    .footer-links a:hover{ color:#fff; }
    .footer-bottom{ border-top:1px solid rgba(255,255,255,.08); padding-top:22px; display:flex; justify-content:space-between; gap:18px; flex-wrap:wrap; color:#95a09d; font-size:.94rem; }
    .legacy-contact-float{ position:fixed; right:18px; bottom:18px; width:58px; height:58px; border-radius:50%; background:#63d34f; color:#fff; display:grid; place-items:center; box-shadow:0 12px 28px rgba(0,0,0,.18); z-index:999; font-size:1.45rem; }

    @media (max-width:1100px){
      .nav{ display:none; }
      .stats-grid,.posts-grid{ grid-template-columns:1fr 1fr; }
      .featured-grid,.guide-grid,.footer-grid,.newsletter-box{ grid-template-columns:1fr; }
      .blog-photo-grid{ grid-template-columns:1fr; }
    }
    @media (max-width:720px){
      .container{ width:min(var(--container), calc(100% - 24px)); }
      .header-inner{ min-height:74px; }
      .topbar-inner{ justify-content:center; }
      .header-actions .btn-secondary{ display:none; }
      section{ padding:64px 0; }
      .blog-hero img,.blog-hero-inner{ min-height:560px; }
      .stats-grid,.posts-grid{ grid-template-columns:1fr; }
      .side-post{ grid-template-columns:1fr; }
      .side-post img{ height:220px; }
      .newsletter-box{ padding:28px; }
    }
/* Codigo: muestra el logo oficial de EspacioDucha en cabeceras y pies. */
.logo-image,
.brand-logo-image,
.ed-brand-logo-image,
.payment-logo-image {
  display: block;
  width: clamp(118px, 13vw, 168px);
  height: auto;
  max-height: 68px;
  object-fit: contain;
  border-radius: 8px;
}

.footer-brand .logo-image {
  width: 158px;
  max-height: 72px;
}

.payment-logo-image {
  width: 150px;
  max-height: 78px;
}

.logo a,
.brand,
.ed-brand {
  min-width: 0;
}

@media (max-width: 640px) {
  .logo-image,
  .brand-logo-image,
  .ed-brand-logo-image {
    width: 122px;
    max-height: 56px;
  }
}

