/* =========================
   RESET Y CONFIGURACIÓN BASE
   ========================= */
* {margin: 0;padding: 0;box-sizing: border-box;font-family: 'Open Sans', sans-serif;}
body {
    min-height: 100vh;
    background: url(../Recursos/img/fondoWattDos.webp) no-repeat center center;
    background-size: cover;
    
    line-height: 1.6;
}

/* =========================
   LINKS
   ========================= */
a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    transition: color 0.3s ease;
}
a:hover {
    color:#f5cb5c;
}

/* =========================
   NAVBAR
   ========================= */
header{
    position: sticky;   /* Se queda pegado al hacer scroll */
    top: 0;             /* Pegado al borde superior */
    left: 0;
    z-index: 1000;      /* Se queda encima del resto de elementos */
    padding: 0;
}


.navbar{
    width: 100%;                /* Ocupa todo el ancho */
    height: 60px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;

    /* 🎨 Difuminado estilo glass */
    background: rgba(0, 0, 0, 0.4); 
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    /* Quitamos el borde redondeado */
    border-radius: 0; 

    /* Opcional: quitamos el borde si no lo quieres */
    border: none; 
    padding: 0 1rem;
}



.navbar .logo img {
    height: 70px;         
    width: auto;          
    max-height: 100%;      
    object-fit: contain;   
}

.navbar .links {


    position: absolute;
    display: flex;
    gap: 2rem;
    list-style: none;
    right: 11.5rem;
    
    
}




.navbar .toggle_btn {
    color: #e8eddf;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;


}

/* =========================
   BOTÓN PRINCIPAL (Get Started)
   ========================= */

.action_btn_principal{
    background: #f2c64e;
    color: #242423;
    padding: 0.7rem 1.4rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;
}
.navbarBotonPrincipal{
    position: absolute;
    right: .5rem;
    padding: 0.7rem 1.4rem;
    border: none;
    outline: none;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    list-style: none;
}
.action_btn_principal:hover {
    background:#f5cb5c;
    transform: scale(1.05);
}
.action_btn_principal:active {
    transform: scale(0.95);
}

/* =========================
   DROPDOWN (Responsive)
   ========================= */
.dropdown_menu {
    display: none;
    position: absolute;
    right: 2rem;
    top: 5rem;
    height: 0;
    width: 250px;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: height 0.3s ease;
}
.dropdown_menu.open {
  display: flex;
  height: 330px;
}

.dropdown_menu li {
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dropdown_menu .action_btn {
    width: 90%;
    justify-content: center;
    margin: 1rem auto;
}

/* =========================
   HERO SECTION (Index Home)
   ========================= */

.hero {
    height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 2rem;
}
.hero-content {
    max-width: 700px;
}
.tituloWatt{
  color: #e8eddf ;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    
}
.hero p {
    font-size: 1.4rem;
    margin-bottom: 2rem;
    color: #e8eddf;
    line-height: 1.8;
    text-align: center;
    font-style: italic;
}
.hero-content p {
    background: rgba(0, 0, 0, 0.8); /* Fondo negro opaco */
    padding: 1.5rem 2rem;
    border-radius: 12px;
    color: #f0f0f0;
    font-style: italic;
    line-height: 1.7;
    max-width: 700px;
    margin: 1.5rem auto 2rem auto;
    text-align: center;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.7);
}
.articuloWatt{
  background:url(../Recursos/img/sectionArticuloWatt.png) ;
  display: flex;
  flex-direction: row;
  gap: 20px;
  padding: 20px;
  margin: auto;
  
}

.video-container,
.text-container{
  flex: 1;
  
}
.video-container video{
  width: 100%;
  height: auto;
  border-radius: 8px;
  border-style: dashed;
  border-width: 4px;
  border-color:#333533;
  
  justify-items: center;
}
.text-container{
  display: flex;
  color: #242423;
  flex-direction: column;
  justify-content: center
}
.text-container h4{
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
  font-size: 2rem;
  
  
  text-transform: capitalize;
  border-radius: 8px;
  
}
.text-container p{
  
  width: 100%;
  margin: 0;
  line-height: 2;
  font-size: 1.4rem;
  
}

