:root {
  --primary: #00d084;
  --primary-dark: #00b874;
  --secondary: #0693e3;
  --dark: #0f172a;
  --accent: #f59e0b;
  --bg-soft: #f1f5f9;
  --white: #ffffff;
  --shadow-sm: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', 'Inter', sans-serif;
  color: #334155;
  background-color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  animation: fadeIn 0.8s ease-out;
}

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

/* Header Premium */
header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: 0.3s ease;
}

.logo img { width: 220px; transition: 0.3s; }
.logo img:hover { transform: scale(1.02); }

nav ul { display: flex; list-style: none; gap: 20px; }
nav a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 600;
  font-size: 0.95rem;
  transition: 0.3s;
  position: relative;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: 0.3s;
}
nav a:hover { color: var(--primary); }
nav a:hover::after { width: 100%; }

.menu-toggle { display: none; }

/* Hero Moderno */
.hero {
  background: radial-gradient(circle at top right, rgba(0, 208, 132, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(6, 147, 227, 0.08), transparent 40%),
              linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 80px 5%;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  min-height: 85vh;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: var(--primary);
  filter: blur(150px);
  opacity: 0.05;
  z-index: 0;
}

.hero-text { position: relative; z-index: 1; }

.hero-text h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 25px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--dark) 20%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 35px;
  color: #475569;
  max-width: 600px;
}

/* Formulario Glassmorphism */
.form-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 40px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.form-card h3 { margin-bottom: 25px; color: var(--dark); font-size: 1.6rem; text-align: center; letter-spacing: -0.5px; }

.form-group { margin-bottom: 18px; }
.form-group label {
  display: block; font-size: 0.85rem; margin-bottom: 8px; font-weight: 700; color: #475569;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 14px 18px; border: 1.5px solid #e2e8f0; border-radius: 14px;
  font-size: 0.95rem; transition: 0.3s; background: rgba(255, 255, 255, 0.9);
  color: var(--dark);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary); outline: none; box-shadow: 0 0 0 4px rgba(0, 208, 132, 0.1); background: white;
}

.btn-submit {
  width: 100%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); 
  color: white; padding: 18px; border: none;
  border-radius: 14px; font-weight: 800; font-size: 1.1rem; cursor: pointer; transition: 0.4s;
  box-shadow: 0 4px 15px rgba(0, 208, 132, 0.35);
  margin-top: 10px;
}
.btn-submit:hover { 
  transform: translateY(-3px) scale(1.01); 
  box-shadow: 0 8px 25px rgba(0, 208, 132, 0.45); 
}

/* FAQ Premium Accordion */
.faq-section { padding: 100px 5%; background: linear-gradient(to bottom, #f8fafc, #ffffff); }
.faq-container { max-width: 900px; margin: 0 auto; }
.faq-item {
  background: var(--white); margin-bottom: 18px; border-radius: 20px; 
  box-shadow: 0 4px 12px rgba(0,0,0,0.03); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
  border: 1px solid #f1f5f9;
}
.faq-item.active { border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.06); }

.faq-header {
  padding: 26px 30px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-weight: 700; font-size: 1.15rem; color: var(--dark);
}
.faq-icon {
  width: 32px; height: 32px; background: #f1f5f9; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--primary);
  transition: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.faq-item.active .faq-icon { transform: rotate(45deg); background: var(--primary); color: white; }

.faq-content {
  max-height: 0; overflow: hidden; transition: all 0.5s cubic-bezier(0, 1, 0, 1);
  padding: 0 30px; color: #475569; font-size: 1.05rem;
}
.faq-item.active .faq-content { max-height: 500px; padding: 0 30px 30px; transition: all 0.5s cubic-bezier(1, 0, 1, 0); }

/* Service Blocks Custom */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 35px; margin-top: 60px; }
.service-card {
  background: white; padding: 50px 40px; border-radius: 24px; text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02); transition: 0.4s; border: 1px solid #f1f5f9;
}
.service-card:hover { transform: translateY(-12px); box-shadow: 0 30px 60px rgba(0,0,0,0.08); border-color: var(--primary); }
.service-card i { font-size: 3.5rem; color: var(--primary); margin-bottom: 30px; display: inline-block; }
.service-card h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--dark); }

.whatsapp-btn {
  background: linear-gradient(135deg, #25d366, #128c7e); color: white; padding: 16px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 800; display: inline-flex; align-items: center;
  gap: 12px; box-shadow: 0 10px 20px rgba(37, 211, 102, 0.3); transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  font-size: 1.05rem;
}
.whatsapp-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4); }

/* Responsive & Mobile Menu Fix */
@media (max-width: 968px) {
  header { padding: 15px 5%; }
  .logo img { width: 180px; }
  
  .menu-toggle { display: block; background: #f1f5f9; border: none; font-size: 1.4rem; cursor: pointer; color: var(--dark); padding: 10px; border-radius: 10px; }
  
  nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    box-shadow: var(--shadow-lg);
    display: none;
    padding: 20px 0;
    border-top: 1px solid #f1f5f9;
    animation: slideDown 0.3s ease-out;
  }
  
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }
  
  nav.nav-active { display: block; }
  
  nav ul {
    flex-direction: column;
    padding: 0 5%;
    gap: 0;
  }
  
  nav ul li a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid #f8fafc;
    font-size: 1.1rem;
  }
  
  .hero { grid-template-columns: 1fr; padding: 60px 5%; text-align: center; gap: 40px; }
  .hero-text h1 { font-size: 3rem; }
  .hero-text p { margin-left: auto; margin-right: auto; }
}

/* Footer Premium Custom */
footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 80px 5% 40px;
  text-align: center;
}

.footer-logo { 
    width: 220px; 
    margin-bottom: 30px; 
    opacity: 0.9; 
    transition: 0.3s;
}
.footer-logo:hover { opacity: 1; transform: scale(1.02); }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  list-style: none;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding-top: 30px;
  font-size: 0.85rem;
}
