/*
Theme Name: UMSYSTEMSEC
Theme URI: https://www.umsystemsec.com
Author: UM Sistemas y Seguridad
Author URI: https://www.umsystemsec.com
Description: Tema corporativo a medida para UM Sistemas y Seguridad (UMSYSTEMSEC): infraestructura de TI, redes, video vigilancia, climatización, ciberseguridad y desarrollo de software. Diseño limpio y tecnológico basado en la identidad de marca oficial.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: umsystemsec
Tags: business, custom-menu, custom-logo, translation-ready, one-column, footer-widgets
*/

/* =========================================================
   1. DESIGN TOKENS — basados en el logo e identidad UMSYSTEMSEC
   ========================================================= */
:root{
  /* Marca — degradado del isotipo del logo */
  --brand-teal:        #10B981;
  --brand-teal-light:  #34D399;
  --brand-cyan:        #06B6D4;
  --brand-gradient: linear-gradient(120deg, var(--brand-teal-light) 0%, var(--brand-teal) 45%, var(--brand-cyan) 100%);

  /* Neutros de marca (texto "SYSTEMSEC" del logo) */
  --slate:       #64748B;
  --slate-dark:  #475569;

  /* Base tomada del catálogo comercial oficial */
  --navy:        #16283D;
  --navy-light:  #1F3A54;
  --accent-warn: #F2650D; /* uso puntual: insignias / destacados */

  /* Superficies */
  --bg:          #FFFFFF;
  --bg-soft:     #F5F8FA;
  --bg-navy:     var(--navy);
  --border:      #E4E9EE;

  /* Texto */
  --text:        #16283D;
  --text-muted:  #5C6B7A;
  --text-invert: #FFFFFF;

  /* Tipografía */
  --font-heading: 'Sora', 'Poppins', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Ritmo */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 10px rgba(22,40,61,0.06);
  --shadow-md: 0 12px 32px rgba(22,40,61,0.10);
  --shadow-lg: 0 24px 60px rgba(22,40,61,0.16);
  --container: 1180px;
}

/* =========================================================
   2. RESET BÁSICO
   ========================================================= */
*, *::before, *::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font-body);
  color:var(--text);
  background:var(--bg);
  font-size:16px;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
h1,h2,h3,h4{
  font-family:var(--font-heading);
  color:var(--navy);
  line-height:1.2;
  margin:0 0 .5em;
  font-weight:700;
}
p{ margin:0 0 1em; }
button{ font-family:inherit; cursor:pointer; }

.container{
  max-width:var(--container);
  margin:0 auto;
  padding:0 24px;
}
.section{ padding:88px 0; }
.section--soft{ background:var(--bg-soft); }
.section--navy{ background:var(--bg-navy); color:var(--text-invert); }
.section--navy h2, .section--navy h3{ color:#fff; }

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-size:13px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
  color:var(--brand-teal);
  margin-bottom:14px;
}
.eyebrow::before{
  content:"";
  width:8px; height:8px;
  border-radius:50%;
  background:var(--brand-gradient);
  display:inline-block;
}
.section--navy .eyebrow{ color:var(--brand-teal-light); }

