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

:root {
  --crema-calido: #fdf3e6;
  --crema-pared: #faf0e1;
  --madera-natural: #c8a87c;
  --madera-oscura: #a8865a;
  --verde-pared: #5a7d5c;
  --verde-suave: #6b8f6d;
  --beige-tapizado: #e8d9cc;
  --negro-mate: #2a2a2a;
  --blanco-suave: #fffef7;
  --text-dark: #4a3b2f;
  --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 20px 35px -10px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--crema-calido);
  color: var(--text-dark);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

h1,
h2,
h3,
.logo,
.hero-title {
  font-family: "Playfair Display", serif;
  font-weight: 500;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.8rem;
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--crema-calido);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.5s ease;
}
.loader.hidden {
  opacity: 0;
  pointer-events: none;
}
.loader-circle {
  width: 45px;
  height: 45px;
  border: 4px solid var(--madera-natural);
  border-top: 4px solid var(--verde-pared);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  background: rgba(253, 243, 230, 0.94);
  backdrop-filter: blur(14px);
  z-index: 1000;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  border-bottom: 1px solid rgba(168, 134, 90, 0.15);
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.8rem;
  max-width: 1400px;
  margin: auto;
}
.logo {
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--verde-pared);
  letter-spacing: -0.3px;
}
.logo span {
  color: var(--madera-natural);
  font-size: 2rem;
}
.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  color: var(--text-dark);
  transition: var(--transition);
  font-size: 1rem;
}
.nav-links a:hover {
  color: var(--verde-pared);
  transform: translateY(-2px);
}
.menu-icon {
  display: none;
  font-size: 1.7rem;
  cursor: pointer;
  color: var(--verde-pared);
}

/* Hero Section */
.hero {
  background: linear-gradient(125deg, #fef7ef 0%, #faf0e4 100%);
  position: relative;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0 4.5rem;
}
.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  color: var(--verde-pared);
}
.hero-content p {
  margin: 1.2rem 0;
  font-size: 1.1rem;
  color: #6a5a4e;
}
.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.btn {
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}
.btn-primary {
  background: var(--verde-pared);
  color: white;
  box-shadow: 0 6px 14px rgba(90, 125, 92, 0.3);
}
.btn-primary:hover {
  background: #4a6e4c;
  transform: scale(1.02);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--verde-pared);
  color: var(--verde-pared);
}
.btn-outline:hover {
  background: var(--verde-pared);
  color: white;
}
.hero-img img {
  width: 100%;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  transition: transform 0.4s;
  border: 2px solid rgba(200, 168, 124, 0.3);
}
.hero-img img:hover {
  transform: scale(1.02);
}

/* Secciones comunes */
.section {
  padding: 5rem 0;
}
.section-title {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 2.5rem;
  color: var(--verde-pared);
  position: relative;
}
.section-title:after {
  content: "";
  display: block;
  width: 70px;
  height: 3px;
  background: var(--madera-natural);
  margin: 0.8rem auto 0;
  border-radius: 4px;
}

/* Tarjetas de servicios - inspiradas en madera y texturas */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.service-card {
  background: var(--blanco-suave);
  border-radius: 32px;
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border-bottom: 4px solid var(--madera-natural);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--verde-pared);
}
.service-icon {
  font-size: 2.8rem;
  color: var(--verde-pared);
  margin-bottom: 1.2rem;
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}
.service-card p {
  color: #7a6b5e;
  margin-bottom: 0.8rem;
}
.price-tag {
  font-weight: 700;
  color: var(--madera-oscura);
  font-size: 1.2rem;
}

/* Sobre Nosotras - inspirado en la distribución: pared verde + listones madera */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, #f5ede3 0%, #efe3d4 100%);
  border-radius: 48px;
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}
.about-text h3 {
  font-size: 1.8rem;
  color: var(--verde-pared);
  margin-bottom: 1rem;
}
.about-text p {
  margin-bottom: 1rem;
  line-height: 1.5;
}
.about-img img {
  width: 100%;
  border-radius: 32px;
  object-fit: cover;
  height: 320px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--madera-natural);
}

/* Galería */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 28px;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(200, 168, 124, 0.3);
  transition: var(--transition);
}
.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--madera-natural);
}
.gallery-item img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* Testimonios */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.testimonial-card {
  background: var(--blanco-suave);
  padding: 1.8rem;
  border-radius: 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border-left: 5px solid var(--madera-natural);
}
.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}
.stars {
  color: #d4a373;
  margin: 1rem 0;
  font-size: 1.1rem;
}
.client-name {
  font-weight: 600;
  margin-top: 0.8rem;
  color: var(--verde-pared);
}
.testimonial-text {
  font-style: italic;
  color: #6a5a4e;
}

/* Formulario */
.contact-card {
  background: var(--blanco-suave);
  border-radius: 48px;
  padding: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(200, 168, 124, 0.3);
}
.form-group {
  margin-bottom: 1.3rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 1rem;
  border-radius: 32px;
  border: 1px solid #e6d5c2;
  background: #fefaf5;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--madera-natural);
  box-shadow: 0 0 0 2px rgba(200, 168, 124, 0.2);
}
.map-container {
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  height: 280px;
  border: 1px solid var(--madera-natural);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}
.info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  background: rgba(200, 168, 124, 0.08);
  padding: 0.8rem;
  border-radius: 60px;
}
.info-item i {
  font-size: 1.6rem;
  color: var(--verde-pared);
}

/* Footer */
footer {
  background: #efe3d4;
  padding: 2.5rem 0;
  margin-top: 2rem;
  border-top: 3px solid var(--madera-natural);
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.social-icons a {
  color: var(--verde-pared);
  margin-right: 1rem;
  font-size: 1.4rem;
  transition: var(--transition);
}
.social-icons a:hover {
  color: var(--madera-oscura);
}
footer a {
  text-decoration: none;
  color: var(--verde-pared);
}

/* Botón flotante WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 1.8rem;
  right: 1.8rem;
  background: #25d366;
  color: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.9rem;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transition: 0.2s;
  z-index: 99;
}
.whatsapp-float:hover {
  transform: scale(1.06);
}

/* Scroll top */
.scroll-top {
  position: fixed;
  bottom: 5.5rem;
  right: 1.8rem;
  background: var(--verde-pared);
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 30px;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  transition: 0.2s;
}
.scroll-top:hover {
  background: var(--madera-oscura);
}

/* Elementos decorativos madera + vegetación */
.wood-accent {
  height: 4px;
  background: linear-gradient(
    90deg,
    var(--madera-natural),
    var(--verde-pared),
    var(--madera-natural)
  );
  width: 100%;
  margin: 1rem 0;
}

/* Responsive */
@media (max-width: 850px) {
  .hero-grid,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 65%;
    height: calc(100vh - 70px);
    background: rgba(253, 243, 230, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 2rem;
    transition: 0.3s;
    gap: 1.8rem;
    border-radius: 0 24px 0 0;
  }
  .nav-links.active {
    left: 0;
  }
  .menu-icon {
    display: block;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .info-item {
    justify-content: center;
  }
}

/* Animaciones scroll */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.9, 0.4, 1.1),
    transform 0.7s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

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