/*
Theme Name: HIDROPEX 2026
Author: HIDROPEX
Version: 3.0
Description: Tema corporativo HIDROPEX - UX, SEO avanzado, Seguridad y Analítica
*/

body {
  font-family: Arial, Helvetica, sans-serif;
  margin: 0;
  color: #2b2b2b;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
}

h1, h2, h3 {
  color: #2E5AAC;
}

.site-header {
  background: #ffffff;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-cta {
  background: #2E5AAC;
  color: #fff;
  padding: 10px 18px;
  text-decoration: none;
  border-radius: 4px;
}

.card {
  border: 1px solid #ddd;
  padding: 26px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25D366;
  color: white;
  padding: 14px;
  border-radius: 50%;
  font-size: 20px;
  text-decoration: none;
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 10px;
  }
}

/* HERO HOME HIDROPEX */
.hero {
  background-image: url('https://hpex.empresascontrol.com/wp-content/uploads/2025/05/image3-scaled.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
  color: #ffffff;
  padding: 140px 0;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.55);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}


/* ================================
   FORMULARIO DE CONTACTO HIDROPEX
================================ */

.contact-form {
  max-width: 600px;
  margin-top: 30px;
}

.contact-form p {
  margin-bottom: 20px;
}

.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: #1f2d3d;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  font-size: 15px;
  font-family: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #1e4db7;
}

.contact-form button {
  background-color: #1e4db7;
  color: #ffffff;
  padding: 14px 28px;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form button:hover {
  background-color: #163a8f;
}
.contact-form {
  background: #f7f9fc;
  padding: 30px;
  border-radius: 6px;
}


/* ================================
   SERVICIOS - CARDS
================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding-bottom: 80px;
}

.service-card {
  background: #f7f9fc;
  padding: 30px;
  border-radius: 6px;
  border-left: 5px solid #1e4db7;
}

.service-card h3 {
  margin-top: 0;
  color: #1e4db7;
  font-size: 20px;
}

.service-card p {
  margin-bottom: 0;
  color: #333;
  line-height: 1.6;
}


/* ================================
   HERO HOME
================================ */

/* ================================
   WHY HIDROPEX
================================ */

.why-hidropex {
  background: #f0f4fa;
  padding: 100px 0;
}

.why-item {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.04);
}


.why-hidropex h2 {
  text-align: center;
  margin-bottom: 50px;
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.why-item {
  text-align: center;
}

.why-item h3 {
  color: #1e4db7;
  margin-bottom: 15px;
}

.why-item p {
  color: #333;
  line-height: 1.6;
}
.service-card {
  background: #ffffff;
  padding: 30px;
  border-radius: 8px;
  border-left: 5px solid #1e4db7;
  box-shadow: 0 8px 20px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}
/* ================================
   MENÚ PRINCIPAL HIDROPEX
================================ */

.main-navigation ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 28px;
  align-items: center;
}

.main-navigation li {
  list-style: none;
}

.main-navigation a {
  text-decoration: none;
  color: #1f2d3d;
  font-weight: 600;
  font-size: 15px;
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.main-navigation a:hover {
  color: #1e4db7;
}

/* Línea inferior al hacer hover */
.main-navigation a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #1e4db7;
  transition: width 0.25s ease;
}

.main-navigation a:hover::after {
  width: 100%;
}

/* CTA del menú */
.menu-cta {
  margin-left: 20px;
}

.menu-cta a {
  background: #1e4db7;
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: 4px;
  font-size: 14px;
}

.menu-cta a:hover {
  background: #163a8f;
}


/* ================================
   HEADER & NAV ALIGNMENT
================================ */

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 30px;
}

.main-navigation li {
  list-style: none;
}
