/* ============================
   VARIABLES CSS (modo claro/oscuro)
============================ */
:root {
  --color-bg: #ffffff;
  --color-text: #272829;
  --color-accent: #00B3E3;
  --color-accent-hover: #008bb5;
  --color-sidebar-bg: #040b14;
  --color-sidebar-text: #fff;
  --color-sidebar-link: #a8a9b4;
  --color-section-bg: #f4fafd;
  --color-border: #eee;
  --color-img-border: #007bff;
  --login-bg: #fff;
  --login-text: #272829;
  /* Nuevas variables para sombras, transiciones y animaciones modernas */
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
  --animation-duration: 0.5s;
}

[data-theme="dark"] {
  --color-bg: #121212;
  --color-text: #f4f4f4;
  --color-accent: #00B3E3;
  --color-accent-hover: #008bb5;
  --color-sidebar-bg: #1e1e1e;
  --color-sidebar-text: #fff;
  --color-sidebar-link: #cccccc;
  --color-section-bg: #1e1e1e;
  --color-border: #444;
  --color-img-border: #00B3E3;
  --login-bg: #1e1e1e;
  --login-text: #fff;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.6);
  --box-shadow-hover: 0 6px 12px rgba(0, 0, 0, 0.75);
}

/* ============================
   VARIABLES CSS PARA EL MODO RETRO
   (Se aplica cuando data-theme="retro" esté activo)
============================ */
[data-theme="retro"] {
  /* Basados en dark pero adaptados a la estética retro */
  --color-bg: #000000 !important;            /* Fondo negro */
  --color-text: #00ff00 !important;          /* Texto en verde neón */
  --color-accent: #ff00ff !important;        /* Acento rosa/neón */
  --color-accent-hover: #ff66ff !important;
  --color-sidebar-bg: #000000 !important;
  --color-sidebar-text: #00ff00 !important;
  --color-sidebar-link: #00ff00 !important;
  --color-section-bg: #000000 !important;
  --color-border: #00ff00 !important;
  --color-img-border: #00ff00 !important;
  --login-bg: #000000 !important;
  --login-text: #00ff00 !important;
  --box-shadow: 0 4px 6px rgba(0, 255, 0, 0.3) !important;
  --box-shadow-hover: 0 6px 12px rgba(0, 255, 0, 0.5) !important;
}

