/* ===== VARIABLES GLOBALES ===== */
:root {
  --primary-color: #2e7d32;
  --secondary-color: #1976d2;
  --accent-color: #8d6e63;
  --background-color: #f5f5f5;
  --surface-color: #ffffff;
  --text-primary: #212121;
  --text-secondary: #757575;
  --error-color: #d32f2f;
  --success-color: #388e3c;
  --shadow-light: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-medium: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-heavy: 0 8px 16px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
}

/* ===== RESET Y ESTILOS BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-color: var(--background-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* ===== HEADER ===== */
.header {
  background-color: var(--surface-color);
  box-shadow: var(--shadow-light);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-img {
  height: 40px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.nav-link:hover {
  color: var(--primary-color);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
}

.menu-toggle span {
  height: 3px;
  width: 100%;
  background-color: var(--text-primary);
  border-radius: 3px;
}

/* ===== HERO SECTION ===== */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.1), rgba(25, 118, 210, 0.1));
  border-radius: 10px;
  margin-bottom: 40px;
  text-align: center;
}

.hero-title {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--primary-color);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-medium);
}

.hero-cta:hover {
  background-color: #1b5e20;
  transform: translateY(-3px);
  box-shadow: var(--shadow-heavy);
}

/* ===== SECCIONES COMUNES ===== */
.section-title {
  font-size: 2rem;
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 40px;
}

/* ===== SERVICIOS ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--surface-color);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-heavy);
}

.service-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.service-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
}

/* ===== ZIMI SECTION ===== */
.zimi-section {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(25, 118, 210, 0.05));
}

.zimi-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.feature-card {
  background: white;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--secondary-color);
}

.feature-card h3 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #1b5e20;
  transform: translateY(-3px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #0d47a1;
}

/* ===== ATLAS ===== */
.atlas-container {
  padding: 60px 0;
}

.atlas-viewer {
  width: 100%;
  height: 500px;
  background-color: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.atlas-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.control-btn {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: var(--transition);
}

.control-btn:hover {
  background-color: #0d47a1;
}

.control-btn.active {
  background-color: var(--primary-color);
}

/* ===== BUSCADOR ===== */
.search-container {
  padding: 60px 0;
}

.search-bar-container {
  display: flex;
  max-width: 600px;
  margin: 0 auto 30px;
}

.search-bar {
  flex: 1;
  padding: 15px 20px;
  border-radius: 30px 0 0 30px;
  border: 1px solid #e0e0e0;
  font-size: 1rem;
  outline: none;
}

.search-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  padding: 0 25px;
  border-radius: 0 30px 30px 0;
  cursor: pointer;
}

.search-results {
  max-width: 800px;
  margin: 0 auto;
}

.result-card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-light);
}

.result-card h3 {
  color: var(--primary-color);
  margin-bottom: 10px;
}

.result-points ul {
  margin-top: 10px;
  padding-left: 20px;
}

/* ===== MODO EQUILIBRIO ===== */
.balance-container {
  padding: 60px 0;
}

.balance-routines {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.routine-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  text-align: center;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.routine-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.routine-icon {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 15px;
}

.routine-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.routine-card p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

/* ===== ABOUT ===== */
.about {
  padding: 80px 0;
}

.about-content {
  display: flex;
  gap: 40px;
  align-items: center;
}

.about-text {
  flex: 1;
}

.about-image {
  flex: 0 0 300px;
}

.about-image img {
  width: 100%;
  border-radius: 10px;
  box-shadow: var(--shadow-heavy);
}

/* ===== TESTIMONIOS ===== */
.testimonials {
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(46, 125, 50, 0.05), rgba(25, 118, 210, 0.05));
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.testimonial-card {
  background: white;
  border-radius: 10px;
  padding: 25px;
  box-shadow: var(--shadow-light);
}

.testimonial-content {
  font-style: italic;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 15px;
}

.author-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.author-info h4 {
  font-size: 1rem;
  color: var(--text-primary);
}

.author-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ===== BLOG ===== */
.blog {
  padding: 80px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.blog-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-heavy);
}

.blog-image {
  height: 200px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 25px;
}

.blog-content h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--text-primary);
}

.blog-content p {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.read-more {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: gap 0.3s ease;
}

.read-more:hover {
  gap: 10px;
}

/* ===== CONTACTO ===== */
.contact {
  padding: 80px 0;
}

.contact-content {
  max-width: 800px;
  margin: 0 auto;
}

.contact-form {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: var(--shadow-medium);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

#form-message {
  margin-top: 20px;
  padding: 15px;
  border-radius: 5px;
  text-align: center;
  font-weight: 500;
}

#form-message.success {
  background-color: rgba(56, 142, 60, 0.1);
  color: var(--success-color);
}

#form-message.error {
  background-color: rgba(211, 47, 47, 0.1);
  color: var(--error-color);
}

/* ===== FOOTER ===== */
.footer {
  background-color: var(--surface-color);
  padding: 60px 0 20px;
  margin-top: 50px;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  font-size: 1.2rem;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--primary-color);
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--primary-color);
  color: white;
  border-radius: 50%;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: #1b5e20;
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    left: -100%;
    top: 70px;
    flex-direction: column;
    background-color: var(--surface-color);
    width: 100%;
    text-align: center;
    transition: 0.3s;
    box-shadow: var(--shadow-medium);
    padding: 20px 0;
  }

  .nav-menu.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2rem;
  }

  .about-content {
    flex-direction: column;
  }

  .about-image {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .atlas-viewer {
    height: 300px;
  }
}