* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  padding-top: 70px;
}

html, body {
  height: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.btn-wsp {
  position: fixed;
  width: 50px;
  height: 50px;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.btn-wsp img {
  width: 35px;
  height: 35px;
}

.btn-wsp:hover {
  transform: scale(1.1);
}

main {
  flex: 1;
}

header {
  font-family: "Candara", serif;
  position: fixed;
  top: 0;
  width: 100%;
  background: #10403B;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.logo {
  font-size: 1.4rem;
  font-weight: bold;
  color: white;
  text-decoration: none;
}

.logo img {
  color: white;
  width: 120px;
  height: auto;
  display: block;
}

.logo-link {
  cursor: pointer;
  display: inline-block;
}

.logo a {
  text-decoration: none;
}

.nav {
  color: white;
}

.nav a {
  margin-left: 20px;
  text-decoration: none;
  color: white;
  font-weight: 500;
  font-size: 1.1rem;
}

.nav a:hover {
  color: #8FBC8F;
}

.hero {
  background: url('../img/fondo.jpg') center/cover no-repeat;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 20px;
}

.hero-texto {
  color: white;
  background: rgba(94, 113, 123, 0.5);
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  margin: 15px 0;
  font-size: 1.2rem;
}

.btn {
  display: inline-block;
  padding: 12px 25px;
  background: #127369;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn:hover {
  background: #008F8C;
  transform: translateY(-2px);
}

.redes-sidebar {
  position: fixed;
  top: 53.2%;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 5px;
  background: rgba(0, 143, 140, 0.4);
  border-radius: 8px 0 0 8px;
  z-index: 1000;
}

.redes-sidebar a img {
  width: 30px;
  height: 30px;
  transition: transform 0.3s;
}

.redes-sidebar a:hover img {
  transform: scale(1.2);
  cursor: pointer;
}

h2::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  background: #008F8C;
  margin: 10px auto 0;
  border-radius: 2px;
}

.seccion {
  padding: 100px 20px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  font-family: Poppins, sans-serif;
}

.seccion h2 {
  font-size: 2.5rem;
  font-weight: 700;
  font-family: "Calisto MT";
  text-align: center;
  margin-bottom: 30px;
  color: #0F624A;
  letter-spacing: 2px;
  text-transform: uppercase;
  position: relative;
}

.fondo-gris {
  background: #f9fafb;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  align-items: stretch;
}

.card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  height: 100%;
  transition: all 0.3s ease;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.14);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  min-height: 380px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: contain;
  border-radius: 5px;
  margin-bottom: 20px;
}

.card h3 {
  margin: 15px 0;
  color: #0F624A;
  font-size: 1.3rem;
  text-align: center;
  width: 100%;
}

.card p {
  color: #555;
  text-align: center;
  margin-bottom: 20px;
  flex-grow: 1;
  width: 100%;
}

.card1 {
  width: 100%;
  height: 300px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  font-weight: bold;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  margin: 20px 0;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.card1 h3 {
  margin: 5px;
  z-index: 1;
  font-size: 1.7rem;
}

.card1::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  z-index: 0;
}

.card1:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.card-clientes {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  background: #f9fafb;
  padding: 20px;
  border-bottom: 1px solid var(--borde);
}

.card-clientes img {
  max-width: 250px;
  height: auto;
  border-radius: 12px;
  border: #008F8C solid 1px;
  box-shadow: 0 6px 16px rgba(0,0,0,.08);
  transition: transform .3s ease;
}

a {
  text-decoration: none;
}

.card-técnico {background-image: url("../img/servicio-técnico1.jpg");}
.card-pos {background-image: url("../img/servicio-pos.jpg");}
.card-servidores {background-image: url("../img/servicio-servidores.webp");}
.card-ups {background-image: url("../img/servicio-ups.png");}

.formulario {
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.formulario input, .formulario textarea {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.formulario input:focus, .formulario textarea:focus {
  border-color: #005bbb;
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,91,187,0.2);
}

.formulario button {
  padding: 12px;
  border: none;
  background: #127369;
  color: white;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.formulario button:hover {
  background: #008F8C;
  transform: translateY(-2px);
}

.fila {
  display: flex;
  gap: 20px;
  width: 100%;
}

.fila input {
  flex: 1;
  min-width: 0;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.text-servicio {
  display: flex;
  padding-left: 10px;
  padding-right: 10px;
}

#estado {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

#estado.enviando {
  background: #d1ecf1;
  color: #0c5460;
}

#estado.exito {
  background: #d4edda;
  color: #155724;
}

#estado.error {
  background: #f8d7da;
  color: #721c24;
}

.dirección {
  display: flex;
  text-align: left;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: white;
  margin-top: 10px;
}

.dirección a {
  text-decoration: none;
  color: lightseagreen;
}

.footer {
  background: #011F26;
  color: white;
  text-align: center;
  padding: 15px;
  margin-top: 5px;
  font-family: 'Poppins', sans-serif;
}

.footer p {
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  color: white;
}

@media (max-width: 768px) {
  .nav {
    justify-content: flex-start;
  }

  .nav a {
    margin-left: 10px;
    font-size: 1rem;
  }
}