/* Reset y estilos base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Correcto */
body {
  font-family: Cambria, "Hoefler Text", "Liberation Serif", Times, "Times New Roman", serif;
  line-height: 1.6;
  color: #333;
}

/* Marco principal */
#marco {
  width: 100%;
  position: relative;
}

/* Área del logo */
.logo {
  background-color: #1a1a1a;
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 60px;
  width: auto;
}

.phone {
  color: #ffffff;
  font-size: 1.1em;
}

/* Menú de navegación */
.menu {
  background-color: rgba(26, 26, 26, 0.9);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 50px;
}

.menu ul {
  margin: 0;
  padding: 0;
  height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 30px;
}

.menu ul li {
  list-style-type: none;
  position: relative;
}

.menu ul li a, 
.dropbtn {
  text-decoration: none;
  color: #ffffff;
  font-size: 18px; /*cambio de letra*/
  padding: 20px 15px;
  display: block;
  transition: color 0.3s;
}

.menu ul li a:hover {
  color: #ffd700;
}

/* Estilos del dropdown */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: rgba(26, 26, 26, 0.9);
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.dropdown-content a {
  padding: 12px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
	font-size: 18px; /*cambio de letra */
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Sección hero */
.encabezadopri {
  height: 60vh;
  background-image: url('../imagenes/panel.jpg');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
}

.hero-content {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  text-align: left;
  color: #ffffff;
}

.hero-content h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 1.5em;
}

/* Área de contenido */
.contenidoini {
  padding: 50px;
  background: #ffffff;
}

.contenidoini h2 {
  font-size: 2em;
  margin-bottom: 20px;
}

.contenidoini h3 {
  color: #333;
  margin-bottom: 30px;
}

/* Títulos de servicio */
.service-titles {
    margin-bottom: 40px;
    text-align: center;
    background-color: #9C9C9C;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* Sombra suave */
}

.subtitle-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 20px;
    padding: 10px 0;
}
.service-titles h2,
.subtitle-container span {
    color: #ffffff;
}
.subtitle-container span {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
}

/* Galerías */
.image-gallery {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}

.commercial-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.gallery-item {
  flex: 1;
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border: 1px solid #ddd;
}

.commercial-gallery .gallery-item img {
  height: 250px;
}

/* Descripción de servicios */
.service-description {
  padding: 20px;
  background: #f5f5f5;
  border-radius: 5px;
}

.service-description p {
  margin-bottom: 15px;
  line-height: 1.6;
}

/* Formulario de contacto */
.contact-container {
  display: flex;
  gap: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-info, 
.contact-form {
  flex: 1;
}

.contact-info h2,
.contact-form h2 {
  color: #0066ff;
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 15px;
  font-size: 1.1em;
}

.contact-info a {
  color: #0066ff;
  text-decoration: none;
}

.contact-info a:hover {
  text-decoration: underline;
}

.map {
  margin-top: 30px;
  width: 100%;
}

.map img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1em;
}

.form-group textarea {
  height: 150px;
  resize: vertical;
}

.submit-btn {
  background-color: #0066ff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #0052cc;
}

/* Pie de página */
.pie {
  background-color: #1a1a1a;
  color: #ffffff;
  padding: 50px;
}

.footer-content {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-section {
  margin: 20px;
  min-width: 250px;
}

.footer-section h3 {
  margin-bottom: 20px;
  color: #ffd700;
}

/* Media queries */
@media (max-width: 768px) {
  .menu ul {
      flex-direction: column;
      height: auto;
      padding: 20px 0;
  }

  .menu ul li {
      width: 100%;
      text-align: center;
  }

  .dropdown-content {
      position: static;
      width: 100%;
  }

  .logo {
      flex-direction: column;
      text-align: center;
      padding: 20px;
  }

  .phone {
      margin-top: 10px;
  }

  .hero-content h1 {
      font-size: 2em;
  }

  .hero-content p {
      font-size: 1.2em;
  }

  .subtitle-container {
      flex-direction: column;
      gap: 10px;
      text-align: center;
  }

  .image-gallery,
  .commercial-gallery {
      grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
      margin-bottom: 20px;
  }

  .contact-container {
      flex-direction: column;
      padding: 0 20px;
  }

  .contact-info,
  .contact-form {
      width: 100%;
  }
}

@media (max-width: 480px) {
  .image-gallery,
  .commercial-gallery {
      grid-template-columns: 1fr;
  }
}

/*carrusel*/
.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    min-width: 100%;
    height: auto;
}

.carousel-item img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
}

.carousel-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 2;
}

.carousel-button {
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 16px;
}

.carousel-button:hover {
    background: rgba(0, 0, 0, 0.8);
}

.carousel-button.playing {
    background: rgba(255, 0, 0, 0.5);
}
.prev {
    left: 10px;
}

.next {
    right: 10px;
}

.service-section {
    margin-bottom: 40px;
    text-align: center;
}

.service-section h2 {
    background-color: #333333; /* Gris oscuro */
    color: #ffffff; /* Texto blanco */
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    margin-bottom: 20px;
}

/*
.about-image-container {
    width: 100%;
    max-width: 800px; /* Ajusta este valor según necesites 
    margin: 0 auto;
    padding: 20px 0;
}
*/
/*
.about-image {
    width: 100%;
    height: auto;
    max-height: 80vh; /* Esto asegura que la imagen no sea más alta que el 80% de la altura de la ventana 
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
*/

.about-us-bg {
    background: url('../imagenes/chandelier.jpg') no-repeat center;
    background-size: cover;
    min-height: 80vh;
    position: relative;
}

.about-us-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.about-us-bg h2 {
    position: relative;
    color: #ffffff;
    z-index: 1;
}

.about-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    text-align: center;
}

.about-content h1 {
    color: #ffffff;
    font-size: 3em;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-text {
    color: #ffffff;
    font-size: 1.2em;
    line-height: 1.8;
    text-align: justify;
}

.about-text p {
    margin-bottom: 20px;
}

.about-text p:last-child {
    margin-bottom: 0;
}
