/*
Theme Name: VPrinti
Theme URI: https://www.vprinti.es
Author: VPrinti
Author URI: https://www.vprinti.es
Description: Tema WordPress oficial da VPrinti — Impresión sostenible en Barcelona. Landing page multilíngue (ES/CA/EN/PT) com troca de idioma via JavaScript, fiel ao design original.
Version: 1.0.0
Requires at least: 5.9
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: vprinti
*/


    /* Euclid Circular A Medium — system/local first, DM Sans as web fallback */
    @font-face {
      font-family: 'Euclid Circular A';
      src: local('Euclid Circular A Medium'), local('EuclidCircularA-Medium'), local('Euclid Circular A');
      font-weight: 500;
      font-style: normal;
      font-display: swap;
    }

    :root {
      --font-heading: 'Euclid Circular A', 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      --green-deep:  #0d5c2e;
      --green-mid:   #16a34a;
      --green-vivid: #22c55e;
      --green-light: #bbf7d0;
      --green-pale:  #f0fdf4;
      --leaf:        #86efac;
      --ink:         #0a1a0f;
      --muted:       #4b7260;
      --white:       #ffffff;
      --off:         #f6faf7;
      --border:      #d1fae5;
      --radius:      14px;
      --radius-lg:   24px;
      --shadow:      0 4px 24px rgba(13,92,46,.08);
      --shadow-md:   0 8px 40px rgba(13,92,46,.13);
    }
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    html { scroll-behavior: smooth; }
    body { font-family: var(--font-body); background: var(--off); color: var(--ink); line-height: 1.65; -webkit-font-smoothing: antialiased; }

    /* LANG BAR */
    .lang-bar { background: var(--green-deep); padding: 7px 40px; display: flex; justify-content: flex-end; align-items: center; gap: 4px; }
    .lang-bar-label { color: rgba(255,255,255,.4); font-size: 11px; margin-right: 6px; }
    .lang-btn { background: none; border: 1px solid transparent; color: var(--leaf); font-size: 12px; font-family: var(--font-heading); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
    .lang-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.2); }
    .lang-btn.active { background: var(--green-vivid); color: var(--white); border-color: transparent; }

    /* HEADER */
    header { background: var(--white); padding: 0 40px; height: 72px; display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--border); box-shadow: 0 2px 16px rgba(13,92,46,.06); }
    .logo-wrap a { display: block; line-height: 0; }
    .logo-wrap img { height: 40px; width: auto; }
    nav { display: flex; align-items: center; gap: 4px; }
    nav a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; padding: 7px 14px; border-radius: 8px; transition: color .2s, background .2s; }
    nav a:hover { color: var(--green-mid); background: var(--green-pale); }
    .nav-cta { background: var(--green-mid) !important; color: var(--white) !important; font-weight: 600 !important; padding: 8px 18px !important; border-radius: 10px !important; margin-left: 8px; }
    .nav-cta:hover { background: var(--green-deep) !important; }
    .hamburger { display: none; background: none; border: none; cursor: pointer; padding: 6px; }
    .hamburger span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

    /* HERO */
    .hero { background: linear-gradient(145deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-vivid) 100%); color: var(--white); padding: 100px 40px 80px; text-align: center; position: relative; overflow: hidden; }
    .hero::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
    .hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 5px 14px; font-size: 13px; font-weight: 500; margin-bottom: 24px; backdrop-filter: blur(4px); animation: fadeUp .6s ease both; }
    .hero-badge .dot { width: 7px; height: 7px; background: var(--leaf); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }
    @keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.6;transform:scale(1.4)} }
    .hero h1 { font-family: var(--font-heading); font-size: clamp(32px, 5vw, 58px); font-weight: 500; line-height: 1.1; letter-spacing: -.02em; margin-bottom: 18px; animation: fadeUp .7s .1s ease both; }
    .hero h1 em { font-style: normal; color: var(--leaf); }
    .hero p { font-size: clamp(16px, 2vw, 20px); opacity: .88; max-width: 560px; margin: 0 auto 36px; animation: fadeUp .7s .2s ease both; }
    .hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; animation: fadeUp .7s .3s ease both; }
    .btn-primary { background: var(--white); color: var(--green-deep); padding: 13px 28px; border-radius: 12px; text-decoration: none; font-weight: 600; font-size: 15px; font-family: var(--font-heading); transition: transform .2s, box-shadow .2s; box-shadow: 0 4px 20px rgba(0,0,0,.15); }
    .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,0,0,.2); }
    .btn-ghost { background: transparent; color: var(--white); padding: 13px 28px; border-radius: 12px; text-decoration: none; font-weight: 500; font-size: 15px; border: 2px solid rgba(255,255,255,.45); transition: border-color .2s, background .2s; }
    .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
    .hero-stats { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 60px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.2); animation: fadeUp .7s .4s ease both; }
    .stat { text-align: center; }
    .stat-num { font-family: var(--font-heading); font-size: 32px; font-weight: 500; color: var(--leaf); }
    .stat-label { font-size: 13px; opacity: .8; }
    @keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

    /* TRUST BAR */
    .trust-bar { background: var(--white); border-bottom: 1px solid var(--border); padding: 14px 40px; display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
    .trust-item { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
    .trust-item svg { color: var(--green-mid); flex-shrink: 0; }

    /* SECTIONS */
    .section { padding: 80px 40px; max-width: 1120px; margin: 0 auto; }
    .section-tag { display: inline-block; background: var(--green-pale); color: var(--green-deep); font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 14px; font-family: var(--font-heading); }
    .section-title { font-family: var(--font-heading); font-size: clamp(26px, 3.5vw, 42px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
    .section-sub { color: var(--muted); font-size: 17px; max-width: 520px; margin-bottom: 48px; }
    .centered { text-align: center; }
    .centered .section-sub { margin-left: auto; margin-right: auto; }

    /* SERVICES */
    .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
    .service-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 28px; transition: transform .25s, box-shadow .25s, border-color .25s; position: relative; overflow: hidden; }
    .service-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--green-mid), var(--green-vivid)); opacity: 0; transition: opacity .25s; }
    .service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-light); }
    .service-card:hover::before { opacity: 1; }
    .service-icon { width: 52px; height: 52px; background: var(--green-pale); border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; font-size: 24px; }
    .service-card h3 { font-family: var(--font-heading); font-size: 18px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
    .service-card p { font-size: 14.5px; color: var(--muted); line-height: 1.6; }
    .service-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 14px; font-weight: 600; color: var(--green-mid); text-decoration: none; transition: gap .2s; }
    .service-link:hover { gap: 8px; }

    /* ECO */
    .eco-section { background: linear-gradient(135deg, var(--green-pale) 0%, var(--white) 100%); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 80px 40px; }
    .eco-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
    .eco-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
    .eco-pill { display: flex; align-items: center; gap: 7px; background: var(--white); border: 1px solid var(--border); border-radius: 30px; padding: 7px 14px; font-size: 13.5px; font-weight: 500; color: var(--green-deep); box-shadow: var(--shadow); }
    .eco-visual { background: linear-gradient(145deg, var(--green-mid), var(--green-deep)); border-radius: var(--radius-lg); padding: 40px; color: var(--white); position: relative; overflow: hidden; }
    .eco-visual::after { content: '🌿'; position: absolute; right: -10px; bottom: -10px; font-size: 120px; opacity: .12; transform: rotate(-15deg); }
    .eco-metric { margin-bottom: 24px; }
    .eco-metric-label { font-size: 13px; opacity: .75; margin-bottom: 6px; }
    .eco-metric-bar { height: 8px; background: rgba(255,255,255,.2); border-radius: 4px; overflow: hidden; }
    .eco-metric-fill { height: 100%; background: var(--leaf); border-radius: 4px; }
    .eco-metric-val { font-family: var(--font-heading); font-size: 22px; font-weight: 500; margin-top: 6px; color: var(--leaf); }

    /* WHY */
    .why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 40px; }
    .why-card { background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid var(--border); box-shadow: var(--shadow); text-align: center; }
    .why-num { font-family: var(--font-heading); font-size: 38px; font-weight: 500; color: var(--green-mid); line-height: 1; margin-bottom: 4px; }
    .why-card h3 { font-family: var(--font-heading); font-size: 16px; font-weight: 500; margin-bottom: 8px; }
    .why-card p { font-size: 14px; color: var(--muted); }

    /* FAQ */
    .faq-list { max-width: 720px; margin: 0 auto; }
    .faq-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
    .faq-q { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-size: 15.5px; font-weight: 500; font-family: var(--font-heading); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--ink); transition: color .2s; }
    .faq-q:hover { color: var(--green-mid); }
    .faq-q svg { transition: transform .3s; flex-shrink: 0; color: var(--green-mid); }
    .faq-item.open .faq-q svg { transform: rotate(180deg); }
    .faq-a { max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; font-size: 14.5px; color: var(--muted); line-height: 1.7; }
    .faq-item.open .faq-a { max-height: 300px; padding: 0 24px 20px; }

    /* CTA */
    .cta-section { background: linear-gradient(145deg, var(--green-vivid), var(--green-mid)); padding: 90px 40px; text-align: center; color: var(--white); position: relative; overflow: hidden; }
    .cta-section::before { content: ''; position: absolute; width: 600px; height: 600px; background: radial-gradient(circle, rgba(255,255,255,.08) 0%, transparent 70%); top: -200px; right: -200px; border-radius: 50%; }
    .cta-section h2 { font-family: var(--font-heading); font-size: clamp(28px, 4vw, 48px); font-weight: 500; margin-bottom: 14px; letter-spacing: -.02em; }
    .cta-section p { font-size: 18px; opacity: .9; margin-bottom: 36px; }
    .cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
    .btn-white { background: var(--white); color: var(--green-deep); padding: 14px 30px; border-radius: 12px; font-weight: 600; font-family: var(--font-heading); text-decoration: none; font-size: 15px; box-shadow: 0 4px 20px rgba(0,0,0,.15); transition: transform .2s; }
    .btn-white:hover { transform: translateY(-2px); }
    .btn-outline-w { border: 2px solid rgba(255,255,255,.6); color: var(--white); padding: 14px 30px; border-radius: 12px; font-weight: 500; font-family: var(--font-heading); text-decoration: none; font-size: 15px; transition: border-color .2s, background .2s; }
    .btn-outline-w:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

    /* FOOTER */
    footer { background: var(--ink); color: rgba(255,255,255,.55); padding: 50px 40px 30px; }
    .footer-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
    .footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 12px; }
    .footer-logo-img { height: 32px; width: auto; margin-bottom: 12px; filter: brightness(0) invert(1); opacity: .85; }
    .footer-col h4 { font-family: var(--font-heading); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
    .footer-col a { display: block; color: rgba(255,255,255,.5); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
    .footer-col a:hover { color: var(--green-vivid); }
    .footer-bottom { max-width: 1120px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 13px; }
    .foot-links { display: flex; gap: 16px; }
    .foot-links a { color: rgba(255,255,255,.4); text-decoration: none; font-size: 13px; transition: color .2s; }
    .foot-links a:hover { color: var(--green-vivid); }
    .eco-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.25); border-radius: 20px; padding: 4px 10px; font-size: 12px; color: var(--green-vivid); font-weight: 500; }

    /* RESPONSIVE */
    @media (max-width: 768px) {
      header { padding: 0 20px; }
      nav { display: none; }
      nav.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow-md); z-index: 99; }
      .hamburger { display: block; }
      .lang-bar { padding: 8px 16px; }
      .hero { padding: 60px 20px 50px; }
      .hero-stats { gap: 24px; }
      .section { padding: 60px 20px; }
      .eco-inner { grid-template-columns: 1fr; gap: 40px; }
      .footer-grid { grid-template-columns: 1fr 1fr; }
      .trust-bar { padding: 14px 20px; gap: 16px; }
      .eco-section { padding: 60px 20px; }
      .cta-section { padding: 70px 20px; }
      footer { padding: 40px 20px 24px; }
    }
    @media (max-width: 480px) {
      .footer-grid { grid-template-columns: 1fr; }
      .stat-num { font-size: 26px; }
    }
  