/*
Theme Name: Modern Dental Theme
Author: Your Name
Description: A modern, responsive dental practice theme with enhanced UI/UX
Version: 2.0
*/

/* ===== CSS RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #2d3541;
  background-color: #ffffff;
  overflow-x: hidden;
}

/* Firefox scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f1f1f1;
}

/* ===== SCROLL FADE EFFECTS ===== */
/* Smooth fade-in animation for scroll elements */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Different fade directions */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.fade-in-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right.fade-in-visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-up {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-down {
  opacity: 0;
  transform: translateY(-50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-down.fade-in-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scale fade effect */
.fade-in-scale {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-scale.fade-in-visible {
  opacity: 1;
  transform: scale(1);
}

/* Rotate fade effect */
.fade-in-rotate {
  opacity: 0;
  transform: rotate(-5deg) scale(0.9);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-rotate.fade-in-visible {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

/* Staggered animations for multiple elements */
.fade-in-stagger-1 {
  transition-delay: 0.1s;
}

.fade-in-stagger-2 {
  transition-delay: 0.2s;
}

.fade-in-stagger-3 {
  transition-delay: 0.3s;
}

.fade-in-stagger-4 {
  transition-delay: 0.4s;
}

.fade-in-stagger-5 {
  transition-delay: 0.5s;
}

/* Smooth scroll behavior for the entire page */
html {
  scroll-behavior: smooth;
}

/* Enhanced scrollbar styling */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: var(--primary-color);
  border-radius: 6px;
  transition: background 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-dark);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #2d3541;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
}

/* ===== ANIMATIONS ===== */
@keyframes float {
  0%, 100% {
    transform: translateY(0px) translateX(0px);
  }
  25% {
    transform: translateY(-10px) translateX(5px);
  }
  50% {
    transform: translateY(-5px) translateX(-5px);
  }
  75% {
    transform: translateY(-15px) translateX(3px);
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-fade-in-up {
  animation: fade-in-up 0.8s ease-out forwards;
}

.fade-in-up {
  animation: fade-in-up 1s ease-out forwards
}

p {
  margin-bottom: 1rem;
  font-size: 1.1rem;
  line-height: 1.7;
}

a {
  color: #80b7e5;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ===== COLOR VARIABLES - PALETA UNIFICADA ===== */
:root {
  /* Colores principales - Azul suave y consistente */
  --primary-color: #80b7e5;
  --primary-light: #a8cced;
  --primary-dark: #5a9bd4;
  --primary-darker: #4a8bc2;
  
  /* Colores secundarios - Grises elegantes */
  --secondary-color: #2d3541;
  --secondary-light: #4a5568;
  --secondary-dark: #1a202c;
  
  /* Colores de fondo y neutros */
  --background-primary: #ffffff;
  --background-secondary: #f8fafc;
  --background-tertiary: #f1f5f9;
  --accent-color: #f8fafc;
  
  /* Colores de texto */
  --text-primary: #2d3541;
  --text-secondary: #4a5568;
  --text-light: #6b7280;
  --text-muted: #9ca3af;
  
  /* Colores de borde */
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Colores de estado */
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --error-color: #ef4444;
  --info-color: #80b7e5;
  
  /* Gradientes unificados */
  --gradient-primary: linear-gradient(135deg, #80b7e5 0%, #5a9bd4 100%);
  --gradient-secondary: linear-gradient(135deg, #2d3541 0%, #1a202c 100%);
  --gradient-soft: linear-gradient(135deg, rgba(128, 183, 229, 0.1) 0%, rgba(248, 250, 252, 0.8) 100%);
  
  /* Sombras consistentes */
  --shadow-sm: 0 1px 2px 0 rgba(45, 53, 65, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(45, 53, 65, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(45, 53, 65, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(45, 53, 65, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(45, 53, 65, 0.25);
}

/* ===== MODERN UI COMPONENTS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  gap: 0.5rem;
}

.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background: var(--primary-color);
  color: white;
  text-decoration: none;
}

.btn-large {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* Primary button variants */
.btn-primary-solid {
  background: var(--primary-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-primary-solid:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-primary-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Secondary button variants */
.btn-secondary-solid {
  background: var(--secondary-color);
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-secondary-solid:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary-outline {
  background: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.btn-secondary-outline:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* WhatsApp button styling */
.btn-whatsapp {
  background: #25D366;
  color: white;
  border: none;
  box-shadow: var(--shadow-md);
}

.btn-whatsapp:hover {
  background: #128C7E;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* Link button styling */
.btn-link {
  background: transparent;
  color: var(--primary-color);
  border: none;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.btn-link:hover {
  color: var(--primary-dark);
  text-decoration-color: var(--primary-dark);
}

/* Button sizes */
.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-xl {
  padding: 1.25rem 2.5rem;
  font-size: 1.25rem;
}

/* Button shapes */
.btn-rounded {
  border-radius: 9999px;
}

.btn-pill {
  border-radius: 1rem;
}

.btn-square {
  border-radius: 0.5rem;
}

/* Button states */
.btn:active {
  transform: translateY(0);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== CARD COMPONENTS ===== */
.card {
  background: white;
  border-radius: 1rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
}

.card-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.card-body {
  padding: 1.5rem;
}

.card-footer {
  padding: 1rem 1.5rem;
  background: var(--accent-color);
  border-top: 1px solid var(--border-color);
}

/* ===== NAVIGATION ENHANCEMENTS ===== */
.nav-modern {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-link {
  position: relative;
  padding: 0.5rem 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== FORM ENHANCEMENTS ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(128, 183, 229, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ===== ACCORDION ENHANCEMENTS ===== */
.accordion {
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  background: white;
  transition: all 0.3s ease;
}

.accordion-header:hover {
  background: var(--accent-color);
}

.accordion-active\:text-indigo-600 {
  color: var(--primary-color) !important;
}

.group:hover .accordion-active\:text-indigo-600 {
  color: var(--primary-dark) !important;
}

/* ===== HERO SECTION ENHANCEMENTS ===== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, rgba(128, 183, 229, 0.1) 0%, rgba(45, 53, 65, 0.05) 100%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ===== SECTION SPACING ===== */
.section {
  padding: 5rem 0;
}

.section-sm {
  padding: 3rem 0;
}

.section-lg {
  padding: 7rem 0;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

.animate-fade-in-left {
  animation: fadeInLeft 0.6s ease-out;
}

.animate-fade-in-right {
  animation: fadeInRight 0.6s ease-out;
}



/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .section {
    padding: 3rem 0;
  }
  
  .hero-section {
    min-height: 80vh;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  .card {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 2rem 0;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .btn-large {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
  }
  
  .btn-xl {
    padding: 1rem 2rem;
    font-size: 1.125rem;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient-primary {
  background: var(--gradient-primary);
}

.bg-gradient-secondary {
  background: var(--gradient-secondary);
}

.shadow-custom {
  box-shadow: 0 10px 40px rgba(128, 183, 229, 0.2);
}

.border-gradient {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              var(--gradient-primary) border-box;
}

/* ===== ACCESSIBILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.focus-visible:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* ===== PRINT STYLES ===== */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    font-size: 12pt;
    line-height: 1.4;
  }
  
  h1, h2, h3 {
    page-break-after: avoid;
  }
}

/* Contact page enhanced hovers */
.hover\:bg-primary\/5:hover { background-color: rgba(128,183,229,0.05); }
.hover\:border-primary\/40:hover { border-color: rgba(128,183,229,0.4); }
.focus\:ring-primary:focus { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.focus\:ring-green-400:focus { outline: 2px solid #4ade80; outline-offset: 2px; }
.focus\:ring-offset-1:focus { box-shadow: 0 0 0 2px #fff inset; }

/* Card hover elevation */
.card-hover-elevate { transition: box-shadow .3s ease, transform .3s ease; }
.card-hover-elevate:hover { box-shadow: var(--shadow-xl); transform: translateY(-4px); }