/* Variables de color */
:root {
  --blue-dark: #1876b5; /* Nuevo color */
  --gray-medium: #595959;
  --gray-light: #d2d2d2;
  --beige: #f1D198;
  --transition: 0.3s ease;
  --font-sans: 'Poppins', sans-serif;
  --font-heading: 'Montserrat', sans-serif;
}


/* Reset y base */
* {
  margin: 0; padding: 0;
  box-sizing: border-box;
}
body {
  font-family: var(--font-sans);
  color: var(--gray-medium);
  background: #fff;
  line-height: 1.6;
padding-bottom: 100px; /* deja espacio para la navbar inferior */
  text-align: center; /* <- añadir esta línea */


}
h1, h2 {
  font-family: var(--font-heading);
  color: var(--blue-dark);
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 2rem 0;
}



#sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100vh;
  background-color: #19314B;
  color: white;
  padding-top: 1rem;
  transition: left 0.3s ease;
  z-index: 999;
}

#menu-toggle {
  position: absolute;
  top: 10px;
  right: -50px;
  background: #19314B;
  border: none;
  color: white;
  padding: 10px;
  font-size: 24px;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  padding: 1rem;
}

.nav-links li {
  margin: 1rem 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  transition: background 0.3s;
  padding: 0.5rem;
}

.nav-links a:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 5px;
}


/* HERO PARALLAX */
.hero-wrapper {
  height: 200vh; /* doble de alto para simular scroll */
  position: relative;
}

.hero {
  position: sticky;
  top: 0;
  height: 100vh;
  background: url('/assets/uploads/photos/hero.jpg') center/cover no-repeat fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}


.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.6);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  transform: scale(1);
  transition: transform 0.1s ease-out;
  will-change: transform;
}


.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--blue-dark); /* azul oscuro */
  transition: transform 1s ease-out;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--blue-dark);
}

.hero-content.scrolled {
  transform: scale(1.2);
}


.hero-about .hero-content h1 {
  color: #1876b5 !important;
}


.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--blue-dark); /* fondo azul */
  color: #fff; /* texto blanco */
  text-decoration: none;
  font-weight: 600;
  border-radius: 5px;
  transition: background var(--transition);
  margin-top: 1.5rem;
}

.btn:hover {
  background: #145d8d; /* azul más oscuro en hover */
}

.service-list {
  columns: 2;
  gap: 1rem;
  list-style: none; /* quitar viñetas por defecto */
  padding: 0;
  text-align: left; /* ← alinear el texto internamente a la izquierda */
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* ← centrar todo el conjunto */
}

.service-list li::before {
  content: '• ';
  color: var(--blue-dark);
  font-weight: bold;
  margin-right: 5px;
}

.service-list li {
  width: 45%;
  margin-bottom: 0.5rem;
}


/* CARRUSEL BÁSICO */
.carousel {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  justify-content: center; /* ← centrar los íconos */
  flex-wrap: wrap; /* para que bajen en pantallas pequeñas */
}

.carousel img {
  max-height: 100px;
  object-fit: contain;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}
.carousel img:hover {
  transform: scale(1.05);
}

/* FOOTER */
footer {
  background: var(--gray-light);
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

section {
  padding: 3rem 0;
}

section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--blue-dark);
}

.carousel > div {
  min-width: 120px;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform var(--transition);
}

.carousel > div:hover {
  transform: translateY(-5px);
}

.contact-home {
  background: var(--beige);
  border-radius: 10px;
  text-align: center;
  padding: 3rem 2rem;
  margin-top: 2rem;
}

.contact-home h2,
.contact-home p {
  color: var(--blue-dark);
}

/* Estilo específico para la lista de servicios en la página de servicios */
.services .service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 auto;
  text-align: left;
  justify-content: center;
  max-width: 100%; /* ← esto reemplaza el max-width anterior */
}


.services .service-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 1rem;
  line-height: 1.4;
}

