/* Variables Globales y Paleta de Colores para SOLDA LIMP */
:root {
  --primary: #11B12A; /* Verde */
  --secondary: #363636; /* Gris */
  --light-bg: #f9fbf9; /* Fondo muy suave verdoso/grisáceo */
  --text-dark: #333333;
  --text-gray: #666666;
  --white: #ffffff;
}

body {
  font-family: 'Inter', 'Open Sans', sans-serif;
  color: var(--text-dark);
  background-color: #fafafa;
}

/* Typography Hierarchy */
h1 { font-size: 46px; font-weight: 800; }
h2 { font-size: 36px; font-weight: 700; }
h3 { font-size: 28px; font-weight: 800; }
h4 { font-size: 22px; font-weight: 700; }
h5 { font-size: 18px; font-weight: 600; }
p { font-size: 15px; }

/* Header Ajustes */
#header {
  background: rgba(20, 20, 20, 0.75); /* Fondo oscuro semitransparente */
  backdrop-filter: blur(12px); /* Efecto blur (Glassmorphism) */
  -webkit-backdrop-filter: blur(12px); /* Soporte para Safari */
  box-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.nav-menu a {
  color: rgba(255, 255, 255, 0.85); /* Texto del menú en blanco suave */
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
}
.nav-menu a:hover, .nav-menu .active > a {
  color: var(--primary);
}

/* Home / Hero Slider */
#hero {
  width: 100%;
  height: 100vh;
  position: relative;
  padding: 0;
  background-color: #000;
}

.carousel-item {
  height: 100vh;
  min-height: 300px;
  background-color: var(--secondary);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.carousel-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.5); /* Overlay oscuro para legibilidad */
}
.carousel-caption {
  bottom: 30%;
  z-index: 10;
}
.carousel-caption h2 {
  font-size: 48px;
  font-weight: 700;
  color: var(--white);
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
  margin-bottom: 20px;
}
.carousel-caption p {
  font-size: 24px;
  color: var(--white);
  margin-bottom: 30px;
}
.btn-get-started {
  background: var(--primary);
  color: var(--white);
  border-radius: 50px;
  padding: 12px 35px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
  transition: all 0.4s ease;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(17, 177, 42, 0.4); /* Sombra verde difuminada */
  border: 2px solid var(--primary);
  display: inline-block;
}
.btn-get-started:hover {
  background: transparent !important;
  color: var(--white) !important;
  box-shadow: 0 6px 20px rgba(17, 177, 42, 0.6) !important;
  transform: translateY(-2px) !important;
  text-decoration: none !important;
}

/* Secciones Generales */
section {
  padding: 80px 0;
}
.section-title h3 {
  color: var(--secondary) !important;
  font-weight: 800;
  text-transform: uppercase;
}
.section-title h3 span {
  color: var(--primary) !important;
}
.section-bg {
  background-color: var(--light-bg);
}

/* Soluciones */
.solution-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  height: 100%;
}
.solution-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12); /* Sombra más pronunciada en hover */
}
.solution-card img {
  border-radius: 10px;
  margin-bottom: 25px;
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.solution-card h4 {
  color: var(--secondary); /* Usando el gris oscuro corporativo para títulos */
  font-weight: 700;
  margin-bottom: 15px;
}
.solution-list {
  padding-left: 0;
  list-style: none;
  color: var(--text-gray);
}
.solution-list li {
  margin-bottom: 8px;
  display: flex;
  align-items: flex-start;
}
.solution-list li i {
  margin-right: 8px;
  font-size: 1.2rem;
  margin-top: 2px;
}

/* RRHH Banner */
.rrhh-banner {
  background: linear-gradient(135deg, #222222b2 0%, var(--secondary) 100%);
  border-radius: 15px;
  padding: 50px 40px;
  margin-bottom: 60px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}
.rrhh-banner h3 { color: #fff; }

/* Casos de Éxito */
.client-logo {
  max-width: 150px;
  transition: 0.3s;
  filter: grayscale(100%);
  opacity: 0.6;
}
.client-logo:hover {
  filter: none;
  opacity: 1;
}
.client-box {
  padding: 20px;
  text-align: center;
}

/* Footer */
#footer {
  background: #222222;
  color: #fff;
}
#footer .footer-top {
  background: #1a1a1a;
}
#footer h4 {
  color: var(--secondary);
}
#footer a {
  color: #cfcfcf;
}
#footer a:hover {
  color: var(--secondary);
}
/* Social Links Header & Footer */
.header-social-links a {
  color: var(--white);
  transition: 0.3s;
}
.header-social-links a:hover {
  color: var(--primary) !important;
}

