
:root{
  /* ----- COLORES MODO CLARO ----- */
  --base-color: #fff; /* color menu superior */ 
  --base-variant: #20325e; /* color complementario menu superior */ 
  --text-color: #fff; /* color info menu superior */ 
  --body-base: #fff; /* color fondo body */
  --body-secondary: #20325e; /* color fondo sections body */
  --body-details: ;
  --accent-color: #0da44d; /* color remarcado */
}

.darkmode{
  /* ----- COLORES MODO OSCURO ----- */
  --base-color: #20325e; /* color menu superior */ 
  --base-variant: #fff; /* color complementario menu superior */ 
  --text-color: #fff; /* color info menu superior */ 
  --body-base: #2F3637; /* color body */
  --body-secondary: #464F51; /* color fondo sections body */
  --body-details: ;
  --accent-color: #0da44d; /* color remarcado */
}


/* 
 ======================= ESTILOS MENU SUPERIOR (desk) ======================= 
*/


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ===== ESTILOS BASE ===== */
body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  background: #f4f4f4;
}

header {
  background: var();
  padding: 0;
  border: none;
}

/* ===== TOP BAR ===== */
.top-bar {
  background: var(--base-color);
  padding: 8px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 400;
  font-family: 'Montserrat', Arial, sans-serif;
  height: 40px;
  box-sizing: border-box;
}

.top-bar-left,
.top-bar-center,
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.top-bar-left i,
.top-bar-center i {
  color: var(--base-variant);
  font-size: 14px;
}

.top-bar-left a,
.top-bar-center a {
  color: var(--base-variant);
  text-decoration: none;
  transition: opacity 0.2s;
}

.top-bar-left a:hover,
.top-bar-center a:hover {
  opacity: 0.8;
}

.top-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--base-variant);
  color: var(--base-variant);
  text-decoration: none;
  transition: all 0.2s;
}

.top-social-icons a:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.top-social-icons i {
  font-size: 14px;
}

nav {
  display: flex;
  align-items: center;
  background: var(--base-color);
  height: 100px;
  width: 100%;
  position: relative;
  border: none;
  box-shadow: 0 4px 12px 0 rgba(10,10,10,0.08);
  box-sizing: border-box;
}

/* ===== LOGO ===== */
.logoEmpresa {
  margin-left: 24px;
  margin-right: 16px;
  flex-shrink: 0;
}

.logoEmpresa img {
  height: 95px;
  width: auto;
}

/* ===== BOTONES ===== */
.boton {
  border: none;
  border-radius: 32px;
  padding: 12px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: 'Montserrat', Arial, sans-serif;
  /*color: #fff;*/
  cursor: pointer;
  transition: filter 0.2s;
  line-height: 1.2;
  text-align: center;
}

.botonContacto {
  background: #0da44d;
}

.botonTalentMap {
  background: #ff9801;
}

.botonContacto:hover,
.botonTalentMap:hover {
  filter: brightness(0.95);
}

/* ===== MENÚ ESCRITORIO ===== */
.contenedorMenuEscritorio {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  width: 100%;
  flex: 1;
}

.contenedorMenuEscritorio a {
  color: var(--base-variant); /* CORREGIR BOTONES ADICIONALES */
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 6px 10px;
  text-align: center;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  height: 100%;
}

.contenedorMenuEscritorio a:hover {
  opacity: 0.7;
}

.contenedorMenuEscritorio .boton {
  padding: 8px 20px;
  margin: 0;
}

/* ===== ELEMENTOS MENÚ DESPLEGABLE ===== */
.elementoMenuSoluciones,
.elementoMenuPrecios,
.elementoMenuRecursosHumanos,
.elementoMenuDemo,
.elementoMenuContacto {
  position: relative;
  display: flex;
  align-items: center;
  height: 100px;
}

