/* Estilos principales del sistema de catálogo - Mejorado UX/UI */

:root {
  /* Paleta de colores moderna y vibrante */
  --primary-color: #333745; /* Gris Grafito - Primario */
  --secondary-color: #58dbc7; /* Verde Menta - Acento */
  --accent-color: #58dbc7; /* Verde Menta - Acento */
  --background-color: #fefdfb; /* Blanco Hueso - Secundario */
  --surface-color: #ffffff; /* Blanco puro para tarjetas */

  /* Colores complementarios modernos */
  --coral-accent: #ff6b6b; /* Coral vibrante para alertas/errores */
  --amber-accent: #ffd93d; /* Amarillo vibrante para warnings */
  --purple-accent: #6c5ce7; /* Púrpura moderno para elementos especiales */
  --blue-accent: #74b9ff; /* Azul cielo para información */

  /* Escala de grises moderna */
  --gray-50: #f8f9fa;
  --gray-100: #e9ecef;
  --gray-200: #dee2e6;
  --gray-300: #ced4da;
  --gray-400: #adb5bd;
  --gray-500: #6c757d;
  --gray-600: #495057;
  --gray-700: #333745; /* Nuestro gris grafito */
  --gray-800: #2a2d3a; /* Versión más oscura */
  --gray-900: #1a1d29; /* Versión más oscura aún */

  /* Colores semánticos */
  --success-color: #58dbc7; /* Verde menta para éxito */
  --warning-color: #ffd93d; /* Amarillo para advertencias */
  --error-color: #ff6b6b; /* Coral para errores */
  --info-color: #74b9ff; /* Azul para información */

  /* Colores de texto */
  --text-primary: #333745; /* Gris grafito para texto principal */
  --text-secondary: #6c757d; /* Gris medio para texto secundario */
  --text-muted: #adb5bd; /* Gris claro para texto deshabilitado */
  --text-light: #fefdfb; /* Blanco hueso para texto en fondos oscuros */

  /* WhatsApp y redes sociales */
  --whatsapp-green: #25d366;
  --facebook-blue: #1877f2;
  --instagram-gradient: linear-gradient(45deg, #f56040, #c13584, #833ab4);
  --twitter-blue: #1da1f2;

  /* Sección CTA moderna */
  .cta-section {
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
  }

  .cta-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
  }

  .cta-section .container {
    position: relative;
    z-index: 1;
  }

  .cta-section h2 {
    color: var(--text-light);
    margin-bottom: 1rem;
  }

  .cta-section p {
    color: rgba(254, 253, 251, 0.9);
    margin-bottom: 2rem;
  }

  /* Section titles modernos */
  .section-title {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
  }

  .section-title::after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-secondary);
    border-radius: 2px;
  }

  /* Stats cards modernizadas */
  .stats-card {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
  }

  .stats-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }

  .stats-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: block;
  }

  .stats-card h3 {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .stats-card p {
    color: var(--text-secondary);
    margin: 0;
  }

  /* Service cards modernizadas */
  .service-card {
    background: var(--surface-color);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition-normal);
    border: 1px solid var(--gray-200);
    height: 100%;
  }

  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--secondary-color);
  }

  .service-card i {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    display: block;
  }

  .service-card h4,
  .service-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
  }

  /* Property card content */
  .property-card-content {
    padding: 1.5rem;
  }

  .property-card-title {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
  }

  .property-card-description {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .property-card-price {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 1rem;
  }

  .property-card-location {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }

  .property-card-location i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
  }

  .property-card-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }

  .property-card-image {
    position: relative;
    overflow: hidden;
  }

  .property-card-image img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: var(--transition-slow);
  }

  .property-card:hover .property-card-image img {
    transform: scale(1.05);
  }
  --shadow-sm: 0 1px 2px 0 rgba(51, 55, 69, 0.05);
  --shadow: 0 1px 3px 0 rgba(51, 55, 69, 0.1),
    0 1px 2px 0 rgba(51, 55, 69, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(51, 55, 69, 0.1),
    0 2px 4px -1px rgba(51, 55, 69, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(51, 55, 69, 0.1),
    0 4px 6px -2px rgba(51, 55, 69, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(51, 55, 69, 0.1),
    0 10px 10px -5px rgba(51, 55, 69, 0.04);

  /* Gradientes modernos */
  --gradient-primary: linear-gradient(135deg, #333745 0%, #58dbc7 100%);
  --gradient-secondary: linear-gradient(135deg, #58dbc7 0%, #74b9ff 100%);
  --gradient-coral: linear-gradient(135deg, #ff6b6b 0%, #ffd93d 100%);
  --gradient-purple: linear-gradient(135deg, #6c5ce7 0%, #58dbc7 100%);

  /* Transiciones suaves */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Tipografía mejorada */
  --font-family-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: "SF Mono", "Monaco", "Inconsolata", "Roboto Mono",
    monospace;
}

/* Reset y configuración base mejorada */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  line-height: 1.15;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family-sans);
  font-weight: 400;
  line-height: 1.625;
  color: var(--text-primary);
  background-color: var(--background-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header y navegación mejorada */
.navbar {
  background-color: rgba(254, 253, 251, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition-normal);
  padding: 1rem 0;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
  background-color: rgba(254, 253, 251, 0.98) !important;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary-color) !important;
  letter-spacing: -0.025em;
  transition: var(--transition-fast);
}

.navbar-brand:hover {
  color: var(--secondary-color) !important;
  transform: translateY(-1px);
}

.navbar-brand i {
  background: var(--gradient-secondary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-nav .nav-link {
  font-weight: 500;
  color: var(--text-primary) !important;
  padding: 0.5rem 1rem !important;
  margin: 0 0.25rem;
  border-radius: 0.5rem;
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--secondary-color) !important;
  background-color: var(--gray-50);
  transform: translateY(-1px);
}

.navbar-nav .nav-link i {
  margin-right: 0.5rem;
  opacity: 0.8;
}

/* Hero section mejorada */
.hero-section {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  margin-bottom: 2.5rem;
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-section .btn {
  padding: 1rem 2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: var(--transition-normal);
  border: 2px solid transparent;
  text-transform: none;
  letter-spacing: 0.025em;
}

.hero-section .btn-light {
  background-color: var(--surface-color);
  color: var(--primary-color);
  box-shadow: var(--shadow-lg);
}

.hero-section .btn-light:hover {
  background-color: var(--secondary-color);
  color: var(--text-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
}

.hero-section .btn-outline-light {
  color: var(--text-light);
  border-color: rgba(254, 253, 251, 0.3);
  background-color: rgba(254, 253, 251, 0.1);
  backdrop-filter: blur(10px);
}

.hero-section .btn-outline-light:hover {
  background-color: rgba(254, 253, 251, 0.2);
  border-color: rgba(254, 253, 251, 0.5);
  transform: translateY(-2px);
  color: var(--text-light);
}

/* Tarjetas de propiedades mejoradas */
.property-card {
  border: none;
  border-radius: 1rem;
  overflow: hidden;
  background: var(--surface-color);
  box-shadow: var(--shadow);
  transition: all var(--transition-normal);
  margin-bottom: 2rem;
  position: relative;
}

.property-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    transparent 49%,
    rgba(88, 219, 199, 0.05) 50%,
    transparent 51%
  );
  opacity: 0;
  transition: var(--transition-normal);
  pointer-events: none;
}

.property-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.property-card:hover::before {
  opacity: 1;
}

.property-card img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: var(--transition-slow);
}

.property-card:hover img {
  transform: scale(1.05);
}

.property-card .card-body {
  padding: 2rem;
  position: relative;
  z-index: 1;
}

.property-type {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-sm);
}

.property-type.casa {
  background: linear-gradient(135deg, var(--success-color), #48bb78);
  color: white;
}

.property-type.terreno {
  background: linear-gradient(135deg, var(--warning-color), #ed8936);
  color: white;
}

.operation-type {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  border-radius: 1.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-left: 0.75rem;
  backdrop-filter: blur(10px);
}

.operation-type.venta {
  background: rgba(229, 62, 62, 0.1);
  color: var(--accent-color);
  border: 1px solid rgba(229, 62, 62, 0.2);
}

.operation-type.renta {
  background: rgba(49, 130, 206, 0.1);
  color: var(--secondary-color);
  border: 1px solid rgba(49, 130, 206, 0.2);
}

.price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary-color);
  margin: 1rem 0;
  letter-spacing: -0.025em;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  color: var(--gray-600);
}

.feature {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  min-width: fit-content;
}

.feature i {
  margin-right: 0.5rem;
  color: var(--secondary-color);
  width: 16px;
  text-align: center;
}

/* Página de detalles */
.property-detail {
  margin: 2rem 0;
}

.property-gallery {
  margin: 2rem 0;
}

.main-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.thumbnail-gallery {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.5rem 0;
}

.thumbnail {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 5px;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.thumbnail:hover {
  opacity: 0.8;
}

/* Formularios */
.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(88, 219, 199, 0.25);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
}

.btn-primary:hover {
  background: var(--gradient-secondary);
  border: none;
  transform: translateY(-1px);
}

.btn-danger {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

/* Panel de administración */
.admin-header {
  background-color: var(--primary-color);
  color: white;
  padding: 1rem 0;
  margin-bottom: 2rem;
}

.admin-sidebar {
  background-color: var(--light-bg);
  min-height: 100vh;
  padding: 1rem;
}

.admin-content {
  padding: 2rem;
}

.table {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.table thead th {
  background-color: var(--primary-color);
  color: white;
  border: none;
  font-weight: 500;
}

.table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.1);
}

/* Login */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
}

.login-form {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

/* Alertas */
.alert {
  border: none;
  border-radius: 5px;
}

.alert-success {
  background-color: rgba(39, 174, 96, 0.1);
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-danger {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
}

.alert-warning {
  background-color: rgba(243, 156, 18, 0.1);
  color: var(--warning-color);
  border-left: 4px solid var(--warning-color);
}

/* Footer */
footer {
  background: var(--gradient-primary);
  color: var(--text-light);
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-section h1 {
    font-size: 2rem;
  }

  .property-features {
    justify-content: center;
  }

  .admin-sidebar {
    min-height: auto;
  }

  .table-responsive {
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 40px 0;
  }

  .property-card .card-body {
    padding: 1rem;
  }

  .price {
    font-size: 1.2rem;
  }
}

/* Utilidades */
.text-muted {
  color: var(--text-muted) !important;
}

.bg-light {
  background-color: var(--gray-50) !important;
}

.shadow {
  box-shadow: var(--shadow) !important;
}

.rounded {
  border-radius: 10px !important;
}

/* Animaciones */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Loading spinner */
.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--secondary-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  background: var(--whatsapp-green);
  color: white;
  border: none;
  border-radius: 50%;
  width: 65px;
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-normal);
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  transform: scale(0);
  transition: var(--transition-normal);
}

.whatsapp-float:hover::before {
  transform: scale(1);
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: var(--shadow-xl);
  background: #20ba5a;
  color: white;
  text-decoration: none;
}

.whatsapp-float i {
  font-size: 1.8rem;
  position: relative;
  z-index: 1;
}

.whatsapp-float .tooltip-text {
  position: absolute;
  right: 75px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gray-900);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-lg);
}

.whatsapp-float .tooltip-text::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: var(--gray-900);
}

