/* Estilos Generales para Proyecto Instalaciones Gas Querétaro */
:root {
  --color-primary: #0A2540;
  --color-accent: #0284C7;
  --color-secondary: #F97316;
  --color-bg: #F8FAFC;
  --color-card: #FFFFFF;
  --color-text: #1E293B;
  --color-text-muted: #64748B;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

.site-container {
  max-width: 1150px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  width: 100%;
}

/* Heartbeat Animation for Floating Buttons */
@keyframes heartbeat {
  0% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.15); }
  70% { transform: scale(1); }
}

.animate-heartbeat {
  animation: heartbeat 1.8s ease-in-out infinite;
}

/* Floating Buttons */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.floating-whatsapp:hover {
  transform: scale(1.1);
}

.floating-assistant {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 10px 25px rgba(2, 132, 199, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  cursor: pointer;
  overflow: hidden;
  border: 3px solid #FFFFFF;
}

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

/* Chat Popup Window */
.chat-popup {
  position: fixed;
  bottom: 100px;
  right: 30px;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: #FFFFFF;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(10, 37, 64, 0.25);
  border: 1px solid #E2E8F0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeInUp 0.3s ease-out;
}

.chat-popup.active {
  display: flex;
}

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

/* Section Header Typography: h3 + Complementary Paragraph */
.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 16px;
  color: var(--color-text-muted);
  text-align: center;
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 45px;
  line-height: 1.6;
}

/* Hero Slider: Exactly 550px height, 60px titles */
.hero-slider-container {
  height: 550px;
  position: relative;
  overflow: hidden;
  background-color: var(--color-primary);
}

.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;
}

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

.hero-title {
  font-size: 60px;
  font-weight: 900;
  line-height: 1.1;
  color: #FFFFFF;
  margin-bottom: 20px;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.hero-paragraph {
  font-size: 18px;
  line-height: 1.5;
  color: #E2E8F0;
  margin-bottom: 30px;
  max-width: 650px;
}

/* Contact Cards */
.email-text-card {
  font-size: 8px !important;
  word-break: break-all;
  display: inline-block;
  line-height: 1.2;
}

.card-paragraph-aligned {
  min-height: 4.8em;
  line-height: 1.6;
  font-size: 14px;
  color: var(--color-text-muted);
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.btn-primary:hover {
  background: #ea580c;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 22px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-outline:hover {
  background: var(--color-accent);
  color: #FFFFFF;
}

/* Navigation Dropdown */
.nav-dropdown {
  position: relative;
  display: inline-block;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #0F2942;
  min-width: 280px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.3);
  border-radius: 8px;
  padding: 10px 0;
  z-index: 1000;
  border: 1px solid rgba(255,255,255,0.1);
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  color: #E2E8F0;
  padding: 12px 20px;
  text-decoration: none;
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}

.nav-dropdown-content a:hover {
  background: #0284C7;
  color: #FFFFFF;
}

/* Accordion */
.accordion-item {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.accordion-header {
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  color: var(--color-primary);
  font-size: 16px;
  user-select: none;
}

.accordion-header:hover {
  background: #F1F5F9;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, padding 0.3s ease;
  padding: 0 24px;
  color: var(--color-text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  max-height: 400px;
  padding: 0 24px 20px 24px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon {
  transition: transform 0.3s ease;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-slider-container {
    height: 580px;
  }
}
@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }
  .section-title {
    font-size: 26px;
  }
}
