/* GiraSol Clínicas de Sanación - Estilos Base */

/* Variables CSS para colores principales */
:root {
  /* Colores principales del logotipo */
  --primary-purple: #7B3F98;
  --primary-orange: #FF8C00;
  
  /* Variaciones de morado */
  --purple-light: #9B5FB8;
  --purple-lighter: #BB7FD8;
  --purple-dark: #5B2F78;
  --purple-darker: #3B1F58;
  
  /* Variaciones de naranja */
  --orange-light: #FFAC40;
  --orange-lighter: #FFCC80;
  --orange-dark: #CC7000;
  --orange-darker: #995500;
  
  /* Colores neutros */
  --white: #FFFFFF;
  --light-gray: #F8F9FA;
  --gray: #E9ECEF;
  --dark-gray: #6C757D;
  --black: #212529;
  
  /* Gradientes */
  --gradient-primary: linear-gradient(135deg, var(--primary-purple), var(--purple-darker));
  --gradient-light: linear-gradient(135deg, var(--orange-light), var(--orange-lighter));
  --gradient-dark: linear-gradient(135deg, var(--purple-dark), var(--orange-dark));
  
  /* Sombras */
  --shadow-light: 0 2px 10px rgba(123, 63, 152, 0.1);
  --shadow-medium: 0 4px 20px rgba(123, 63, 152, 0.15);
  --shadow-heavy: 0 8px 30px rgba(123, 63, 152, 0.2);
  
  /* Transiciones */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Tipografía */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Poppins', var(--font-primary);
}

/* Reset y configuración base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  line-height: 1.6;
  color: var(--black);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: 3rem;
  color: var(--primary-purple);
}

h2 {
  font-size: 2.5rem;
  color: var(--primary-purple);
}

h3 {
  font-size: 2rem;
  color: var(--purple-dark);
}

h4 {
  font-size: 1.5rem;
  color: var(--purple-dark);
}

p {
  margin-bottom: 1rem;
  color: var(--dark-gray);
}

a {
  color: var(--primary-orange);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--orange-dark);
}

/* Contenedores */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* Navegación flotante */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(123, 63, 152, 0.1);
  z-index: 1000;
  transition: var(--transition-medium);
  padding: 1rem 0;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-medium);
  padding: 0.5rem 0;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-purple);
  text-decoration: none;
}

.navbar-brand img {
  height: 50px;
  margin-right: 10px;
  transition: var(--transition-medium);
}

.navbar.scrolled .navbar-brand img {
  height: 40px;
}

.navbar-nav {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  color: var(--dark-gray);
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 25px;
  transition: var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-purple);
  background: var(--light-gray);
}

.nav-link.active {
  color: var(--white);
  background: var(--gradient-primary);
}

/* Botones */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition-medium);
  text-decoration: none;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

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

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

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

.btn-outline:hover {
  background: var(--primary-purple);
  color: var(--white);
}

.btn-secondary {
  background: var(--light-gray);
  color: var(--primary-purple);
}

.btn-secondary:hover {
  background: var(--gray);
  color: var(--purple-dark);
}

/* Secciones */
.section {
  padding: 80px 0;
  position: relative;
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--gradient-light);
  position: relative;
  overflow: hidden;
}

.section-hero::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="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

/* Tarjetas */
.card {
  background: var(--white);
  border-radius: 15px;
  padding: 2rem;
  box-shadow: var(--shadow-light);
  transition: var(--transition-medium);
  position: relative;
  overflow: hidden;
}

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

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

/* Grid system */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: -15px;
}

.col {
  flex: 1;
  padding: 15px;
}

.col-12 { flex: 0 0 100%; }
.col-6 { flex: 0 0 50%; }
.col-4 { flex: 0 0 33.333%; }
.col-3 { flex: 0 0 25%; }

/* Utilidades */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.py-1 { padding: 0.5rem 0; }
.py-2 { padding: 1rem 0; }
.py-3 { padding: 1.5rem 0; }
.py-4 { padding: 2rem 0; }
.py-5 { padding: 3rem 0; }

/* Animaciones */
@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 forwards;
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 2rem;
  }
  
  .navbar-nav {
    display: none;
  }
  
  .col-6,
  .col-4,
  .col-3 {
    flex: 0 0 100%;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .container {
    padding: 0 15px;
  }
}

@media (max-width: 480px) {
  .btn {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .section {
    padding: 40px 0;
  }
}

