:root {
  --font-primary: 'Inter', sans-serif;
  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-bold: 700;
}

body {
  font-family: var(--font-primary);
  font-weight: var(--font-weight-regular);
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a:hover, a:visited, a:link, a:active
{
    text-decoration: none;
    text-decoration-color: black;
    color: black;
}

html {
	scroll-behavior: smooth;
}

/* Hero Section */
.hero {
  height: 60vh;
  width: 100%;
  background: url('media/image.webp') no-repeat center center/cover;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

.overlay {
  text-shadow: 0 4px 6px rgba(56, 41, 73, 0.86);
  overflow: hidden;
}

.hero h1 {
  font-size: 5rem;
  margin-bottom: 10px;
}

.hero h2 {
  font-size: 3rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 4rem;
  }
  .hero h2 {
  font-size: 2rem;
}}

/* Sticky Header */
.sticky-header {
  background-color: #9f3000;
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 20px;
  box-shadow: 0 1px 8px #9f3000;
}

.sticky-header nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
}

.sticky-header nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: bold;
  text-shadow: 0 4px 6px rgba(56, 41, 73, 0.86);
}


.sticky-header nav ul li a:hover {
  color: #007BFF;
}

/* Secciones */
main section {
  padding: 50px 20px;
  text-align: center;
}

main section h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

main section p {
  font-size: 1rem;
  line-height: 1.5;
  color: #555;
}

/* Imagen centrada */
.centered-image {
  text-align: center;
  margin: 20px 0;
}

.centered-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}

/* Bloques lado a lado */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 20px 0;
  padding: 0 20px;
}

.flex1 {
  flex: 1;
}

.text-about {
  padding-left: 10%;
}
@media (max-width: 768px) {
  .text-about {
    padding-left: 0px   ;
  }}

.text-about h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.text-about p {
  font-size: 1rem;
  line-height: 1.6;
  color: #333;
}

/* Bloque de imagen */
.image-about img {
  max-width: 50%;
  height: auto;
  border-radius: 10px;
}

/* Estilo general para servicios y contactos */
#services, 
#contacts {
  text-align: center;
  padding: 20px;
}

#services h3,
#contacts h3 {
  margin-bottom: 30px;
  font-size: 2em;
  font-weight: bold;
  color: #333;
}

/* Contenedores específicos */
#services .service-container,
#contacts .contact-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* Estilo individual de cada servicio/contacto */
#services .service,
#contacts .contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 300px;
  margin: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 15px;
  border-radius: 8px;
  background-color: #f9f9f9;
}

#services .service .icon,
#contacts .contact .icon {
  margin-bottom: 10px;
}

#services .service h4,
#contacts .contact h4 {
  font-size: 1.2em;
  margin-bottom: 5px;
}

#services .service p,
#contacts .contact p {
  font-size: 0.95em;
  color: #555;
}

/* Diseño adaptativo en filas de máximo 3 elementos */
@media (min-width: 768px) {
  #services .service,
  #contacts .contact {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
    text-align: left;
    display: flex;
    flex-direction: row;
  }

  #services .service .icon,
  #contacts .contact .icon {
    margin-right: 15px;
    margin-bottom: 0;
  }

  #services .service .text,
  #contacts .contact .text {
    display: flex;
    flex-direction: column;
  }

  #services .service h4,
  #contacts .contact h4 {
    margin-bottom: 5px;
  }
}


/* Responsividad */
@media (max-width: 768px) {
  .about {
      flex-direction: column;
      align-items: center;
  }

  .flex1 {
      flex: none;
      width: 100%;
  }

  .text-about {
      text-align: center;
  }
}
/* Carrusel */
.carousel {
  padding: 50px 20px;
  text-align: center;
}

.carousel h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

/* Tabs */
.carousel-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap; /* Allow wrapping of the tabs */
}

.carousel-tabs .tab {
  padding: 10px 20px;
  border: 2px solid #9f3000;
  background-color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

/* Hover and active state styles */
.carousel-tabs .tab:hover,
.carousel-tabs .tab.active {
  background-color: #9f3000;
  color: white;
}

/* Media query to handle small screens */
@media (max-width: 600px) {
  .carousel-tabs .tab {
    flex: 1 1 100%; /* Each tab takes full width on small screens */
    margin-bottom: 10px; /* Space between the tabs */
  }
}

.carousel-content {
  position: relative;
}

.carousel-item {
  display: none;
  padding: 20px;
  background-color: #f8f9fa;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  animation: fadeIn 0.5s ease;
}

.carousel-item.active {
  display: block;
}

.carousel-item h4 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.carousel-item p {
  font-size: 1rem;
  color: #555;
}


.galeria-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
}

.galeria {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.galeria-item {
  min-width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
  display: none;
}

.galeria-item.active {
  opacity: 1;
  display: block;
}

.galeria-item img {
  width: 100%;
  display: block;
}

.galeria-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #9f3000;
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

.galeria-btn.prev {
  left: 10px;
}

.galeria-btn.next {
  right: 10px;
}

/* Animación */
@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
} 
/* Sección de contacto */
.contact-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #9f3000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 50px;
  margin-top: 10px;
  overflow: auto;
}

.contact-text {
  flex: 1;
  text-align: left;
}

.contact-text h4 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #ccc;
}

.contact-text p {
  font-size: 1rem;
  line-height: 1.5;
  color: #ccc;
}

.contact-action {
  flex: 0 0 auto;
}

.contact-button {
  background-color: #28a745;
  color: white;
  border: none;
  padding: 10px 15px;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #218838;
}

.atribuciones {
  background-color: #9f3000;
  padding: 20px; 
}

.atribuciones p {
  color: #6f6e6e; 
  margin: 0; 
}

/* Media Query para pantallas pequeñas */
@media (max-width: 768px) {
  .contact-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-action {
    margin-top: 20px;
  }
}