/* ===== MENÚ DESPLEGABLE ===== */
.menuDesplegable {
  display: none;
  position: fixed;
  left: 0;
  top: 140px; /* 40px (top-bar) + 100px (nav) */
  /* background: var(--base-color); ANALIZAR A DETALLE */
  box-shadow: 0 4px 12px 0 rgba(30,30,30,0.3);
  border-radius: 0 0 8px 8px;
  min-width: 200px;
  z-index: 1000;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.2s, max-height 0.3s cubic-bezier(.4,0,.2,1);
  box-sizing: border-box;
}

.menuDesplegable.active {
  display: block;
}

.menuDesplegable.show {
  opacity: 1;
  max-height: 500px;
}

.filaMenuDesplegable {
  background-color: var(--base-color);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin: 0;
}

.tarjetaMenuDesplegable {
  display: block;
  background: transparent;
  padding: 12px 20px;
  width: 100%;
  height: 40px;
  transition: background 0.2s;
  cursor: pointer;
  text-decoration: none;
  /*color: var(--base-color);*/ 
  margin: 0;
  display: flex;
  align-items: center;
}

.tarjetaMenuDesplegable:hover {
  background: rgba(26, 185, 87, 0.2);
}

.tarjetaMenuDesplegable:hover .tituloMenu {
  color: var(--accent-color);
  transition: color 0.2s ease;
}

.tarjetaMenuDesplegable .tituloMenu {
  color: var(--base-variant);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  text-align: left;
  display: block;
  line-height: 1;
}

#theme-switch {
  height: 50px;
  width: 50px;
  padding: 0;
  border-radius: 50%;
  background-color: var(--base-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

#theme-switch img {
  height: 30px;
  width: 30px;
}

#theme-switch img:last-child {
  display: none;
}

.darkmode #theme-switch img:first-child {
  display: none;
}

.darkmode #theme-switch img:last-child {
  display: block;
}
























/* 
 ======================= ESTILOS MENU SUPERIOR (hamburgesa) ======================= 
*/

.botonHamburguesa {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-right: 20px;
  z-index: 1000;
}

