/* Reset y Variables */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
}

/* Contenedor común para Header y Footer */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
}

/* Header */
.header {
  background: #ffffff;
  border-bottom: 1px solid #ddd;
}
.header .logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}
.header .logo img {
  height: 60px;
  margin-right: 10px;
}
.header .nav ul {
  list-style: none;
}
.header .nav a {
  text-decoration: none;
  color: #333;
}
.header .nav a:hover,
.header .nav a.active {
  color: #cc9900;
}

/* Asegura que el contenedor del header tenga flex y distribuya los elementos */
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Contenido Principal */
.content {
  padding: 40px 0;
}
.content section {
  background: #fff;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 4px;
}

/* Footer */
.footer {
  background: #545454;
  color: #fff;
  font-size: 0.9rem; /* Tamaño base del footer */
  text-align: center;
}
.footer .footer-container {
  /* IMPORTANTE: Usamos la misma estructura de la clase .container mediante HTML */
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 60px;
}
.footer .footer-left, 
.footer .footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer .footer-right {
  align-self: flex-start;
  margin-top: 15px;  /* Ajustá este valor según lo necesites */
}
/* Asegura que el contenido del lado izquierdo se alinee a la izquierda */
.footer .footer-left {
  text-align: left;
}

/* Footer izquierdo - dirección y teléfono */
.footer .footer-left > p {
  padding-left: 40px;
  font-size: 0.9rem !important; /* Mismo tamaño que el copyright */
  margin: 0;
  line-height: 1.4;
}

/* Footer inferior - copyright */
.footer .footer-bottom {
  text-align: left;
  font-size: 0.9rem !important; /* Mismo tamaño exacto */
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.footer .footer-bottom p {
  font-size: 0.9rem !important; /* Mismo tamaño exacto */
  margin: 0;
  line-height: 1.4;
}

.footer .footer-bottom a {
  color: inherit;
  text-decoration: none;
  font-size: 0.9rem !important; /* Mismo tamaño exacto */
}

.footer .footer-logo img {
  height: 50px;  /* Cambia este valor según el tamaño deseado */
  width: auto;   /* Mantiene la proporción del logo */
  margin-bottom: 10px;
}
/* Botón */
.btn {
  display: inline-block;
  background: #ffcc00; /* Volver al amarillo original */
  color: #333;
  border: 1px solid #0d0d0d; /* Volver al amarillo original */
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 20px;
  box-shadow: none;
  transition: all 0.3s ease;
  font-size: 15px;
}
.btn:hover {
  background: #e6b800; /* Hover ligeramente más oscuro pero no tanto como antes */
}

/* Placeholders para elementos */
.placeholder-form,
.placeholder-list,
.placeholder-templates,
.placeholder-emails {
  background: #eee;
  padding: 15px;
  border: 1px dashed #ccc;
  margin-top: 15px;
}

/* Estilos para menú de usuario logueado */
.user-menu {
  position: relative;
  display: inline-block;
}

.user-greeting {
  color: #333;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 12px;
  background: #cc9900;
  border-radius: 20px;
  font-size: 0.9rem;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border-radius: 8px;
  min-width: 160px;
  z-index: 1000;
  padding: 8px 0;
  margin-top: 5px;
}

.user-menu:hover .user-dropdown {
  display: block;
}

.user-dropdown a {
  display: block;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background-color 0.3s ease;
}

.user-dropdown a:hover {
  background: #f8f9fa;
  color: #cc9900;
}

/* Responsive para menú de usuario */
@media (max-width: 768px) {
  .user-menu {
    width: 100%;
    text-align: left;
  }
  
  .user-greeting {
    display: block;
    background: transparent;
    color: #333;
    padding: 10px 0;
    border-radius: 0;
    font-size: 1rem;
  }
  
  .user-dropdown {
    position: static;
    display: block;
    box-shadow: none;
    background: transparent;
    padding: 0;
    margin-top: 0;
    padding-left: 20px;
  }
  
  .user-dropdown a {
    padding: 8px 0;
    color: #666;
    border-bottom: 1px solid #eee;
  }
  
  .user-dropdown a:last-child {
    border-bottom: none;
  }
}

/* Responsive utilizando Flexbox y Grid */
@media (min-width: 768px) {
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .content section {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.footer .footer-left .yellowcert {
  font-size: 1.2rem;
  font-weight: bold;
}
.footer .footer-left > p {
  padding-left: 40px;  /* Ajusta este valor según lo necesites */
}

/* Oculta el icono de menú en pantallas grandes */
.menu-toggle {
  display: none;
}

/* Estilos para pantallas móviles */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    cursor: pointer;
  }
  
  /* CONTENEDOR del menú - sin fondo ni padding */
  .mobile-menu-primary {
    display: block;
    position: relative; /* Para que sirva como referencia para el menú absoluto */
  }
  
  /* Menú oculto por defecto */
  .nav-menu {
    display: none; /* Oculto por defecto */
    list-style: none;
    flex-direction: column;
    gap: 15px;
    margin: 0;
    padding: 0;
    /* Quita el background y padding de aquí */
  }
  
  /* Cuando se agrega la clase "open" se muestra el menú FLOTANTE */
  .nav-menu.open {
    display: flex;
    background: rgba(250, 236, 179, 0.95); /* Amarillo transparente */
    padding: 15px 10px;
    border-radius: 5px;
    position: absolute; /* Flota sobre el contenido */
    top: 0; /* Posición desde el contenedor padre */
    left: 0;
    width: 100%;
    z-index: 999; /* Aparece por encima de todo */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Sombra para destacar */
  align-items: center; /* Centra verticalmente */
  justify-content: center; /* Centra horizontalmente */
}
  
  .nav-menu li {
    text-align: left;
    padding: 5px 0;
  }
  
  .nav-menu a {
    color: #333;
    text-decoration: none;
    font-size: 18px;
  }
  
  .nav-menu a:hover {
    color: #cc9900;
  }
  
  .nav-menu p {
    color: #333;
    margin: 0;
    font-size: 16px;
  }
  
  .menu-toggle img {
    height: 50px;
    width: auto;
  }
}

/* Ocultar menú en pantallas grandes */
@media (min-width: 769px) {
  .mobile-menu-primary {
    display: none;
  }
}

/* Navegación desktop - agregar estos estilos */
.nav {
  display: none;
}

.nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.nav a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
}

