/*
Theme Name: Canal Colaboradores
Theme URI: https://daseguridad.es
Author: Da Seguridad
Author URI: https://daseguridad.es
Description: Theme dedicado a la puerta de entrada del Canal Colaboradores. Solo gestiona login/registro/recuperación de contraseña (vía Ultimate Member) y una portada de bienvenida — el panel de datos en sí vive fuera de WordPress (area.daseguridad.es). Tras iniciar sesión, el plugin "Canal Colaboradores — SSO" redirige automáticamente al panel.
Version: 2026.11.03.5
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: canal-colaboradores
*/

/* =====================================================================
   TOKENS DE MARCA — mismos que el panel (area.daseguridad.es)
   ===================================================================== */
:root{
  --ink:#062B4A;
  --ink-2:#0B3F68;
  --paper:#F1F4F8;
  --panel:#FFFFFF;
  --line:#E1E6ED;
  --steel:#5B6B82;
  --steel-2:#8895A7;
  --brand:#005EA9;
  --brand-dark:#00447A;
  --gold:#FFBD00;
  --gold-dark:#E0A600;
  --warn:#D64545;
  --armed:#17B978;
  --radius:14px;
}

*{box-sizing:border-box;}
html{scroll-behavior:smooth;}
body{
  margin:0;
  font-family:'IBM Plex Sans', -apple-system, sans-serif;
  background:var(--paper);
  color:var(--ink);
  min-height:100vh;
  display:flex;
  flex-direction:column;
}
h1,h2,h3,h4{font-family:'Space Grotesk', sans-serif; letter-spacing:-0.01em; margin:0 0 12px;}
a{color:var(--brand); text-decoration:none;}
a:hover{color:var(--brand-dark); text-decoration:underline;}
img{max-width:100%; height:auto;}

/* =====================================================================
   CABECERA
   ===================================================================== */
.ccw-header{
  background:var(--ink);
  padding:16px 28px;
}
.ccw-header-inner{
  max-width:1100px; margin:0 auto;
  display:flex; align-items:center; gap:12px;
}
.ccw-logo-chip{
  background:#fff; border-radius:10px; padding:7px 10px;
  display:flex; align-items:center; justify-content:center; flex-shrink:0;
}
.ccw-logo-chip img{height:20px; width:auto; display:block;}
.ccw-header-title{color:rgba(255,255,255,0.85); font-size:12px; letter-spacing:.04em; text-transform:uppercase; font-weight:600;}

/* =====================================================================
   CONTENIDO PRINCIPAL
   ===================================================================== */
.ccw-main{flex:1; display:flex; align-items:flex-start; justify-content:center; padding:48px 20px;}

/* La tarjeta blanca centrada que envuelve CUALQUIER página de WordPress
   (login, registro, recuperar contraseña, cuenta...) — así todo lo que
   genere Ultimate Member queda dentro de un marco consistente con el
   panel, sin depender de conocer sus clases CSS internas exactas. */
.ccw-card{
  background:var(--panel);
  border-radius:18px;
  padding:36px 34px;
  width:100%; max-width:420px;
  box-shadow:0 24px 60px -20px rgba(6,43,74,0.25);
  margin-top:24px;
}
.ccw-card-logo{
  width:60px; height:60px; border-radius:14px; background:var(--paper);
  border:1px solid var(--line); display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px; padding:8px;
}
.ccw-card h1, .ccw-card h2{font-size:19px; text-align:center; margin-bottom:6px;}
.ccw-card .ccw-subtitle{font-size:12.5px; color:var(--steel); text-align:center; margin-bottom:22px;}

/* =====================================================================
   PORTADA (front-page.php)
   ===================================================================== */
.ccw-hero{
  background:linear-gradient(120deg, var(--ink) 0%, var(--ink-2) 100%);
  border-radius:20px;
  padding:52px 40px;
  max-width:720px; width:100%;
  color:#fff;
  position:relative; overflow:hidden;
  text-align:center;
}
.ccw-hero::before{
  content:""; position:absolute; top:0; left:0; right:0; height:4px;
  background:linear-gradient(90deg, var(--brand), var(--gold));
}
.ccw-hero .ccw-card-logo{background:#fff;}
.ccw-hero h1{font-size:28px; color:#fff; margin-bottom:14px;}
.ccw-hero p{font-size:14px; color:rgba(255,255,255,0.7); line-height:1.6; max-width:520px; margin:0 auto 26px;}
.ccw-hero-cta{
  display:inline-block;
  background:var(--gold); color:var(--ink);
  font-weight:700; font-size:14px;
  padding:13px 28px; border-radius:10px;
  transition:.15s;
}
.ccw-hero-cta:hover{background:var(--gold-dark); text-decoration:none; color:var(--ink);}

/* =====================================================================
   FORMULARIOS — re-estilo genérico de lo que pinte Ultimate Member
   dentro de .ccw-card. Usa selectores amplios (inputs/botones/enlaces
   estándar de formulario) para que funcione salga lo que salga del
   shortcode, más un par de clases habituales de UM por si acaso.
   ===================================================================== */
.ccw-card form{margin:0;}
.ccw-card label,
.ccw-card .um-field-label{
  display:block; font-size:11px; font-weight:700; text-transform:uppercase;
  letter-spacing:.04em; color:var(--steel); margin:14px 0 6px;
}
.ccw-card label:first-of-type{margin-top:0;}
.ccw-card input[type="text"],
.ccw-card input[type="email"],
.ccw-card input[type="password"],
.ccw-card input[type="tel"],
.ccw-card textarea,
.ccw-card select{
  width:100%; border:1px solid var(--line); border-radius:9px;
  padding:11px 13px; font-size:13.5px; font-family:'IBM Plex Sans';
  background:var(--paper); color:var(--ink);
}
.ccw-card input:focus, .ccw-card textarea:focus, .ccw-card select:focus{
  outline:2px solid var(--brand); outline-offset:1px; background:#fff;
}
.ccw-card input[type="submit"],
.ccw-card button[type="submit"],
.ccw-card .um-button,
.ccw-card .button{
  width:100%; background:var(--ink); color:#fff !important; border:none;
  padding:12px; border-radius:9px; font-size:13.5px; font-weight:700;
  cursor:pointer; margin-top:18px; font-family:'IBM Plex Sans';
}
.ccw-card input[type="submit"]:hover,
.ccw-card button[type="submit"]:hover,
.ccw-card .um-button:hover,
.ccw-card .button:hover{
  background:var(--brand);
}
.ccw-card .ccw-links{
  text-align:center; margin-top:16px; font-size:12px; color:var(--steel);
}

/* Mensajes de error/aviso que pinte UM — reconducidos a los mismos
   colores de aviso que ya usa el panel. */
.ccw-card .um-error, .ccw-card .error, .ccw-card .woocommerce-error{
  background:#FFF7F6; border:1px solid #FFDAD5; color:var(--warn);
  font-size:12px; padding:10px 12px; border-radius:9px; margin-bottom:14px;
}
.ccw-card .um-success, .ccw-card .success{
  background:#E4F8EF; border:1px solid #BEEBD6; color:var(--armed);
  font-size:12px; padding:10px 12px; border-radius:9px; margin-bottom:14px;
}

/* =====================================================================
   PIE
   ===================================================================== */
.ccw-footer{
  text-align:center; padding:24px; font-size:11px; color:var(--steel-2);
}

@media(max-width:600px){
  .ccw-main{padding:28px 16px;}
  .ccw-card{padding:28px 22px;}
  .ccw-hero{padding:36px 24px;}
  .ccw-hero h1{font-size:22px;}
}
