:root {
  --primary: #76A1B2;  
  --secondary: #3A498D; 
  --accent: #B7D0DB;   
  --light-blue: #D4E2E8; 
  --pale-blue: #E8F1F4; 
  --pale-yellow: #F4F7F2; 
  --text: #1f2937;
  --background: #ffffff;
}

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

body {
  font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text);
  background: var(--pale-blue);
}

/* Header & Navigation */
header {
  position: fixed;
  width: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3666 100%);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

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

/* Hero Section - Updated */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-gif {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.9;
  filter: brightness(0.7);
}

/* Remove the overlay gradient */
.hero-background::after {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
  text-align: center;
  margin: 0 auto;
}

/* Remove the previous video background effect since we now have the GIF */
#hero::before {
  display: none;
}

.hero-content h1 {
  font-size: 4.2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  font-weight: 700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-content p {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--pale-blue);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 1s ease-out 0.3s both;
}

.cta-button {
  display: inline-block;
  padding: 1.2rem 3rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: fadeInUp 1s ease-out 0.6s both;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(118, 161, 178, 0.4);
}

/* Animated background */
@keyframes pulseBackground {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 0.5;
  }
}

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

/* Particle effect */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: white;
  border-radius: 50%;
  animation: moveParticle 20s linear infinite;
}

@keyframes moveParticle {
  0% {
    transform: translate(0, 0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translate(100vw, -100vh);
    opacity: 0;
  }
}

/* Marketing Animation */
.marketing-animation {
  width: 400px;
  height: 400px;
  position: relative;
}

.pulse {
  animation: pulse 3s infinite;
}

.graph-line {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: drawLine 3s forwards infinite;
}

.devices {
  animation: float 4s ease-in-out infinite;
}

.stars {
  animation: twinkle 2s infinite alternate;
}

.orbit {
  animation: rotate 20s linear infinite;
}

.data-stream {
  animation: stream 3s linear infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.2; }
  50% { transform: scale(1.2); opacity: 0.4; }
  100% { transform: scale(1); opacity: 0.2; }
}

@keyframes drawLine {
  to { stroke-dashoffset: 0; }
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(5deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

@keyframes twinkle {
  from { opacity: 0.4; }
  to { opacity: 1; }
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes stream {
  from { stroke-dashoffset: 1000; }
  to { stroke-dashoffset: 0; }
}

/* Services Section */
#servicios {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--pale-blue) 0%, white 100%);
}

#servicios h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

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

.service-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
  border: 1px solid var(--light-blue);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.service-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom, white, var(--pale-blue));
  position: relative;
  overflow: hidden;
}

.service-card.featured::before {
  content: 'Destacado';
  position: absolute;
  top: 10px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.service-card h3 {
  margin-bottom: 1rem;
  color: var(--secondary);
}

/* Pricing Section */
#precios {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--light-blue) 0%, var(--pale-blue) 100%);
}

#precios h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.price-card {
  background: white;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--light-blue);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.price-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.price-card.featured {
  border: 2px solid var(--primary);
  background: linear-gradient(to bottom, white, var(--pale-blue));
  transform: scale(1.03);
}

.price-card.featured::before {
  content: 'Destacado';
  position: absolute;
  top: 10px;
  right: -30px;
  background: var(--primary);
  color: white;
  padding: 5px 30px;
  transform: rotate(45deg);
  font-size: 0.8rem;
  font-weight: bold;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.price-card h3 {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.price {
  font-size: 2.5rem;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.price small {
  font-size: 1rem;
  color: #6b7280;
}

.price-card.featured .price {
  font-size: 1.8rem;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.price-consult {
  font-size: 1.8rem;
  color: var(--secondary);
  font-weight: bold;
  margin-bottom: 1.5rem;
}

.price-consult small {
  font-size: 0.9rem;
  color: #6b7280;
}

.features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.features li {
  padding: 0.5rem 0;
  color: #4b5563;
}

.features li i {
  color: var(--primary);
  margin-right: 0.5rem;
}

.price-card .cta-button {
  margin-top: auto;
  display: inline-block;
  padding: 0.8rem 2rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  border-radius: 50px;
  font-weight: 500;
  transition: transform 0.3s, box-shadow 0.3s;
  align-self: center;
}

.price-card .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(118, 161, 178, 0.4);
}

/* Contact Section */
#contacto {
  padding: 5rem 5%;
  background: linear-gradient(135deg, var(--pale-blue) 0%, white 100%);
}

#contacto h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--secondary);
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.05);
}

.contact-container {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

input, select, textarea {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--light-blue);
  border-radius: 8px;
  background: white;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: 'Montserrat', sans-serif;
}

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

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(118, 161, 178, 0.2);
}

