:root {
  --primary-color: #6C386F;      /* Color principal (fondos, bordes) */
  --secondary-color: #FFFFFF;    /* Blanco */
  --text-color: #FFFFFF;  
  --alternativetext-color: #6C386F;        /* Texto principal alternativo */
  --accent-color: #6C386F;       /* Acentos */
  --shadow-color: #FFFFFF;       /* Sombra */
}

/* 🌙 DARK MODE */
body.dark-mode {
  --primary-color: #121212;      /* Fondo oscuro */
  --secondary-color: #1E1E1E;    /* Secciones */
  --text-color: #EDEDED;         /* Texto claro */
  --accent-color: #BB86FC;       /* Acento púrpura (ejemplo) */
  --shadow-color: #000000;       /* Sombra más profunda */
}

/* RESET */
* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   font-family: 'Oxygen', sans-serif;
   color: var(--text-color);
}

/* BODY */
body { 
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: auto auto auto;
  grid-auto-flow: row;
  background-color: var(--primary-color);
}


/* 🌙 Transición entre temas */
body, 
body * {
  transition: 
    background-color 0.4s ease,
    color 0.4s ease,
    border-color 0.4s ease,
    box-shadow 0.4s ease;
}



/* HEADER STYLE */
.main-header { 
    display: inline-flex;
    position: sticky;
    top: 1.1vw;
    left: 0px;
    height: 10vh;
    width: 100vw; 
    align-content: center;
    box-shadow: 0px 2px 3px var(--shadow-color);
    z-index: 1;
}

.logo {
    width: 20vw;
    height: 12vh;
    margin-left: 3vw;
    margin-right: 3vw;
    stroke: var(--secondary-color);
}

.webpage-name {
    padding-top: 1VW;
    width: 50vw;
    height: auto;
    font-size: 30px;
}

.widget-nav {
    display: flex;
    height: auto;
    width: auto;
}

.widget-menu {
    display: flex;
    width: 35vw;
    margin: 0;
    height: auto;
    justify-content: flex-end;
    align-items: flex-end;
}

.nav-menu {
    height: auto;
    list-style: none;
    width: auto;
    padding-left: 1vw;
}


.aside-menu {
    height: auto;
    list-style: none;
    justify-items: center;
    align-content: justify;
    text-decoration: none;
    color: var(--primary-color);
}


.menu-item {
    font-size: 1.3vw;
    text-align: center;
    text-decoration: none;
    color: var(--secondary-color);
    background-color: var(--primary-color);
    padding: 3px 7px 0px 7px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 200ms ease-in;
}

.menu-item:hover,
.menu-item.active {
    color: var(--primary-color);
    background-color: var(--secondary-color);
    padding-right: 1rem;
    padding-left: 1rem; 
    transition: all 200ms ease-in-out;
}

/* CONTENT STYLE */
main {
    position: sticky;
    top: 7.0vw;
    width: 99vw;
    height: auto;
    display: grid;
    grid-template-columns: 30vw 70vw;
    grid-gap: 1vw;
    background-image: url(../img/woman.jpg);
    background-size: 99vw 70vh;
    background-repeat: no-repeat;
    background-position: center center;
    overflow: auto;
    z-index: 0;
}

.widget-aside {
   display: grid;
   /*grid-template-rows: 10vh 1fr;*/
   margin-top: 3vh;
   margin-bottom: 3vh;
   margin-right: 1vw;
   margin-left: 3.5vw;
   text-align: center;
   border: var(--primary-color) 3px solid;
   grid-column: 1;
   border-radius: 2vh;
   background-color: var(--secondary-color);
   opacity: .7;
   padding: 0;
}


.form-aside {
   display: grid;
   /*grid-template-rows: 10vh 1fr;*/
   /*margin-top: 15px;*/
   text-align: left;
   /*border: var(--primary-color) 3px solid;
   border-radius: 2vh;*/
   background-color: var(--secondary-color);
   opacity: .7;
   padding: 0;
}

.title {
   display: flex;
   color: var(--secondary-color);
   background-color: var(--primary-color);
   height: 10vh;
   opacity: .80;
   grid-row: 1;
   padding: 0;
   border: 0;
   justify-content: center;
   align-content: center;
}