/* ============================
   FORZAR ESTILO RETRO EN HEADER CON ALTA ESPECIFICIDAD
   (Se aplica cuando html[data-theme="retro"] esté activo)
============================ */
html[data-theme="retro"] header.d-flex.align-items-center.justify-content-between.p-2 {
  background-color: #000000 !important;
  background-image: linear-gradient(180deg, #000000, #111111) !important;
  border-bottom: 3px solid #00ff00 !important;
  color: #00ff00 !important;
  padding: 10px 15px !important;
}
html[data-theme="retro"] header.d-flex.align-items-center.justify-content-between.p-2 * {
  color: #00ff00 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
}

/* ============================
   MODO RETRO: estilo arcade para sidebar, header, footer y botones
   (Se aplica cuando data-theme="retro" esté activo)
   Se usa !important para sobreescribir estilos de Bootstrap si es necesario.
============================ */

/* -------- Sidebar Retro -------- */
[data-theme="retro"] .sidebar {
  background: linear-gradient(180deg, #000000, #111111) !important;
  border: 4px solid #00ff00 !important;
  border-radius: 20px !important;
  box-shadow: 0 0 15px #00ff00 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
  width: 280px !important;
  padding: 10px !important;
}
[data-theme="retro"] .sidebar .logo-bg-white {
  background: transparent !important;
  margin-bottom: 15px !important;
}
[data-theme="retro"] .sidebar .site-title .sitename {
  font-family: 'Consolas', 'Courier New', monospace !important;
  font-size: 1.2rem !important;
  color: #00ff00 !important;
}
[data-theme="retro"] .sidebar-nav {
  background-color: #000000 !important;
  border: 2px solid #00ff00 !important;
  border-radius: 8px !important;
  padding: 15px !important;
  margin-top: 15px !important;
}
[data-theme="retro"] .sidebar-nav ul li a {
  font-family: 'Consolas', 'Courier New', monospace !important;
  color: #00ff00 !important;
  text-shadow: 0 0 3px #00ff00 !important;
  border-bottom: 1px solid transparent !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}
[data-theme="retro"] .sidebar-nav ul li a:hover {
  background: #00ff00 !important;
  color: #000000 !important;
}

/* -------- Social Links en el Sidebar (Navbar) -------- */
[data-theme="retro"] .sidebar .social-links a,
[data-theme="retro"] .sidebar .social-links a span,
[data-theme="retro"] .sidebar .social-links a i {
  color: #00ff00 !important;
  transition: color 0.3s ease !important;
}
[data-theme="retro"] .sidebar .social-links a:hover,
[data-theme="retro"] .sidebar .social-links a:hover span,
[data-theme="retro"] .sidebar .social-links a:hover i {
  color: #ff00ff !important;
}

/* -------- Header Retro -------- */
[data-theme="retro"] header,
[data-theme="retro"] header * {
  font-family: 'Consolas', 'Courier New', monospace !important;
  color: #00ff00 !important;
}
[data-theme="retro"] header a {
  color: inherit !important;
  text-decoration: none !important;
}
[data-theme="retro"] header a:hover {
  color: #ff00ff !important;
  text-decoration: underline !important;
}

/* -------- Footer Retro -------- */
[data-theme="retro"] footer {
  background: linear-gradient(180deg, #000000, #111111) !important;
  border-top: 3px solid #00ff00 !important;
  padding: 10px 15px !important;
  text-align: center !important;
}
[data-theme="retro"] footer,
[data-theme="retro"] footer * {
  font-family: 'Consolas', 'Courier New', monospace !important;
  color: #00ff00 !important;
}
[data-theme="retro"] footer .social-link,
[data-theme="retro"] footer .social-link span,
[data-theme="retro"] footer .social-link i {
  color: #00ff00 !important;
  transition: color 0.3s ease !important;
}
[data-theme="retro"] footer .social-link:hover,
[data-theme="retro"] footer .social-link:hover span,
[data-theme="retro"] footer .social-link:hover i {
  color: #ff00ff !important;
}

/* -------- Botones Retro -------- */
[data-theme="retro"] .btn {
  font-family: 'Consolas', 'Courier New', monospace !important;
  background-color: #000000 !important;
  color: #00ff00 !important;
  border: 2px solid #00ff00 !important;
  box-shadow: none !important;
  text-transform: none !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}
[data-theme="retro"] .btn:hover,
[data-theme="retro"] a.btn:hover {
  background-color: #00ff00 !important;
  color: #000000 !important;
  border-color: #00ff00 !important;
}
[data-theme="retro"] .btn-primary,
[data-theme="retro"] .btn-success,
[data-theme="retro"] .btn-dark,
[data-theme="retro"] .btn-info,
[data-theme="retro"] .btn-outline-light {
  background-color: #000000 !important;
  color: #00ff00 !important;
  border: 2px solid #00ff00 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
  box-shadow: none !important;
  transition: background-color 0.3s ease, color 0.3s ease !important;
}
[data-theme="retro"] .btn-primary:hover,
[data-theme="retro"] .btn-success:hover,
[data-theme="retro"] .btn-dark:hover,
[data-theme="retro"] .btn-info:hover,
[data-theme="retro"] .btn-outline-light:hover {
  background-color: #00ff00 !important;
  color: #000000 !important;
  border-color: #00ff00 !important;
}

/* -------- Área de autenticación -------- */
[data-theme="retro"] .auth-row,
[data-theme="retro"] .auth-row * {
  color: #00ff00 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
}

/* -------- Input/Textarea/Select Retro -------- */
[data-theme="retro"] input,
[data-theme="retro"] textarea,
[data-theme="retro"] select {
  background-color: #000000 !important;
  color: #00ff00 !important;
  border: 2px solid #00ff00 !important;
  font-family: 'Consolas', 'Courier New', monospace !important;
}
[data-theme="retro"] input::placeholder,
[data-theme="retro"] textarea::placeholder,
[data-theme="retro"] select::placeholder {
  color: #00ff00 !important;
}
[data-theme="retro"] input:focus,
[data-theme="retro"] textarea:focus,
[data-theme="retro"] select:focus {
  border-color: #ff00ff !important;
  outline: none !important;
}

/* ============================
   d-lg-none (si no se carga Bootstrap)
============================ */
.d-lg-none {
  display: block;
}
@media (min-width: 992px) {
  .d-lg-none {
    display: none;
  }
}

/* ============================
   RESET / BASE
============================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ============================
   LAYOUT Y STICKY FOOTER
============================ */
html, body {
  width: 100%;
  height: 100%;
  font-family: 'Roboto', sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}
.wrapper,
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
#main-content,
.main-content {
  flex: 1;
}

/* ============================
   CONTENEDOR GENERAL
============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   SKIP LINK
============================ */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-bg);
  color: var(--color-text);
  padding: 8px 16px;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.3s ease;
}
.skip-to-content:focus {
  top: 0;
}

/* ============================
   SIDEBAR
============================ */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 100vh;
  background-color: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  overflow-y: hidden;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1rem 0;
  font-size: clamp(0.85rem, 1.2vh, 1rem);
  transition: left 0.3s var(--transition);
}
.sidebar-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0.5rem 1rem;
}
.sidebar-toggle {
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text);
  cursor: pointer;
  display: none !important;
}
@media (max-width: 1024px) {
  .sidebar-toggle {
    display: block !important;
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1500;
    border: 1px solid rgba(255,255,255,0.7) !important;
    border-radius: 4px !important;
    padding: 8px !important;
    background-color: rgba(128,128,128,0.2) !important;
    backdrop-filter: blur(4px) !important;
    color: var(--color-text) !important;
  }
}

