@media (min-width: 769px) {
  .menu-toggle {
    display: none !important;
  }
}
/*
  PC Soluciones - Estilos principales
  Paleta: #0a2342 (azul oscuro), #185adb (azul principal), #f6f9ff (fondo), #ffffff (blanco), #1e2746 (texto)
  Fuente: 'Segoe UI', Arial, sans-serif
*/

:root {
  --color-bg: #f6f9ff;
  --color-primary: #185adb;
  --color-dark: #0a2342;
  --color-white: #ffffff;
  --color-text: #1e2746;
  --color-accent: #185adb;
}

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

body {
  font-family: 'Segoe UI', Arial, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

header {
  background: #0F314B;
  box-shadow: 0 6px 24px rgba(10,35,66,0.18), 0 2px 0 #222;
  padding: 1.2rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  height: 60px; /* Fija la altura */
  max-height: 60px;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: #0F314B;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-icon,
.logo-letras {
  height: 100%;
  width: auto;
  max-height: 60px;
  object-fit: contain;
  display: block;
}

@media (max-width: 768px) {
  .logo-icon,
  .logo-letras {
    max-height: 40px;
  }
}
nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
}

nav a {
  color:  #fff !important;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--color-primary);
}

.hero {
  background: linear-gradient(90deg, var(--color-primary) 60%, var(--color-bg) 100%);
  color: var(--color-white);
  padding: 6rem 1.5rem 5rem 1.5rem; /* Aumenta el alto visible */
  text-align: center;
  background-image:
    linear-gradient(rgba(10,35,66,0.60), rgba(10,35,66,0.60)), /* Capa de transparencia */
    url('../img/banner_principal.png');
  background-size: cover;
  background-position: center bottom;
  background-repeat: no-repeat;
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.hero p {
  font-size: 1.35rem;
  margin-bottom: 2rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 2px 8px rgba(10,35,66,0.25), 0 1px 0 #185adb;
  letter-spacing: 0.01em;
}

.cta-btn {
  background: var(--color-white);
  color: var(--color-primary);
  border: none;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24,90,219,0.08);
  transition: background 0.2s, color 0.2s;
}

.cta-btn:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.services {
  max-width: 1100px;
  margin: 3rem auto;
  padding: 0 1.5rem;
}

.services-title {
  text-align: center;
  font-size: 2rem;
  color: #0F314B;
  margin-bottom: 2rem;
  font-weight: 700;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 2.5rem;
  justify-content: center;
}

.service {
  background: var(--color-white);
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(10,35,66,0.06);
  padding: 0 0 1.5rem 0;
  text-align: center;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  height: 410px; /* Más espacio para texto, imagen no se recorta */
  position: relative;
}

.service:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 6px 24px rgba(24,90,219,0.10);
}

.service-icon {
  width: 100%;
  height: 50%;
  min-height: 120px;
  max-height: 180px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 0;
  overflow: hidden;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  background: #fff;
  padding: 0;
  /* Fuerza altura fija para todas las imágenes */
  flex-shrink: 0;
}

.service-img-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 16px 16px 0 0;
  background: #fff;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
  position: relative;
  z-index: 1;
  max-height: 3.4em; /* Permite hasta 2 líneas completas */
  overflow: visible;
  text-overflow: unset;
  white-space: normal;
}

.service-desc {
  font-size: 0.98rem;
  color: #444b5a;
  max-height: 4.4em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

@media (min-width: 769px) {
  .service-desc {
    font-size: 0.93rem;
  }
}

.service-btn {
  display: inline-block;
  margin-top: 1.1rem;
  padding: 0.7rem 2.1rem;
  background: #0F314B;
  color: #fff;
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(10,35,66,0.10);
  transition: background 0.2s, color 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.service-btn:hover, .service-btn:focus {
  background: #185adb;
  color: #fff;
  transform: translateY(-2px) scale(1.04);
}

/* Contacto con QR */
.contact-section {
  background: var(--color-white);
  margin: 3rem 0 0 0;
  padding: 2.5rem 1.5rem 2rem 1.5rem;
  border-radius: 18px;
  max-width: 900px;
  box-shadow: 0 2px 12px rgba(10,35,66,0.07);
  margin-left: auto;
  margin-right: auto;
  min-height: 600px;
  display: flex;
  flex-direction: column;
}

.contact-flex {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  min-height: 400px;
  height: 100%;
}

.contact-info {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;   /* Centra el formulario verticalmente */
}

.contact-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  max-width: 100%;
  width: 100%;
  height: 100%;
  flex: 1 1 220px;
}

.qr-img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(24,90,219,0.10);
  margin-bottom: 0.5rem;
}

