/*
Theme Name: Gestión Presencial Modern 2
Theme URI: https://gestionpresencial.es/
Author: Gestión Presencial
Description: Tema corporativo moderno y ligero para Gestión Presencial, pensado para presentar el servicio de control horario y sus paneles de empresa, empleado y asesoría.
Version: 2.0.0
Requires at least: 6.2
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: gestion-presencial-modern
*/

:root{
  --gp-blue:#2f59df;
  --gp-blue-2:#1266f1;
  --gp-navy:#08234b;
  --gp-text:#17213a;
  --gp-muted:#647089;
  --gp-bg:#f5f7fb;
  --gp-soft:#eef5ff;
  --gp-white:#fff;
  --gp-line:#e3e9f3;
  --gp-green:#198f5a;
  --gp-radius:20px;
  --gp-shadow:0 22px 60px rgba(21,45,94,.12);
  --gp-container:min(1180px,calc(100% - 40px));
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;color:var(--gp-text);background:#fff;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{max-width:100%;height:auto;display:block}
button,input,textarea,select{font:inherit}
.container{width:var(--gp-container);margin-inline:auto}
.section{padding:96px 0}
.section-soft{background:linear-gradient(180deg,#f8fbff 0%,#eef6ff 100%)}
.eyebrow{margin:0 0 12px;text-transform:uppercase;letter-spacing:.16em;font-weight:800;font-size:.76rem;color:var(--gp-blue)}
.section-title{font-size:clamp(2rem,4vw,3.2rem);line-height:1.03;margin:0 0 18px;color:var(--gp-navy);letter-spacing:-.035em}
.section-title .accent,.hero h1 .accent{color:var(--gp-blue-2)}
.section-copy{font-size:1.08rem;color:var(--gp-muted);max-width:690px;margin:0}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:50px;padding:0 22px;border-radius:11px;font-weight:750;border:1px solid transparent;transition:.2s ease;cursor:pointer}
.btn:hover{transform:translateY(-2px)}
.btn-primary{background:linear-gradient(135deg,var(--gp-blue),var(--gp-blue-2));color:#fff;box-shadow:0 12px 24px rgba(47,89,223,.22)}
.btn-primary:hover{box-shadow:0 16px 30px rgba(47,89,223,.28)}
.btn-outline{border-color:#9db5ee;background:#fff;color:var(--gp-navy)}
.btn-light{background:#fff;color:var(--gp-navy)}
.btn svg{width:18px;height:18px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.92);backdrop-filter:blur(16px);border-bottom:1px solid rgba(224,230,241,.9)}
.header-inner{height:78px;display:flex;align-items:center;gap:32px}
.brand{display:flex;align-items:center;flex:0 0 auto}
.brand img{width:220px;max-height:62px;object-fit:contain;object-position:left center}
.site-nav{display:flex;align-items:center;gap:28px;margin-left:auto}
.site-nav a{font-size:.95rem;color:#33415e;font-weight:600}
.site-nav a:hover{color:var(--gp-blue)}
.header-actions{display:flex;align-items:center;gap:12px}
.mobile-toggle{display:none;margin-left:auto;width:46px;height:46px;border:1px solid var(--gp-line);background:#fff;border-radius:11px;align-items:center;justify-content:center;color:var(--gp-navy)}
.mobile-toggle svg{width:24px;height:24px}

/* Hero */
.hero{overflow:hidden;background:radial-gradient(circle at 80% 26%,rgba(72,123,255,.12),transparent 33%),linear-gradient(180deg,#fff 0%,#f8fbff 100%);padding:82px 0 72px}
.hero-grid{display:grid;grid-template-columns:.92fr 1.08fr;gap:58px;align-items:center}
.hero h1{font-size:clamp(2.8rem,5.3vw,5.15rem);line-height:.96;letter-spacing:-.055em;margin:0 0 24px;color:var(--gp-navy);max-width:700px}
.hero .lead{font-size:1.2rem;color:#4f5c75;max-width:620px;margin:0 0 28px}
.hero-actions{display:flex;gap:12px;flex-wrap:wrap;margin-bottom:31px}
.trust-row{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;max-width:650px}
.trust-item{display:flex;flex-direction:column;gap:8px;color:#53617d;font-size:.83rem;font-weight:650}
.trust-icon{width:34px;height:34px;border-radius:10px;background:#e9f1ff;display:grid;place-items:center;color:var(--gp-blue)}
.trust-icon svg{width:18px;height:18px}
.hero-visual{position:relative;min-height:510px;display:flex;align-items:center;justify-content:center}
.hero-glow{position:absolute;width:470px;height:470px;border-radius:50%;background:linear-gradient(135deg,rgba(31,104,243,.14),rgba(113,166,255,.04));filter:blur(2px)}
.device-browser{position:relative;background:#111927;border-radius:22px;padding:11px;box-shadow:0 30px 70px rgba(14,31,64,.22);overflow:hidden;border:1px solid #29364d}
.device-browser img{border-radius:13px;background:#eef2f9}
.hero-browser{width:min(100%,680px);transform:perspective(1400px) rotateY(-5deg) rotateX(1deg)}
.phone-frame{position:absolute;right:-4px;bottom:14px;width:205px;padding:8px;border-radius:31px;background:#131923;box-shadow:0 25px 55px rgba(14,31,64,.3);z-index:2}
.phone-frame:before{content:"";position:absolute;top:11px;left:50%;transform:translateX(-50%);width:64px;height:16px;border-radius:20px;background:#131923;z-index:3}
.phone-frame img{border-radius:24px;overflow:hidden}
.floating-note{position:absolute;right:-12px;top:10px;background:#fff;border:1px solid var(--gp-line);border-radius:14px;padding:13px 15px;box-shadow:0 16px 40px rgba(17,45,92,.12);font-size:.84rem;font-weight:750;color:var(--gp-navy)}
.floating-note:after{content:"↙";display:block;font-size:1.5rem;color:var(--gp-blue);text-align:center;line-height:1;margin-top:2px}

/* Steps */
.center{text-align:center}.center .section-copy{margin-inline:auto}
.steps{margin-top:54px;display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:24px}
.step{text-align:center;padding:12px 20px}
.step-num{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;margin:0 auto 13px;background:#eaf2ff;color:var(--gp-blue);font-weight:850}
.step-icon{width:58px;height:58px;margin:0 auto 14px;color:var(--gp-blue)}
.step-icon svg{width:100%;height:100%}
.step h3{margin:0 0 8px;font-size:1.08rem;color:var(--gp-navy)}
.step p{margin:0;color:var(--gp-muted);font-size:.95rem}
.step-arrow{font-size:2.2rem;color:#9db2d7;font-weight:300}

/* Benefits */
.section-head-row{display:flex;align-items:end;justify-content:space-between;gap:24px}
.text-link{color:var(--gp-blue);font-weight:750;white-space:nowrap}
.benefit-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:42px}
.benefit-card{background:#fff;border:1px solid #e6ebf4;border-radius:18px;padding:26px;box-shadow:0 10px 30px rgba(21,45,94,.055);transition:.2s ease}
.benefit-card:hover{transform:translateY(-5px);box-shadow:0 18px 42px rgba(21,45,94,.1)}
.benefit-icon{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;background:#edf4ff;color:var(--gp-blue);margin-bottom:18px}
.benefit-icon svg{width:23px;height:23px}
.benefit-card h3{font-size:1.04rem;margin:0 0 8px;color:var(--gp-navy)}
.benefit-card p{margin:0;color:var(--gp-muted);font-size:.94rem}

/* Product sections */
.product-grid{display:grid;grid-template-columns:.82fr 1.18fr;gap:56px;align-items:center}
.product-grid.reverse{grid-template-columns:1.16fr .84fr}
.product-copy ul{list-style:none;margin:26px 0 30px;padding:0;display:grid;gap:10px}
.product-copy li{position:relative;padding-left:31px;color:#4d5a75}
.product-copy li:before{content:"✓";position:absolute;left:0;top:0;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:#e4f6ed;color:var(--gp-green);font-weight:900;font-size:.78rem}
.app-shot-wrap{position:relative}
.app-shot-wrap:before{content:"";position:absolute;inset:-34px -22px;background:linear-gradient(135deg,#e7f0ff,#f5f9ff);border-radius:45% 55% 60% 40%/50% 45% 55% 50%;transform:rotate(-3deg);z-index:0}
.app-shot{position:relative;z-index:1;border-radius:20px;background:#121a28;padding:10px;box-shadow:var(--gp-shadow);overflow:hidden}
.app-shot img{border-radius:12px}

/* Compliance + CTA */
.compliance{background:#eef8ff;border-top:1px solid #dcecf8;border-bottom:1px solid #dcecf8;padding:28px 0}
.compliance-inner{display:grid;grid-template-columns:auto 1fr auto;gap:22px;align-items:center}
.shield{width:60px;height:60px;border-radius:18px;background:#e4efff;display:grid;place-items:center;color:var(--gp-blue)}
.shield svg{width:32px;height:32px}
.compliance h3{margin:0 0 3px;color:var(--gp-navy);font-size:1.18rem}
.compliance p{margin:0;color:var(--gp-muted)}
.cta{background:linear-gradient(135deg,#071d40 0%,#0c3267 55%,#0c4776 100%);color:#fff;padding:58px 0}
.cta-inner{display:grid;grid-template-columns:1.2fr .8fr;gap:46px;align-items:center}
.cta h2{font-size:clamp(2rem,3.4vw,3.1rem);line-height:1.06;margin:0 0 13px;letter-spacing:-.035em}
.cta p{margin:0;color:#c9d7ec;font-size:1.06rem}
.cta-side{display:flex;flex-direction:column;align-items:stretch;gap:16px}
.contact-mini{display:flex;flex-wrap:wrap;gap:16px;color:#d6e2f1;font-size:.9rem}
.contact-mini a{display:inline-flex;align-items:center;gap:7px}

/* Footer */
.site-footer{background:#06162f;color:#d5dff0;padding:38px 0 24px}
.footer-grid{display:grid;grid-template-columns:1fr auto auto;gap:40px;align-items:start}
.footer-brand img{width:205px;filter:brightness(0) invert(1);opacity:.95}
.footer-brand p{font-size:.86rem;color:#94a5bf;margin:10px 0 0}
.footer-links{display:flex;gap:22px;flex-wrap:wrap;font-size:.88rem}
.footer-links a:hover{color:#fff}
.footer-legal{font-size:.82rem;color:#93a5bf;display:flex;gap:14px;flex-wrap:wrap;justify-content:flex-end}
.copyright{text-align:center;border-top:1px solid rgba(255,255,255,.08);margin-top:28px;padding-top:18px;font-size:.8rem;color:#7f91aa}

/* Content pages */
.content-shell{width:min(920px,calc(100% - 40px));margin:0 auto;padding:72px 0 100px}
.content-shell h1{font-size:clamp(2.2rem,5vw,4rem);color:var(--gp-navy);letter-spacing:-.04em}
.content-shell a{color:var(--gp-blue);text-decoration:underline}
.content-shell input,.content-shell textarea,.content-shell select{max-width:100%;padding:12px;border:1px solid #cfd8e8;border-radius:8px}
.content-shell button,.content-shell input[type=submit]{background:var(--gp-blue);color:#fff;border:0;padding:12px 18px;border-radius:8px;cursor:pointer}

/* Reveal */
.reveal{opacity:0;transform:translateY(18px);transition:opacity .55s ease,transform .55s ease}
.reveal.visible{opacity:1;transform:none}

@media (max-width:1050px){
  .site-nav{display:none}.header-actions .btn-outline{display:none}.mobile-toggle{display:flex}
  .site-header.menu-open .site-nav{display:flex;position:absolute;top:78px;left:20px;right:20px;background:#fff;border:1px solid var(--gp-line);box-shadow:var(--gp-shadow);border-radius:16px;flex-direction:column;align-items:stretch;padding:14px;gap:4px}
  .site-header.menu-open .site-nav a{padding:12px 10px;border-radius:9px}.site-header.menu-open .site-nav a:hover{background:#f2f6ff}
  .hero-grid,.product-grid,.product-grid.reverse,.cta-inner{grid-template-columns:1fr}
  .hero-copy{max-width:760px}.hero-visual{min-height:480px}.product-copy{max-width:760px}
  .product-grid.reverse .app-shot-wrap{order:2}
  .footer-grid{grid-template-columns:1fr}.footer-legal{justify-content:flex-start}
}
@media (max-width:760px){
  :root{--gp-container:min(100% - 28px,1180px)}
  .section{padding:72px 0}.header-inner{height:70px}.brand img{width:180px}.site-header.menu-open .site-nav{top:70px}
  .header-actions .btn-primary{display:none}
  .hero{padding:58px 0 54px}.hero h1{font-size:clamp(2.55rem,12vw,4.3rem)}.hero .lead{font-size:1.08rem}
  .trust-row{grid-template-columns:repeat(2,1fr)}
  .hero-visual{min-height:420px;margin-top:4px}.hero-browser{width:94%;transform:none}.phone-frame{width:34%;right:0;bottom:0}.floating-note{display:none}
  .steps{grid-template-columns:1fr;gap:12px}.step-arrow{transform:rotate(90deg);line-height:1}
  .benefit-grid{grid-template-columns:1fr 1fr}.section-head-row{display:block}.text-link{display:inline-block;margin-top:15px}
  .compliance-inner{grid-template-columns:auto 1fr}.compliance-inner .btn{grid-column:1/-1}
  .contact-mini{flex-direction:column;gap:8px}
}
@media (max-width:520px){
  .benefit-grid{grid-template-columns:1fr}.hero-actions{flex-direction:column}.hero-actions .btn{width:100%}
  .hero-visual{min-height:340px}.phone-frame{width:38%}.brand img{width:155px}
}
@media (prefers-reduced-motion:reduce){html{scroll-behavior:auto}.reveal{opacity:1;transform:none;transition:none}.btn:hover,.benefit-card:hover{transform:none}}
