:root {
  --primary-color: #FF5A5F;
  --primary-hover: #e04a50;
  --secondary-color: #33a55f;
  --text-dark: #222;
  --text-medium: #333;
  --text-light: #666;
  --text-lighter: #bbb;
  --bg-light: #f9f9f9;
  --bg-lighter: #f5f5f5;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --border-radius-sm: 5px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; /* Fallbacks mejorados */
  font-synthesis: none; /* Evita variaciones no deseadas */
  text-rendering: optimizeLegibility; /* Mejor renderizado */
  -webkit-font-smoothing: antialiased; /* Suavizado para Mac */
  color: var(--text-medium);
  line-height: 1.6;
  background-color: var(--bg-light);
  background-image: url(assets/sabana1.png);
  background-size: cover;
  background-attachment: fixed;
  background-position: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.logo img {
  height: 120px; /* Aumentado de 40px */
  transition: all 0.3s ease;
}

nav ul {
  display: flex;
  gap: 30px;
}

nav a {
  color: var(--text-dark); /* Añade esta línea */
  font-weight: 500;
  transition: color 0.3s;
}
/* WhatsApp float ORIGINAL (como lo tenías) */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  z-index: 100;
  box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.whatsapp-float i {
  margin-top: 15px;
}

.hero {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column; /* Apila los elementos verticalmente */
  text-align: center;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  background-color: rgba(255, 255, 255, 0.6);
  top: 0;
  z-index: 100;
  padding: 10px, 20px;
  margin-bottom: 50px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero nav ul {
  display: flex;
  gap: 20px;
  list-style: none;
  padding: 0;
  margin-top: 20px;
}

.hero nav ul a {
  text-decoration: none;
  color: inherit;
  font-weight: bold;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.5rem);
  margin-bottom: 15px;
  color: var(--text-dark);
}

.hero p {
  font-size: clamp(1rem, 2.5vw, 1.1rem);
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* Filtros */
.filter-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
  flex-wrap: wrap;
  gap: 20px;
}

.search-box {
  display: flex;
  align-items: center;
  background-color: var(--bg-lighter);
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  flex-grow: 1;
  max-width: 400px;
}

.search-box i {
  color: var(--text-light);
  margin-right: 10px;
}

.search-box input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 1rem;
  color: var(--text-medium);
}

.filter-dropdown select {
  padding: 10px 15px;
  border-radius: var(--border-radius-sm);
  border: 1px solid #ddd;
  background-color: white;
  font-size: 1rem;
  cursor: pointer;
  min-width: 200px;
  color: var(--text-medium);
}

/* Grid de servicios */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.service-card {
  cursor: pointer;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
  background-color: #fff3e2;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  background-color: #fff3e2;
}

.service-card:active {
  transform: translateY(-2px);
}

.service-image {
  height: 200px;
  overflow: hidden;
}

.service-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.service-card:hover .service-image img {
  transform: scale(1.05);
}

.service-info {
  padding: 20px;
}

.service-info h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.service-description {
  color: var(--text-light);
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-medium);
}

.service-time i {
  margin-right: 5px;
  color: var(--text-light);
}

.service-price {
  font-weight: 600;
  color: var(--secondary-color);
}

/* Footer */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 50px 0 20px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-links h4, 
.footer-contact h4 {
  font-size: 1.2rem;
  margin-bottom: 20px;
  color: white;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-lighter);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: white;
}

.footer-contact p {
  margin-bottom: 10px;
  color: var(--text-lighter);
  display: flex;
  align-items: center;
  gap: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: white;
  background-color: #444;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-icons a:hover {
  background-color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 20px;
  text-align: center;
  color: var(--text-lighter);
  font-size: 0.9rem;
}

/* Formulario emergente */
.form-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 30px;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 0 15px rgba(0,0,0,0.2);
  z-index: 999;
  width: 90%;
  max-width: 400px;
  animation: fadeIn 0.3s ease-out;
}

.form-popup h2 {
  margin-bottom: 20px;
  color: var(--primary-color);
  text-align: center;
}

.form-popup input,
.form-popup select {
  width: 100%;
  margin: 10px 0;
  padding: 12px;
  font-size: 1em;
  border: 1px solid #ddd;
  border-radius: var(--border-radius-sm);
}

.form-popup button {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  font-size: 1em;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.form-popup button[type="submit"] {
  background-color: var(--primary-color);
  color: white;
}

.form-popup button[type="submit"]:hover {
  background-color: var(--primary-hover);
}

.form-popup button[type="button"] {
  background-color: #f5f5f5;
  color: var(--text-medium);
}

.form-popup button[type="button"]:hover {
  background-color: #e0e0e0;
}

.hidden {
  display: none;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 998;
  backdrop-filter: blur(3px);
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, -45%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}

/* Responsive */
@media (max-width: 768px) {
  header .container {
    flex-direction: column;
    gap: 20px;
  }

  nav ul {
    gap: 15px;
  }

  .filter-controls {
    flex-direction: column;
  }

  .search-box {
    max-width: 100%;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-popup {
    padding: 20px;
  }
}
/* Para dispositivos móviles */
@media (max-width: 768px) {
  .logo img {
    height: 70px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 20px 0;
  }

  .service-image {
    height: 160px;
  }
}