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

/* Variables */
:root {
    --primary-color: black;
    --accent-color-gold: #50432F;  
    --accent-color-red: #B22222; /*#E53935; /* Firebrick Red  #B22222 */
    --accent-color-blue: #505568; /*#1E293B; #505568;*/
    --accent-color-navbar: #1E90FF;
    --background-color: #f8f8f8; 
    --accent-color-lightgray: #f8f8f8; /* #f8f8f8;*/
    --accent-color-gray: #ECECEC; /*#f1f1f1;/* #e8e8e8;*/
    --accent-color-header: #FF4C4C;
    --accent-color-darkgray: #A8A8A8;
}

/* General Styles */
body {
    width: 100%;
    background-color: var(--background-color);
    color: black;
    /*font-family:  "Noto Sans", "Noto Sans Fallback", sans-serif;*/
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 300;
    line-height: 1.5;  
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* Topbar Navigation */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: white;
    color: black;
    display: flex;
    align-items: center;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
}
.logo-navbar {
  height: 40px;
  width: auto;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: black;
    text-decoration: none;
    font-weight: bold; 
    padding: 1rem 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link:hover {
    border-radius: 5px;
    color: var(--accent-color-gold);
}

.nav-link::before,
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color-red);
    opacity: 0;
    transition: top 0.3s ease, bottom 0.3s ease, opacity 0.3s ease;;
}

.nav-link::before {
    top: 10%;
}

.nav-link::after {
    bottom: 10%;
}

.nav-link:hover::before {
    top: 25%;
    opacity: 1;
}

.nav-link:hover::after {
    bottom: 25%;
    opacity: 1;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1001;
}
.menu-toggle span {
    background: black;
    height: 3px;
    width: 25px;
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    position: relative;
    z-index: 1001;
  }

  .topbar {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    padding-bottom: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 1rem;
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  .nav-list {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 1rem;
    margin-top: 1rem;
  }

  .topbar.open .nav-list {
    display: flex;
  }

  .topbar-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .logo-navbar {
    height: 40px;
    width: auto;
    object-fit: contain;
  }
}

/* Main Content */
.main-content {
    margin: 0 auto;
    margin-top: 70px; 
    padding: 0;
/*    font-family:  "Noto Sans", "Noto Sans Fallback", sans-serif;*/
    font-family: 'Inter', sans-serif;
}

@media (max-width: 768px) {
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}