.section-head{ max-width:680px; margin:0 0 56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(28px,3.4vw,40px); }
.section-head p{ color:var(--text-muted); font-size:17px; }
.section--navy .section-head p{ color:#C6D2DE; }

/* Botones */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:14px 28px;
  border-radius:999px;
  font-weight:600;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space:nowrap;
}
.btn:hover{ transform:translateY(-2px); }
.btn-primary{
  background:var(--brand-gradient);
  color:#fff;
  box-shadow:0 10px 24px rgba(16,185,129,0.28);
}
.btn-primary:hover{ box-shadow:0 14px 30px rgba(16,185,129,0.38); color:#fff; }
.btn-outline{
  background:transparent;
  border-color:rgba(255,255,255,0.35);
  color:#fff;
}
.btn-outline:hover{ background:rgba(255,255,255,0.1); color:#fff; }
.btn-ghost{
  background:#fff;
  border-color:var(--border);
  color:var(--navy);
}
.btn-ghost:hover{ border-color:var(--brand-teal); color:var(--brand-teal); }
.btn-sm{ padding:10px 20px; font-size:14px; }
.btn-block{ width:100%; }

/* =========================================================
   3. HEADER
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:1000;
  background:rgba(255,255,255,0.92);
  backdrop-filter:saturate(180%) blur(14px);
  border-bottom:1px solid var(--border);
}
.header-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:14px 0;
}
.site-logo img{ height:40px; width:auto; }
.main-nav ul{ display:flex; align-items:center; gap:34px; }
.main-nav a{
  font-size:15px; font-weight:600; color:var(--navy);
  position:relative; padding:6px 0;
}
.main-nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--brand-gradient); transform:scaleX(0); transform-origin:left;
  transition:transform .2s ease;
}
.main-nav a:hover::after{ transform:scaleX(1); }
.header-cta{ display:flex; align-items:center; gap:14px; }
.header-phone{ display:flex; align-items:center; gap:8px; font-weight:600; font-size:14px; color:var(--text-muted); }
.header-phone svg{ width:18px; height:18px; stroke:var(--brand-teal); flex-shrink:0; }
.nav-toggle{
  display:none; background:none; border:none; padding:6px;
}
.nav-toggle span{ display:block; width:24px; height:2px; background:var(--navy); margin:5px 0; border-radius:2px; }

/* =========================================================
   4. HERO
   ========================================================= */
.hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(1100px 520px at 85% -10%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(900px 500px at -5% 10%, rgba(16,185,129,0.14), transparent 55%),
    var(--navy);
  color:#fff;
  padding:120px 0 100px;
}
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:56px; align-items:center; }
.hero h1{
  color:#fff;
  font-size:clamp(34px,4.6vw,54px);
  margin-bottom:22px;
}
.hero h1 span{
  background:var(--brand-gradient);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{ color:#C6D2DE; font-size:18px; max-width:520px; margin-bottom:36px; }
.hero-actions{ display:flex; gap:16px; flex-wrap:wrap; margin-bottom:44px; }
.hero-stats{ display:flex; gap:36px; flex-wrap:wrap; }
.hero-stat b{ display:block; font-family:var(--font-heading); font-size:26px; color:#fff; }
.hero-stat span{ font-size:13px; color:#9FB0BF; }

.hero-panel{
  background:rgba(255,255,255,0.06);
  border:1px solid rgba(255,255,255,0.14);
  border-radius:var(--radius-lg);
  padding:32px;
  backdrop-filter:blur(6px);
}
.hero-panel-list{ display:flex; flex-direction:column; gap:18px; }
.hero-panel-item{ display:flex; gap:14px; align-items:flex-start; }
.hero-icon{
  width:44px; height:44px; border-radius:12px; flex-shrink:0;
  background:var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
}
.hero-icon svg{ width:22px; height:22px; stroke:#fff; fill:none; }
.hero-panel-item h4{ color:#fff; font-size:15px; margin-bottom:2px; }
.hero-panel-item p{ color:#AEBEC9; font-size:14px; margin:0; }

/* Barra de marcas / servicios rápidos */
.strip{
  background:var(--bg-soft);
  border-bottom:1px solid var(--border);
  padding:20px 0;
}
.strip ul{ display:flex; flex-wrap:wrap; gap:12px 30px; justify-content:center; }
.strip li{ font-size:13px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--slate); }

/* =========================================================
   5. QUIÉNES SOMOS
   ========================================================= */
.about-grid{ display:grid; grid-template-columns:.95fr 1.05fr; gap:64px; align-items:center; }
.about-copy p{ color:var(--text-muted); font-size:17px; }
.value-quote{
  margin-top:28px;
  padding:22px 24px;
  border-left:3px solid var(--brand-teal);
  background:var(--bg-soft);
  border-radius:0 var(--radius-md) var(--radius-md) 0;
  font-style:italic;
  color:var(--navy);
  font-size:16px;
}
.pill-row{ display:flex; flex-wrap:wrap; gap:14px; margin-top:32px; }
.pill{
  display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid var(--border); border-radius:999px;
  padding:10px 18px; font-size:14px; font-weight:600; box-shadow:var(--shadow-sm);
}
.pill .dot{ width:8px; height:8px; border-radius:50%; background:var(--brand-gradient); }

.about-visual{
  position:relative;
  border-radius:var(--radius-lg);
  background:var(--navy);
  min-height:420px;
  padding:36px;
  display:flex; flex-direction:column; justify-content:flex-end;
  overflow:hidden;
}
.about-visual::before{
  content:"";
  position:absolute; inset:0;
  background:radial-gradient(600px 320px at 90% 0%, rgba(16,185,129,0.35), transparent 60%);
}
.about-visual-card{
  position:relative; z-index:1;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.15);
  border-radius:var(--radius-md);
  padding:22px;
  color:#fff;
  backdrop-filter:blur(6px);
}
.about-visual-card b{ display:block; font-size:15px; margin-bottom:4px; }
.about-visual-card span{ font-size:13px; color:#B9C6D0; }

/* =========================================================
   6. SERVICIOS (grid índice)
   ========================================================= */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; }
.service-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:32px 28px;
  box-shadow:var(--shadow-sm);
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-md);
  border-color:transparent;
}
.service-num{ font-size:13px; font-weight:700; color:var(--brand-teal); letter-spacing:.05em; }
.service-icon{
  width:52px; height:52px; border-radius:14px;
  background:var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
  margin:14px 0 20px;
}
.service-icon svg{ width:26px; height:26px; stroke:#fff; fill:none; }
.service-card h3{ font-size:19px; margin-bottom:8px; }
.service-card p{ color:var(--text-muted); font-size:14.5px; margin-bottom:0; }

/* =========================================================
   7. DETALLE DE SERVICIOS (bloques alternos)
   ========================================================= */
.service-block{
  display:grid;
  grid-template-columns:.85fr 1.15fr;
  gap:60px;
  align-items:center;
  padding:56px 0;
  border-bottom:1px solid var(--border);
}
.service-block:last-child{ border-bottom:none; }
.service-block.reverse{ direction:rtl; }
.service-block.reverse > *{ direction:ltr; }

.service-block-badge{
  width:64px; height:64px; border-radius:16px;
  background:var(--navy);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:22px;
}
.service-block-badge svg{ width:30px; height:30px; stroke:var(--brand-teal-light); fill:none; }
.service-block h3{ font-size:26px; margin-bottom:6px; }
.service-block .tagline{ color:var(--brand-teal); font-weight:600; font-size:15px; margin-bottom:16px; }
.service-block .desc{ color:var(--text-muted); font-size:16px; }

.feature-list{ display:flex; flex-direction:column; gap:14px; margin-top:8px; }
.feature-item{
  display:flex; gap:14px;
  background:#fff; border:1px solid var(--border); border-radius:var(--radius-md);
  padding:16px 18px; box-shadow:var(--shadow-sm);
}
.feature-item .check{
  width:26px; height:26px; border-radius:50%; flex-shrink:0;
  background:rgba(16,185,129,0.12);
  display:flex; align-items:center; justify-content:center;
}
.feature-item .check svg{ width:14px; height:14px; stroke:var(--brand-teal); }
.feature-item h4{ font-size:15px; margin:0 0 2px; }
.feature-item span{ font-size:13.5px; color:var(--text-muted); }

/* =========================================================
   8. PLANES DE MANTENIMIENTO
   ========================================================= */
.plans-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:26px; align-items:stretch; }
.plan-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:36px 30px;
  display:flex; flex-direction:column;
  box-shadow:var(--shadow-sm);
  position:relative;
}
.plan-card.featured{
  border-color:transparent;
  background:var(--navy);
  color:#fff;
  box-shadow:var(--shadow-lg);
  transform:scale(1.035);
  z-index:1;
}
.plan-badge{
  position:absolute; top:-14px; left:50%; transform:translateX(-50%);
  background:var(--accent-warn); color:#fff;
  font-size:12px; font-weight:700; letter-spacing:.04em;
  padding:7px 18px; border-radius:999px; text-transform:uppercase;
  box-shadow:0 8px 18px rgba(242,101,13,0.35);
}
.plan-card h3{ font-size:21px; margin-bottom:6px; }
.plan-card.featured h3{ color:#fff; }
.plan-sub{ font-size:14px; color:var(--text-muted); margin-bottom:22px; }
.plan-card.featured .plan-sub{ color:#B9C6D0; }
.plan-features{ display:flex; flex-direction:column; gap:13px; margin-bottom:28px; flex:1; }
.plan-feature{ display:flex; gap:10px; align-items:flex-start; font-size:14.5px; }
.plan-feature svg{ width:18px; height:18px; stroke:var(--accent-warn); flex-shrink:0; margin-top:2px; }
.plan-card.featured .plan-feature svg{ stroke:var(--brand-teal-light); }

/* =========================================================
   9. DIFERENCIADORES
   ========================================================= */
.diff-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
.diff-card{ padding:8px; }
.diff-icon{
  width:56px; height:56px; border-radius:16px;
  background:rgba(255,255,255,0.08);
  border:1px solid rgba(255,255,255,0.16);
  display:flex; align-items:center; justify-content:center;
  margin-bottom:20px;
}
.diff-icon svg{ width:26px; height:26px; stroke:var(--brand-teal-light); fill:none; }
.diff-card h4{ color:#fff; font-size:17px; margin-bottom:8px; }
.diff-card p{ color:#B9C6D0; font-size:14.5px; margin:0; }

/* =========================================================
   10. CONTACTO
   ========================================================= */
.contact-grid{ display:grid; grid-template-columns:.9fr 1.1fr; gap:60px; }
.contact-info-list{ display:flex; flex-direction:column; gap:22px; margin-top:28px; }
.contact-info-item{ display:flex; gap:16px; align-items:flex-start; }
.contact-info-item .ic{
  width:46px; height:46px; border-radius:12px; flex-shrink:0;
  background:var(--brand-gradient);
  display:flex; align-items:center; justify-content:center;
}
.contact-info-item .ic svg{ width:22px; height:22px; stroke:#fff; }
.contact-info-item h4{ font-size:15px; margin-bottom:2px; }
.contact-info-item p, .contact-info-item a{ font-size:14.5px; color:var(--text-muted); margin:0; }
.contact-info-item a:hover{ color:var(--brand-teal); }

.contact-form{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:36px;
  box-shadow:var(--shadow-md);
}
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.form-group{ margin-bottom:18px; }
.form-group label{ display:block; font-size:13.5px; font-weight:600; margin-bottom:7px; color:var(--navy); }
.form-group input, .form-group select, .form-group textarea{
  width:100%; padding:13px 14px; border-radius:10px;
  border:1px solid var(--border); font-family:inherit; font-size:14.5px;
  background:var(--bg-soft); transition:border-color .18s ease, background .18s ease;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus{
  outline:none; border-color:var(--brand-teal); background:#fff;
}
.form-group textarea{ resize:vertical; min-height:120px; }
.form-note{ font-size:12.5px; color:var(--text-muted); margin-top:14px; text-align:center; }

/* =========================================================
   11. CTA FINAL
   ========================================================= */
.cta-band{
  background:var(--brand-gradient);
  border-radius:var(--radius-lg);
  padding:56px;
  display:flex; align-items:center; justify-content:space-between; gap:30px; flex-wrap:wrap;
  color:#fff;
}
.cta-band h2{ color:#fff; font-size:28px; margin-bottom:6px; }
.cta-band p{ color:rgba(255,255,255,0.9); margin:0; }
.cta-band .btn-ghost{ background:#fff; color:var(--navy); border-color:transparent; }

/* =========================================================
   12. FOOTER
   ========================================================= */
.site-footer{ background:var(--navy); color:#B9C6D0; padding:70px 0 26px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:50px; }
.footer-logo img{ height:36px; margin-bottom:16px; }
.footer-grid p{ font-size:14px; color:#9FB0BF; }
.footer-col h4{ color:#fff; font-size:14px; margin-bottom:18px; letter-spacing:.03em; text-transform:uppercase; }
.footer-col ul{ display:flex; flex-direction:column; gap:11px; }
.footer-col a{ font-size:14px; color:#B9C6D0; }
.footer-col a:hover{ color:var(--brand-teal-light); }
.footer-social{ display:flex; gap:12px; margin-top:6px; }
.footer-social a{
  width:38px; height:38px; border-radius:10px;
  background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.12);
  display:flex; align-items:center; justify-content:center;
}
.footer-social svg{ width:17px; height:17px; stroke:#fff; }
.footer-bottom{
  border-top:1px solid rgba(255,255,255,0.1);
  padding-top:24px;
  display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px;
  font-size:13px; color:#8598A6;
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .hero-grid, .about-grid, .contact-grid{ grid-template-columns:1fr; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .plans-grid{ grid-template-columns:1fr; }
  .plan-card.featured{ transform:none; order:-1; }
  .diff-grid{ grid-template-columns:repeat(2,1fr); }
  .service-block, .service-block.reverse{ grid-template-columns:1fr; direction:ltr; }
  .footer-grid{ grid-template-columns:1fr 1fr; }
}
@media (max-width: 720px){
  .main-nav, .header-phone{ display:none; }
  .nav-toggle{ display:block; }
  .site-header.nav-open .main-nav{
    display:flex; position:absolute; top:100%; left:0; right:0;
    background:#fff; flex-direction:column; padding:20px 24px; border-bottom:1px solid var(--border);
  }
  .site-header.nav-open .main-nav ul{ flex-direction:column; align-items:flex-start; gap:16px; }
  .section{ padding:64px 0; }
  .services-grid, .diff-grid{ grid-template-columns:1fr; }
  .form-row{ grid-template-columns:1fr; }
  .cta-band{ flex-direction:column; text-align:center; padding:40px 26px; }
  .footer-grid{ grid-template-columns:1fr; }
  .hero{ padding:96px 0 70px; }
}
