/*
Theme Name: Soluciones Electorales Theme
Theme URI: https://www.solucioneselectorales.com
Description: Professional WordPress theme for secure and scalable electoral systems applications, integrating advanced digital technologies for data-driven platforms, institutional environments, and electoral process management in Peru.
Author: e-Cybersoft Technologies Inc.
Author URI: https://www.e-cybersoft.com
Version: 1.0.0
License: Proprietary
License URI: https://www.e-cybersoft.com/license
Text Domain: soluciones-electorales-theme
Tags: electoral-systems, institutional, secure-platform, block-theme, full-site-editing, custom-colors, responsive-layout, accessibility-ready
*/

:root {
  --crim: #b0122a;
  --crim-dk: #7f0b1d;
  --navy: #0b1f3a;
  --bdr: #e5e7eb;
  --surf: #f6f7fb;
  --white: #ffffff;

  /* Valores que el Customizer inyecta desde functions.php */
  --se-header-bg: #ffffff;
  --se-header-text: #0b1f3a;
  --se-footer-bg: #0b1f3a;
  --se-footer-text: #ffffff;
}

body {
  margin: 0;
  background: var(--surf);
  color: var(--navy);
  font-family: system-ui, Arial, sans-serif;
}
a {
  color: var(--crim);
  text-decoration: none;
}
a:hover {
  color: var(--crim-dk);
}

button,
input[type="submit"],
.wp-block-button__link {
  background: var(--crim);
  color: var(--white);
  border: 1px solid var(--crim-dk);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
button:hover,
input[type="submit"]:hover,
.wp-block-button__link:hover {
  background: var(--crim-dk);
}

/* HEADER */

/* APP HEADER (from soluciones_electorales_v2.html) */
.app-hdr {
  background: linear-gradient(
    135deg,
    #0a1628 0%,
    var(--navy) 60%,
    #0f1f3d 100%
  );
  padding: 0 36px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid var(--crim);
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}
.app-hdr::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 60% 80% at 20% 50%,
    rgba(185, 28, 58, 0.12) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.app-hdr::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(185, 28, 58, 0.5),
    rgba(201, 150, 58, 0.3),
    transparent
  );
}

.ah-brand {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  z-index: 1;
}

.ah-name {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.5px;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.ah-name em {
  color: var(--crim);
  font-style: italic;
}
.ah-name small {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 9px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-top: 4px;
}

.ah-badge {
  /* background: linear-gradient(
    135deg,
    rgba(201, 150, 58, 0.15),
    rgba(201, 150, 58, 0.08)
  ); */
  /* background: white;
  border: 1px solid rgba(201, 150, 58, 0.35);
  box-shadow: 0 0 20px rgba(201, 150, 58, 0.1); */

  background: transparent !important;
  border: none !important;
  box-shadow: none !important;

  color: var(--gold);
  padding: 7px 16px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}
/* ===== HEADER STICKY ===== */

/* Clase para header fijo */
.se-header-sticky {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000; /* Siempre por encima del contenido */
  background-color: #ffffff; /* Fondo blanco */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Sombra suave al hacer scroll */
  transition: box-shadow 0.3s ease;
}

/* Sombra más pronunciada al hacer scroll (opcional) */
.se-header-sticky.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Ajuste para el contenido principal (evita que quede debajo del header) */
.se-site-main {
  padding-top: 0; /* El header ya tiene su propio padding */
  min-height: calc(100vh - 200px); /* Altura mínima */
}

/* Para la barra de WordPress en admin */
.admin-bar .se-header-sticky {
  top: 32px; /* Altura de la barra de admin */
}

@media (max-width: 782px) {
  .admin-bar .se-header-sticky {
    top: 46px; /* Altura de la barra de admin en móvil */
  }
}

/* Sombra condicional con JavaScript (opcional) */
.js-header-shadow {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
/* HEADER */
/* Botón home circular */
/* 🏠 BOTÓN HOME CIRCULAR CON FONDO BLANCO */
.btn-home-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 50%;
  color: #2c3e50;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-home-circle:hover {
  background-color: #f8f9fa;
  border-color: #0d6efd;
  color: #0d6efd;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.2);
  text-decoration: none;
}

.btn-home-circle .dashicons {
  font-size: 18px;
  width: 18px;
  height: 18px;
}

/* 🔑 BOTÓN INICIAR SESIÓN CON FONDO BLANCO */
.btn-login-white {
  display: inline-block;
  padding: 0.5rem 1.2rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  color: var(--crim);
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-login-white:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(13, 110, 253, 0.3);
  text-decoration: none;
}

/* Botones para usuarios logueados (opcional) */
.btn-profile-white,
.btn-logout-white {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 1rem;
  background-color: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 30px;
  color: var(--crim);
  font-size: 0.85rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.btn-profile-white:hover {
  background-color: #0d6efd;
  border-color: #0d6efd;
  color: white;
}

.btn-logout-white:hover {
  background-color: #dc3545;
  border-color: #dc3545;
  color: white;
}

.btn-profile-white .dashicons,
.btn-logout-white .dashicons {
  font-size: 16px;
  width: 16px;
  height: 16px;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-family:
    system-ui,
    -apple-system,
    sans-serif;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.25s ease;
}

.whatsapp-btn i {
  font-size: 18px;
}

.whatsapp-btn:hover {
  background: #20b358;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .btn-home-circle {
    width: 36px;
    height: 36px;
  }

  .btn-login-white {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    color: var(--crim);
  }

  .btn-profile-white,
  .btn-logout-white {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .ah-badge {
    gap: 0.5rem !important;
  }

  .btn-home-circle {
    width: 34px;
    height: 34px;
  }
}
