:root {
  --primary: #874afa;
  --secondary: #f0f4ff;
  --logo: hsl(252, 4%, 24%);
  --text: #222;
  --light: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--light);
}

header .hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 5px rgba(0,0,0,0.7);
}

.hero-text h1 {
  font-size: 2.5rem;
}

.img-logo {
  width: 200px;
}

.img-servicios {
  width: 300px;
}

.navbar {
  background: var(--logo);
  text-align: center;
}

.navbar ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.navbar a {
  display: block;
  padding: 1rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.navbar a:hover {
  background: rgba(255,255,255,0.1);
}

.section {
  padding: 4rem 1rem;
  text-align: center;
}

.section h2 {
  margin-bottom: 1rem;
  font-size: 2rem;
  color: var(--primary);
}

.section p {
  max-width: 600px;
  margin: 0 auto;
}

.alt {
  background: var(--secondary);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}

.card {
  background: white;
  padding: 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.card img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.nosotros {
  background-color: #f9f9f9;
  padding: 4rem 1rem;
  text-align: center;
}

.nosotros h2 {
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.nosotros p {
  font-size: 1.1rem;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto 1rem auto;
}

.nosotros-img {
  margin-top: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.nosotros-img img {
  width: 100%;
  height: auto;
  /* border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1); */
}

form {
  max-width: 500px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input, form textarea {
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
}

form button {
  background: var(--primary);
  color: white;
  border: none;
  padding: 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.3s;
}

form button:hover {
  background: #005dcc;
}

footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-icons {
  margin-top: 1rem;
}

.social-icons a {
  color: white;
  margin: 0 0.5rem;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: #0077ff;
}

.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  z-index: 1000;
}

.whatsapp-icon img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* Media Queries */
@media (min-width: 768px) {
  .hero-text h1 {
    font-size: 3.5rem;
  }

  .cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .card img {
    max-height: 180px;
  }
}
