/* Estilos personalizados adicionales */

/* Variables de color para tema emerald */
:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
}

/* Ajustes generales */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
}

/* Estilos para el navbar */
.navbar {
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  color: var(--emerald-600) !important;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--emerald-600) !important;
}

/* Estilos para botones */
.btn-success {
  background-color: var(--emerald-600) !important;
  border-color: var(--emerald-600) !important;
}

.btn-success:hover {
  background-color: var(--emerald-700) !important;
  border-color: var(--emerald-700) !important;
}

.btn-outline-success {
  color: var(--emerald-600) !important;
  border-color: var(--emerald-600) !important;
}

.btn-outline-success:hover {
  background-color: var(--emerald-600) !important;
  color: white !important;
}

/* Efectos de hover para tarjetas */
.hover-card {
  transition: all 0.3s ease;
  border-radius: 0.5rem;
}

.hover-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1) !important;
}

/* Estilos para la sección de servicios */
.service-image-container {
  height: 200px;
  overflow: hidden;
}

.service-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.hover-card:hover .service-image-container img {
  transform: scale(1.1);
}

/* Estilos para inputs con iconos */
.input-icon-container {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 10;
}

.input-with-icon {
  padding-left: 3rem !important;
}

/* Clases de utilidad */
.text-emerald-400 {
  color: var(--emerald-400) !important;
}

.text-emerald-500 {
  color: var(--emerald-500) !important;
}

.text-emerald-600 {
  color: rgba(5, 150, 105, 1) !important;
}

.bg-emerald-50 {
  background-color: var(--emerald-50) !important;
}

.bg-emerald-100 {
  background-color: rgba(209, 250, 229, 1) !important;
}

.bg-emerald-600 {
  background-color: var(--emerald-600) !important;
}

/* Responsive ajustes */
@media (max-width: 767.98px) {
  .py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  h1.text-4xl {
    font-size: 2.25rem;
  }

  h2.text-3xl {
    font-size: 1.875rem;
  }

  .service-image-container {
    height: 180px;
  }
}

/* Animaciones */
.transition-colors {
  transition: color 0.3s ease;
}

/* Estilos para formularios */
.form-control:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.form-select:focus {
  border-color: var(--emerald-400);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.25);
}

.form-check-input:checked {
  background-color: var(--emerald-600);
  border-color: var(--emerald-600);
}

/* Estilos para paginación */
.page-link {
  color: var(--emerald-600);
}

.page-item.active .page-link {
  background-color: var(--emerald-600);
  border-color: var(--emerald-600);
}

/* Estilos para alertas */
.alert-success {
  background-color: var(--emerald-100);
  border-color: var(--emerald-200);
  color: var(--emerald-800);
}

/* Estilo para el sidebar del dashboard */
.sidebar {
  background-color: white;
  height: 100%;
  border-right: 1px solid #e5e7eb;
}

.sidebar-link {
  color: #4b5563;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  margin-bottom: 0.25rem;
}

.sidebar-link:hover {
  background-color: #f3f4f6;
  color: #111827;
  text-decoration: none;
}

.sidebar-link.active {
  background-color: var(--emerald-100);
  color: var(--emerald-800);
  font-weight: 500;
}

.sidebar-link i {
  margin-right: 0.75rem;
  font-size: 1rem;
  width: 20px;
  text-align: center;
}

/* Utilidades adicionales */
.space-y-1 > * + * {
  margin-top: 0.25rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.space-y-4 > * + * {
  margin-top: 1rem;
}

/* Estilos para modales */
.modal-header {
  border-bottom: 1px solid #e5e7eb;
}

.modal-footer {
  border-top: 1px solid #e5e7eb;
}

/* Estilo para tablas */
.table-hover tbody tr:hover {
  background-color: rgba(16, 185, 129, 0.05);
}

/* Asegurar que las imágenes se muestren correctamente */
img {
  max-width: 100%;
  height: auto;
}

/* Estilos específicos para la imagen del hero */
.position-relative img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* Asegurar que los fondos de gradiente se muestren correctamente */
.bg-gradient-to-r {
  background: linear-gradient(to right, #10b981, #0d9488) !important;
}