.services .service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--blue-dark);
  font-weight: bold;
}


@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

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

  .carousel {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .carousel > div {
    min-width: 150px;
    flex: 0 0 auto;
    scroll-snap-align: center;
  }

  .service-list {
    display: block;
    columns: 1;
    text-align: left;
  }

  .service-list li {
    width: 100%;
  }

  .contact-home {
    padding: 2rem 1.2rem;
  }

  section {
    padding: 2rem 0;
  }

  .container {
    width: 95%;
    text-align: center;
  }
}

.auto-scroll {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
  animation: scroll-logos 40s linear infinite;
}

.auto-scroll img {
  display: inline-block;
  margin-right: 2rem;
  max-height: 100px;
  object-fit: contain;
}

@keyframes scroll-logos {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Clona las imágenes para hacer loop infinito */
.auto-scroll::after {
  content: '';
  display: inline-block;
  width: 100%;
}

.carousel-wrapper {
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 1rem 0;
  background: transparent;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  animation: scroll-track 60s linear infinite;
  width: max-content;
}

.carousel-track img {
  height: 100px;
  object-fit: contain;
  display: inline-block;
  transition: transform 0.3s ease;
}

.carousel-track img:hover {
  transform: scale(1.05);
}

@keyframes scroll-track {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}


.hero-about {
  background-image: url('/assets/uploads/photos/about-hero.jpg'); /* ruta de tu nueva imagen */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-services {
  background-image: url('/assets/uploads/photos/services.jpg'); /* ruta de tu nueva imagen */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

.hero-contact {
  background-image: url('/assets/uploads/photos/contact.jpg'); /* ruta de tu nueva imagen */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* CONTACTO */
.contact-info {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2rem;
  text-align: center;
}

.contact-info li {
  margin: 0.5rem 0;
  font-size: 1.1rem;
}

.contact-info i {
  color: var(--blue-dark);
  margin-right: 0.5rem;
  font-size: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--gray-light);
  border-radius: 5px;
  font-size: 1rem;
}

.contact-form textarea {
  resize: vertical;
}

.service-checkboxes {
  border: none;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.5rem 1rem;
}

.service-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.service-checkboxes {
  border: none;
  padding: 1rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.5rem;
  background-color: #f9f9f9;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.service-checkboxes legend {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.service-checkboxes label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  background-color: #fff;
  padding: 0.6rem 0.8rem;
  border-radius: 5px;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.06);
  transition: background-color 0.2s;
  cursor: pointer;
}

.service-checkboxes label:hover {
  background-color: #eef6ff;
}

.service-checkboxes input[type="checkbox"] {
  accent-color: var(--blue-dark);
  width: 18px;
  height: 18px;
}

.service-checkboxes input[type="checkbox"]:checked + span {
  font-weight: 600;
  color: var(--blue-dark);
}

.logo-fixed {
  position: fixed;
  top: 1.2rem;
  left: 1.2rem;
  z-index: 1100; /* encima de todo */
  background: rgba(255, 255, 255, 0.85);
  padding: 10px 15px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

.logo-fixed img {
  height: 150px;
  object-fit: contain;
  display: block;
}

.logo-fixed:hover {
  transform: scale(1.03);
}




@media (max-width: 768px) {
  .hero {
    background-attachment: scroll; /* Mejora rendimiento en móviles */
  }

  .hero-content h1 {
    font-size: 1.8rem;
    padding: 0 1rem;
  }

  .hero-content p {
    font-size: 1rem;
    padding: 0 1.5rem;
  }

  .hero-content {
    transform: scale(1) translateY(0); /* asegúrate que no se rompa en móviles */
  }
}

@media (max-width: 576px) {
  .logo-fixed {
    top: 0.8rem;
    left: 0.8rem;
    padding: 8px 12px;
  }

  .logo-fixed img {
    height: 85px;
  }
}
