:root {
  --primary: #007BFF;
  --accent: #FFC107;
  --bg-light-start: #e0f7fa;
  --bg-light-end: #ffffff;
  --bg-dark: #121212;
  --radius: 0.5rem;
  --transition: 0.3s;
  --font: 'Roboto', sans-serif;
}

body {
  font-family: var(--font);
  margin: 0;
  background: linear-gradient(135deg, var(--bg-light-start), var(--bg-light-end));
  color: #333;
  transition: background var(--transition), color var(--transition);
}
body.dark-mode {
  background: var(--bg-dark);
  color: #ddd;
}

/* Header */
.site-header {
  background: rgba(255,255,255,0.9);
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
body.dark-mode .site-header {
  background: rgba(30,30,30,0.9);
  color: #ddd;
}
.logo {
  width: 80px;
}
.theme-toggle {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}
.theme-toggle::after {
  content: '🌙';
}
body.dark-mode .theme-toggle::after {
  content: '☀️';
}

/* Social Icons */
.social-list {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
}
.social-list a {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  transition: transform var(--transition), background var(--transition);
}
body.dark-mode .social-list a {
  background: rgba(50,50,50,0.9);
}
.social-list a:hover {
  transform: scale(1.2);
}
.social-list img {
  width: 1.2rem;
  height: auto;
}

/* Share Section */
.share-section {
  text-align: center;
  margin: 1rem 0;
}
.share-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition);
}
.share-btn:hover {
  background: #e0a800;
}
.share-links {
  display: none;
  margin-top: 0.5rem;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.share-links.open {
  display: flex;
}
.share-links a {
  color: var(--primary);
  text-decoration: none;
}

/* Main Container */
.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Services Grid */
.services-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.service-card {
  background: #fff;
  padding: 1rem;
  border-radius: var(--radius);
  transition: box-shadow var(--transition);
}
body.dark-mode .service-card {
  background: rgba(30,30,30,0.9);
}
.service-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.service-card h3 {
  margin-bottom: 0.5rem;
}

/* Why Us */
#why-us {
  text-align: center;
  margin: 2rem 0;
}
.why-us-list {
  display: inline-block;
  padding: 0;
  margin: 0;
  text-align: left;
  list-style: none;
}
.why-us-list li {
  margin: 0.5rem 0;
}
.why-us-list li::before {
  content: '✓';
  margin-right: 0.5rem;
  color: var(--accent);
}

/* Parallax Section */
.parallax-section {
  position: relative;
  overflow: hidden;
  min-height: 40vh;
}
.parallax {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-light-start) center/cover fixed;
}
body.dark-mode .parallax {
  background: url('../imagenes/background.webp') center/cover fixed;
}
.parallax-content {
  position: relative;
  padding: 2rem;
  max-width: 600px;
  margin: auto;
  background: rgba(255,255,255,0.85);
  border-radius: var(--radius);
  text-align: center;
}
body.dark-mode .parallax-content {
  background: rgba(30,30,30,0.85);
}
.experience-image {
  width: 100%;
  height: auto;
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: linear-gradient(135deg, var(--bg-light-start), var(--bg-light-end));
  color: #333;
  text-align: center;
  padding: 2rem 1rem;
  font-weight: bold;
}
body.dark-mode .site-footer {
  background: rgba(30,30,30,0.9);
  color: #ddd;
}
.site-footer a {
  color: #007BFF;
  text-decoration: underline;
}

/* WhatsApp Float */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(1rem);
  animation: fadeIn 0.6s forwards;
}
@keyframes fadeIn {
  to { opacity: 1; transform: translateY(0); }
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