.container_map{
  background: #f5cb5c;
  display: flex;
  flex-direction: row-reverse;
  gap: 20px;
  padding: 20px;
  margin: auto;
  width: auto;
  height: 400px;

}
.mi_mapa,
.text_container_map{
  flex: 1;
}
.mi_mapa{
    border-radius: 15px;
    border-style: dashed;
    border-width: 4px;
    border-color:#333533;
    
}
.text_container_map{
  display: flex;
  color: #242423;
  flex-direction: column;
  justify-content: center
}
.text_container_map h4{
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
  font-size: 2rem;
}
.text_container_map p{
  width: 100%;
  height: auto;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
}







/* =========================
   ABOUT SECTION
   ========================= */
#about {
    max-width: 800px;
    margin: 3rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6); /* Fondo semitransparente para que contraste con el fondo general */
    border-radius: 10px;
    color: #fff;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

#about h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    color: #f5cb5c; /* Manteniendo el naranja de los botones para resaltar */
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#about p {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    color: #ddd;
}

#about strong {
    color: #ffa726; /* Un naranja claro para destacar */
}

#about em {
    display: block;
    margin-top: 2rem;
    font-style: italic;
    color: #ccc;
    text-align: center;
}
/* =========================
   BLOG / SERVICES SECTION
   ========================= */
#services {
    max-width: 900px;
    margin: 4rem auto;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}

#services h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #f5cb5c;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#services p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: #ddd;
    line-height: 1.6;
}
#services strong{
  color: #f5cb5c;
}

#services .blog-preview {
    margin-top: 2rem;
    /* Aquí más adelante se puede insertar contenido dinámico o tarjetas de artículos */
}
#services .blog-link {
    text-align: center;
    margin-top: 2rem;
}

/* ================================
   📝 BLOG Y COMENTARIOS
=================================== */

#blog {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 1rem;
  color: #fff;
  text-align: left;
}

#blog h1 {

  background-color: #242423;
  position: sticky;
  top: 3.7rem;
  border-radius: 4rem;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 900;
  color: #f5cb5c;
  
}

.blog-card {
  background: #111;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.1);
}

.blog-card h2 {
  color: #f5cb5c;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.blog-card p {
  color: #ccc;
  line-height: 1.6;
}

/* ================================
   💬 COMENTARIOS
=================================== */

.comments {
  margin-top: 2rem;
  border-top: 1px solid #333;
  padding-top: 1rem;
}

.comments h3 {
  color: #f5cb5c;
  margin-bottom: 1rem;
}

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment {
  background: #1a1a1a;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  color: #eee;
  position: relative;
}

.comment p {
  margin-bottom: 0.5rem;
}

/* ================================
   ⚙️ ACCIONES DE COMENTARIO
=================================== */

.comment-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.comment-actions button {
  background: none;
  border: none;
  color: #f5cb5c;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.comment-actions button:hover {
  color: #f5cb5c;
  transform: scale(1.1);
}

.comment-actions span {
  color: #fff;
  margin-left: 4px;
}

/* ================================
   💬 FORMULARIO DE RESPUESTA
=================================== */

.reply-form {
  margin-top: 0.6rem;
  display: none;
}

.reply-form textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  color: #eee;
  padding: 0.6rem;
  border-radius: 5px;
  resize: vertical;
  min-height: 60px;
}

