/* =====================================================
   LUDEV ELECTRIC - ESTILO OPTIMIZADO
   Autor: Luis Zuñiga
===================================================== */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: "Roboto", sans-serif; background-color: #f5f7fa; color: #222; line-height: 1.6; scroll-behavior: smooth; }
img { max-width: 100%; height: auto; display: block; }

/* COLORES */
:root {
  --azul-principal: #0155a3;
  --azul-secundario: #007bff;
  --dorado: #ffcc00;
  --gris-claro: #f5f7fa;
  --blanco: #ffffff;
  --sombra: rgba(0, 0, 0, 0.15);
}

/* HEADER */
header { background: linear-gradient(90deg, var(--azul-principal), var(--azul-secundario)); color: var(--blanco); text-align: center; padding: 25px 15px; position: relative; }
.logo-container { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.logo { width: 80px; height: auto; }
header h1 { font-family: "Montserrat", sans-serif; font-size: 2.4rem; font-weight: 700; letter-spacing: 1px; }
header p { font-size: 1.1rem; opacity: 0.9; }

/* MENÚ */
nav { background-color: var(--azul-principal); padding: 0.7rem; box-shadow: 0 2px 10px var(--sombra); }
nav ul { display: flex; justify-content: center; list-style: none; flex-wrap: wrap; }
nav ul li { margin: 0 18px; }
nav ul li a { color: var(--blanco); text-decoration: none; font-weight: 600; transition: color 0.3s ease; }
nav ul li a:hover { color: var(--dorado); }
#menu-toggle { position: absolute; top: 20px; right: 20px; background: transparent; color: var(--blanco); font-size: 1.8rem; border: none; cursor: pointer; display: none; }
nav ul.show { display: flex; }

/* HERO */
.hero { background: url("../img//service1.jpg") center/cover no-repeat; height: 80vh; display: flex; align-items: center; justify-content: center; color: var(--blanco); text-align: center; position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; background: rgba(243, 243, 243, 0.156); }
.hero-content { position: relative; z-index: 1; max-width: 700px; padding: 20px; }
.hero h2 { font-family: "Montserrat", sans-serif; font-size: 2.5rem; margin-bottom: 15px; }
.hero p { font-size: 1.1rem; margin-bottom: 25px; }
.btn-primary { display: inline-block; padding: 12px 25px; background-color: var(--dorado); color: #000; border-radius: 30px; text-decoration: none; font-weight: 700; transition: background-color 0.3s, transform 0.3s; }
.btn-primary:hover { background-color: #ffd633; transform: translateY(-3px); }

/* SECCIONES */
section { padding: 70px 20px; max-width: 1100px; margin: 0 auto; opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s ease; will-change: transform, opacity; }
section.visible { opacity: 1; transform: translateY(0); }
section h2 { text-align: center; font-family: "Montserrat", sans-serif; color: var(--azul-principal); font-size: 2rem; margin-bottom: 15px; }
section p { text-align: center; margin-bottom: 40px; color: #444; font-size: 1.05rem; }

/* SERVICIOS */
.servicios-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.card { flex: 1 1 300px; background: #fff; border-radius: 15px; padding: 20px; box-shadow: 0 6px 15px rgba(0,0,0,0.1); text-align: center; }
.carousel-container { position: relative; overflow: hidden; border-radius: 12px; margin-bottom: 15px; max-width: 100%; }
.carousel { display: flex; transition: transform 0.5s ease-in-out; }
.carousel-img { min-width: 100%; height: 200px; overflow: hidden; border-radius: 12px; }
.carousel-img img { width: 100%; height: 100%; object-fit: cover; }
.carousel { display: flex; transition: transform 0.5s ease; will-change: transform; }


/* FLECHAS DEL CARRUSEL ESTILO PROFESIONAL */
.carousel-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 1.5rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  z-index: 5;
  transition: background 0.3s;
  opacity: 0; /* aparecen solo al hover */
}

.carousel-container:hover .prev,
.carousel-container:hover .next {
  opacity: 1;
}

.prev:hover, .next:hover {
  background: rgba(0,0,0,0.7);
}

.prev { left: 10px; }
.next { right: 10px; }





/* VISIÓN Y MISIÓN */
.vision-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.vision-box { background: var(--blanco); border-left: 6px solid var(--azul-secundario); padding: 25px; border-radius: 12px; box-shadow: 0 3px 12px var(--sombra); flex: 1; min-width: 300px; }
.vision-box h3 { color: var(--azul-principal); margin-bottom: 10px; }

/* POR QUÉ ELEGIRNOS */
.porque-elegirnos { display: flex; flex-wrap: wrap; justify-content: center; gap: 25px; }
.porque-item { background: var(--blanco); border-radius: 15px; box-shadow: 0 3px 10px var(--sombra); padding: 25px 15px; width: 240px; font-weight: 600; color: var(--azul-principal); text-align: center; transition: all 0.3s ease; }
.porque-item:hover { background-color: var(--azul-secundario); color: var(--blanco); transform: translateY(-5px); }

/* CONTACTO */
form { display: flex; flex-direction: column; gap: 15px; max-width: 500px; margin: 0 auto; }
input, textarea, button { padding: 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 1rem; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--azul-secundario); }
button { background-color: var(--azul-secundario); color: var(--blanco); border: none; cursor: pointer; font-weight: 600; transition: background-color 0.3s ease, transform 0.3s ease; }
button:hover { background-color: var(--azul-principal); transform: translateY(-3px); }

/* FOOTER */
footer { background-color: var(--azul-principal); color: var(--blanco); text-align: center; padding: 30px 20px; margin-top: 50px; }
footer p { margin: 10px 0; }
footer a { color: var(--dorado); text-decoration: none; margin: 0 10px; transition: opacity 0.3s; }
footer a:hover { opacity: 0.8; }

/* WHATSAPP */
.whatsapp-dropdown { position: fixed; bottom: 25px; right: 25px; z-index: 999; }
.whatsapp-float { background-color: #25d366; color: white; width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2rem; cursor: pointer; text-decoration: none; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.whatsapp-menu { display: none; flex-direction: column; margin-top: 10px; }
.whatsapp-menu a { background: var(--blanco); color: var(--azul-principal); padding: 10px; border-radius: 12px; margin-bottom: 8px; text-decoration: none; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,0.1); }
.whatsapp-menu a:hover { background-color: var(--azul-secundario); color: var(--blanco); }
.whatsapp-menu { 
  transition: all 0.3s ease; 
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
  nav ul { flex-direction: column; display: none; background-color: var(--azul-principal); }
  nav ul li { margin: 10px 0; }
  #menu-toggle { display: block; }
}


/* --- SECCIÓN EQUIPO --- */
.equipo-section {
  text-align: center;
  padding: 60px 20px;
  background: linear-gradient(135deg, #f8f9fa 0%, #eef1f5 100%);
}

.equipo-section h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 10px;
}

.equipo-section p {
  color: #555;
  max-width: 700px;
  margin: 0 auto 40px;
  font-size: 1rem;
}

/* --- GRID --- */
.equipo-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

/* --- CARD --- */
.card {
  background: #fff;
  border-radius: 20px;
  width: 260px;
  padding: 25px 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}

/* --- IMAGEN --- */
.img-container {
  width: 200px;
  height: 200px;
  margin: 0 auto 15px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #007bff;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover img {
  transform: scale(1.08);
}

/* --- TEXTO --- */
.card h3 {
  margin: 10px 0 5px;
  color: #222;
  font-size: 1.3rem;
}

.card .cargo {
  font-weight: 600;
  color: #007bff;
  margin-bottom: 5px;
}

.card p {
  color: #555;
  font-size: 0.95rem;
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
  .equipo-grid {
    gap: 30px;
  }

  .card {
    width: 80%;
  }
}