.titleA {
   display: inline-flex;
   font-size: 1.75vw;
   color: var(--secondary-color);
   background-color: var(--primary-color);
   height: 9vh;
   width: 66.1vw;
   align-content: center;
   justify-content: center;
}


.lorem {
   display: flex;
   color: var(--primary-color);
   grid-row: 2;
   height: auto;
   background-color: var(--secondary-color);
   opacity: .7;
   padding: 0;
   border: 0;
}

.main-content {
   margin-top: 4vh;
   margin-bottom: 4vh;
   margin-right: 3.5vw;
   margin-left: .1vw;
   text-align: center;
   border: var(--primary-color) 3px solid;
   background-color: var(--secondary-color);
   opacity: .8;
   grid-column: 2;
   display: grid;
   border-radius: 2vh;
   grid-template-columns: 1fr 1fr 1fr 1fr;
   grid-template-rows: 1fr 1fr 1fr;
}

.title2 {
  display: flex;
  color: var(--secondary-color);
  background-color: var(--primary-color);
  height: 10vh;
  opacity: 1;
  margin-right: 3.5vw;
  text-align: center;
  grid-column-start: 1;
  grid-column-end: 6;
  display: grid;
  padding: 0;
  border: 0;
  justify-content: center;
  align-content: center;
  width: 100%;
}

.muse {
   display: grid;
   grid-template-rows: 4.5vh 1fr;
   text-align: center;
   border: var(--primary-color) 3px solid;
   border-radius: 2vh;
}

.title1 {
   display: flex;
   color: var(--secondary-color);
   background-color: var(--primary-color);
   height: 4.5vh;
   opacity: 1;
   justify-content: center;
   align-content: center;
}

/* COLUMNAS */
#muse1 { grid-column: 1 / 2; grid-row: 1 / 4; height: auto; }
#muse2 { grid-column: 2 / 3; grid-row: 1 / 2; height: auto; }
#muse3 { grid-column: 2 / 3; grid-row: 2 / 3; height: auto; }
#muse4 { grid-column: 2 / 3; grid-row: 3 / 4; height: auto; }
#muse5 { grid-column: 3 / 4; grid-row: 1 / 2; height: auto; }
#muse6 { grid-column: 3 / 4; grid-row: 2 / 3; height: auto; }
#muse7 { grid-column: 3 / 4; grid-row: 3 / 4; height: auto; }
#muse8 { grid-column: 4 / 5; grid-row: 1 / 2; height: auto; }
#muse9 { grid-column: 4 / 5; grid-row: 2 / 3; height: auto; }
#muse10 { grid-column: 4 / 5; grid-row: 3 / 4; height: auto; }

/* FOOTER STYLE */
footer { 
   display: grid;
   width: 100%;
   height: 12.9vh;
   position: sticky;
   align-items: center;
   justify-content: space-between;
   top: 90vh;
   left:0;
}

footer > span {
   left: .2vW;
   height: auto;
   justify-content: flex-start;
   font-size: 1.3vw;
   letter-spacing: 0.1vw;
   padding-left: 1.2vw;
   padding-top: 1.2vw;
}

.social-media {
  position: absolute;
  width: 100%;
  display: flex;
  justify-content: center;
}

.social-menu {
   display: flex;
   width: 50vw;
   margin: 0;
   height: auto;
   justify-content: space-around;
   align-items: center;
   list-style: none;
}

.social-item {
   padding-top: 3vh;
   display: inline;
}

.social-icon {
   height: 30px;
   width: 30px;
   display: flex;
   justify-content: center;
   align-items: center;
   margin: 0 0.45rem;
   color: var(--secondary-color);
   border-radius: 50%;
   border: 1px solid var(--secondary-color);
   text-decoration: none;
   font-size: 1.1rem;
   transition: 0.3s;  
}

.social-text {
   position: relative;
   top: -3.5vh;
   left: 7vh;
   padding: 0;
}

.social-text:hover {
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  background-color: var(--secondary-color);
  transition: 0.3s;
  padding-right: 1rem;
  padding-left: 1rem;  
  border-radius: 1rem;
}

/* ARTICLE STYLE */
.article_style {
   grid-column: 2;
   box-sizing: border-box;
   padding-top: 5vh;
   padding-left: 10vw;
   padding-bottom: 1vh;
}

.article_style span {
   padding-left: 2.5vw;
   padding-top: 2vh;
   left: -40vw;
}

