/* Equilibrio Consciente - Main Stylesheet */

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Body lock for mobile menu */
body.menu-open {
  overflow: hidden;
}

/* Base typography */
body {
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #E29578;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: #E29578;
  color: #fff;
  padding: 0.75rem 1.5rem;
  z-index: 100;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0 0 8px 0;
  transition: top 0.3s ease;
}

.skip-link:focus {
  top: 0;
}

/* Mobile menu transitions */
#mobile-menu {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

#mobile-menu.active {
  opacity: 1;
  pointer-events: all;
}

/* Cookie banner animation */
#cookie-banner {
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

#cookie-banner.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Image placeholder styling */
img[src=""] {
  background: linear-gradient(135deg, #EDF6F9 0%, #83C5BE33 50%, #E2957833 100%);
  min-height: 250px;
  display: block;
}

/* Card hover effects */
.card-hover {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

/* Button pulse effect */
.btn-pulse {
  position: relative;
  overflow: hidden;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn-pulse:hover::after {
  width: 300px;
  height: 300px;
}

/* Gradient text utility */
.text-gradient {
  background: linear-gradient(135deg, #E29578, #83C5BE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Scroll animations */
.scroll-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Form styling */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #E29578;
  box-shadow: 0 0 0 3px rgba(226, 149, 120, 0.15);
}

/* Error state for form fields */
.field-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.show {
  display: block;
}

/* Success state for form */
.success-message {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 1rem 1.5rem;
  border-radius: 1rem;
  display: none;
}

.success-message.show {
  display: block;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #EDF6F9;
}

::-webkit-scrollbar-thumb {
  background: #83C5BE;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #6BAFA8;
}

/* Selection color */
::selection {
  background: rgba(226, 149, 120, 0.2);
  color: #4A4A4A;
}

/* Header scroll state */
header.scrolled {
  box-shadow: 0 1px 20px rgba(0, 0, 0, 0.06);
}

/* Responsive image handling */
img {
  max-width: 100%;
  height: auto;
}

/* Print styles */
@media print {
  header,
  #mobile-menu,
  #cookie-banner,
  footer {
    display: none !important;
  }

  main {
    padding-top: 0 !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-fade-in {
    opacity: 1;
    transform: none;
  }
}
