/* ========================================================================== 
   Estilos para ELECSA CON S.A.S
   ========================================================================== */

/* --- Variables Globales --- */
:root {
  --electric-blue: #0077cc;
  --bright-yellow: #ffd700;
  --white: #ffffff;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --font-title: "Montserrat", sans-serif;
  --font-body: "Roboto", sans-serif;
}

/* --- Reset / Global --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  background-color: var(--white);
  color: var(--dark-gray);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  margin-bottom: 1rem;
  color: var(--electric-blue);
}

h1 {
  font-size: 2.8rem;
}
h2 {
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 2rem;
}
h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1rem;
}

.section-padding {
  padding: 60px 0;
}
.bg-light {
  background-color: var(--light-gray);
}

/* --- Header --- */
header {
  background: var(--white);
  padding: 1rem 0;
  border-bottom: 2px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img {
  max-height: 60px;
  display: block;
  border: 3px solid rgba(255, 215, 0, 0.5);
  border-radius: 15px;
  padding: 5px;
  background-color: var(--white);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.logo img:hover {
  transform: scale(1.15);
  border-color: var(--bright-yellow);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* --- Navegación --- */
nav {
  margin-left: auto;
}
nav ul {
  display: flex;
  gap: 25px;
  list-style: none;
}
nav ul li a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: 500;
  font-family: var(--font-title);
  position: relative;
  padding-bottom: 5px;
  transition: color 0.3s ease;
}
nav ul li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--bright-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease-in-out;
}
nav ul li a:hover::after,
nav ul li a.active::after {
  transform: scaleX(1);
}
nav ul li a:hover,
nav ul li a.active {
  color: var(--electric-blue);
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--dark-gray);
  z-index: 2001;
}

/* --- Botones --- */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-family: var(--font-title);
  font-weight: 700;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--bright-yellow);
  color: var(--dark-gray);
}
.btn-primary:hover {
  background-color: #e5c500;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: var(--electric-blue);
  color: var(--white);
}
.btn-secondary:hover {
  background-color: #005a9e;
  transform: translateY(-2px);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: var(--white);
  border: 5px solid var(--bright-yellow);
  border-radius: 15px;
  box-shadow: 0 0 20px var(--bright-yellow);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.hero-content h1,
.hero-content p {
  color: var(--white);
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

/* --- Servicios --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.service-card {
  background: var(--white);
  padding: 30px;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.service-card i {
  font-size: 3rem;
  color: var(--bright-yellow);
  margin-bottom: 1rem;
}
.service-card h3 {
  font-size: 1.5rem;
}

/* --- About --- */
.about-content {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-bottom: 60px;
}
.about-text,
.about-image {
  flex: 1;
}
.about-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 3px solid var(--bright-yellow);
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.about-image img:hover {
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}
.value-card {
  background: var(--white);
  padding: 25px;
  border-left: 5px solid var(--electric-blue);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}
.value-card i {
  font-size: 2.5rem;
  color: var(--electric-blue);
  margin-bottom: 1rem;
}

/* --- Contacto --- */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.contact-form {
  background: var(--light-gray);
  padding: 30px;
  border-radius: 8px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 500;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-family: var(--font-body);
}
.contact-info .info-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}
.contact-info i {
  font-size: 1.5rem;
  color: var(--bright-yellow);
  min-width: 30px;
}
.map-placeholder {
  margin-top: 30px;
  background: #e0e0e0;
  padding: 40px;
  text-align: center;
  border-radius: 8px;
}

/* --- Footer --- */
footer {
  background: var(--dark-gray);
  color: var(--light-gray);
  text-align: left;
  padding: 30px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-contact p {
  margin: 5px 0;
  font-size: 0.9rem;
}
.footer-contact i {
  color: var(--bright-yellow);
  margin-right: 8px;
}
.social-links a {
  color: var(--white);
  margin: 0 10px;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}
.social-links a:hover {
  color: var(--bright-yellow);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  h2 {
    font-size: 1.8rem;
  }

  .hamburger {
    display: block;
  }

  nav ul {
    position: absolute;
    top: 70px;
    right: 0;
    background: var(--dark-gray);
    width: 220px;
    flex-direction: column;
    align-items: flex-start;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    display: none;
    z-index: 2000;
  }

  nav ul.show {
    display: flex;
  }

  nav ul li {
    width: 100%;
    margin: 10px 0;
  }

  nav ul li a {
    color: var(--white);
    text-decoration: none;
    width: 100%;
    display: block;
    padding: 8px 10px;
    transition: background 0.3s;
  }

  nav ul li a:hover {
    background: rgba(255, 215, 0, 0.2);
  }

  .about-content {
    flex-direction: column;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  footer .container {
    flex-direction: column;
    text-align: center;
  }

  .hero {
    height: 40vh;
    min-height: 300px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 0.9rem;
  }
}

.contador-circulo {
  display: inline-block;
  background: radial-gradient(circle, #ffeb3b, #fff);
  border-radius: 50%;
  padding: 8px 18px;
  font-size: 1.3em;
  font-weight: bold;
  color: #333;
  box-shadow: 0 0 10px rgba(255, 235, 59, 0.6);
  margin-left: 8px;
}

.footer-counter {
  margin-top: 10px;
  font-size: 1.1rem;
  color: #ddd;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-counter i {
  color: #ffcc00;
  font-size: 1.2rem;
}

.visit-badge {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: radial-gradient(circle, #fffbe6 0%, #ffcc00 70%, #ffb300 100%);
  box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
  margin-left: 8px;
  animation: pulseGlow 2s ease-in-out infinite;
}

#visitCount {
  font-size: 1.6rem;
  font-weight: bold;
  color: #333;
  text-shadow: 0 0 2px rgba(255, 255, 255, 0.7);
}

/* Efecto de pulso suave */
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 10px rgba(255, 204, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  }
}

/* Efecto difuminado amarillo-blanco */
.service-card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.9),
    rgba(255, 215, 0, 0.3)
  );
  border-radius: 20px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
  padding: 20px;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.6);
}

/* Efecto en los íconos */
.service-card i {
  font-size: 3rem;
  color: #ffd700;
  background: radial-gradient(circle, #fffbe6 10%, #ffd700 90%);
  border-radius: 50%;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card i:hover {
  transform: scale(1.15);
  box-shadow: 0 8px 20px rgba(255, 215, 0, 0.8);
}

/* Títulos dentro de los cards */
.service-card h3 {
  color: #333;
  margin-top: 15px;
  font-weight: bold;
}

/* Texto */
.service-card p {
  color: #555;
}
