@import url("https://fonts.googleapis.com/css2?family=Merriweather:wght@700;900&family=Open+Sans:wght@400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #ffffff;
  color: #374151;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

ul {
  list-style: none;
}

section {
  padding: 80px 10%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1,
h2,
h3 {
  font-family: "Merriweather", serif;
  font-weight: 700;
  color: #111111;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 40px;
}

p {
  margin-bottom: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 1000;
}

nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
}

.logo h1 {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  font-weight: 600;
  color: #111111;
}

.nav-links a:hover {
  color: #dc2626;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #111111;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
}

#inicio {
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.6)),
    url("images/bg1.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
}

.hero img {
  width: 100%;
  max-width: 450px;
}

.intro {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.intro h2 {
  text-align: center;
}

#servicios {
  background:
    linear-gradient(rgba(243, 244, 246, 0.72), rgba(243, 244, 246, 0.72)),
    url("images/bg2.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
}

.service-card {
  background: rgba(255, 255, 255, 0.94);
  padding: 35px;
  border-radius: 12px;
  border-top: 5px solid #dc2626;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 35px rgba(0, 0, 0, 0.2);
}

.service-card h3 {
  margin-bottom: 15px;
}
#reseñas {
  background:
    linear-gradient(rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.7)),
    url("images/bg3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.review {
  max-width: 800px;
  margin: 0 auto 25px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.94);
  border-left: 5px solid #dc2626;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.review:last-child {
  margin-bottom: 0;
}

.review p {
  margin: 0;
  font-style: italic;
}

#contactenos {
  background:
    linear-gradient(rgba(243, 244, 246, 0.7), rgba(243, 244, 246, 0.7)),
    url("images/bg3.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

#contactenos p {
  text-align: center;
}

#contactenos a {
  color: #dc2626;
  font-weight: 600;
}

form {
  max-width: 700px;
  margin: 40px auto 0;
  padding: 35px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

input,
textarea {
  width: 100%;
  padding: 15px;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  outline: none;
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

input:focus,
textarea:focus {
  border-color: #dc2626;
  box-shadow: 0 0 8px rgba(220, 38, 38, 0.2);
}

textarea {
  resize: vertical;
}

button {
  padding: 15px;
  border: none;
  border-radius: 8px;
  background: #dc2626;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.3s ease,
    transform 0.2s ease;
}

button:hover {
  background: #b91c1c;
  transform: translateY(-2px);
}

footer {
  background: #111111;
  color: #ffffff;
  text-align: center;
  padding: 40px 20px;
}

footer p {
  margin-bottom: 10px;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: #dc2626;
  font-weight: 600;
}

footer a:hover {
  color: #ffffff;
}

@media (max-width: 900px) {
  section {
    padding: 60px 8%;
    background-attachment: scroll;
  }

  nav {
    padding: 18px 24px;
  }

  .logo img {
    width: 55px;
    height: 55px;
  }

  .logo h1 {
    font-size: 1.3rem;
  }

  .nav-links {
    gap: 22px;
  }

  h2 {
    font-size: 2rem;
  }

  .hero {
    margin-bottom: 35px;
  }

  .hero img {
    max-width: 350px;
  }

  .intro {
    padding: 35px;
  }

  .service-card {
    padding: 30px;
  }

  form {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 18px 20px;
    flex-wrap: wrap;
  }

  .logo img {
    width: 50px;
    height: 50px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 20px;
    padding: 25px 0;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid #e5e7eb;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
  }

  .nav-links a {
    display: block;
    padding: 10px 0;
    font-size: 1.05rem;
  }

  section {
    padding: 55px 7%;
  }

  h2 {
    font-size: 1.9rem;
  }

  .hero {
    margin-bottom: 30px;
  }

  .hero img {
    max-width: 300px;
  }

  .intro {
    padding: 30px;
  }

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

  .service-card {
    padding: 28px;
  }

  .review {
    padding: 25px;
  }

  form {
    padding: 28px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 45px 5%;
  }

  .logo {
    gap: 10px;
  }

  .logo img {
    width: 45px;
    height: 45px;
  }

  .logo h1 {
    font-size: 1.1rem;
  }

  .menu-toggle {
    font-size: 1.9rem;
  }

  h2 {
    font-size: 1.7rem;
    margin-bottom: 30px;
  }

  p {
    font-size: 0.95rem;
  }

  .hero {
    margin-bottom: 25px;
  }

  .hero img {
    max-width: 250px;
  }

  .intro,
  .service-card,
  .review,
  form {
    padding: 20px;
  }

  .service-card {
    border-radius: 10px;
  }

  input,
  textarea {
    font-size: 0.95rem;
    padding: 14px;
  }

  button {
    padding: 16px;
    font-size: 1rem;
  }

  footer {
    padding: 30px 20px;
  }

  footer p {
    font-size: 0.9rem;
  }
}