.lineaHamburguesa {
  width: 100%;
  height: 3px;
  background: var(--base-variant);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.botonHamburguesa.activo .lineaHamburguesa:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.botonHamburguesa.activo .lineaHamburguesa:nth-child(2) {
  opacity: 0;
}

.botonHamburguesa.activo .lineaHamburguesa:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* ===== MENÚ MÓVIL ===== */
.menuMovil {
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
}

.menuMovil.activo {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.contenedorMenuMovil {
  position: absolute;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: var(--base-color);
  padding: 80px 20px 20px;
  overflow-y: auto;
  transition: right 0.3s ease;
}

.menuMovil.activo .contenedorMenuMovil {
  right: 0;
}

.elementoMenuMovil {
  display: block;
  color: var(--base-variant);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 15px 0;

  transition: color 0.2s;
}

.elementoMenuMovil:hover {
  color: #0da44d;
}

/* ===== ACORDEÓN MÓVIL ===== */


.tituloAcordeonMenuMovil {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--base-variant);
  font-size: 1.1rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 15px 0;
  cursor: pointer;
  transition: color 0.2s;
}

.tituloAcordeonMenuMovil:hover {
  color: var(--accent-color);
}

.flechaAcordeon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.contenidoAcordeonMenuMovil {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.subElementoMenuMovil {
  display: flex;
  align-items: center;
  color: var(--base-variant);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  font-family: 'Montserrat', Arial, sans-serif;
  padding: 12px 0 12px 20px;
  transition: color 0.2s;
}

.subElementoMenuMovil:hover {
  color: var(--accent-color);
}

.subElementoMenuMovil img {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  filter: brightness(0.8);
  transition: filter 0.2s;
}

.subElementoMenuMovil:hover img {
  filter: brightness(1);
}

.botonMenuMovil {
  width: 100%;
  margin: 10px 0;
  padding: 12px 20px;
  font-size: 0.95rem;
  text-decoration: none;
  display: block;
  text-align: center;
  border: none;
  cursor: pointer;
  transition: filter 0.2s;
}

/* ===== ESTADOS ESPECIALES ===== */
body.menu-abierto {
  overflow: hidden;
}

/* ===== MEDIA QUERIES ===== */

/* Desktop - Large screens */
@media (max-width: 1275px) {
  .top-bar {
    padding: 8px 40px;
  }
  .top-bar-left a,
  .top-bar-center a {
    font-size: 13px;
  }
  .top-social-icons {
    gap: 10px;
  }
  .top-social-icons a {
    width: 30px;
    height: 30px;
  }
  .top-social-icons i {
    font-size: 13px;
  }
  .contenedorMenuEscritorio {
    gap: 10px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.95rem;
    padding: 4px 8px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}
@media (max-width: 1275px) {
  .contenedorMenuEscritorio {
    gap: 10px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.95rem;
    padding: 4px 8px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Desktop - Medium screens */
@media (max-width: 1200px) {
  .top-bar {
    padding: 8px 30px;
  }
  .top-bar-left a,
  .top-bar-center a {
    font-size: 12px;
  }
  .top-social-icons {
    gap: 8px;
  }
  .top-social-icons a {
    width: 28px;
    height: 28px;
  }
  .top-social-icons i {
    font-size: 12px;
  }
  .contenedorMenuEscritorio {
    gap: 8px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.9rem;
    padding: 3px 6px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 5px 10px;
    font-size: 0.75rem;
  }
}

/* Desktop - Small screens */
@media (max-width: 1040px) {
  .contenedorMenuEscritorio {
    gap: 6px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.85rem;
    padding: 3px 5px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 4px 8px;
    font-size: 0.7rem;
  }
}

/* Tablet - Large */
@media (max-width: 1000px) {
  .contenedorMenuEscritorio {
    gap: 5px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.8rem;
    padding: 2px 4px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 3px 6px;
    font-size: 0.65rem;
  }
}

/* Tablet - Medium */
@media (max-width: 960px) {
  .contenedorMenuEscritorio {
    gap: 4px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.75rem;
    padding: 2px 3px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 3px 5px;
    font-size: 0.6rem;
  }
}

/* Tablet - Small */
@media (max-width: 917px) {
  .contenedorMenuEscritorio {
    gap: 3px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.7rem;
    padding: 2px 2px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 2px 4px;
    font-size: 0.55rem;
  }
}

/* Mobile - Large */
@media (max-width: 900px) {
  .top-bar {
    padding: 6px 20px;
    font-size: 12px;
    height: 36px;
  }
  .top-bar-left a,
  .top-bar-center a {
    font-size: 11px;
  }
  .top-social-icons {
    gap: 6px;
  }
  .top-social-icons a {
    width: 26px;
    height: 26px;
  }
  .top-social-icons i {
    font-size: 11px;
  }
  nav {
    height: 90px;
    border: none !important;
  }
  header {
    border: none !important;
  }
  .menuDesplegable {
    top: 126px; /* 36px (top-bar) + 90px (nav) */
    padding: 16px 0;
  }
  .logoEmpresa {
    margin-left: 8px;
    margin-right: 8px;
  }
  .logoEmpresa img {
    height: 85px;
  }
  .filaMenuDesplegable {
    width: 100vw;
    gap: 16px;
  }
  .tarjetaMenuDesplegable {
    padding: 0 8px 0 0;
  }
  .contenedorMenuEscritorio {
    gap: 3px;
  }
  .contenedorMenuEscritorio a {
    font-size: 0.75rem;
    padding: 2px 3px;
  }
  .contenedorMenuEscritorio .boton {
    padding: 3px 5px;
    font-size: 0.6rem;
  }
}

/* Mobile - Medium */
@media (max-width: 768px) {
  .top-bar {
    padding: 5px 15px;
    font-size: 11px;
    height: 32px;
  }
  .top-bar-left a,
  .top-bar-center a {
    font-size: 10px;
  }
  .top-social-icons {
    gap: 5px;
  }
  .top-social-icons a {
    width: 24px;
    height: 24px;
  }
  .top-social-icons i {
    font-size: 10px;
  }
  .menuDesplegable {
    top: 112px; /* 32px (top-bar) + 80px (nav) */
  }
  .menuEscritorio {
    display: none !important;
  }
  .contenedorMenuEscritorio {
    display: none !important;
  }
  nav {
    height: 80px;
    padding: 0 10px;
    justify-content: space-between;
    border: none !important;
  }
  header {
    border: none !important;
  }
  .logoEmpresa {
    margin-left: 6px;
    margin-right: 6px;
  }
  .logoEmpresa img {
    height: 75px;
  }
  .botonHamburguesa {
    margin-left: auto;
    margin-right: 20px;
  }
  .menuDesplegable {
    display: none !important;
  }
  .tarjetaMenuDesplegable .tituloMenu {
    font-size: 1.2rem;
  }

}

/* Mobile - Small */
@media (max-width: 600px) {
  .top-bar {
    padding: 4px 10px;
    font-size: 10px;
    height: 28px;
  }
  .top-bar-left a,
  .top-bar-center a {
    font-size: 9px;
  }
  .top-social-icons {
    gap: 4px;
  }
  .top-social-icons a {
    width: 22px;
    height: 22px;
  }
  .top-social-icons i {
    font-size: 9px;
  }
  .menuDesplegable {
    top: 98px; /* 28px (top-bar) + 70px (nav) */
  }
  nav {
    height: 70px;
    padding: 0 5px;
    border: none !important;
  }
  header {
    border: none !important;
  }
  .logoEmpresa {
    margin-left: 3px;
    margin-right: 3px;
  }
  .logoEmpresa img {
    height: 65px;
  }
  .menuDesplegable {
    display: none !important;
  }
  .tarjetaMenuDesplegable .tituloMenu {
    font-size: 1rem;
  }

  .contenedorMenuMovil {
    width: 280px;
    padding: 70px 15px 15px;
  }
  .elementoMenuMovil {
    font-size: 1rem;
    padding: 12px 0;
  }
  .tituloAcordeonMenuMovil {
    font-size: 1rem;
    padding: 12px 0;
  }
  .subElementoMenuMovil {
    font-size: 0.9rem;
    padding: 10px 0 10px 15px;
  }
  .botonMenuMovil {
    padding: 10px 15px;
    font-size: 0.9rem;
  }
}

/* Hide mobile menu on desktop */
@media (min-width: 769px) {
  .botonHamburguesa,
  .menuMovil {
    display: none !important;
  }
}

/* ===== MODO OSCURO ===== */
body.dark-mode .menuDesplegable {
  background: #fff;
}

body.dark-mode .tarjetaMenuDesplegable .tituloMenu {
  color: #333;
}

body.dark-mode .tarjetaMenuDesplegable:hover {
  background: rgba(32,50,94,0.1);
}

body.dark-mode .tarjetaMenuDesplegable:hover .tituloMenu {
  color: #159045;
}

/* ===== MODO CLARO ===== */
body:not(.dark-mode) .menuDesplegable {
  background: #20325E;
}

body:not(.dark-mode) .tarjetaMenuDesplegable:hover {
  background: rgba(255,255,255,0.1);
}

body:not(.dark-mode) .tarjetaMenuDesplegable:hover .tituloMenu {
  color: #159045;
}








/* 
 ======================= ESTILOS FOOTER ======================= 
*/

.footer {
  background: var(--base-color);
  color: var(--base-variant);
  padding: 40px 60px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  min-height: 200px;
  position: relative;
  z-index: 2;
}

/* ===== FOOTER COPYRIGHT ===== */
.footer-copyright {
  flex: 1;
  max-width: 300px;
  margin-right: 40px;
}

.footer-copyright h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--base-variant);
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-copyright p {
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--base-variant);
  font-family: 'Montserrat', Arial, sans-serif;
  line-height: 1.5;
}

.footer-copyright .copyright {
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 400;
}

/* ===== FOOTER CONTACT ===== */
.footer-contact {
  flex: 1;
  max-width: 300px;
  margin-right: 40px;
}

.footer-contact h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--base-variant);
  font-family: 'Montserrat', Arial, sans-serif;
}

.footer-contact a {
  display: block;
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 400;
  color: var(--base-variant);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.footer-contact a:hover {
  opacity: 0.8;
}

/* ===== FOOTER SOCIAL ===== */
.footer-social {
  flex: 1;
  max-width: 300px;
  margin-right: 40px;
}

.footer-social h2 {
  margin: 0 0 20px 0;
  font-size: 28px;
  font-weight: 700;
  color: var(--base-variant);
  font-family: 'Montserrat', Arial, sans-serif;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

/*
color: var(--base-variant);
border: 1px solid var(--base-variant);
*/



.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  /*fill: var(--base-variant);*/
  background: var(--base-color);
  border: 2px solid var(--base-variant);
  transition: transform 0.2s, background-color 0.2s;
  text-decoration: none;
}

.social-icon:hover {
  transform: scale(1.1);
}

.social-icon a {
  width: 24px;
  height: 24px;
  display: block;
  color: var(--base-variant); /* CORREGIR SVGS */
  border: 1px solid var(--base-variant);
}

/* ===== FOOTER PRIVACY ===== */
.footer-privacy {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

.footer-privacy a {
  font-size: 16px;
  font-weight: 400;
  color: var(--base-variant);
  font-family: 'Montserrat', Arial, sans-serif;
  text-decoration: underline;
  line-height: 1.5;
  transition: opacity 0.2s;
}

.footer-privacy a:hover {
  opacity: 0.8;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1200px) {
  .footer {
    padding: 35px 50px;
  }
  
  .footer-copyright,
  .footer-contact,
  .footer-social {
    margin-right: 30px;
  }
  
  .footer-copyright h2,
  .footer-contact h2,
  .footer-social h2 {
    font-size: 24px;
  }
  
  .footer-copyright p,
  .footer-contact a,
  .footer-privacy a {
    font-size: 15px;
  }
}

@media (max-width: 900px) {
  .footer {
    padding: 30px 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  
  .footer-copyright,
  .footer-contact,
  .footer-social,
  .footer-privacy {
    max-width: 100%;
    margin-right: 0;
  }
  
  .footer-copyright h2,
  .footer-contact h2,
  .footer-social h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .footer-copyright p,
  .footer-contact a,
  .footer-privacy a {
    font-size: 14px;
  }
  
  .social-icons {
    gap: 12px;
  }
  
  .social-icon {
    width: 45px;
    height: 45px;
  }
  
  .social-icon img {
    width: 20px;
    height: 20px;
  }
}

@media (max-width: 600px) {
  .footer {
    padding: 25px 20px;
    gap: 25px;
  }
  
  .footer-copyright h2,
  .footer-contact h2,
  .footer-social h2 {
    font-size: 20px;
    margin-bottom: 12px;
  }
  
  .footer-copyright p,
  .footer-contact a,
  .footer-privacy a {
    font-size: 13px;
  }
  
  .footer-copyright p,
  .footer-contact a {
    margin-bottom: 8px;
  }
  
  .social-icons {
    gap: 10px;
  }
  
  .social-icon {
    width: 40px;
    height: 40px;
  }
  
  .social-icon img {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 400px) {
  .footer {
    padding: 20px 15px;
    gap: 20px;
  }
  
  .footer-copyright h2,
  .footer-contact h2,
  .footer-social h2 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  .footer-copyright p,
  .footer-contact a,
  .footer-privacy a {
    font-size: 12px;
  }
  
  .social-icons {
    gap: 8px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .social-icon img {
    width: 16px;
    height: 16px;
  }
}