label {
  position: absolute;
  left: 1rem;
  top: 1rem;
  background: white;
  padding: 0 0.5rem;
  color: #6b7280;
  transition: transform 0.3s, color 0.3s;
}

input:focus + label,
input:not(:placeholder-shown) + label,
textarea:focus + label,
textarea:not(:placeholder-shown) + label {
  transform: translateY(-1.5rem) scale(0.8);
  color: var(--primary);
}

.recaptcha-container {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.submit-button {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.4);
}

/* Footer */
footer {
  background: linear-gradient(135deg, var(--secondary) 0%, #2a3666 100%);
  color: white;
  padding: 3rem 5%;
  border-top: 4px solid var(--primary);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
  gap: 2rem;
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
  font-size: 1rem;
}

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

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info p {
  color: white;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.contact-info i {
  width: 20px;
  text-align: center;
}

.contact-info a {
  color: white;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  word-break: keep-all;
  white-space: nowrap;
}

.contact-info a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.social-links a {
  color: white;
  font-size: 1.5rem;
  transition: color 0.3s;
}

.social-links a:hover {
  color: var(--primary);
}

footer p {
  text-align: center;
  color: #9ca3af;
}

/* Update all headings to be more luxurious */
h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  letter-spacing: -0.5px;
}

.logo a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 1.5rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-subtitle {
  font-size: 0.8rem;
  font-weight: normal;
  color: var(--primary);
  letter-spacing: 0.5px;
}

/* Language Selector Styles */
.language-selector {
  position: relative;
  margin-left: 2rem;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.language-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.language-btn img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}

.language-btn i {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.language-options {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  background: white;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
  overflow: hidden;
  width: 150px;
}

.language-options.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  transition: background 0.3s ease;
}

.language-option:hover {
  background: var(--pale-blue);
}

.language-option img {
  width: 20px;
  height: 15px;
  object-fit: cover;
}

/* Chatbot Styles */
.chatbot-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.chatbot-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chatbot-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.chatbot-button i {
  color: white;
  font-size: 24px;
}

.chatbot-container {
  position: fixed;
  bottom: 90px;
  right: 20px;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, opacity 0.3s;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
}

.chatbot-container.active {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.chatbot-header {
  background: var(--secondary);
  padding: 1rem;
  border-radius: 12px 12px 0 0;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.close-chat {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1.2rem;
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  max-width: 80%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.9rem;
}

.bot-message {
  background: var(--pale-blue);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.user-message {
  background: var(--primary);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid var(--light-blue);
  display: flex;
  gap: 0.5rem;
}

.chat-input input {
  flex: 1;
  padding: 0.8rem;
  border: 1px solid var(--light-blue);
  border-radius: 8px;
  font-size: 0.9rem;
}

.send-message {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 0 1rem;
  cursor: pointer;
  transition: background 0.3s;
}

.send-message:hover {
  background: var(--secondary);
}

.typing-indicator {
  display: flex;
  gap: 0.3rem;
  padding: 0.5rem;
  align-self: flex-start;
}

.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
  animation: typingAnimation 1.4s infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingAnimation {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Privacy Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 2rem;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close:hover {
  color: var(--primary);
}

.modal-content h2 {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.modal-content h3 {
  color: var(--primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.modal-content ul {
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

.modal-content p {
  margin-bottom: 1rem;
}

@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    margin: 10% auto;
    padding: 1.5rem;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .hero-animation {
    display: none;
  }
  
  #hero {
    text-align: center;
    justify-content: center;
  }
  
  .nav-links {
    display: none;
  }
  
  .service-card, .price-card {
    padding: 1.5rem;
  }
  
  .pricing-grid, .services-grid {
    grid-template-columns: 1fr;
  }
}

/* Otros estilos existentes... */
  .footer-content {
	grid-template-columns: 1fr;
	text-align: center;
	gap: 1.5rem;
  }
  .footer-logo a {
	justify-content: center;
  }
  .footer-nav {
	align-items: center;
  }
  .social-links {
	justify-content: center;
  }
  .contact-info a, .contact-info p {
	justify-content: center;
  }
}

/* Tablet responsiveness */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3.5rem;
  }

  .services-grid, .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Large screens optimization */
@media (min-width: 1400px) {
  .hero-content h1 {
    font-size: 5rem;
  }

  .hero-content p {
    font-size: 1.8rem;
  }

  .container {
    max-width: 1320px;
  }
  
/* Otros estilos existentes... */
.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
  margin-bottom: 2rem;
  gap: 2rem;
}

.footer-logo a {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
}

.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  list-style: none;
}
}