
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(to bottom, #f3e5f5, #ffffff); 
  color: #333;
  line-height: 1.6;
  text-align: center;
  padding-top: 70px; 
  padding-left: 15px;
  padding-right: 15px;
  max-width: 1200px;
  margin: 0 auto; 
}

p {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.2em; 
  text-align: center;
  color: #555; 
  line-height: 1.8; 
}

header {
  background: rgba(170, 140, 175, 0.85); 
  backdrop-filter: blur(10px); 
  color: #fff;
  padding: 25px 40px; 
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.15);
  border-bottom: 3px solid rgba(255, 255, 255, 0.3);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 100;
  height: 100px; 
}

header img {
  width: 90px; 
  height: auto; 
  margin-right: 20px;
  vertical-align: middle;
  border-radius: 10px; 
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2); 
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

header img:hover {
  transform: scale(1.1); 
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.3); 
}

header h1 {
  display: inline-block;
  font-size: 3.5em; 
  font-weight: normal;
  margin-left: 15px;
  color: #fff;
  font-family: "Brush Script MT", cursive; 
  text-transform: none; 
  letter-spacing: 1.5px; 
  font-style: italic;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3); 
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 12px;
  flex-wrap: wrap;
}

nav ul li {
  display: inline-block;
}

nav ul li a {
  background-color: #572364;
  color: #fff;
  font-size: 1.3em;
  text-decoration: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0px 3px 6px rgba(0,0,0,0.2);
}

nav ul li a span {
  position: absolute;
  bottom: -28px;
  font-size: 0.75em;
  background: #8e6995;
  color: #fff;
  padding: 3px 8px;
  border-radius: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
  pointer-events: none;
}

nav ul li a:hover {
  background-color: #8e6995;
  transform: scale(1.1);
}

nav ul li a:hover span {
  opacity: 1;
  transform: translateY(0);
}


/* Sección principal */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(to bottom, #f3e5f5, #ffffff);
  padding: 60px 20px;
  border-radius: 10px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}



.hero-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1100px;
  width: 100%;
}


.hero-text {
  flex: 1;
  max-width: 500px;
  text-align: left;
  padding: 20px;
}


.hero-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #aa8caf; 
  font-family: 'Pacifico', cursive;
  margin-bottom: 10px;
}


.hero-text p {
  font-size: 1.2rem;
  color: #333;
  line-height: 1.8;
}

.highlight {
  color: #4e0041; 
  font-weight: bold;
  font-style: italic;
}

.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 25px;
  background: #572364; 
  color: #fff;
  font-size: 1.2rem;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease-in-out, transform 0.2s;
}


.btn:hover {
  background: #8e6995;
  transform: scale(1.05);
}

.hero-image {
  max-width: 600px;
  margin: 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: none;
}

.hero-image img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}


.hero-image img:hover {
  transform: scale(1.08) rotate(3deg); 
}


@media (max-width: 768px) {
  .hero-container {
      flex-direction: column;
      text-align: center;
  }

  .hero-text {
      text-align: center;
  }

  .hero-image {
      margin-top: 20px;
  }
}

/* Sección "Sobre Nosotros" */
#sobnos {
  padding: 40px;
  background-color: #e1bee7;
}

@import url('https://fonts.googleapis.com/css2?family=Lora:wght@600&display=swap');

#sobnos h2 {
  font-size: 2.8em; 
  color: #4a235a;
  margin-bottom: 20px;
  font-family: 'Lora', serif; 
  font-weight: 600; 
  letter-spacing: 1px; 
  text-transform: none; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
}

#sobnos p {
  font-size: 1.2em;
  color: #555;
  max-width: 900px;
  margin: 0 auto 30px;
  line-height: 1.8;
}

#sobnos div a {
  background-color: #572364;
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

#sobnos div a:hover {
  background-color: #8e6995;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}

#sobnos {
  text-align: center;
}

#sobnos .image-container {
  display: flex;
  justify-content: center;
  gap: 20px; 
  flex-wrap: wrap; 
  margin-top: 20px;
}

#sobnos img {
  width: 180px; 
  height: 180px;
  object-fit: cover; 
  border-radius: 15px; 
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}


#sobnos img:hover {
  transform: scale(1.1) rotate(3deg); 
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.4);
}


@media (max-width: 768px) {
  #sobnos .image-container {
    gap: 15px;
  }

  #sobnos img {
    width: 150px;
    height: 150px;
  }
}

/* Sección de "Nuestro Trabajo" */

#nuestrab {
  padding: 40px 20px;
  text-align: center;
}

#nuestrab h3 {
  font-size: 2.8em; 
  color: #4a235a;
  margin-bottom: 20px;
  font-family: 'Lora', serif; 
  font-weight: 600;
  letter-spacing: 1px; 
  text-transform: none; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
}

#nuestrab p {
  font-size: 1.2em;
  color: #555;
  line-height: 1.8;
}


.table-container {
  overflow-x: auto;
  border-radius: 12px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
  background: #ffffff;
  padding: 20px;
}


#nuestrab table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #8e44ad; 
}

/* Estilos del encabezado */
#nuestrab th {
  background: linear-gradient(135deg, #8e44ad, #6a1b9a); 
  color: white;
  font-size: 1.3em;
  padding: 15px;
  text-transform: uppercase;
  font-family: 'Poppins', sans-serif;
  border-left: 1px solid #ffffff33; 
}

