/* ===================================
   NUNAMAKEOVER - DESIGN SYSTEM (PREMIUM MINIMALIST)
   Estética Laser y Spa
   =================================== */

/* CSS Variables - Brand Colors */
:root {
  /* Brand Gradient Colors */
  --color-primary-start: #2e60af;
  --color-primary-end: #1cb4bd;
  --color-primary: #2e60af;
  --color-secondary: #1cb4bd;

  /* Gray Scale - Lighter, Cleaner */
  --color-gray-50: #fbfcff;
  --color-gray-100: #f4f6fa;
  --color-gray-200: #eef2f6;
  --color-gray-300: #e0e5eb;
  --color-gray-400: #cbd2d9;
  --color-gray-500: #9aa5b1;
  --color-gray-600: #7b8794;
  --color-gray-700: #616e7c;
  --color-gray-800: #3e4c59;
  --color-gray-900: #1f2933;

  /* Semantic Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text: var(--color-gray-700);
  --color-text-light: var(--color-gray-600);
  --color-bg: var(--color-white);
  --color-bg-alt: var(--color-gray-50);

  /* Spacing - Increased for airy feel */
  --spacing-xs: 0.5rem;
  /* 8px */
  --spacing-sm: 1rem;
  /* 16px */
  --spacing-md: 2rem;
  /* 32px */
  --spacing-lg: 3rem;
  /* 48px */
  --spacing-xl: 5rem;
  /* 80px */
  --spacing-2xl: 8rem;
  /* 128px */

  /* Typography */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Border Radius - Smaller for more modern/corporate look */
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  /* Shadows - Softer, more diffuse */
  --shadow-sm: 0 2px 4px rgba(46, 96, 175, 0.04);
  --shadow-md: 0 8px 16px rgba(46, 96, 175, 0.06);
  --shadow-lg: 0 16px 32px rgba(46, 96, 175, 0.08);
  --shadow-hover: 0 20px 40px rgba(46, 96, 175, 0.12);

  /* Transitions */
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 500ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Container */
  --container-max: 1200px;
  --container-padding: 2rem;
}

/* ===================================
   RESET & BASE STYLES
   =================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
  /* Slightly smaller base size */
}

body {
  font-family: var(--font-primary);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-base);
}

ul,
ol {
  list-style: none;
}

/* ===================================
   TYPOGRAPHY - Minimalist Scale
   =================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 500;
  /* Lighter weight for elegance */
  line-height: 1.2;
  color: var(--color-gray-900);
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
}

h3 {
  font-size: 1.75rem;
  font-weight: 500;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

p {
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-xs {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.text-sm {
  font-size: 0.875rem;
}

.text-lg {
  font-size: 1.125rem;
}

.font-medium {
  font-weight: 500;
}

.font-bold {
  font-weight: 600;
}

/* ===================================
   ICONS (SVG)
   =================================== */
.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.icon-sm {
  width: 18px;
  height: 18px;
}

.icon-lg {
  width: 48px;
  height: 48px;
  stroke-width: 1;
}

.icon-xl {
  width: 64px;
  height: 64px;
  stroke-width: 1;
}

/* ===================================
   LAYOUT
   =================================== */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-sm {
  padding: var(--spacing-lg) 0;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* ===================================
   NAVIGATION - Minimalist
   =================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  transition: all var(--transition-base);
  height: 80px;
  display: flex;
  align-items: center;
}

.navbar.scrolled {
  height: 70px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.logo img {
  height: 40px;
  width: auto;
  transition: all var(--transition-base);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-gray-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray-800);
}

/* ===================================
   BUTTONS - Elegant
   =================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.8rem 2rem;
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-base);
  font-family: var(--font-primary);
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-white);
  box-shadow: 0 4px 10px rgba(46, 96, 175, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(46, 96, 175, 0.3);
}

.btn-outline {
  background: transparent;
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.btn-sm {
  padding: 0.6rem 1.5rem;
  font-size: 0.8rem;
}

.btn-lg {
  padding: 1rem 3rem;
  font-size: 1rem;
}

/* ===================================
   CARDS - Minimal
   =================================== */

.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  height: 100%;
  border: 1px solid var(--color-gray-100);
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-5px);
  border-color: transparent;
}

.card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.card:hover .card-image {
  transform: scale(1.03);
}

.card-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.card-description {
  color: var(--color-text-light);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-secondary));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover::before {
  opacity: 1;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  color: var(--color-white);
}

.hero-content h1 {
  color: var(--color-white);
  max-width: 800px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: 3rem;
}

/* ===================================
   SECTIONS
   =================================== */

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title {
  position: relative;
  display: inline-block;
  padding-bottom: 1rem;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-primary);
}

/* Gradient Background */
.section-gradient {
  background: linear-gradient(180deg, var(--color-gray-50) 0%, #fff 100%);
}

/* ===================================
   TREATMENT LIST
   =================================== */

.treatment-header {
  background: var(--color-white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-gray-200);
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.treatment-header:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.treatment-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-gray-800);
}

.treatment-icon {
  color: var(--color-primary);
  transition: transform var(--transition-base);
}

.treatment-category.active .treatment-header {
  background: var(--color-gray-50);
  border-color: var(--color-primary);
}

.treatment-category.active .treatment-icon {
  transform: rotate(180deg);
}

.treatment-list {
  padding: 0 2rem 2rem;
}

.treatment-item {
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  border-left: 2px solid var(--color-gray-200);
  transition: all var(--transition-base);
}

.treatment-item:hover {
  border-left-color: var(--color-primary);
  transform: translateX(4px);
}

/* ===================================
   FORMS & FOOTER
   =================================== */

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 1rem;
  border: 1px solid var(--color-gray-300);
  border-radius: var(--radius-md);
  font-family: var(--font-primary);
  background: var(--color-gray-50);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  background: var(--color-white);
  border-color: var(--color-primary);
  outline: none;
  box-shadow: 0 0 0 2px rgba(46, 96, 175, 0.1);
}

.footer {
  background: var(--color-gray-900);
  color: var(--color-gray-400);
  padding: 6rem 0 2rem;
  font-size: 0.9rem;
}

.footer h4 {
  color: var(--color-white);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-link {
  color: var(--color-gray-400);
  display: block;
  margin-bottom: 0.8rem;
  transition: color var(--transition-base);
}

.footer-link:hover {
  color: var(--color-white);
  transform: translateX(4px);
}

.footer-bottom {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  text-align: center;
  font-size: 0.85rem;
}

/* ===================================
   RESPONSIVE
   =================================== */

@media (max-width: 768px) {
  :root {
    --spacing-xl: 3rem;
    --container-padding: 1.5rem;
  }

  .navbar {
    height: 70px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 2rem;
    border-bottom: 1px solid var(--color-gray-200);
    transform: translateY(-150%);
    opacity: 0;
    transition: all var(--transition-base);
    gap: 1rem;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    box-shadow: var(--shadow-xl);
  }

  h1 {
    font-size: 2.25rem;
  }

  h2 {
    font-size: 1.85rem;
  }

  .hero {
    min-height: 70vh;
  }
}