.social-icons {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
}
.social-icons a {
  font-size: 24px;
  color: var(--white);
  transition: 0.3s;
}
.social-icons a:hover {
  color: var(--primary) !important;
}

/* WhatsApp Flotante */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
}

/* Bootstrap Overrides para eliminar azules por defecto */
.text-primary {
  color: var(--primary) !important;
}
.bg-primary {
  background-color: var(--primary) !important;
}

/* Fix Contact Icons */
.contact .info-box i {
  border-color: rgba(17, 177, 42, 0.4) !important;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Buttons */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: #0f9624;
  border-color: #0f9624;
}

.btn-unified,
.contact .php-email-form button[type="submit"].btn-unified,
button.btn-unified,
a.btn-unified {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 12px 30px !important;
  border-radius: 50px !important;
  background-color: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  color: #fff !important;
  transition: all 0.3s ease;
}
.btn-unified:hover,
.contact .php-email-form button[type="submit"].btn-unified:hover,
button.btn-unified:hover,
a.btn-unified:hover {
  background-color: transparent !important;
  color: var(--primary) !important;
  box-shadow: 0 5px 15px rgba(17, 177, 42, 0.3);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Custom File Upload Styling */
.custom-file-upload {
  position: relative;
  display: block;
}
.custom-file-upload .input-file {
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  position: absolute;
  z-index: -1;
}
.border-dashed {
  border: 2px dashed #ced4da !important;
  color: #6c757d;
  background-color: #f8f9fa;
  transition: all 0.3s;
  border-radius: 10px;
  cursor: pointer;
}
.border-dashed:hover {
  background-color: #f1fcf2;
  border-color: var(--primary) !important;
  color: var(--primary);
}

/* Estilos de inputs generales frontend */
.php-email-form input.form-control, .php-email-form textarea.form-control {
  border-radius: 8px;
  padding: 12px 15px;
  border: 1px solid #ced4da;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.02);
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.php-email-form input.form-control:focus, .php-email-form textarea.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(17, 177, 42, 0.25);
}

/* Ajustes del Menú Mobile y Redes Sociales para evitar colisiones y mejorar contraste */
@media (max-width: 991px) {
  #header .logo img {
    max-height: 55px !important;
  }
  
  .mobile-nav-toggle {
    position: fixed !important;
    top: 22px !important;
    right: 15px !important;
    z-index: 9999 !important;
    border: none !important;
    background: rgba(255, 255, 255, 0.1) !important; /* Efecto Glassmorphism premium */
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.3s ease-in-out !important;
  }

  .mobile-nav-toggle i {
    color: #ffffff !important; /* Alto contraste (blanco) sobre el fondo oscuro */
    font-size: 20px !important;
    line-height: 0 !important;
    transition: all 0.3s ease-in-out !important;
  }

  .mobile-nav-toggle:hover {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 4px 15px rgba(17, 177, 42, 0.4) !important;
    transform: translateY(-1px) !important;
  }

  .mobile-nav-toggle:hover i {
    color: #ffffff !important;
  }

  /* Desplazar las redes sociales a la izquierda para que no se superpongan con el botón del menú */
  .header-social-links {
    margin-right: 50px !important;
  }
}

@media (max-width: 575px) {
  #header .logo img {
    max-height: 45px !important;
  }

  .mobile-nav-toggle {
    top: 15px !important;
    width: 36px !important;
    height: 36px !important;
  }

  .mobile-nav-toggle i {
    font-size: 18px !important;
  }

  .header-social-links {
    margin-right: 42px !important;
  }
  
  /* Ajuste de tamaño y márgenes de redes sociales en móviles muy pequeños */
  .header-social-links a {
    margin-left: 10px !important;
  }
  .header-social-links a i {
    font-size: 18px !important;
  }
}

