body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  /* 👇 FONDO CON IMAGEN */
  /* background-image: url("/img/bg_image.webp"); */
  background-size: cover;        /* ocupa toda la pantalla */
  background-position: center;   /* centrada */
  background-repeat: no-repeat;
  background-attachment: fixed;  /* efecto “parallax” suave */

  /* fallback si no carga la imagen */
  background-color: #f2f2f2;
  /* background: #f5f5f5;
  color: #333; */
  padding: 0;
}

/* Header corporativo */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: linear-gradient(90deg, #061b2f, #004e92);
  color: white;
  height: 64px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo {
  font-size: 24px;
  font-weight: bold;
  color: #005EB8;
}

nav a {
  margin-left: 25px;
  text-decoration: none;
  color: rgba(255,255,255,0.9);
  font-weight: bold;
  letter-spacing: 0.5px;
}

nav a:hover {
  color: #7ec8ff;
}

/* Sección hero industrial */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #003f73, #005EB8);
  color: white;
  padding: 40px 30px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 20px 0;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
}
.language-selector {
  position: relative;
  display: inline-block;
  cursor: pointer;
  user-select: none;
}

.language-selector img {
  width: 28px;
  height: auto;  
  border: 1px solid #ccc;
  border-radius: 3px;
  transition: transform 0.15s ease;
}

.language-selector img:hover {
  transform: scale(1.1);
}

.language-selector ul {
  position: absolute;
  top: 28px;
  left: 0;
  background: white;
  border: 1px solid #ccc;
  list-style: none;
  padding: 5px;
  margin: 0;
  width: 130px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.language-selector ul li {
  padding: 5px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.language-selector ul li img {
  width: 22px;
  height: 16px;
}

.language-selector ul.hidden {
  display: none;
}

.language-selector ul li:hover {
  background: #f0f0f0;
}
/* ===== ACCESS BLOCK ===== */
.access-block {
  max-width: 1100px;
  margin: 20px auto;      /* 👈 esto lo baja y lo integra */
  padding: 20px 10px;
  background: #f8fafc;
  border-radius: 18px;
  text-align: center;
}

.access-block h2 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.access-subtitle {
  color: #666;
  margin-bottom: 40px;
}

/* Cards layout */
.access-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 32px;
  margin: 40px auto 0;
  max-width: 700px;     
}

/* Card */
.access-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px 20px;

  box-shadow: 0 8px 24px rgba(0,0,0,.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.access-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(0,0,0,.12);
}

.access-card .icon {
  font-size: 42px;
  margin-bottom: 12px;
}

.access-card h3 {
  margin-bottom: 10px;
  font-size: 1.3rem;
}

.access-card p {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 20px;
}
.access-card.register {
  border: 2px solid #ffb74d;
}

.access-actions {
  display: flex;
  gap: 20px;
  margin-top: 20px;
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, #005eb8, #007bff);
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-secondary {
  background: linear-gradient(135deg, #ff9800, #ffb74d);
  color: #222;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-outline {
  background: transparent;
  border: 2px solid #005eb8;
  color: #005eb8;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.btn-outline:hover {
  background: #005eb8;
  color: white;
}

/* Boton azul generico */
.blueButton{
  padding:8px 15px; 
  background:#005bbb; 
  border:none; 
  color:white; 
  border-radius:5px;
  cursor:pointer
}
.blueButton:hover {
    background: #004999;
}
/* Botón eliminar (X) */
.btn-delete {
    margin-left: 10px;
    padding: 4px 8px;
    background-color: #900;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-delete:hover {
    background-color: #b00;
}

.btn-delete:active {
    transform: scale(0.95);
}
.add-btn {
    margin-bottom: 12px;
}
/* Secciones con estilo industrial */
.section {
  padding: 20px 20px;
  background: #ffffff;
  margin-bottom: 20px;
  
  
}

.section h2 {
  font-size: 32px;
  color: #005EB8;
  margin-bottom: 20px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: #f0f4f8;
  border-left: 6px solid #005EB8;
  padding: 25px;
  border-radius: 6px;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.1);
}

.card h3 {
  margin-top: 0;
  font-size: 22px;
  color: #003f73;
}
.row {
    display: flex;
    gap: 20px; 
    align-items: flex-start; 
}

#powerBox, #voltageBox {
    margin-top: 6px;
}

#powerBox input,
#voltageBox input {
  padding: 8px;
  width: 200px;
  margin-top: 5px;
}
.menu-links a {
  display: block;
  padding: 5px 7px;
  margin: 3px 0;
  background: #f3f4f6;
  border-radius: 4%;
  color: #333;
  font-weight: 600;
  text-decoration: none;
  transition: 0.2s;
}

