/* ----------- GENERALES ----------- */
body {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #f5f5f5;
  color: #333;
}

section {
  padding: 3rem 2rem;
  margin: auto;
}

h1, h2, h3, h4 {
  color: inherit;
  text-align: center;
  margin-bottom: 1.5rem;
}

ul {
  padding-left: 1.2rem;
}

/* ----------- NAVBAR ----------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #000000;
  padding: 1rem 2rem;
  color: white;
}

.logo img {
  height: 40px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
}

.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.btn {
  background-color: #0099cc;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
}

/* ----------- HERO ----------- */
.hero {
  padding: 60px 20px;
  background-color: #f8f8f8;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-text {
  flex: 1 1 55%;
  padding-right: 30px;
}

.hero-text h1 {
  font-size: 2.5rem;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-text p {
  font-size: 1.2rem;
  line-height: 1.6;
}

.hero-image {
  flex: 1 1 40%;
  text-align: center;
}

.hero-image img {
  max-width: 90%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
}

/* ----------- BENEFICIOS ----------- */
#beneficios {
  background-color: #1c1c1c;
  color: #f2f2f2;
}

.beneficios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.beneficio {
  display: flex;
  gap: 1rem;
}

.icono-placeholder {
  width: 30px;
  height: 30px;
  background-color: #444;
  border-radius: 5px;
  flex-shrink: 0;
}

.beneficio h3 {
  margin: 0;
}

.beneficio p {
  margin-top: 0.3rem;
  color: #ccc;
}

/* ----------- SERVICIOS ----------- */
#servicios {
  background-color: #1c1c1c;
  color: #fff;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.servicio-card {
  background-color: #2b2b2b;
  padding: 1.5rem;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.servicio-card h3 {
  margin-top: 0;
}

.servicio-card p {
  color: #ddd;
}

/* ----------- PROCESO ----------- */
#proceso {
  background-color: #7e6e06;
  color: #f8f7f7;
}

.proceso-contenedor {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.paso {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.paso .icono {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.paso .icono img {
  width: 100%;
  height: auto;
  display: block;
}

.paso .texto {
  display: flex;
  flex-direction: row;
  gap: 0.5rem;
  flex: 1;
  align-items: flex-start;
}

.paso .numero {
  min-width: 2.2rem; /* <-- Alinea números tipo 1., 2., 10. */
  font-weight: bold;
}

.paso .contenido-texto {
  flex: 1;
}

.paso .contenido-texto h3 {
  margin: 0 0 0.2rem;
  font-size: 1.1rem;
  font-weight: bold;
}

.paso .contenido-texto p {
  margin: 0;
  line-height: 1.5;
}


/* ----------- CASOS DE ÉXITO ----------- */
#casos {
  background-color: #111;
  color: #fefefe;
}

.casos-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.casos-texto {
  flex: 1 1 500px;
}

.casos-imagen {
  flex: 1 1 400px;
  text-align: center;
}

.casos-imagen img {
  max-width: 90%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  border-radius: 12px;
}

.caso p {
  margin: 0 0 1rem;
  color: #ccc;
}

/* ----------- TECNOLOGÍA ----------- */
#tecnologia {
  background-color: #7e6e06;
}

.tecnologia-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-around;
  margin-bottom: 1rem;
}

.columna ul {
  list-style-type: disc;
  padding-left: 1.5rem;
}

.nota {
  text-align: center;
  font-size: 0.95rem;
  color: #333;
}

/* ----------- VALORES PRESTIGE ----------- */
#prestige-valores {
  background-color: #1c1c1c;
  color: #fff;
  text-align: center;
}

.valores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.valor-numero {
  font-size: 2.5rem;
  font-weight: bold;
  color: inherit;
}

/* ----------- CONTACTO & FOOTER ----------- */
#contacto {
  background-color: #eee;
  color: #000;
  text-align: center;
}

footer {
  background-color: #000000;
  color: white;
  text-align: center;
  padding: 1rem;
}

/* ----------- Responsive Navbar ----------- */
.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #333;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    right: 10px;
    background-color: white;
    padding: 1rem;
    border: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .nav-links.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
  }

  .btn-cta {
    display: none;
  }
}

/* ----------- WhatsApp Button ----------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #25D366;
  color: white;
  font-size: 28px;
  text-align: center;
  border-radius: 50%;
  padding: 14px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ----------- Servicios Deslizables ----------- */
.services-carousel {
  display: flex;
  overflow: hidden;
  gap: 24px;
  padding: 30px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.service-card {
  flex: 0 0 calc(35% - 24px);
  height: 300px;
  background-color: #2a2a2a;
  color: #fff;
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
  scroll-snap-align: start;
  box-sizing: border-box;
}

.service-card:hover {
  transform: scale(1.03);
}

.service-card img {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
}

.service-card h3 {
  margin-bottom: 10px;
  color: #00ffc3;
  font-size: 20px;
}

@media (max-width: 1024px) {
  .service-card {
    flex: 0 0 calc(50% - 16px);
  }
}

@media (max-width: 600px) {
  .service-card {
    flex: 0 0 100%;
  }
}

/* ----------- Botón de cambio de tema ----------- */
.theme-toggle {
  margin-left: 1rem;
  display: flex;
  align-items: center;
}

.theme-toggle input {
  display: none;
}

.theme-toggle label {
  cursor: pointer;
  font-size: 1.5rem;
  color: currentColor;
  transition: transform 0.2s;
}

.theme-toggle label:hover {
  transform: scale(1.2);
}

/* ----------- Formulario contacto ----------- */
.formulario-contacto {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 500px;
  margin: 2rem auto;
  padding: 1rem;
}

.formulario-contacto input,
.formulario-contacto textarea {
  padding: 0.75rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.formulario-contacto button.btn {
  background-color: #0099cc;
  color: white;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.formulario-contacto button.btn:hover {
  background-color: #0077aa;
}

.ubicacion-mapa {
  margin-top: 2rem;
  text-align: center;
}

/* ----------- Modo Claro y Oscuro ----------- */
body.light {
  background-color: #f5f5f5;
  color: #111;
}

body.dark {
  background-color: #121212;
  color: #f5f5f5;
}

body.light .navbar,
body.dark .navbar {
  background-color: #000;
}

body.light section,
body.dark section {
  background-color: inherit;
  color: inherit;
}

body.light .btn,
body.dark .btn {
  background-color: #0099cc;
  color: white;
}

body.light .hero,
body.dark .hero {
  background-color: inherit;
}

body.light .service-card {
  background-color: #f0f0f0;
  color: #111;
}

body.dark .service-card {
  background-color: #2a2a2a;
  color: #fff;
}

/* Modo Claro - Contacto */
body.light #contacto {
  background-color: #f5f5f5;
  color: #111;
}

/* Modo Oscuro - Contacto */
body.dark #contacto {
  background-color: #1e1e1e;
  color: #f5f5f5;
}