/* ============================
   LOGO Y NAVBAR
============================ */
.logo-bg-white {
  text-align: center;
  width: 100%;
  padding: 10px 0;
}
.logo-bg-white .logo {
  display: inline-block;
  margin: 0 auto;
}
.site-title {
  text-align: center;
  width: 100%;
  margin-top: 0.5rem;
}
.site-title .sitename {
  font-size: 1rem;
  color: var(--color-sidebar-text);
}

/* ============================
   SOCIAL LINKS
============================ */
.social-links {
  text-align: center;
  width: 100%;
  padding: 0.5rem 0;
}
.social-links a {
  color: var(--color-sidebar-text);
  font-size: 1rem;
  margin: 0 5px;
  display: inline-block;
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--color-accent);
}
.social-links i {
  margin-right: 8px;
}
@media (max-width: 576px) {
  .social-links a {
    font-size: 1rem;
    margin-right: 10px;
  }
}

/* ============================
   NAVEGACIÓN DE LA SIDEBAR
============================ */
.sidebar-nav {
  width: 100%;
  margin-top: 1rem;
}
.sidebar-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.sidebar-nav ul li {
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.sidebar-nav ul li a {
  display: block;
  padding: 12px 15px;
  color: var(--color-sidebar-link);
  text-decoration: none;
  transition: var(--transition);
}
.sidebar-nav ul li a:hover {
  background: var(--color-accent);
  color: #fff;
}

/* ============================
   ICONOS Y MICROINTERACCIONES
============================ */
.icon-x {
  display: inline-block;
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--color-sidebar-text);
  transition: var(--transition);
}
.social-links a:hover .icon-x,
.footer-social-row a:hover .icon-x {
  color: var(--color-accent);
}

/* ============================
   BOTÓN DE DESCARGA DEL CV
============================ */
.cv-download {
  display: inline-block;
  margin-left: 15px;
  font-size: 16px;
  color: var(--color-sidebar-text);
  text-decoration: none;
  border: 1px solid var(--color-sidebar-text);
  padding: 5px 10px;
  border-radius: 6px;
  transition: var(--transition);
}
.cv-download:hover {
  background-color: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}

/* ============================
   TOGGLES DE LA SIDEBAR
============================ */
.sidebar-toggles {
  text-align: center;
  width: 100%;
  padding: 0.5rem 0;
}
.toggle-item {
  margin-bottom: 0.5rem;
}
.toggle-btn {
  background: none;
  border: 1px solid var(--color-text);
  color: var(--color-text);
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 6px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}
.toggle-btn:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  box-shadow: var(--box-shadow-hover);
}

