/* Variables CSS */
:root {
  --color-dark:        #000016;
  --color-mid:         #17375E;
  --color-accent:      #0E75DD;
  --color-accent-light: #3399FF;
  --color-bg-light:    #EBF8FF;
  --color-bg-alt:      #F0F4FB;
  --color-white:       #FFFFFF;
  --color-text:        #2C2C2C;
  --color-text-muted:  #666666;
  --font-main: 'Open Sans', Arial, sans-serif;
  --radius: 8px;
}

/* Reset y base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  line-height: 1.6;
  background-color: var(--color-white);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  background-color: var(--color-dark);
  padding: 1rem 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

.logo {
  height: 40px;
  filter: brightness(0) invert(1);
}

.nav {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* Hero */
.hero {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 4rem 0;
  text-align: center;
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 2rem;
  color: var(--color-accent-light);
}

.cta-button {
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.cta-button:hover {
  background-color: var(--color-accent-light);
}

/* Services */
.services {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

.section-title {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--color-accent);
  text-align: center;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background-color: var(--color-mid);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius);
  text-align: center;
  transition: transform 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
}

.service-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.service-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.service-description {
  font-size: 0.9rem;
  color: var(--color-white);
  opacity: 0.9;
}

/* FAQ */
.faq {
  background-color: var(--color-white);
  padding: 4rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-container details {
  margin-bottom: 1rem;
  border: 1px solid var(--color-bg-alt);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-container summary {
  background-color: var(--color-bg-alt);
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  color: var(--color-accent);
  cursor: pointer;
  list-style: none;
  transition: background-color 0.3s ease;
}

.faq-container summary:hover {
  background-color: var(--color-accent-light);
  color: var(--color-white);
}

.faq-container details[open] summary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.faq-container p {
  padding: 1.5rem;
  background-color: var(--color-white);
  color: var(--color-text);
}

/* Contact */
.contact {
  background-color: var(--color-bg-light);
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.contact-info {
  text-align: center;
}

.contact-subtitle {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: 1rem;
}

.contact-info p {
  font-size: 1rem;
  color: var(--color-text);
}

/* Footer */
.footer {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: 2rem 0;
  text-align: center;
}

.footer-text {
  margin-bottom: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

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

/* Chatbot Button */
.chatbot-button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--color-accent);
  color: var(--color-white);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s ease;
}

.chatbot-button:hover {
  transform: scale(1.1);
}

.chatbot-icon {
  font-size: 1.5rem;
}

/* Chatbot Panel */
.chatbot-panel {
  position: fixed;
  top: 0;
  right: -100%;
  width: 350px;
  height: 100%;
  background-color: var(--color-white);
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: right 0.3s ease;
}

.chatbot-panel.active {
  right: 0;
}

.chatbot-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .header .container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
  }
  
  .nav {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .chatbot-panel {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 2rem 0;
  }
  
  .hero-title {
    font-size: 1.6rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .service-card {
    padding: 1.5rem;
  }
  
  .nav-link {
    font-size: 0.8rem;
  }
  
  .footer-links {
    gap: 0.5rem;
  }
  
  .footer-link {
    font-size: 0.8rem;
  }
}

@media (min-width: 1200px) {
  .container {
    padding: 0 2rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .service-card {
    padding: 2.5rem;
  }
  
  .contact-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}