.qr-caption {
  font-size: 0.98rem;
  color: #444b5a;
  text-align: center;
  margin-top: 0.2rem;
}

.contact-title {
  text-align: center;
  color: var(--color-primary);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  margin-bottom: 1.5rem;
  width: 100%; 
}

.contact-form input,
.contact-form textarea {
  padding: 0.8rem 1rem;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  resize: none;
}

.contact-form textarea {
  min-height: 90px;
}

/* Unifica estilos para ambos botones */
.whatsapp-btn,
.contact-form button {
  width: 100%;
  min-height: 60px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  gap: 0.7rem;
}

.contact-form button {
  background: var(--color-primary);
  color: var(--color-white);
}

.contact-form button:hover {
  background: var(--color-dark);
}


.whatsapp-btn {
  background: #25d366;
  color: #fff;
  margin: 0 0 1.2rem 0;
}

.whatsapp-btn:hover {
  background: #1ebe5d;
}

footer {
  background: var(--color-dark);
  color: var(--color-white);
  padding: 2rem 1.5rem 1.2rem 1.5rem;
  text-align: center;
  margin-top: 3rem;
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.2rem; /* Espacio entre íconos */
  background: #102542; /* o el color de tu footer */
  padding: 1rem 0;
}

.footer-social a {
  color: var(--color-white);
  margin: 0 0.7rem;
  font-size: 1.3rem;
  transition: color 0.2s;
}

.footer-social a:hover {
  color: var(--color-accent);
}

.footer-social .footer-icon {
  width: 32px;
  height: 32px;
  margin: 0;
  vertical-align: middle;
  transition: transform 0.2s;
  background: none;
  border-radius: 8px;
}
.footer-social a:hover .footer-icon {
  transform: scale(1.15);
}

@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }
  .contact-qr {
    align-items: center;
    margin: 0 auto;
  }
}

@media (max-width: 700px) {
  .services-list {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 3.5rem 1rem 3rem 1rem;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .contact-section {
    padding: 1.2rem 0.5rem 1.2rem 0.5rem;
  }
  .qr-img {
    width: 110px;
    height: 110px;
  }
}


@media (max-width: 768px) {
  .navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 56px;
    background: #0F314B;
    border-radius: 0;
    margin: 0;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1200;
  }
  .logo {
    margin: 0;
  }
  .menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1300;
  }
  .menu-toggle span {
    display: block;
    width: 28px;
    height: 4px;
    margin: 4px 0;
    background: #fff;
    border-radius: 2px;
    transition: 0.3s;
  }
  nav ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100vw;
    background: rgba(15,49,75,0.85);
    box-shadow: none;
    border-radius: 0;
    z-index: 1200;
    padding: 0;
    gap: 0;
  }
  nav ul.open {
    display: flex;
  }
  nav li {
    width: 100vw;
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-sizing: border-box;
    background: transparent;
  }
  nav li:last-child {
    border-bottom: none;
  }
  nav a {
    display: block;
    width: 100vw;
    padding: 18px 0;
    text-align: center;
    color: #fff !important;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
    border-radius: 0;
    box-sizing: border-box;
    transition: background 0.2s, color 0.2s;
    background: rgba(15, 49, 75, 0.50);
  }
  nav a:hover {
    background: rgba(255,255,255,0.12);
    color: #b3e0ff;
  }
}