#nuestrab th:first-child {
  border-top-left-radius: 12px;
}
#nuestrab th:last-child {
  border-top-right-radius: 12px;
  border-right: none;
}

/* Celdas de la tabla */
#nuestrab td {
  padding: 15px;
  color: #4a235a;
  border-bottom: 1px solid #ddd;
  font-size: 1.1em;
  font-family: 'Poppins', sans-serif;
  text-align: center; 
}

/* Estilo alterno para filas */
#nuestrab tr:nth-child(even) {
  background: #f8eafc; 
}

#nuestrab tr:hover {
  background: #e2d8e4; 
  transition: background 0.3s ease-in-out;
}

#nuestrab tr:last-child td:first-child {
  border-bottom-left-radius: 12px;
}
#nuestrab tr:last-child td:last-child {
  border-bottom-right-radius: 12px;
}


#nuestrab td:hover {
  box-shadow: inset 0px 0px 8px rgba(0, 0, 0, 0.15);
}


#nuestrab td img {
  width: 160px;  
  height: 160px; 
  object-fit: cover; 
  border-radius: 10px; 
  transition: transform 0.3s ease-in-out;
  margin: 10px; 
}


#nuestrab td img:hover {
  transform: scale(1.1);
}

/* Estilos para enlaces dentro de la tabla */
#nuestrab td a {
  background-color: #572364; 
  color: #fff;
  font-size: 1.1em;
  font-weight: bold;
  font-family: 'Poppins', sans-serif; 
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  display: inline-block;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}


#nuestrab td a:hover {
  background-color: #8e6995;
  box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.2);
}


/* Sección de presentación */
#presentacion {
  text-align: center;
  padding: 50px 20px;
  background: #f8eafc; 
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
}


#presentacion h3 {
  font-size: 2.8em; 
  color: #4a235a;
  margin-bottom: 20px;
  font-family: 'Lora', serif; 
  font-weight: 600;
  letter-spacing: 1px; 
  text-transform: none; 
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2); 
}

#presentacion p {
  font-size: 1.3em;
  color: #333;
  line-height: 1.6;
  max-width: 700px;
  margin: 0 auto;
}

.galeria {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 25px;
}

.galeria img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease-in-out;
}

.galeria img:hover {
  transform: scale(1.1);
}


/* Sección de Preguntas Frecuentes (FAQ) */
#faq {
  background-color: #f8eafc; /* Fondo suave como #presentacion */
  padding: 50px 20px;
  text-align: center;
  border-radius: 15px;
  box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

#faq h2 {
  font-size: 2.8em;
  color: #4a235a;
  margin-bottom: 30px;
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 1px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contenedor general */
.faq-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: left;
}

/* Cada pregunta */
.faq-item {
  background: #ffffff;
  border: 2px solid #e1bee7;
  border-radius: 15px;
  margin-bottom: 20px;
  padding: 18px 25px;
  box-shadow: 0px 3px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
  box-shadow: 0px 6px 15px rgba(0, 0, 0, 0.15);
  border-color: #c67ace;
}

/* Título de la pregunta */
.faq-item h4 {
  font-size: 1.4em;
  color: #572364;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item h4::after {
  content: '\f078'; /* Icono de flecha Font Awesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.9em;
  color: #8e6995;
  transition: transform 0.3s ease;
}

/* Rotación del ícono al abrir */
.faq-item.active h4::after {
  transform: rotate(180deg);
}

/* Respuesta */
.faq-item p {
  font-size: 1.1em;
  color: #333;
  margin-top: 10px;
  line-height: 1.7;
  display: none; /* Oculto por defecto */
}

/* Mostrar respuesta cuando está activo */
.faq-item.active p {
  display: block;
}

/* Responsive */
@media (max-width: 768px) {
  #faq {
    padding: 40px 15px;
  }

  #faq h2 {
    font-size: 2.2em;
  }

  .faq-item h4 {
    font-size: 1.2em;
  }

  .faq-item p {
    font-size: 1em;
  }
}


/* Pie de página */
footer {
  background: #8e44ad; 
  color: white;
  padding: 30px 0;
  font-family: 'Poppins', sans-serif;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-section h4 {
  font-size: 1.5em;
  margin-bottom: 10px;
  font-weight: 600;
  text-transform: uppercase;
  border-bottom: 2px solid white;
  display: inline-block;
  padding-bottom: 5px;
}

.social-links a {
  display: inline-block;
  color: white;
  font-size: 2em; 
  margin: 10px 15px;
  transition: transform 0.3s ease, color 0.3s ease;
}


.social-links a:hover {
  transform: scale(1.2);
  color: #e1bee7; 
}

.footer-bottom {
  text-align: center;
  padding-top: 15px;
  font-size: 0.9em;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin-top: 20px;
}


@media screen and (max-width: 768px) {
  header h1 {
      font-size: 2em;
  }

  nav ul li {
      display: block;
      margin: 10px 0;
  }

  section img {
      width: 100%;
      height: auto;
  }

  #nuestrab table {
      display: block;
      overflow-x: auto;
      white-space: nowrap;
  }

  footer {
      font-size: 0.9em;
  } 
}