.reply-form button {
  background:#f5cb5c;
  border: none;
  color: #fff;
  padding: 0.5rem 1rem;
  margin-top: 0.4rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.reply-form button:hover {
  background: #f5cb5c;
}

/* ================================
   ↪️ RESPUESTAS ANIDADAS
=================================== */

.replies {
  margin-left: 1.5rem;
  margin-top: 0.8rem;
  border-left: 2px solid #333;
  padding-left: 1rem;
}

.reply {
  background: #141414;
  border-radius: 8px;
  padding: 0.6rem 0.8rem;
  margin-bottom: 0.6rem;
}

.reply p {
  margin-bottom: 0.4rem;
  color: #ccc;
}

/* ================================
   ✍️ FORMULARIO DE COMENTARIOS
=================================== */

.comments textarea {
  width: 100%;
  background: #0f0f0f;
  border: 1px solid #333;
  color: #eee;
  padding: 0.6rem;
  border-radius: 5px;
  resize: vertical;
  min-height: 70px;
}

.comments button {
  background: #f5cb5c;
  border: none;
  color: #fff;
  padding: 0.6rem 1.2rem;
  margin-top: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.comments button:hover {
  background: #f5cb5c;
}
/* =========================
   FORMULARIO LOGIN / REGISTRO
   ========================= */
.auth-section {
    max-width: 400px;
    margin: 4rem auto 6rem auto;
    padding: 2rem 2.5rem;
    background: rgba(0, 0, 0, 0.85);
    border-radius: 12px;
    box-shadow: 0 0 12px rgba(0,0,0,0.7);
    color: #fff;
    text-align: center;
    font-family: 'Open Sans', sans-serif;
}

.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.tab {
    flex: 1;
    padding: 0.7rem 0;
    background: rgba(255, 165, 0, 0.3); /* naranja suave transparente */
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
    user-select: none;
    box-shadow: 0 0 6px rgba(255, 165, 0, 0.3);
    text-align: center;
}

/* Estado activo: fondo naranja sólido, texto negro y sombra intensa */
.tab.active {
    background: #f5cb5c;
    color: #000;
    box-shadow: 0 0 15px #f5cb5c;
}

/* Hover para tabs inactivas */
.tab:not(.active):hover {
    background: #f5cb5c;
    box-shadow: 0 0 10px#f5cb5c;
    color: #fff;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    width: 100%;
}

.auth-form input {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
    background-color: #222;
    color: #fff;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
    margin-bottom: 0.3rem;
}

.auth-form input::placeholder {
    color: #bbb;
}

.auth-form input:focus {
    box-shadow: 0 0 8px#f5cb5c;
}
.auth-form select {
    width: 100%;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    outline: none;
    transition: box-shadow 0.3s ease;
    background-color: #222;
    color: #fff;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.7);
    margin-bottom: 0.3rem;
}



.auth-form button.action_btn {
    width: 100%;
    padding: 0.9rem 0;
    margin-top: 1.2rem;
    background: #f5cb5c;
    border-radius: 30px;
    font-weight: 700;
    font-size: 1.1rem;
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 12px#f5cb5c;
    transition: background 0.3s ease, transform 0.15s ease;
}

.auth-form button.action_btn:hover {
    background: #f5cb5c;
    transform: scale(1.05);
}

.auth-form button.action_btn:active {
    transform: scale(0.95);
}

.error-msg {
    color: #f5cb5c;
    margin-top: 0.8rem;
    min-height: 1.2em;
    font-weight: 600;
    font-size: 0.9rem;
}
/* Botón */
.action_btn_register {
  display: inline-blocbk;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 30px;
  border: none;
  background:#f5cb5c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.requirements li {
  padding: 8px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  text-decoration: none;
  color: #7a7a7a;
  background: rgba(0, 0, 0, 0.05);
  transition: background-color 0.3s, color 0.3s;
}

.requirements li.not-ok {
 color: #b91c1c;
 background: rgba(0, 0, 0, 0.8) /* rojo muy claro */
      /* rojo oscuro */
}

.requirements li.ok {
  color: #047857; 
  background: rgba(0, 0, 0, 0.8) /* verde muy claro */
       /* verde oscuro */
}

.requirements li::before {
  content: '✖';
  font-weight: 700;
  color: #b91c1c; /* rojo */
  transition: color 0.3s;
}

.requirements li.ok::before {
  content: '✔';
  color: #047857; /* verde */
}
.action_btn_register {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 30px;
  border: none;
  background:#f5cb5c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.password-section {
  max-width: 400px; /* o el ancho que desees */
}

.password-wrapper {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

.password-wrapper button {
  background: none;
  border: 1px solid #f5cb5c;
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  color:#f5cb5c;
  transition: background-color 0.3s, color 0.3s;
}

.password-wrapper button[aria-pressed="true"] {
  background-color: #f5cb5c;
  color: white;
}
.strength {
  display: flex;
  align-items: center;
  margin: 8px 0 6px 0;
}

.bar {
  flex: 1;
  height: 8px;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.fill {
  height: 100%;
  width: 0%;
  background-color:#f5cb5c;
  transition: width 0.25s ease;
}





/* =========================
   CONTACT
   ========================= */
.contact-section {
  max-width: 500px;
  margin: 3rem auto;
  background: rgba(0, 0, 0, 0.8) !important; /* negro transparente */
  padding: 2rem 3rem;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  text-align: center;
  font-family: Arial, sans-serif;
  color: #fff; /* texto blanco para buen contraste */
}

.contact-section h1 {
  margin-bottom: 1rem;
  font-size: 2.2rem;
  color:#f5cb5c; /* naranja */
}

.contact-section p {
  margin-bottom: 2rem;
  font-size: 1.1rem;
  color: #ddd;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 12px 20px;
  background: rgba(255, 165, 0, 0.15); /* naranja muy transparente */
  border-radius: 50px;
  text-decoration: none;
  color: #f5cb5c;
  font-weight: 600;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.contact-item i {
  color: #f5cb5c; /* naranja */
  transition: color 0.3s ease;
}

.contact-item:hover {
  background-color:#f5cb5c;
  color: black;
}

.contact-item:hover i {
  color: black;
  filter: none;
}
.container-footer{
  text-transform: capitalize;
  max-width: 1200px;
  margin: 0 auto;
}
.footer{
  text-align: center;
  background: #242423;
  padding: 5rem;
}
.footer-row{
  display: flex;
  flex-wrap: wrap;
  

}
.footer-links ul{
  list-style: none;
}
.footer-links{
  
  width: 33.3%;
  padding: 0 5rem;

}
.footer-links h4 {
    font-size: 20px;
    color: #e8eddf;
    margin-bottom: 5px;
    font-weight: 500;
    border-bottom: 2px solid #f5cb5c ;
    padding-bottom: 10px;
    display:inline-block

}
.footer-links ul li a{
  font-size: 18px;
  color: #e8eddf;
  display: block;
  margin-bottom: 15px;
  transition: all .3s ease;
}
.footer-links ul li a:hover{
  color:  #f5cb5c;
  padding-left: 6px;
}




   
/* Responsive para móviles login */
@media (max-width: 480px) {
    .auth-section {
        margin: 2rem 1rem 4rem 1rem;
        padding: 1.5rem 1.5rem;
    }

    .tab {
        font-size: 1rem;
    }

    .auth-form button.action_btn_principal {
        font-size: 1rem;
    }
}
.visible {
  display: flex !important; /* O 'inline-block', según lo que necesites */
}

.hidden {
  display: none !important;
}





/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 992px) {
    .navbar .links{
      display: none;
    }
    .navbar .action_btn_principal{
        display: none;
    }
    .navbar .toggle_btn {
        display: block;
    }
    .dropdown_menu.open{
        display: block;
    }
    .dropdown_menu .action_btn_principal{
      display: flex;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    
    .comments h3 {
    text-align: center;
  }

  .comments button {
    font-size: 0.9rem;
    padding: 0.7rem;
  }

  .comment {
    font-size: 0.85rem;
  }

  .comment-actions {
    font-size: 0.8rem;
    justify-content: space-between;
  }
  #dashboard {
    padding: 1.5rem;
    margin: 2rem 1rem;
  }

  .dashboard-actions,
  .dashboard-user {
    padding: 1rem;
  }

  .dashboard-stats {
    grid-template-columns: 1fr;
  }
  .articuloWatt{
    flex-direction: column;
    text-align: center;
  }
  .video-container{
    max-width: 100%;
  }
  .text-container{
    font-size: 1.4rems;
  }
  .articuloWatt{
    background: url(../Recursos/img/setionArticuloWattResponsive.png);
  }

  .navbarBotonPrincipal{
    display: none;
  }
  .container_map{
    flex-wrap: wrap;
    flex-direction: row;
    gap: 5px;
    margin: 0;
    
    max-width:100%;
    height: 940px;
  }
  .mi_mapa,
  .text_container_map{
    flex: auto;
  }
  
  .mi_mapa{
    max-width: 100%;
    height: 20rem;
  }
  .text_container_map{
    font-size: 1rems;
    padding-bottom: 1rem;
    margin: 1rem;
    
    
  }
  
}
