/* ====== Estilos base ====== */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* ====== Header ====== */
header {
  background-color: #fff; /* Ahora claro */
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #ddd;
}

header .logo {
  height: 92px;
}

/* Navegación */
.nav-links {
  display: flex;
  gap: 1rem;
}

.nav-links a {
  color: #1a1a1a;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s;
}

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

/* Botón hamburguesa (solo visible en móvil) */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1a1a1a;
}

/* ====== Hero ====== */
.hero {
  background: url("../img/Index/diseno-de-interiores-de-habitaciones.jpg")no-repeat center center/cover;
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.boton {
  background: #A36B3C;
  color: white;
  padding: 0.8rem 1.5rem;
  text-decoration: none;
  font-weight: bold;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.boton:hover {
  background: #8c552f;
}

/* ====== Secciones ====== */
section {
  padding: 4rem 2rem;
  max-width: 1200px;
  margin: auto;
}

section h2 {
  font-family: 'Montserrat', sans-serif;
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2rem;
  color: #A36B3C;
}

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


.nosotros {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}


.card {
  background: #f9f9f9;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  text-align: center;
  transition: transform 0.3s;
}

.card:hover {
  transform: translateY(-5px);
}

/* ====== Footer ====== */
footer {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 3rem;
}


/* ====== Nosotros ====== */
.nosotros img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0px 4px 12px rgba(0,0,0,0.1);
}

.nosotros p {
  font-size: 1.1rem;
  color: #555;
  text-align: justify;
}

#nosotros img {
  max-width: 100%;   /* nunca será más ancho que el contenedor */
  height: auto;      /* mantiene la proporción */
  display: block;    /* elimina espacio extra debajo de la imagen */
  margin: 20px auto; /* centrada y con espacio alrededor */
  border-radius: 12px; /* opcional: bordes redondeados */
  box-shadow: 0px 4px 12px rgba(0,0,0,0.2); /* opcional: sombra suave */
}

/* ====== Portafolio ====== */
.portafolio .gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.portafolio figure {
  background: #f9f9f9;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0px 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.portafolio figure:hover {
  transform: scale(1.03);
}

.portafolio img {
  width: 100%;
  display: block;
}

.portafolio figcaption {
  padding: 1rem;
  font-weight: bold;
  text-align: center;
  color: #333;
}

/* ====== Testimonios ====== */
.testimonios {
  background: #f4f4f4;
  padding: 4rem 2rem;
  border-radius: 10px;
}

.testimonials-container {
  display: grid;
  gap: 2rem;
  max-width: 900px;
  margin: auto;
}

blockquote {
  background: #fff;
  padding: 1.5rem;
  border-left: 5px solid #A36B3C;
  border-radius: 8px;
  box-shadow: 0px 4px 8px rgba(0,0,0,0.05);
  font-style: italic;
  color: #555;
}

blockquote cite {
  display: block;
  margin-top: 0.8rem;
  font-weight: bold;
  color: #A36B3C;
  font-style: normal;
}

/* ====== Contacto ====== */
.contacto form {
  display: grid;
  gap: 1rem;
  max-width: 600px;
  margin: 0 auto 2rem auto;
}

.contacto input,
.contacto textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 1rem;
}

.contacto button {
  background: #A36B3C;
  color: white;
  border: none;
  padding: 0.8rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.contacto button:hover {
  background: #8c552f;
}

.contacto p {
  text-align: center;
  margin-top: 0.5rem;
  color: #333;
  font-weight: 500;
}


/* Botón flotante de WhatsApp */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 20px;
  background-color: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0px 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.3s ease;
  z-index: 999;
}

.whatsapp-float img {
  width: 35px;
  height: 35px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}


/* ====== Responsividad ====== */
@media (max-width: 768px) {
  /* Botón hamburguesa aparece */
  .menu-toggle {
    display: block;
  }

  /* Menú oculto en móvil */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 0;
    background: #fff;
    width: 100%;
    border-top: 1px solid #ddd;
    padding: 1rem 0;
  }

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

  .nav-links a {
    margin: 0.8rem 0;
    text-align: center;
    font-size: 1.2rem;
    color: #1a1a1a;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }
}


.call-float {
  position: fixed;
  bottom: 90px; /* encima del WhatsApp */
  right: 20px;
  background: #2C3E50;
  color: white;
  padding: 12px 15px;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  font-size: 22px;
  z-index: 1000;
}
.call-float:hover {
  background: #1A252F;
}
    .phone-header {
      margin-left: auto;
      font-weight: bold;
    }
    .phone-header a {
      color: #2C3E50;
      text-decoration: none;
    }
    .phone-header a:hover {
      text-decoration: underline;
    }