/* ==================================================
   Fix imágenes SmartBlog (auto responsive + inline safe)
   ================================================== */
/* 🔧 Fix ultraespecífico para que NO se pise el style inline de las imágenes del blog 
body[class*="module-smartblog"] .articleContent img[style*="width"],
body[class*="module-smartblog"] .articleContent img[style*="height"] {
  all: unset !important;
  display: inline-block !important;
}
*/


/*CSS MY ACCOUNT*/

.account-header {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.account-header h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.account-header p {
  font-size: 1rem;
  color: #555;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  padding: 2rem 0;
}

.account-tile {
  background-color: #f4f9f3;
  padding: 1.5rem 1rem;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  text-decoration: none;
  color: #333;
  border: 1px solid transparent;
}

.account-tile:hover {
  background-color: #e6f4db;
  border-color: #c2e3ab;
}

.account-tile i {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
  display: block;
  color: #6c9e3f;
}

.account-tile span {
  display: block;
  font-weight: 600;
  font-size: 1rem;
}

.account-tile.logout i,
.account-tile.logout span {
  color: #b91c1c;
}

/* --- SECCIÓN MI CUENTA - LA ROCA --- */

.account-header {
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.account-header h1 {
  font-size: 2rem;
  color: #222;
  margin-bottom: 0.5rem;
}

.account-header p {
  font-size: 1rem;
  color: #555;
}

.account-wrapper {
  padding-inline: 1rem;
  margin-top: 2rem;
}

.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.account-tile {
  background-color: #d7ebc7; /* Verde suave */
  padding: 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  color: #1e1e1e;
  transition: background 0.3s;
}

.account-tile:hover {
  background-color: #c2dcaa;
}

.logout-wrapper {
  margin-top: 2rem;
  text-align: center;
}

.logout-button {
  background-color: #5c3d20; /* Marrón como botón Categorías */
  color: #fff;
  padding: 0.75rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: background 0.3s;
}

.logout-button:hover {
  background-color: #4a2f17;
}

/* Corregir centrado de texto y márgenes en botones */
.account-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.2rem;
  min-height: 60px;
}

/* Cierre de sesión con margen inferior extra */
.logout-button {
  display: inline-block;
  text-align: center;
  padding: 0.75rem 2rem;
  margin-bottom: 2rem; /* margen inferior añadido */
}

@media (max-width: 768px) {
  .account-header {
    text-align: center;
    padding-inline: 1rem;
  }
  .account-header h1,
  .account-header p {
    text-align: center;
  }
}


/* === FORMULARIO DE EDICIÓN DE PERFIL - LA ROCA === */

.account-edit-form {
  max-width: 680px;
  margin: 2rem auto;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (max-width: 767px) {
  .account-edit-form {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* === BOTONES DE SECCIÓN (ACORDEÓN) === */
.section-toggle-btn {
  width: 100%;
  text-align: left;
  background-color: #5e3c1d;
  color: #fff;
  border: none;
  padding: 14px 18px;
  font-weight: bold;
  font-size: 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0;
}

.section-toggle-btn:hover {
  background-color: #7a5430;
}

.section-toggle-btn::after {
  content: '▼';
  font-size: 12px;
  transition: transform 0.3s ease;
}

.section-toggle-btn.active::after {
  transform: rotate(180deg);
}

/* === SECCIONES OCULTABLES === */
.profile-section {
  background-color: #fdfdfd;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  overflow: hidden;
  border: 1px solid #e2e2e2;
}

.card-header {
  padding: 0;
  border: none;
  margin: 0;
}

.section-content {
  padding: 1.5rem;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.section-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.section-content.active {
  max-height: 2000px;
}

/* === CAMPOS DE FORMULARIO GENERALES === */
.section-content .form-group {
  margin-bottom: 1rem;
}

.section-content input.form-control,
.section-content select.form-control,
.section-content textarea.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}

.section-content input:focus,
.section-content select:focus {
  outline: none;
  border-color: #5e3c1d;
}

.section-content input::placeholder,
.section-content select::placeholder {
  color: #aaa;
}

.section-content label {
  display: none;
}

/* === NOTA DE CAMPOS REQUERIDOS === */
.required-note {
  font-size: 0.75rem;
  color: red;
  margin-top: 0.5rem;
  text-align: left;
}

/* === BOTÓN DE GUARDAR === */
.account-edit-form .form-footer {
  text-align: right;
  margin-top: 2rem;
}

.account-edit-form button {
  background-color: #5c3d20;
  color: #fff;
  border-radius: 8px;
  padding: 0.75rem 2rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.account-edit-form button:hover {
  background-color: #3f2914;
}

/* === FILA TELÉFONO + EMAIL (ULTIMAS MODIFICACIONES) === */

/* Reset de padding */
.form-group.row .col-12 {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Escritorio: lado a lado */
@media (min-width: 768px) {
  .form-group.row {
    display: flex;
    gap: 16px;
  }
  .form-group.row .col-md-6 {
    padding: 0;
    flex: 1;
  }
}

/* Móvil: stackeados con espacio */
@media (max-width: 767px) {
  .form-group.row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
  .form-group.row .col-12 {
    width: 100%;
  }
  .form-group.row .col-12 input {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .form-group .row > div:not(:last-child) {
    margin-bottom: 1rem !important;
  }
}


/* ========================
   Ajustes mínimos MENÚ MÓVIL (manteniendo theme)
   ======================== */
@media (max-width: 991px){
  /* (Opcional) Asegurar que el absolute ancle al header en todas las vistas */
  #header { position: relative; }

  /* 1) Menú por encima del contenido (sin overlay) */
  #mobile_top_menu_wrapper{
    z-index: 5000; /* sube desde 2 (theme) para evitar solapes con sliders/boxes */
  }

  /* 2) Aire bajo la barra verde (hamburguesa + iconos) */
  .full-header .mobile{ padding: 8px 0; }
  .full-header + #wrapper{ margin-top: 8px; }

  /* 3) Submenús y colapsables con buen stacking */
  .navbar-toggler.collapse-icons,
  .popover.sub-menu, .sub-menu, .js-sub-menu{
    position: relative;
    z-index: 5001;
    background: #fff;
  }
}