.menu-links a:hover {
  background: #e0e7ff;
  transform: translateX(4px);
}
.cardEspiras {
  padding: 16px;
  border-radius: 10px;
  background: #f4f4f4;
  width: 400px;
  font-family: Arial;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);    
}
.hidden {
  display: none !important;
}

.tool-section {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px;
  border-radius: 10px;
}

.tool-layout {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

/* imagen más pequeña y a la izquierda */
.tool-image {
  width: 180px;        /* 👈 aquí controlas el tamaño */
  flex-shrink: 0;      /* evita que se deforme */
}

/* imagen en sí */
.tool-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  background: #f5f7fa;
  padding: 6px;
}

/* inputs ocupan el resto */
.tool-inputs {
  flex: 1;
}


.selector {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.opciones-box {
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background: #f5f7fa;
}

.tolerancias,
.rangos {
    display: flex;
    gap: 30px;
    margin-bottom: 25px;
}
/* Footer industrial */
footer {
  background: #003f73;
  color: white;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

footer h4 {
  margin-top: 0;
  color: #7ec8ff;
}

footer a {
  display: block;
  color: #d9efff;
  text-decoration: none;
  margin: 6px 0;
}

footer a:hover {
  text-decoration: underline;
}

.forum {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.forum-title {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.forum-intro {
  color: #555;
  margin-bottom: 30px;
}

.forum-list {
  border-top: 1px solid #e5e5e5;
}

.forum-row {
  display: grid;
  grid-template-columns: 40px 1fr 240px;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.forum-icon {
  font-size: 1.2rem;
  color: #005eb8;
  margin-top: 4px;
}

.forum-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: #005eb8;
  text-decoration: none;
}

.forum-link:hover {
  text-decoration: underline;
}

.forum-desc {
  margin-top: 6px;
  color: #555;
}

.forum-meta {
  display: flex;
  justify-content: space-between;
  text-align: right;
  gap: 20px;
}

.forum-meta-label {
  display: block;
  font-size: 0.75rem;
  color: #777;
}
.posts-list {
  margin-top: 20px;
}

.post-row {
  padding: 20px 0;
  border-bottom: 1px solid #e5e5e5;
}

.post-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 10px;
}

.post-author {
  color: #005eb8;
  font-weight: 600;
}

.post-content {
  font-size: 1rem;
  line-height: 1.6;
}

.reply-box {
  margin-top: 30px;
}

.reply-box textarea {
  width: 100%;
  min-height: 120px;
  margin-bottom: 10px;
}

.profile-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card.admin {
  border-left: 4px solid #4f46e5;
}

.card.free {
  border-left: 4px solid #f59e0b;
}

.card.pro {
  border-left: 4px solid #22c55e;
}

.access-card.forgot {
  background: #f8f9fa;
  border: 1px dashed #ced4da;
}

.btn-link {
  background: none;
  border: none;
  color: #0d6efd;
  cursor: pointer;
  padding: 0;
  font-weight: 600;
}

.btn-link:hover {
  text-decoration: underline;
}

.forgot-link {
  margin-top: 12px;
}

.forgot-box {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #ccc;
}

.forgot-box input {
  width: 100%;
  padding: 8px;
  margin-bottom: 10px;
}

.forgot-actions {
  display: flex;
  gap: 10px;
}

/* SLOT SELECTOR */
.slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.slot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;

  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;

  background-color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.slot-card img {
  max-width: 100%;
  height: auto;
}

.slot-card input[type="radio"] {
  display: none;
}

.slot-card span {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

.slot-card input:checked + img {
  outline: 3px solid #005EB8;
  border-radius: 6px;
}

.slot-card:has(input:checked) {
  background-color: #cfe9ff;     
  box-shadow: 0 0 0 2px #6cb6ff;
}

/* INPUTS */
.slot-inputs {
  margin-top: 30px;
  padding: 20px;
  border-radius: 10px;
  background: #f5f7fa;
  flex-wrap: wrap;
  gap: 20px 30px;
}

.slot-inputs.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.input-group {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  max-width: 160px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
}

.input-group input {
  width: 100%;
  padding: 8px;
}

.resultado-box {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  background: #f0f7ff;
  font-size: 1.1rem;
  font-weight: bold;
}

.ad {
  margin: 40px auto;
  text-align: center;
}

.ad-inline {
  max-width: 100%;
}

.ad-post-tool {
  max-width: 100%;
}

.ad:empty {
  display: none;
}
