/* ========================================================
   PROYECTO INSTALACIONES QUERÉTARO - HOJA DE ESTILOS PRINCIPAL
   Paleta estricta de 4 colores:
   1. Primario Oscuro: #0b192c (Azul ingeniería profundo)
   2. Azul Acento:    #008dda (Azul hidrosanitario / instalaciones)
   3. Cian / Secund.: #00a8cc (Cian técnico / agua limpia)
   4. Neutro Claro:   #ffffff / #f8fafc (Fondo blanco / pulcro)
   ======================================================== */

:root {
  --color-primary: #0b192c;
  --color-accent: #008dda;
  --color-cyan: #00a8cc;
  --color-light: #f8fafc;
  --color-white: #ffffff;
  --max-width: 1150px;
}

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

html {
  scroll-behavior: smooth;
  font-family: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  color: var(--color-primary);
  background-color: var(--color-light);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Contenedor con ancho máximo de 1150px solicitado */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* Tipografía de títulos */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary);
}

/* Todas las secciones deben llevar un h3 con el nombre de la sección y abajo un párrafo complementario */
section {
  padding: 70px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 45px auto;
}

.section-header h3 {
  font-size: 2.2rem;
  color: var(--color-primary);
  margin-bottom: 14px;
  text-transform: capitalize;
  position: relative;
  display: inline-block;
}

.section-header h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-accent);
  margin: 10px auto 0 auto;
  border-radius: 2px;
}

.section-header p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.65;
}

/* ========================================================
   1. HEADER TRANSPARENTE
   ======================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(11, 25, 44, 0.08);
}

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

/* Logo con Flexbox nativo, dimensiones entre 190px y 260px */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  width: 250px;
  max-width: 260px;
  min-width: 190px;
  flex-shrink: 0;
}

.header-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.header-logo .logo-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-logo .logo-row-1 {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-logo .logo-row-2 {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.header-logo .logo-row-3 {
  font-size: 11px;
  font-weight: 300;
  color: var(--color-cyan);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Navegación y menú */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 6px;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--color-accent);
}

/* Submenú desplegable de Servicios */
.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 260px;
  background: var(--color-white);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  padding: 10px 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.dropdown-item a {
  display: block;
  padding: 10px 18px;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.dropdown-item a:hover {
  background: rgba(0, 141, 218, 0.08);
  color: var(--color-accent);
}

/* Botón general: Más Informes */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.25s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 141, 218, 0.3);
}

.btn-primary:hover {
  background-color: #0077b6;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 141, 218, 0.4);
}

/* ========================================================
   2. HERO SLIDER (550px, títulos 60px en 2 renglones)
   ======================================================== */
.hero-section {
  height: 550px;
  position: relative;
  margin-top: 80px;
  overflow: hidden;
  background-color: var(--color-primary);
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(11,25,44,0.92) 0%, rgba(11,25,44,0.78) 50%, rgba(11,25,44,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  color: var(--color-white);
  padding: 0 20px;
}

.hero-title {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-white);
  margin-bottom: 20px;
  white-space: pre-line;
}

.hero-desc {
  font-size: 1.15rem;
  line-height: 1.5;
  color: #cbd5e1;
  margin-bottom: 28px;
  max-width: 720px;
  white-space: pre-line;
}

.hero-arrows {
  position: absolute;
  bottom: 25px;
  right: 40px;
  z-index: 5;
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: all 0.2s;
}

.hero-arrow:hover {
  background: var(--color-accent);
}

/* ========================================================
   3. NUESTROS SERVICIOS (4 Tarjetas sin párrafo, solo botón)
   ======================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 30px 20px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  text-align: center;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 250px;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 141, 218, 0.15);
  border-color: var(--color-accent);
}

.service-card .service-icon {
  width: 64px;
  height: 64px;
  background: rgba(0, 141, 218, 0.1);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 28px;
  margin-bottom: 20px;
}

.service-card .card-title {
  font-size: 1.2rem;
  color: var(--color-primary);
  line-height: 1.35;
  white-space: pre-line;
  margin-bottom: 24px;
  height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card .btn-ver-mas {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  border: 1.5px solid var(--color-accent);
  padding: 8px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.25s ease;
}

.service-card .btn-ver-mas:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

/* ========================================================
   4. QUIÉNES SOMOS (Texto + foto lateral sin etiquetas abajo)
   ======================================================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.about-text p {
  color: #334155;
  font-size: 1.05rem;
  margin-bottom: 18px;
  line-height: 1.7;
}

.about-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

/* ========================================================
   5. CONTÁCTANOS (4 Tarjetas, email 8px, 3 renglones alineados)
   ======================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.contact-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 26px 18px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease;
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.contact-card .card-icon {
  font-size: 32px;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.contact-card h4 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  color: var(--color-primary);
}

/* Párrafos de 3 renglones exactos para alineación */
.contact-card .card-info-3lines {
  height: 4.8em;
  line-height: 1.6;
  font-size: 0.92rem;
  color: #475569;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 16px;
}

