/* estilopanel.css */

/* ===== Reset y base ===== */
body {
  background-color: #f4f4f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
}

.main-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  padding: 30px;
  max-width: 1400px;
  margin: auto;
}

.data-section,
.preview-section {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  flex: 1 1 48%; /* clave para mantener lado a lado en pantallas grandes */
  min-width: 350px;
  box-sizing: border-box;
}


h2, h4 {
  color: #2c3e50;
  margin-top: 0;
  text-align: center;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 12px;
  border: 1px solid #ddd;
  vertical-align: top;
}

.table th {
  background-color: #f8f8f8;
  width: 35%;
  font-weight: bold;
  color: #333;
}

.table td {
  color: #555;
}

img.img-fluid {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ===== Botones ===== */
.btn {
  padding: 8px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.9em;
  font-weight: 500;
  display: inline-block;
  margin-right: 10px;
}

.btn-warning { background-color: #ffc107; color: #000; border: none; }
.btn-danger { background-color: #dc3545; color: #fff; border: none; }
.btn-outline-primary { background-color: transparent; color: #007bff; border: 1px solid #007bff; }
.btn-sm { padding: 6px 10px; font-size: 0.85em; }

.btn-icon {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  margin-left: 6px;
}
.btn-icon:hover {
  transform: scale(1.1);
}

/* ===== Utilidades ===== */
.text-center { text-align: center; }
.fw-bold { font-weight: bold; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
/* ===== Inputs generales ===== */
input[type="text"],
input[type="number"],
input[type="file"],
input[readonly],
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  font-size: 1rem;
  background-color: #f9f9f9;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

input[type="file"] {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #ccc;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #007BFF;
  background-color: #fff;
}

/* ===== Upload ===== */
.custom-upload {
  display: inline-block;
  padding: 12px;
  background-color: #eee;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  margin-bottom: 10px;
}

.custom-upload input[type="file"] {
  display: none;
}

.upload-list-container {
  height: 150px;
  border: 1px dashed #ccc;
  border-radius: 8px;
  padding: 10px;
  background-color: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload-list-item,
.upload-list-item div {
  width: 100%;
  height: 100%;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: contain;
  border: 1px solid #ccc;
  border-radius: 8px;
}
/* ===== Bloque SEO, Pixeles, Detalles, etc ===== */
.seo-block {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group-seo {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  position: relative;
  border-bottom: 1px solid #e0e0e0;
}

.form-group-seo label {
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  font-size: 1rem;
}

.seo-input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.seo-input-group input,
.seo-input-group textarea {
  flex-grow: 1;
  max-width: 600px;
  background: #fff;
  transition: border-color 0.2s;
  resize: vertical;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
}

.seo-input-group textarea {
  height: 90px;
}
/* ===== Acciones ===== */
.seo-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 5px;
  flex-direction: column;
}

.seo-actions button,
.seo-actions label {
  border: none;
  background: #e0e0e0;
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s ease;
}

.seo-actions button:hover,
.seo-actions label:hover {
  background: #ccc;
}

.seo-actions img,
button img,
label img {
  width: 28px;
  height: 28px;
  cursor: pointer;
}

/* ===== Imágenes ===== */
.seo-img {
  max-width: 150px;
  max-height: 150px;
  border-radius: 6px;
  border: 1px solid #ccc;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  margin-top: 10px;
  margin-bottom: 12px;
}

/* ===== Ocultos ===== */
.seo-hidden {
  display: none;
}
/* ===== Acordeones ===== */
.accordion {
  display: block;
  width: 100%;
  text-align: center;
  background-color: #e6f0fa; /* gris azulado cerrado */
  border: 1px solid #ccc; /* stroke */
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  color: #333;
  margin-bottom: 14px; /* separación entre acordeones */
  box-shadow: 0 2px 5px rgba(0,0,0,0.08); /* sombra suave */
  transition: all 0.3s ease;
}

.accordion.active {
  background-color: #f2f2f2; /* gris claro al abrir */
  border-color: #bbb;
  font-weight: bold;
}

.panel {
  display: none;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  background-color: #fdfdfd;
}

/* ===== Encabezados centrados con emoji ===== */
.section-title-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #2c3e50;
  margin: 30px 0 20px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 10px;
}

/* ===== Texto de ayuda / notas ===== */
.hint {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}