/* ============================
   Estilos para dispositivos móviles y tablets (hasta 1024px)
============================ */
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
    left: -240px;
    padding: 1rem;
  }
  .sidebar.sidebar-show {
    left: 0;
  }
  .logo-bg-white {
    padding: 0.2rem 0;
  }
  .logo-bg-white .logo {
    width: 70px;
    margin: 0 auto;
  }
  .site-title {
    margin-top: 0.2rem;
  }
  .site-title .sitename {
    font-size: 0.85rem;
    margin: 0.2rem 0;
  }
  .social-links {
    padding: 0.3rem 0;
  }
  .social-links a {
    font-size: 0.8rem;
    margin: 0 4px;
  }
  .sidebar-nav ul li a {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  .sidebar i {
    font-size: 0.8rem;
  }
  .auth-links {
    margin-top: 0.5rem;
  }
  .auth-links p,
  .auth-links strong {
    font-size: 0.8rem;
  }
  .auth-links button,
  .auth-links .btn {
    font-size: 0.75rem;
    padding: 4px 8px;
  }
  .sidebar-toggles {
    padding: 0.3rem 0;
  }
  .toggle-btn {
    padding: 3px 6px;
    font-size: 0.8rem;
  }
  .toggle-select {
    font-size: 0.8rem;
    padding: 2px 4px;
  }
  .about-content {
    flex-direction: column-reverse;
    align-items: center;
  }
  .about-img,
  .about-text {
    width: 100%;
    text-align: center;
  }
  .about-img img {
    margin: 0 auto;
    display: block;
  }
  .main-content {
    padding-left: 0 !important;
    margin: 0 auto;
    max-width: 800px;
    text-align: center;
  }
  .resume-content,
  .resume-item h3,
  .resume-item h4,
  .resume-item p,
  .resume-item ul {
    text-align: left !important;
  }
  #hero {
    width: 100% !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
    text-align: center !important;
  }
  #hero .hero-content {
    width: 100% !important;
    margin: 0 auto !important;
    text-align: center !important;
    padding: 0 !important;
  }
}

/* ============================
   CONTENIDO PRINCIPAL
============================ */
.main-content {
  flex: 1;
  padding: 20px;
  position: relative;
  z-index: 1;
  padding-left: 20px;
}
@media (min-width: 769px) {
  .main-content {
    padding-left: calc(300px + 20px);
  }
}

/* ============================
   CONTENEDOR INTERNO
============================ */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ============================
   SECCIONES GENERALES
============================ */
.section {
  padding: 60px 0;
}
.section-title {
  text-align: center;
  margin-bottom: 20px;
}
.section-title h2 {
  font-size: 32px;
  margin-bottom: 10px;
}
.section-title p {
  color: #666;
}

/* ============================
   HERO CON ANIMACIÓN
============================ */
.hero {
  position: relative;
  min-height: 300px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-sidebar-bg);
  width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  animation: fadeIn 0.8s var(--transition);
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  object-fit: cover;
  z-index: -1;
}
.hero-content {
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
  transition: var(--transition);
}
.hero-content h2 {
  font-size: 48px;
  margin-bottom: 10px;
}
.hero-content p {
  font-size: 20px;
}

/* ============================
   SOBRE MI / ABOUT
============================ */
.about-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  align-items: center;
  flex-wrap: wrap;
}
.about-img {
  flex: 1;
  text-align: center;
}
.about-img img {
  width: 100%;
  max-width: 300px;
  border: 2px solid var(--color-img-border);
  border-radius: 15px;
  transition: var(--transition);
}
.about-img img:hover {
  transform: scale(1.02);
}
@media (min-width: 1024px) {
  .about-img img {
    max-width: 400px;
  }
}
.about-text {
  flex: 1;
}
@media (max-width: 768px) {
  .about-content {
    flex-direction: column-reverse;
    align-items: center;
  }
  .about-img,
  .about-text {
    width: 100%;
    text-align: center;
  }
}

/* ============================
   CURRÍCULUM / RESUME
============================ */
.resume-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.resume-left,
.resume-right {
  flex: 1;
  min-width: 280px;
}
.resume-title {
  font-size: 20px;
  margin-bottom: 10px;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
  padding-bottom: 5px;
}
.resume-item {
  margin-bottom: 20px;
}
.resume-item h4 {
  font-size: 16px;
  margin-bottom: 5px;
  font-weight: bold;
}
.resume-item h5 {
  font-size: 14px;
  color: var(--color-accent);
  margin-bottom: 5px;
}