/* Tipografía de 8px para el email para que quede dentro de la tarjeta */
.email-tiny-link {
  font-size: 8px !important;
  word-break: break-all;
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  line-height: 1.3;
}

.contact-card .card-action-link {
  display: inline-block;
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

/* ========================================================
   6. MÁS INFORMES (Formulario lado derecho + foto lado izquierdo)
   ======================================================== */
.more-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  align-items: center;
}

.more-info-image {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.more-info-image img {
  width: 100%;
  height: 450px;
  object-fit: cover;
  display: block;
}

.contact-form-wrapper {
  background: var(--color-white);
  padding: 35px 30px;
  border-radius: 12px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05);
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: inherit;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0, 141, 218, 0.15);
}

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

.form-btn-submit {
  width: 100%;
  margin-top: 10px;
}

/* Campo trampa honeypot */
.hidden-field {
  display: none !important;
  visibility: hidden !important;
}

/* ========================================================
   7. NUESTROS LOGROS (3 Contadores animados)
   ======================================================== */
.achievements-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, #1e293b 100%);
  color: var(--color-white);
}

.achievements-section .section-header h3 {
  color: var(--color-white);
}

.achievements-section .section-header p {
  color: #94a3b8;
}

.achievements-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  text-align: center;
}

.achievement-card {
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
}

.counter-value {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-cyan);
  line-height: 1;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.achievement-card h4 {
  color: var(--color-white);
  font-size: 1.25rem;
  font-weight: 600;
}

/* ========================================================
   8. NUESTROS CLIENTES (3 tipos, sin botones)
   ======================================================== */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.client-type-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s ease;
}

.client-type-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
}

.client-type-icon {
  font-size: 36px;
  color: var(--color-accent);
  margin-bottom: 16px;
}

.client-type-card h4 {
  font-size: 1.25rem;
  color: var(--color-primary);
  margin-bottom: 12px;
}