.nav a:hover,
.nav a.active {
  color: #cc9900;
}

/* Mostrar navegación desktop en pantallas grandes */
@media (min-width: 769px) {
  .nav {
    display: block;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .mobile-menu-primary {
    display: none;
  }
}

/* Asegurar que el menú móvil esté oculto en desktop */
@media (min-width: 769px) {
  .mobile-menu-primary {
    display: none !important;
  }
}
/* Language selector */
.language-selector {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: 20px;
}

.lang-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.lang-link:hover {
  color: #ffcc00;
}

.lang-link.active {
  text-decoration: underline;
  color: #333;
  font-weight: 600;
}

.lang-flag {
  width: 18px;
  height: auto;
  border-radius: 2px;
}

/* Mostrar/ocultar según dispositivo */
.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* Responsive para idiomas */
@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }
  
  .mobile-only {
    display: flex;
    justify-content: center;
    margin-top: 10px;
  }
  
  .mobile-language-divider {
    border-top: 1px solid rgba(255,255,255,0.3);
    padding-top: 15px;
    margin-top: 15px;
  }
  
  .mobile-only .lang-link {
    padding: 6px 10px;
  }
  
  .mobile-only .lang-flag {
    width: 16px;
  }
}
/* Footer minimal para editor */
.footer.footer-minimal {
    padding: 20px 0;
    background: #333;
    color: #fff;
}

.footer-container-minimal {
    text-align: center;
}

.footer.footer-minimal .footer-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.footer.footer-minimal .footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer.footer-minimal p {
    margin: 5px 0;
    font-size: 14px;
}

.footer.footer-minimal a {
    color: #ffc107;
    text-decoration: none;
}

.footer.footer-minimal a:hover {
    color: #e6b800;
}
/* Footer editor - Espacio específico de 20px entre logo y línea gris */
.footer.footer-editor .footer-container {
    padding-bottom: 10px;
}

.footer.footer-editor .footer-left .footer-logo {
    margin-bottom: 0; /* Eliminar margen del logo para control preciso */
}