/* Hero Section */
.hero-section {
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content:center;
	background: url('images/header3.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    position: relative;
    padding: 2rem;
/*    font-family: "Roboto", sans-serif;*/
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(7, 14, 42, 0.7); /* Oscurece la imagen */
    z-index: 1;
}

.hero-section > div {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: bold;
    color: var(--accent-color-red);
}

.hero-subtitle {
    margin-top: 1rem;
    font-size: 2.5rem;
}

.hero-button {
    margin-top: 1.5rem;
    background-color: var(--accent-color-red);
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    text-decoration: none;
    border: none;
    font-weight: 500;
    font-size: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.hero-button:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.hero-image {
    width: 240px; 
    height: auto;
    margin-bottom: 5px; 
    display: block;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }
    .hero-image {
        width: 100px; 
    }
}

/* Sección INFO */
.info-section {
    padding: 4rem 2rem;
    background-color: var(--accent-color-gray);
}

.info-container {
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.carousel {
    max-width: 300px;
    position: relative;
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.carousel-image.active {
    opacity: 1;
    position: relative;    
}

.info-text {
    max-width: 500px;
    text-align: left;
}

.info-text h2 {
    color: var(--accent-color-blue);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.info-text p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.section-header {
    width: 100%;
    padding: 2rem 1rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    margin-bottom: 2rem;
    font-size: 2.75rem; 
    color: var(--accent-color-header);
    background-color: var(--accent-color-blue);
}


/* Sección Servicios */
.servicios-section {
    padding: 4rem 2rem;
    background-color: var(--accent-color-lightgray);
}

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

.servicio-item {
    text-align: center;

}

.servicio-item img {
    width: 100%;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.servicio-item p {
    font-size: 1.1rem;
}


/* Sección Productos */
.productos-section {
    padding: 4rem 2rem;
    background-color: var(--accent-color-gray);
    padding-bottom: 4rem;
    margin-bottom: 2rem;
    min-height: 500px;
}

.productos-carousel {
    position: relative;
    max-width: 300px;
}

.producto {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;    
}

.producto.active {
    opacity: 1;
    position: relative;
}

.producto h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.producto img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
}

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

.producto-grid-item {
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    background-color: white;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 300px;
}

.producto-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.producto-grid-item h3 {
    text-align: center;
    margin: 1rem 0;
    font-size: 1.2rem;
}

.producto-carrusel {
    position: relative;
    height: 250px;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
}

.producto-img {
    position: absolute;
    top: 50%;
    left: 50%;
    opacity: 0;
    transform: translate(-50%, -50%);
    transition: opacity 0.8s ease-in-out;
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 0;
}

.producto-img.active {
    opacity: 1;
    position: relative;
}


/* Sección Marcas */
.marcas-section {
    padding: 4rem 2rem;
    background-color: var(--accent-color-lightgray);
    text-align: center;
}

.marcas-contenido img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
}

/* Sección Contacto */
.contacto-section {
    padding: 4rem 2rem;
    background-color: var(--accent-color-gray);
}

.contacto-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: stretch;
    justify-content: space-between;
}

.contacto-info {
    width: fit-content;
    margin: 0 auto; /* centra el bloque horizontalmente */
  font-size: 1.1rem;

}

.contacto-info p {
    margin-bottom: 1rem;
}

.contacto-info a {
    color: var(--accent-color-blue);
    text-decoration: none;
    font-weight: 500;
}

.contacto-info a:hover {
    text-decoration: underline;
}

.contacto-mapa {
    flex: 1 1 400px;
    min-height: 300px;
    max-height: 400px;
}

.contacto-mapas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
/*  width: 100%;*/
}

.mapa-item {
  flex: 1 1 400px;
  min-height: 300px;
  max-height: 400px;
}

.mapa-texto {
  text-align: center;
  margin-top: 0.5rem;
  font-size: 1rem;
  color: var(--accent-color-blue);
  font-weight: 500;
}

.mapa-item iframe {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}


@media (max-width: 600px) {
  .contacto-container {
    flex-direction: column;
    align-items: center;
  }

  .contacto-info {
    text-align: center;
  }

  .contacto-mapas {
    flex-direction: column;
    gap: 1.5rem;
  }

  .mapa-item {
    width: 100%;
    min-height: 250px;
  }
}

@media (max-width: 768px) {
  .contacto-info {
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 480px) {
  .mapa-item {
    min-height: 220px;
  }
  .mapa-texto {
    font-size: 0.9rem;
    color: #1a1a1a;
  }
}




.footer {
    background-color: var(--accent-color-blue); /* o cualquier color */
    color: white;
    text-align: center;
    padding: 2rem 1rem;
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.botones-sociales {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 999;
}

.boton-social img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.boton-social img:hover {
    transform: scale(1.25);
}


/* Responsividad mejorada para dispositivos móviles */
@media (max-width: 768px) {
  .section-header {
    font-size: 1.8rem;
    padding: 1rem;
    text-align: center;
  }

  .info-text p,
  .servicio-item p,
  .contacto-info p {
    font-size: 1rem;
    line-height: 1.6;
  }

  .producto h3 {
    font-size: 1.2rem;
  }

  .carousel-image,
  .carrusel-image,
  .producto img {
    height: auto;
    max-height: 250px;
    width: 100%;
  }

  .producto {
    height: auto;
  }

  .servicios-section,
  .productos-section,
  .contacto-section,
  .marcas-section,
  .info-section {
    padding: 2rem 1rem;
  }

  .servicio-item img {
    max-height: 200px;
  }
}

.slider-sincronizado {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: auto;
  text-align: center;
}

.slider-titulos {
  position: relative;
  min-height: 3.5rem; 
  margin-bottom: 1rem;
}

.slider-titulo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  font-size: 1.2rem;
  line-height: 1.4;
}

.slider-titulo.active {
  opacity: 1;
  position: relative;
}

.slider-imagenes {
  position: relative;
  height: 250px;
  width: 100%;
  overflow: hidden;
  border-radius: 12px;
}

.slider-img {
  position: absolute;
  top: 0;
  left: 0;
  height: 250px;
  width: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slider-img.active {
  opacity: 1;
  position: relative;
}

[data-animado] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animado].visible {
  opacity: 1;
  transform: none;
}

/* Estilo del modal */
.video-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.video-modal.active {
  display: flex;
}

.video-modal video {
  width: 90%;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.video-modal .close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: white;
  cursor: pointer;
}

.cta-cita {
  display: block;
  text-align: center;
  font-size: 2.5rem;
  font-weight: bold;
  background-color: #28a745; /* verde */
  border: 5px solid var(--accent-color-gray);
  color: white;
  text-decoration: none;
  padding: 1rem;
  margin: 1rem auto;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease-in-out;
  position: relative;
  z-index: 10;
}

.cta-cita:hover {
  transform: scale(1.02);
}

.cta-rojo {
  color: var(--accent-color-red);
}

.fade-in {
  opacity: 0;
  animation: fadeIn 1.2s ease-out forwards;
  animation-delay: 0.3s;
  pointer-events: auto;
}

@keyframes fadeIn {
  from {
    opacity: 0.01; /* no usar 0 absoluto para evitar problemas de clic */
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .cta-cita {
    font-size: 1.6rem;
    padding: 0.8rem 1rem;
    margin: 1.5rem 1rem;
    border-width: 4px;
  }
  .cta-cita span {
    display: inline;
  }
}


@media (max-width: 768px) {
  .info-container {
    flex-direction: column;
    gap: 1.5rem;
  }
}