.client-type-card p {
  color: #475569;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ========================================================
   9. PREGUNTAS FRECUENTES (10 en acordeón)
   ======================================================== */
.faq-accordion {
  max-width: 880px;
  margin: 0 auto;
}

.faq-item {
  background: var(--color-white);
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item.active {
  border-color: var(--color-accent);
}

.faq-question {
  width: 100%;
  padding: 18px 22px;
  text-align: left;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  gap: 15px;
}

.faq-question .faq-icon {
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  background: #f8fafc;
}

.faq-item.active .faq-answer {
  max-height: 250px;
  padding: 16px 22px 22px 22px;
  border-top: 1px solid rgba(11, 25, 44, 0.05);
}

.faq-answer p {
  color: #334155;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ========================================================
   10. TESTIMONIOS CLIENTES (3 testimonios literales)
   ======================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.testimonial-card {
  background: var(--color-white);
  border-radius: 12px;
  padding: 32px 24px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.testimonial-quote {
  font-style: italic;
  color: #334155;
  font-size: 0.98rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.testimonial-author h5 {
  font-size: 1.05rem;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.testimonial-author span {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 600;
}

/* ========================================================
   11. NUESTRO BLOG (6 artículos en Home + Ver Más)
   ======================================================== */
.blog-home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 35px;
}

.blog-card {
  background: var(--color-white);
  border-radius: 10px;
  padding: 24px 20px;
  border: 1px solid rgba(11, 25, 44, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent);
  box-shadow: 0 8px 22px rgba(0, 141, 218, 0.12);
}

.blog-card h4 {
  font-size: 1.05rem;
  line-height: 1.45;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.blog-card h4 a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s;
}

.blog-card h4 a:hover {
  color: var(--color-accent);
}

.blog-card .blog-link-btn {
  font-size: 0.88rem;
  color: var(--color-accent);
  font-weight: 700;
  text-decoration: none;
  margin-top: auto;
}

.blog-more-center {
  text-align: center;
}

/* ========================================================
   12. FOOTER (3 Columnas)
   ======================================================== */
.site-footer {
  background-color: var(--color-primary);
  color: #cbd5e1;
  padding: 65px 0 35px 0;
  border-top: 3px solid var(--color-accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

/* Columna 1: Logo vertical, párrafo corto, redes sociales */
.footer-col-1 .footer-logo-vertical {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-col-1 .footer-logo-vertical img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-col-1 .footer-logo-vertical .logo-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-col-1 .footer-logo-vertical .logo-row-1 {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0.5px;
}

.footer-col-1 .footer-logo-vertical .logo-row-2 {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-accent);
  letter-spacing: 0.5px;
}

.footer-col-1 .footer-logo-vertical .logo-row-3 {
  font-size: 11px;
  font-weight: 300;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.footer-col-1 p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: #94a3b8;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s;
}

.social-icon-btn:hover {
  background: var(--color-accent);
  transform: translateY(-2px);
}

/* Columna 2: Navegación */
.footer-col-2 h4, .footer-col-3 h4 {
  color: var(--color-white);
  font-size: 1.15rem;
  margin-bottom: 18px;
}

.footer-links-list {
  list-style: none;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list a {
  text-decoration: none;
  color: #94a3b8;
  font-size: 0.92rem;
  transition: color 0.2s;
}

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

/* Columna 3: Contacto */
.footer-contact-list {
  list-style: none;
}

.footer-contact-list li {
  margin-bottom: 12px;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.5;
}

.footer-contact-list a {
  color: #cbd5e1;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ========================================================
   13. SUBFOOTER
   ======================================================== */
.site-subfooter {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  text-align: center;
  font-size: 0.85rem;
  color: #64748b;
}

.site-subfooter a {
  color: #94a3b8;
  text-decoration: none;
  margin-left: 8px;
  transition: color 0.2s;
}

.site-subfooter a:hover {
  color: var(--color-accent);
}

/* ========================================================
   BOTONES FLOTANTES CON EFECTO LATIDO INFINITO (60px fondo, ancho 30px)
   ======================================================== */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

/* Botón flotante WhatsApp izquierdo: 60px inferior, 30px ancho/borde */
.floating-whatsapp {
  position: fixed;
  bottom: 60px;
  left: 30px;
  width: 52px;
  height: 52px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  z-index: 999;
  text-decoration: none;
  animation: heartbeat 2s infinite ease-in-out;
  cursor: pointer;
}

.floating-whatsapp svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

/* Botón flotante Asistente Verónica Gómez derecho: 60px inferior, 30px ancho/borde */
.floating-assistant-btn {
  position: fixed;
  bottom: 60px;
  right: 30px;
  width: 52px;
  height: 52px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0, 141, 218, 0.4);
  z-index: 999;
  animation: heartbeat 2s infinite ease-in-out;
  cursor: pointer;
  border: 2px solid #fff;
  overflow: hidden;
}

.floating-assistant-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* Ventana emergente de Verónica Gómez */
.assistant-modal {
  position: fixed;
  bottom: 125px;
  right: 30px;
  width: 340px;
  max-width: 90vw;
  background: var(--color-white);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(11, 25, 44, 0.1);
  z-index: 1001;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease;
}

.assistant-modal.active {
  display: flex;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

.assistant-modal-header {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.assistant-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.assistant-avatar-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--color-cyan);
  overflow: hidden;
  flex-shrink: 0;
}

.assistant-avatar-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.assistant-meta h4 {
  font-size: 0.95rem;
  color: var(--color-white);
  margin-bottom: 2px;
}

.assistant-meta span {
  font-size: 0.75rem;
  color: var(--color-cyan);
  display: flex;
  align-items: center;
  gap: 5px;
}

.assistant-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.assistant-close-btn:hover {
  color: #fff;
}

.assistant-modal-body {
  padding: 18px;
  max-height: 280px;
  overflow-y: auto;
  background: #f8fafc;
}

.assistant-bubble {
  background: var(--color-white);
  border-radius: 10px;
  padding: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #1e293b;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.05);
}

.assistant-modal-footer {
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 8px;
}

.assistant-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 0.88rem;
  outline: none;
}

.assistant-send-btn {
  background: var(--color-accent);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-title { font-size: 44px; }
  .services-grid, .contact-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .more-info-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .blog-home-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .hero-title { font-size: 32px; }
  .hero-section { height: 480px; }
  .services-grid, .contact-cards-grid, .achievements-grid, .clients-grid, .testimonials-grid, .blog-home-grid {
    grid-template-columns: 1fr;
  }
  .nav-list { display: none; }
}