.article-name {
   display: inline-flex;
   font-size: 2.25vw;
   color: var(--primary-color);
   height: auto;
   width: 100vw;
   align-content: center;
}

.article_style p {
   position:absolute;
   width: 80vw;
   top: 11vh;
  left: 10vw;
   padding-top: 1vw;
   padding-left: 2vw;
   color: var(--primary-color);
}

/* COMMENTS STYLE */
.commentsclass {
   background-color: var(--secondary-color);
   opacity: .7;
   display: block;
   position:relative;
   width: 90vw;
   border-radius: 2vh;
   margin-left: 5vw;
   margin-top: 8vw;
   align-self: stretch;
}

.commentsheader {
   font-size: 1.25vw;
   color: var(--primary-color);
   width: 90vw;
   text-align: center;
}

.listcomments {
   width: 90vw;
   overflow: auto;
   text-align: left;
   padding-left: 1vw;
}

.commentscontentheader {
   box-sizing: border-box;
   font-size: 1vw;
   color: var(--primary-color);
   text-align: center;
}

.commentsparagraph {
   padding-left: .5vw;
   padding-right: .1vw;
   width: 85vw;
   color: var(--primary-color);
   font-size: .9vw;
   text-align: justify;
   overflow: auto;
}

.theme-btn {
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  margin-left: 1rem;
  color: var(--text-color);
  transition: transform 0.3s ease, color 0.3s ease;
}

.theme-btn:hover {
  transform: scale(1.2);
  color: var(--accent-color);
}

.form-style {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1rem;
  background-color: var(--secondary-color);
  /*border: 2px solid var(--primary-color);
  border-radius: 1rem;*/
  margin-top: 1rem;
}

.form-style label {
  font-weight: bold;
  color: var(--accent-color);
}

.form-style input {
  padding: 0.5rem;
  border: 1px solid var(--primary-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  color: var(--alternativetext-color);
  background-color: transparent;
}

.form-style button {
  padding: 0.7rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
}

.form-style button:hover {
  background-color: var(--accent-color);
}

.form-style strong {
  background-color: var(--primary-color);
}

.form-style .btn-cancel {
  display: inline-block;
  text-align: center;
  padding: 0.7rem;
  background-color: var(--primary-color);
  color: var(--secondary-color);
  font-weight: bold;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.3s;
  text-decoration: none; /* quitar subrayado */
}

.form-style .btn-cancel:hover {
  background-color: var(--accent-color);
}




.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery figure {
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  overflow: hidden;
  background: var(--light-color);
}

.gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery figcaption {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.9rem;
  background: var(--primary-color);
  color: var(--light-color);
}

/* DASHBOARD LAYOUT */
.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  height: calc(100vh - 10vh); /* altura total menos header/footer */
}

/* Sidebar */
.dashboard-menu {
  background: var(--primary-color);
  color: var(--light-color);
  padding: 1rem;
}

.dashboard-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard-menu li {
  margin: 1rem 0;
}

.dashboard-menu a {
  text-decoration: none;
  color: var(--light-color);
  font-size: 1rem;
  display: block;
  padding: 0.5rem;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.dashboard-menu a:hover {
  background: var(--light-color);
  color: var(--primary-color);
}

/* Contenido */
.dashboard-content {
  padding: 2rem;
  background: var(--light-color);
  color: var(--dark-color);
  overflow-y: auto;
}




.password-wrapper {
    display: flex;
    align-items: center;
}
.password-wrapper input {
    flex: 1;
}
.toggle-password {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    margin-left: 5px;
}



/* Contenedor de mensajes */
#mensajes {
    border: 1px solid #ccc;
    background: #fafafa;
    height: 300px;
    overflow-y: auto;
    padding: 1em;
    font-family: Arial, sans-serif;
    font-size: 14px;
    margin-bottom: 1em;
}

/* Cada mensaje */
#mensajes div {
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

/* Usuario y mensaje */
#mensajes strong {
    color: #2c3e50;
}

#mensajes small {
    float: right;
    color: #888;
    font-size: 11px;
}

/* Formulario */
#form-chat textarea {
    width: 100%;
    height: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
}

#form-chat button {
    margin-top: 6px;
    padding: 8px 16px;
    background-color: #2e86de;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

#form-chat button:hover {
    background-color: #216ab5;
}


