/*
Theme Name: CyberRed Consulting
Theme URI: https://cyberredconsulting.com/
Author: Yusef Ortiz Duarte
Author URI: https://www.linkedin.com/in/yusef-ortiz-duarte-74439512a/
Description: Tema corporativo de CyberRed Consulting. Single-page bilingüe (EN/ES) con catálogo de servicios expandible, atención global 24/7 y formulario de captación de leads nativo (sin plugins, vía wp_mail).
Version: 1.2.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cyberred
Tags: business, one-page, custom-colors, custom-menu
*/

:root{
  /* Base oscura — coherente con #0A0A0A del logo minimal */
  --bg:#0A0A0A;
  --bg-soft:#101010;
  --card:#141414;
  --text:#F5F5F5;
  --muted:#9A9A9A;

  /* Brand exacto desde CyberRed_Logo_03_Minimal.svg */
  --red:#D81E2F;          /* gradient stop 0 */
  --red-2:#A8121F;        /* mid */
  --red-deep:#8A0815;     /* gradient stop 100 */
  --gold-dark:#B89556;    /* gold stop 0 */
  --gold:#C9A865;
  --gold-light:#E8D49A;   /* gold stop 100 */

  --ok:#22c55e;
  --warn:#f59e0b;
  --err:#ef4444;
  --max:1200px;
  --radius:16px;
  --shadow:0 10px 30px rgba(0,0,0,.55);
  --shadow-red:0 10px 30px rgba(216,30,47,.22);
  --shadow-gold:0 10px 30px rgba(184,149,86,.18);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:"Helvetica Neue",system-ui,-apple-system,Segoe UI,Roboto,Inter,Ubuntu,Arial,sans-serif;
  background:
    radial-gradient(900px 600px at 90% -10%, rgba(216,30,47,.10), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(184,149,86,.08), transparent 60%),
    linear-gradient(180deg,var(--bg),#050505 60%,var(--bg));
  color:var(--text);
  line-height:1.6;
  letter-spacing:.01em
}
a{color:var(--gold-light);text-decoration:none}
a:hover{color:var(--gold);text-decoration:underline}
.wrap{max-width:var(--max);margin:auto;padding:0 20px}

/* Header */
header.site-header{
  position:sticky;top:0;
  background:rgba(10,10,10,.88);
  backdrop-filter:saturate(140%) blur(10px);
  z-index:50;
  border-bottom:1px solid rgba(201,168,101,.22)
}
.nav{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 0}
.brand{display:flex;align-items:center;gap:12px;font-weight:700;color:var(--text)}
.brand img.brand-logo{height:54px;width:auto;display:block}
.nav a{color:var(--text);opacity:.9}
.nav nav a{transition:.2s color}
.nav nav a:hover{color:var(--gold-light);text-decoration:none}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 18px;border-radius:12px;
  background:linear-gradient(180deg,var(--red),var(--red-2));
  color:#fff;font-weight:700;
  border:1px solid rgba(232,212,154,.25);
  transition:.2s box-shadow,.2s transform,.2s border-color;
  cursor:pointer
}
.btn:hover{
  box-shadow:var(--shadow-red);
  transform:translateY(-1px);
  text-decoration:none;
  border-color:var(--gold-light)
}
.btn.alt{
  background:transparent;color:var(--text);
  border-color:rgba(232,212,154,.35)
}
.btn.alt:hover{border-color:var(--gold-light);box-shadow:none}
.btn.wa{background:#25d366;color:#0a0a0a;border-color:transparent}
.btn.wa:hover{box-shadow:0 10px 24px rgba(37,211,102,.25)}

main{display:block}

/* Hero */
.hero{padding:64px 0 40px;border-bottom:1px solid rgba(201,168,101,.14)}
.hero-grid{display:grid;grid-template-columns:1.2fr .8fr;gap:28px;align-items:center}
.kicker{
  display:inline-block;
  background:rgba(216,30,47,.10);
  color:var(--gold-light);
  border:1px solid rgba(201,168,101,.35);
  padding:6px 12px;border-radius:999px;
  font-size:12px;font-weight:700;
  text-transform:uppercase;letter-spacing:.10em
}
h1{font-size:clamp(32px,4.6vw,56px);line-height:1.1;margin:14px 0 10px}
h1 .accent{
  background:linear-gradient(90deg,var(--red),var(--gold-light));
  -webkit-background-clip:text;background-clip:text;color:transparent
}
.lead{font-size:clamp(16px,2.2vw,20px);color:var(--muted)}
.hero-cta{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.hero-card{
  background:linear-gradient(180deg,rgba(15,23,42,.9),rgba(17,24,39,.6));
  border:1px solid rgba(201,168,101,.18);
  padding:18px;border-radius:var(--radius);
  box-shadow:var(--shadow)
}
.hero-media{
  aspect-ratio:4/3;border-radius:var(--radius);
  background:
    radial-gradient(900px 500px at 0% 0%,rgba(216,30,47,.22),transparent 50%),
    radial-gradient(700px 400px at 100% 100%,rgba(184,149,86,.12),transparent 50%),
    linear-gradient(180deg,#0a0a0a,#141414);
  display:grid;place-items:center;
  border:1px solid rgba(201,168,101,.22)
}
.hero-media svg{max-width:82%;height:auto;opacity:.97}

/* Trust */
.trust{padding:24px 0;color:var(--muted);font-size:14px}
.trust-logos{display:grid;grid-template-columns:repeat(6,1fr);gap:18px;opacity:.95}
.trust-logos div{
  height:38px;border-radius:10px;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(201,168,101,.18);
  display:grid;place-items:center;font-size:12px;letter-spacing:.06em;
  color:var(--gold-light)
}

/* Sections */
section{padding:56px 0}
h2{font-size:clamp(26px,3vw,38px);margin:0 0 12px}
.section-title-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;flex-wrap:wrap}
.muted{color:var(--muted)}
.grid{display:grid;gap:18px}
.grid.cols-2{grid-template-columns:repeat(2,1fr)}
.grid.cols-3{grid-template-columns:repeat(3,1fr)}
.grid.cols-4{grid-template-columns:repeat(4,1fr)}
.card{
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border:1px solid rgba(201,168,101,.18);
  border-radius:var(--radius);padding:18px;
  transition:.2s border-color,.2s transform,.2s box-shadow
}
.card h3{margin:0 0 6px;font-size:18px;color:var(--text)}
.badge{
  display:inline-block;padding:4px 10px;border-radius:999px;
  font-size:11px;letter-spacing:.06em;text-transform:uppercase;
  border:1px solid rgba(201,168,101,.35);color:var(--gold-light)
}
.badge.red{border-color:rgba(216,30,47,.45);color:#FCA5A5;background:rgba(216,30,47,.10)}

/* ===== TABS de servicios ===== */
.tabs{
  display:flex;flex-wrap:wrap;gap:6px;
  margin:18px 0 0;padding:6px;
  background:rgba(255,255,255,.02);
  border:1px solid rgba(201,168,101,.18);
  border-radius:14px
}
.tabs .tab{
  flex:1 1 auto;min-width:140px;
  padding:12px 16px;border-radius:10px;
  background:transparent;color:var(--muted);
  border:1px solid transparent;
  font-weight:600;font-size:14px;letter-spacing:.02em;
  cursor:pointer;transition:.2s background,.2s color,.2s border-color
}
.tabs .tab:hover{color:var(--gold-light);background:rgba(255,255,255,.03)}
.tabs .tab[aria-selected="true"]{
  background:linear-gradient(180deg,var(--red),var(--red-2));
  color:#fff;
  border-color:rgba(232,212,154,.35);
  box-shadow:var(--shadow-red)
}
.tab-panel{
  margin-top:22px;
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border:1px solid rgba(201,168,101,.18);
  border-radius:var(--radius);
  padding:26px;
  animation:fadeTab .25s ease
}
.tab-panel[hidden]{display:none}
@keyframes fadeTab{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
.tab-head{display:flex;align-items:center;gap:16px;margin-bottom:18px;padding-bottom:18px;border-bottom:1px solid rgba(201,168,101,.18)}
.tab-head h3{margin:0;font-size:22px;color:var(--text)}
.tab-head p{margin:4px 0 0}
.tab-head .b-icon{
  width:54px;height:54px;border-radius:14px;
  display:grid;place-items:center;flex:0 0 54px;
  background:linear-gradient(180deg,rgba(216,30,47,.22),rgba(138,8,21,.18));
  border:1px solid rgba(201,168,101,.40);
  font-weight:700;font-size:18px;color:var(--gold-light);
  letter-spacing:.02em
}
.tab-cta{margin-top:22px;display:flex;justify-content:flex-end}

/* ===== BLOQUES expandibles (servicios) ===== */
.bloques{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.bloque{
  background:linear-gradient(180deg,rgba(255,255,255,.03),rgba(255,255,255,.01));
  border:1px solid rgba(201,168,101,.18);
  border-radius:var(--radius);
  overflow:hidden;
  transition:.25s border-color,.25s box-shadow,.25s transform
}
.bloque[open]{
  border-color:rgba(216,30,47,.55);
  box-shadow:var(--shadow-red)
}
.bloque > summary{
  list-style:none;
  cursor:pointer;
  padding:20px 22px;
  display:flex;align-items:center;gap:14px;
  font-weight:700;font-size:18px;color:var(--text)
}
.bloque > summary::-webkit-details-marker{display:none}
.bloque > summary::after{
  content:"+";
  margin-left:auto;
  width:32px;height:32px;
  border-radius:999px;
  border:1px solid rgba(201,168,101,.45);
  display:inline-grid;place-items:center;
  font-weight:600;font-size:18px;color:var(--gold-light);
  transition:.2s transform,.2s background,.2s color
}
.bloque[open] > summary::after{
  content:"−";
  background:linear-gradient(180deg,var(--red),var(--red-2));
  color:#fff;border-color:transparent
}
.bloque .b-icon{
  width:46px;height:46px;border-radius:12px;
  display:grid;place-items:center;flex:0 0 46px;
  background:linear-gradient(180deg,rgba(216,30,47,.22),rgba(138,8,21,.18));
  border:1px solid rgba(201,168,101,.40);
  font-weight:700;font-size:18px;color:var(--gold-light);
  letter-spacing:.02em
}
.bloque .b-icon svg{width:22px;height:22px;display:block}
.bloque .b-meta{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.bloque .b-meta small{color:var(--muted);font-weight:400;font-size:12px;letter-spacing:.06em;text-transform:uppercase}
.bloque .b-body{padding:0 22px 22px}
.bloque .b-intro{color:var(--muted);margin:0 0 14px}
.subgroup{margin-top:14px}
.subgroup h4{
  margin:0 0 8px;font-size:14px;letter-spacing:.06em;text-transform:uppercase;
  color:var(--gold-light);font-weight:600
}
.svc-list{list-style:none;padding:0;margin:0;display:grid;gap:10px}
.svc-list li{
  background:rgba(255,255,255,.025);
  border:1px solid rgba(255,255,255,.06);
  border-left:3px solid var(--red);
  border-radius:10px;
  padding:12px 14px
}
.svc-list li strong{color:var(--text);display:block;margin-bottom:2px}
.svc-list li span.svc-desc{color:var(--muted);font-size:14px}

/* Process steps */
.steps{counter-reset:step}
.step{display:flex;gap:14px;align-items:flex-start}
.step:before{
  counter-increment:step;content:counter(step);
  width:36px;height:36px;border-radius:999px;
  background:linear-gradient(180deg,var(--red),var(--red-2));
  color:#fff;
  display:inline-grid;place-items:center;font-weight:800;
  flex:0 0 36px;
  border:1px solid rgba(232,212,154,.35)
}

/* Industries */
.pills{display:flex;flex-wrap:wrap;gap:8px}

/* CTA band */
.cta{
  background:
    linear-gradient(90deg,rgba(216,30,47,.18),rgba(184,149,86,.12));
  border:1px solid rgba(201,168,101,.40);
  padding:22px;border-radius:var(--radius);
  display:flex;align-items:center;justify-content:space-between;gap:14px
}

/* FAQ */
details.faq{
  background:rgba(255,255,255,.03);
  border:1px solid rgba(201,168,101,.18);
  border-radius:12px;padding:14px 16px;
  transition:.2s border-color
}
details.faq[open]{border-color:rgba(216,30,47,.45)}
details.faq summary{cursor:pointer;font-weight:700;list-style:none}
details.faq summary::-webkit-details-marker{display:none}
details.faq summary::before{
  content:"▸";display:inline-block;margin-right:10px;
  color:var(--gold-light);transition:.2s transform
}
details.faq[open] summary::before{transform:rotate(90deg)}

/* Footer */
footer.site-footer{
  padding:36px 0;font-size:14px;color:var(--muted);
  border-top:1px solid rgba(201,168,101,.22);
  background:rgba(10,10,10,.85)
}
footer.site-footer a{color:var(--gold-light)}
footer.site-footer a:hover{color:var(--gold)}

/* Contact Form 7 dark theme adapted to brand */
.wpcf7-form p{margin:10px 0}
.wpcf7-form label{display:block;font-weight:600;margin-bottom:6px;color:var(--text)}
.wpcf7-form input[type=text],
.wpcf7-form input[type=email],
.wpcf7-form input[type=tel],
.wpcf7-form input[type=url],
.wpcf7-form textarea,
.wpcf7-form select{
  width:100%;padding:11px 13px;border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(201,168,101,.25);
  color:var(--text);font-size:15px;
  transition:.2s border-color,.2s background
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus{
  outline:none;border-color:var(--red);
  background:rgba(255,255,255,.06)
}
.wpcf7-form textarea{min-height:120px;resize:vertical}
.wpcf7-form input[type=submit]{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 20px;border-radius:12px;
  background:linear-gradient(180deg,var(--red),var(--red-2));
  color:#fff;font-weight:700;
  border:1px solid rgba(232,212,154,.35);
  transition:.2s box-shadow,.2s transform;cursor:pointer
}
.wpcf7-form input[type=submit]:hover{
  box-shadow:var(--shadow-red);transform:translateY(-1px)
}
.wpcf7-not-valid-tip{color:var(--err);font-size:13px;margin-top:4px}
.wpcf7 form.sent .wpcf7-response-output{
  border-color:var(--ok);color:var(--ok);background:rgba(34,197,94,.08)
}
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.invalid .wpcf7-response-output{
  border-color:var(--err);color:var(--err);background:rgba(239,68,68,.08)
}
.wpcf7 form .wpcf7-response-output{
  border-radius:10px;padding:10px 12px;margin-top:14px
}

/* ===== Conmutador de idioma (header) ===== */
.lang-switch{display:inline-flex;align-items:center;gap:6px;font-weight:700;font-size:13px}
.lang-switch a{color:var(--muted);text-decoration:none;padding:2px 4px;border-radius:6px;transition:.2s color}
.lang-switch a:hover{color:var(--gold-light)}
.lang-switch a.is-active{color:var(--gold-light);border:1px solid rgba(201,168,101,.45)}
.lang-switch .lang-sep{color:rgba(201,168,101,.4)}

/* ===== Formulario de contacto nativo (.cr-form) ===== */
.cr-form p{margin:10px 0}
.cr-row{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}
.cr-form label{display:block;font-weight:600;margin-bottom:6px;color:var(--text)}
.cr-form input[type=text],
.cr-form input[type=email],
.cr-form input[type=tel],
.cr-form input[type=url],
.cr-form textarea,
.cr-form select{
  width:100%;padding:11px 13px;border-radius:10px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(201,168,101,.25);
  color:var(--text);font-size:15px;
  transition:.2s border-color,.2s background
}
.cr-form select option{background:#101010;color:var(--text)}
.cr-form input:focus,
.cr-form textarea:focus,
.cr-form select:focus{
  outline:none;border-color:var(--red);
  background:rgba(255,255,255,.06)
}
.cr-form textarea{min-height:120px;resize:vertical}
.cr-form input[type=submit]{
  display:inline-flex;align-items:center;gap:8px;
  padding:12px 20px;border-radius:12px;
  background:linear-gradient(180deg,var(--red),var(--red-2));
  color:#fff;font-weight:700;
  border:1px solid rgba(232,212,154,.35);
  transition:.2s box-shadow,.2s transform;cursor:pointer
}
.cr-form input[type=submit]:hover{
  box-shadow:var(--shadow-red);transform:translateY(-1px)
}
/* Honeypot anti-spam: oculto a humanos, visible para bots */
.cr-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
/* Mensajes de éxito / error */
.cr-alert{border-radius:10px;padding:12px 14px;margin:0 0 16px;font-size:14px;border:1px solid}
.cr-alert-ok{border-color:var(--ok);color:var(--ok);background:rgba(34,197,94,.08)}
.cr-alert-err{border-color:var(--err);color:var(--err);background:rgba(239,68,68,.08)}

/* Responsive */
@media (max-width:980px){
  .hero-grid{grid-template-columns:1fr}
  .trust-logos{grid-template-columns:repeat(3,1fr)}
  .grid.cols-3,.grid.cols-4{grid-template-columns:1fr 1fr}
  .bloques{grid-template-columns:1fr}
}
@media (max-width:640px){
  .grid.cols-3,.grid.cols-4,.grid.cols-2{grid-template-columns:1fr}
  .cta{flex-direction:column;align-items:flex-start}
  .site-header .nav nav{display:none}
  .brand img.brand-logo{height:36px}
  .bloque > summary{font-size:16px;padding:16px 18px}
  .bloque .b-body{padding:0 18px 18px}
  .tabs .tab{flex:1 1 45%;font-size:13px;padding:10px 12px}
  .tab-panel{padding:18px}
  .tab-head h3{font-size:18px}
  .tab-head .b-icon{width:44px;height:44px;flex:0 0 44px;font-size:15px}
  .cr-row{grid-template-columns:1fr}
}

/* Hero media adaptado al logo */
.hero-media img{max-width:88%;height:auto;display:block;filter:drop-shadow(0 14px 34px rgba(216,30,47,.18))}