/* ============================
   PORTAFOLIO
============================ */
.portfolio-content {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.portfolio-item {
  width: calc(33.333% - 20px);
  background: var(--color-section-bg);
  padding: 10px;
  box-sizing: border-box;
  position: relative;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}
.portfolio-item:hover {
  box-shadow: var(--box-shadow-hover);
}
.portfolio-info {
  margin-top: 10px;
  color: var(--color-text);
}
@media (max-width: 768px) {
  .portfolio-item {
    width: 100%;
  }
}

/* ============================
   SERVICIOS
============================ */
.services-content {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.service-item {
  flex: 1;
  text-align: center;
  background: var(--color-section-bg);
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-width: 280px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}
.service-item:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}
.service-item i {
  font-size: 40px;
  margin-bottom: 10px;
}

/* ============================
   CONTACTO
============================ */
.contact-content {
  margin-top: 20px;
}
.contact-content form {
  background: var(--color-section-bg);
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}
.contact-content form:hover {
  box-shadow: var(--box-shadow-hover);
}
.contact-content .row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.contact-content .row .col {
  flex: 1;
  min-width: 200px;
}
.contact-content .row .col label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.contact-content .row .col input,
.contact-content .row .col textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  transition: var(--transition);
}
.contact-content .row .col input:focus,
.contact-content .row .col textarea:focus {
  border-color: var(--color-accent);
  outline: none;
  box-shadow: 0 0 5px rgba(0,179,227,0.5);
}
.contact-content button {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}
.contact-content button:hover {
  background: var(--color-accent-hover);
  box-shadow: var(--box-shadow-hover);
}

/* ============================
   FOOTER (Sticky)
============================ */
#footer {
  display: flex;
  width: 100%;
  background-color: var(--color-sidebar-bg);
  color: var(--color-sidebar-text);
  padding: 20px 0;
  box-sizing: border-box;
  border-top: 1px solid rgba(255,255,255,0.1);
  transition: var(--transition);
}
.footer-col {
  flex-shrink: 0;
}
.footer-col.left,
.footer-col.right {
  width: 300px;
}
.footer-col.center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
}
.footer-row {
  margin-bottom: 20px;
  text-align: center;
}
.footer-logo-row img {
  max-width: 180px;
  height: auto;
}
.footer-social-row .social-link {
  color: var(--color-sidebar-text);
  font-size: 24px;
  margin: 0 10px;
  transition: var(--transition);
}
.footer-social-row .social-link:hover {
  color: var(--color-accent);
}
.footer-divider {
  width: 60%;
  border: 0;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 0 auto 20px auto;
}
.footer-bottom-row p {
  margin: 5px 0;
  font-size: 14px;
}
.footer-bottom-row a {
  color: var(--color-sidebar-text);
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom-row a:hover {
  color: var(--color-accent);
}
@media (max-width: 768px) {
  .footer-col.left,
  .footer-col.right {
    display: none;
  }
  .footer-col.center {
    width: 100%;
    padding: 0 20px;
  }
}

/* ============================
   UTILIDADES
============================ */
.fst-italic {
  font-style: italic;
}

/* ============================
   FORMULARIO DE LOGIN
============================ */
.login-form-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.login-form {
  background-color: var(--login-bg);
  color: var(--login-text);
  padding: 2rem;
  border-radius: 12px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--box-shadow);
  margin: 0 auto;
  transition: var(--transition);
}
.login-form:hover {
  box-shadow: var(--box-shadow-hover);
}
.login-form label {
  color: var(--login-text);
  font-weight: bold;
  display: block;
  margin-bottom: 0.5rem;
}
.login-form input {
  color: var(--login-text);
  background-color: var(--login-bg);
  border: 1px solid var(--color-border);
  padding: 0.5rem;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 4px;
  transition: var(--transition);
}
.login-form input[type="checkbox"] {
  width: auto;
  margin-right: 0.5rem;
}
.login-form input::placeholder {
  color: #999;
}
.login-form button {
  display: inline-block;
  font-weight: 400;
  color: #fff;
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  background-color: #007bff;
  border: 1px solid #007bff;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  transition: var(--transition);
  box-shadow: var(--box-shadow);
}
.login-form button:hover {
  background-color: #0069d9;
  border-color: #0062cc;
  box-shadow: var(--box-shadow-hover);
}