.whatsapp-float:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(-5px);
}

/* Animación de pulso para el botón de WhatsApp */
@keyframes pulse-whatsapp {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.whatsapp-float.pulse {
  animation: pulse-whatsapp 2s infinite;
}

/* Mejoras para estadísticas */
.stats-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid var(--gray-200);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--secondary-color), var(--info-color));
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.stats-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.stats-card:hover::before {
  transform: scaleX(1);
}

.stats-card i {
  font-size: 3rem;
  margin-bottom: 1rem;
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--info-color)
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stats-card h3 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.stats-card p {
  color: var(--gray-600);
  font-weight: 500;
  margin: 0;
}

/* Mejoras para botones */
.btn {
  font-weight: 600;
  border-radius: 0.75rem;
  padding: 0.75rem 1.5rem;
  transition: all var(--transition-normal);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  text-transform: none;
  letter-spacing: 0.025em;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: var(--transition-normal);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--secondary-color),
    var(--info-color)
  );
  border-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-success {
  background: linear-gradient(135deg, var(--success-color), #48bb78);
  border-color: var(--success-color);
}

.btn-success:hover {
  background: linear-gradient(135deg, #2f855a, #38a169);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-warning {
  background: linear-gradient(135deg, var(--warning-color), #ed8936);
  border-color: var(--warning-color);
}

.btn-warning:hover {
  background: linear-gradient(135deg, #c05621, #dd6b20);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Mejoras para formularios */
.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.1);
  background-color: #ffffff;
}

.form-control {
  border: 2px solid var(--gray-200);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  transition: var(--transition-fast);
  font-weight: 500;
}

.form-control:hover {
  border-color: var(--gray-300);
}

/* Responsive mejorado */
@media (max-width: 768px) {
  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .property-features {
    justify-content: center;
    gap: 1rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
  }

  .whatsapp-float i {
    font-size: 1.6rem;
  }

  .whatsapp-float .tooltip-text {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .property-card .card-body {
    padding: 1.5rem;
  }

  .price {
    font-size: 1.5rem;
  }

  .stats-card {
    padding: 1.5rem;
  }

  .stats-card h3 {
    font-size: 2rem;
  }
}

/* Estilos adicionales modernos con nueva paleta */

/* Badge moderno */
.badge {
  background: var(--gradient-secondary);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-weight: 500;
  font-size: 0.8rem;
}

/* Alert moderno */
.alert {
  border: none;
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: rgba(88, 219, 199, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--secondary-color);
}

.alert-danger {
  background-color: rgba(255, 107, 107, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--coral-accent);
}

.alert-info {
  background-color: rgba(116, 185, 255, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--blue-accent);
}

.alert-warning {
  background-color: rgba(255, 217, 61, 0.1);
  color: var(--primary-color);
  border-left: 4px solid var(--amber-accent);
}

/* Breadcrumb moderno */
.breadcrumb {
  background-color: var(--gray-50);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.breadcrumb-item a {
  color: var(--secondary-color);
  text-decoration: none;
}

.breadcrumb-item.active {
  color: var(--text-secondary);
}

/* Accordion moderno */
.accordion-item {
  border: 1px solid var(--gray-200);
  border-radius: 0.75rem !important;
  margin-bottom: 0.5rem;
  background-color: var(--surface-color);
}

.accordion-button {
  background-color: var(--surface-color);
  color: var(--primary-color);
  border: none;
  border-radius: 0.75rem !important;
  font-weight: 500;
  padding: 1.25rem 1.5rem;
}

.accordion-button:not(.collapsed) {
  background: var(--gradient-secondary);
  color: var(--text-light);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--secondary-color);
}

.accordion-body {
  padding: 1.5rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Dropdown moderno */
.dropdown-menu {
  border: none;
  border-radius: 0.75rem;
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
  background-color: var(--surface-color);
}

.dropdown-item {
  border-radius: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.dropdown-item:hover {
  background-color: var(--gray-50);
  color: var(--secondary-color);
}

.dropdown-item.active {
  background: var(--gradient-secondary);
  color: var(--text-light);
}

/* Article content styling */
.article-content {
  color: var(--text-secondary);
  line-height: 1.7;
}

.article-content h3 {
  color: var(--primary-color);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin-bottom: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.article-content strong {
  color: var(--primary-color);
}

/* Social links */
.social-links a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.social-links a:hover {
  color: var(--secondary-color);
  transform: translateY(-2px);
}

/* ===== CLASES ADICIONALES PARA CASAS Y TERRENOS ===== */

/* Botones con colores específicos */
.btn-coral {
  background: linear-gradient(135deg, var(--coral-accent), #ff5757);
  color: white;
  border: none;
  transition: var(--transition-fast);
}

.btn-coral:hover {
  background: linear-gradient(135deg, #ff5757, var(--coral-accent));
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
}

.btn-amber {
  background: linear-gradient(135deg, var(--amber-accent), #ffcd02);
  color: var(--gray-800);
  border: none;
  transition: var(--transition-fast);
}

.btn-amber:hover {
  background: linear-gradient(135deg, #ffcd02, var(--amber-accent));
  color: var(--gray-800);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 217, 61, 0.3);
}

/* Colores de texto adicionales */
.text-coral {
  color: var(--coral-accent) !important;
}

.text-amber {
  color: var(--amber-accent) !important;
}

.text-blue {
  color: var(--blue-accent) !important;
}

.text-purple {
  color: var(--purple-accent) !important;
}

/* Colores de fondo */
.bg-coral {
  background-color: var(--coral-accent) !important;
}

.bg-amber {
  background-color: var(--amber-accent) !important;
}

.bg-blue {
  background-color: var(--blue-accent) !important;
}

.bg-purple {
  background-color: var(--purple-accent) !important;
}

/* Gradientes adicionales para heroes */
.hero-gradient {
  background: linear-gradient(135deg, var(--gray-700), var(--accent-color));
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(88, 219, 199, 0.1),
    rgba(51, 55, 69, 0.1)
  );
  z-index: 1;
}

.hero-gradient .container {
  position: relative;
  z-index: 2;
}

.hero-gradient-alt {
  background: linear-gradient(135deg, var(--gray-700), var(--coral-accent));
  position: relative;
  overflow: hidden;
}

.hero-gradient-alt::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 107, 107, 0.1),
    rgba(51, 55, 69, 0.1)
  );
  z-index: 1;
}

.hero-gradient-alt .container {
  position: relative;
  z-index: 2;
}

/* Gradientes para headers de cards */
.bg-gradient-tertiary {
  background: linear-gradient(
    135deg,
    var(--coral-accent),
    var(--amber-accent)
  ) !important;
}

/* Estados vacíos mejorados */
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
}

.empty-state i {
  display: block;
  margin-bottom: 1.5rem;
}

.text-muted-light {
  color: var(--gray-400) !important;
}

/* Mejoras en las sombras para elementos importantes */
.shadow-coral {
  box-shadow: 0 8px 25px rgba(255, 107, 107, 0.15) !important;
}

.shadow-accent {
  box-shadow: 0 8px 25px rgba(88, 219, 199, 0.15) !important;
}
.me-2 {
  max-width: 100px;
}

/* Animaciones adicionales para las páginas */
@keyframes slideInUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.animate-slide-up {
  animation: slideInUp 0.6s ease-out;
}

/* Responsive mejoras para filtros */
@media (max-width: 768px) {
  .hero-gradient,
  .hero-gradient-alt {
    padding: 3rem 0 !important;
  }

  .hero-gradient h1,
  .hero-gradient-alt h1 {
    font-size: 2.5rem !important;
  }

  .card-body .row.g-3 > * {
    margin-bottom: 1rem;
  }
}

/* ===== ESTILOS PARA MENÚ DE ADMINISTRADOR ===== */

/* Menú de admin en la navegación principal */
.navbar-nav .nav-link.text-accent {
  color: var(--accent-color) !important;
  font-weight: 600;
  background: linear-gradient(
    135deg,
    rgba(88, 219, 199, 0.1),
    rgba(88, 219, 199, 0.05)
  );
  border-radius: 6px;
  padding: 8px 12px !important;
  margin: 0 4px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link.text-accent:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    rgba(88, 219, 199, 0.8)
  );
  color: white !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(88, 219, 199, 0.3);
}

.navbar-nav .nav-link.text-accent i {
  color: inherit;
}

/* Dropdown del admin */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 8px;
}

.dropdown-item {
  padding: 12px 20px;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--gray-100);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(
    135deg,
    var(--accent-color),
    rgba(88, 219, 199, 0.9)
  );
  color: white;
  transform: translateX(5px);
}

.dropdown-item i {
  width: 20px;
  text-align: center;
}

.dropdown-divider {
  margin: 8px 0;
  border-color: var(--gray-200);
}

/* Animación para el icono de admin */
@keyframes adminPulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.navbar-nav .nav-link.text-accent i.fa-cog {
  animation: adminPulse 2s infinite;
}

/* Responsive para el menú de admin */
@media (max-width: 991px) {
  .navbar-nav .nav-link.text-accent {
    margin: 4px 0;
    text-align: center;
  }
}

/* ===== ESTILOS PARA VIDEO INTEGRATION ===== */

/* Indicador de video en tarjetas de propiedades */
.video-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #58dbc7, #4fc3b0);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(88, 219, 199, 0.3);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  animation: videoGlow 2s ease-in-out infinite alternate;
  z-index: 10;
}

@keyframes videoGlow {
  0% {
    box-shadow: 0 2px 8px rgba(88, 219, 199, 0.3);
  }
  100% {
    box-shadow: 0 4px 16px rgba(88, 219, 199, 0.5);
  }
}

.video-badge i {
  font-size: 1rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.video-badge:hover {
  transform: scale(1.05);
  transition: transform 0.2s ease;
}

/* Galería de video mejorada */
.gallery-video-item {
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1rem;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.gallery-video-item:hover {
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease;
}

.video-container {
  position: relative;
  background: #000;
}

.video-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 1.5rem;
  z-index: 10;
}

.video-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #58dbc7;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.video-description {
  font-size: 0.9rem;
  margin: 0;
  opacity: 0.9;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Responsive video */
.ratio-16x9 {
  --bs-aspect-ratio: 56.25%;
}

.ratio {
  position: relative;
  width: 100%;
}

.ratio > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Estilos para vista previa de video en admin */
#video-preview-container .card {
  border: 2px solid var(--accent-color);
  background: #f8f9fa;
}

#video-preview-container .card-header {
  background: var(--accent-color);
  color: white;
  font-weight: 600;
}

/* Transiciones suaves para elementos de video */
.gallery-video-item,
.video-badge,
.video-overlay {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects mejorados */
.property-card:hover .video-badge {
  transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .video-badge {
    top: 8px;
    right: 8px;
    padding: 4px 8px;
    font-size: 0.7rem;
  }

  .video-badge i {
    font-size: 0.8rem;
  }

  .video-overlay {
    padding: 1rem;
  }

  .video-title {
    font-size: 1rem;
  }

  .video-description {
    font-size: 0.8rem;
  }
}

/* Compatibilidad con dark mode (future enhancement) */
@media (prefers-color-scheme: dark) {
  .video-badge {
    border: 1px solid rgba(255, 255, 255, 0.3);
  }
}