/* ============================
   DASHBOARD
============================ */
.dashboard-container {
  background-color: var(--color-section-bg);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  margin-bottom: 2rem;
  transition: var(--transition);
}
.dashboard-container:hover {
  box-shadow: var(--box-shadow-hover);
}
.dashboard-container h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
}
.dashboard-container .form-label {
  font-weight: 600;
  color: #333;
}
.dashboard-container .form-control {
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 0.5rem 0.75rem;
  transition: var(--transition);
}
.dashboard-container .form-control:focus {
  border-color: #007bff;
  outline: none;
}

/* ============================
   PANEL ADMIN
============================ */
#panel-admin {
  padding: 2rem 0;
}
#panel-admin .section-title {
  text-align: center;
  margin-bottom: 2rem;
}
#panel-admin .card {
  border: none;
  border-radius: 10px;
  background-color: var(--color-section-bg);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
#panel-admin .card:hover {
  box-shadow: var(--box-shadow-hover);
}
#panel-admin .card-header {
  background-image: linear-gradient(135deg, var(--color-accent), var(--color-accent-hover));
  color: #fff;
  padding: 1rem 1.5rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}
#panel-admin .card-body {
  padding: 1.25rem;
  color: #333;
  background-color: var(--color-bg);
}
#panel-admin .card-footer {
  background-color: #f1f1f1;
  padding: 0.75rem 1.25rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 0.875rem;
  color: #777;
}

/* ============================
   PANEL CLIENTE
============================ */
#panel-cliente {
  padding: 2rem 0;
}
#panel-cliente .section-title {
  text-align: center;
  margin-bottom: 2rem;
}
#panel-cliente .card {
  border: none;
  border-radius: 10px;
  background-color: var(--color-section-bg);
  box-shadow: var(--box-shadow);
  margin-bottom: 1.5rem;
  transition: var(--transition);
}
#panel-cliente .card:hover {
  box-shadow: var(--box-shadow-hover);
}
#panel-cliente .card-header {
  background-color: #28a745;
  color: #fff;
  padding: 1rem 1.5rem;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  font-size: 1.2rem;
  font-weight: 600;
}
#panel-cliente .card-body {
  padding: 1.25rem;
  color: #333;
  background-color: var(--color-bg);
}
#panel-cliente .card-footer {
  background-color: #f1f1f1;
  padding: 0.75rem 1.25rem;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  font-size: 0.875rem;
  color: #777;
}

/* ============================
   ESTILO DEL BLOG
============================ */
.social-share {
  margin-top: 20px;
  transition: var(--transition);
}
.social-share a {
  margin-right: 10px;
  padding: 8px 15px;
  text-decoration: none;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  transition: var(--transition);
}
.social-share .btn i {
  font-size: 16px;
}
/* Facebook */
.social-share .btn-outline-primary {
  background-color: #1877f2;
  color: #fff;
}
.social-share .btn-outline-primary:hover {
  background-color: #1566b1;
  color: #fff;
}
/* Twitter */
.social-share .btn-outline-info {
  background-color: #1da1f2;
  color: #fff;
}
.social-share .btn-outline-info:hover {
  background-color: #0d8bcd;
  color: #fff;
}
/* LinkedIn */
.social-share .btn-outline-secondary {
  background-color: #0077b5;
  color: #fff;
}
.social-share .btn-outline-secondary:hover {
  background-color: #005c8d;
  color: #fff;
}

/* ============================
   RESPONSIVIDAD Y MOBILE FIRST
============================ */
@media (max-width: 768px) {
  .social-share {
    text-align: center;
    margin-top: 20px;
  }
  .social-share a {
    width: 100%;
    margin-bottom: 10px;
    padding: 10px 0;
  }
  .card-body {
    padding: 15px;
  }
  .card-title {
    font-size: 1.2rem;
  }
  .card-footer {
    font-size: 0.9rem;
  }
}
@media (max-width: 1024px) {
  .sidebar {
    width: 240px;
    left: -240px;
    padding: 1rem;
  }
  .sidebar.sidebar-show {
    left: 0;
  }
  .sidebar-nav ul li a {
    font-size: 0.9rem;
  }
}

/* ============================
   CONTENEDOR GENERAL (Repetido para garantizar consistencia)
============================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ============================
   PAGINACIÓN
============================ */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
.pagination .page-link {
  border-radius: 6px;
  padding: 8px 12px;
  margin: 0 5px;
  transition: var(--transition);
}
.pagination .page-item.active .page-link {
  background-color: var(--color-accent);
  color: #fff;
}
.pagination .page-link:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
}

/* ============================
   BOTONES PARA COMPARTIR EN REDES SOCIALES
============================ */
.social-links a {
  font-size: 1.2rem;
  margin-right: 15px;
  transition: var(--transition);
}
.social-links a:hover {
  color: var(--color-accent);
}
.social-links i {
  margin-right: 8px;
}
@media (max-width: 576px) {
  .social-links a {
    font-size: 1rem;
    margin-right: 10px;
  }
}


/* ===========================================
   AÑADIMOS EL TERCER MODO (RETRO) AL FINAL
   y algunos efectos extra (scanlines, glitch).
   SIN MODIFICAR LOS BOTONES DE LA NAVBAR
=========================================== */

/* Efecto Scanlines (líneas horizontales de monitor CRT) */
[data-theme="retro"]::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    to bottom,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.15) 2px,
    rgba(0, 0, 0, 0.15) 4px
  );
  pointer-events: none;
  z-index: 9999;
}

/* Clase para títulos con efecto 'glitch' retro */
.retro-glitch {
  position: relative;
  color: var(--color-text);
  font-family: 'Courier New', Courier, monospace;
  font-size: 2rem;
}

/* Pseudo-elementos que simulan el glitch */
.retro-glitch::before,
.retro-glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  overflow: hidden;
  clip: rect(0, 900px, 0, 0);
}
.retro-glitch::before {
  animation: glitch 2s infinite linear alternate-reverse;
  color: var(--color-accent);
}
.retro-glitch::after {
  animation: glitch 3s infinite linear alternate-reverse;
  color: var(--color-accent-hover);
}
@keyframes glitch {
  0% {
    clip: rect(10px, 9999px, 15px, 0);
    transform: translate(-2px, -2px);
  }
  20% {
    clip: rect(85px, 9999px, 90px, 0);
    transform: translate(2px, 2px);
  }
  40% {
    clip: rect(45px, 9999px, 50px, 0);
    transform: translate(-2px, 2px);
  }
  60% {
    clip: rect(15px, 9999px, 20px, 0);
    transform: translate(2px, -2px);
  }
  80% {
    clip: rect(55px, 9999px, 60px, 0);
    transform: translate(-2px, 2px);
  }
  100% {
    clip: rect(35px, 9999px, 40px, 0);
    transform: translate(2px, -2px);
  }
}

/* ===========================================
   ESPECÍFICO PARA EL TEXTO DEL HEADER Y EL HERO
============================ */
[data-theme="retro"] .site-title .sitename,
[data-theme="retro"] .typed,
[data-theme="retro"] [data-i18n="navSitename"],
[data-theme="retro"] [data-i18n="heroTitle"],
[data-theme="retro"] .hero-content h2 {
  font-family: 'Consolas', 'Courier New', monospace !important;
  color: #00ff00 !important;
}


/* ============================
   FIJAR SIDEBAR EN MOVIL Y FILA ÚNICA PARA ICONOS (MODO RETRO)
============================ */

/* Forzamos la posición oculta (-240px) en modo retro cuando no esté sidebar-show */
@media (max-width: 1024px) {
  [data-theme="retro"] .sidebar:not(.sidebar-show) {
    width: 240px !important;
    left: -240px !important;
    transition: left 0.3s ease !important;
  }
  [data-theme="retro"] .sidebar.sidebar-show {
    left: 0 !important;
    transition: left 0.3s ease !important;
  }
}


/* 2) Mantener iconos de redes sociales en una sola fila */
[data-theme="retro"] .footer-social-row {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 10px;
  flex-wrap: nowrap !important;
}

/* (Opcional) Ajustar tamaño de iconos si fuese necesario */
[data-theme="retro"] .footer-social-row .social-link {
  font-size: 1.2rem !important;
}
