@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

:root {
  /* Brand Colors */
  --primary: #6B4EFF;
  /* Violeta */
  --primary-hover: #5638E5;
  --secondary: #1A1D3B;
  /* Navy */
  --accent: #F5A623;
  /* Amarillo */
  --accent-hover: #E0951C;

  /* Neutral Colors */
  --bg-color: #F8F9FB;
  --white: #FFFFFF;
  --text-main: #333333;
  --text-muted: #666666;
  --border-light: rgba(0, 0, 0, 0.05);

  /* Shadows & Glassmorphism */
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 40px rgba(107, 78, 255, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-color);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: var(--secondary);
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utilities */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #9B82FF);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

section {
  padding: 5rem 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 8px 15px rgba(107, 78, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(107, 78, 255, 0.4);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 15px rgba(245, 166, 35, 0.3);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 20px rgba(245, 166, 35, 0.4);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* Header & Navbar */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

header.scrolled {
  padding: 1rem 0;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid var(--glass-border);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--secondary);
}

.logo img {
  height: 80px;
  /* Tamaño de logo aumentado */
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  align-items: center;
  /* Alineación vertical */
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  color: var(--secondary);
  position: relative;
}

.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:not(.btn):hover::after,
.nav-links a.active:not(.btn)::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  /* Aumentado para evitar solapamiento con el navbar */
  padding-bottom: 50px;
  position: relative;
  overflow: hidden;
}

/* Background elements */
.hero-bg-circle-1 {
  position: absolute;
  top: -10%;
  right: -5%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(107, 78, 255, 0.1) 0%, rgba(107, 78, 255, 0) 70%);
  z-index: -1;
}

.hero-bg-circle-2 {
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 166, 35, 0.1) 0%, rgba(245, 166, 35, 0) 70%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 1.5rem;
}

.hero-text p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

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

.hero-image img {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  transform: perspective(1000px) rotateY(-10deg);
  transition: transform 0.5s ease;
}

.hero-image:hover img {
  transform: perspective(1000px) rotateY(0deg);
}

/* Features Section */
.features {
  background-color: var(--white);
}

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

.feature-card {
  background: var(--bg-color);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-md);
  background: var(--white);
  border-color: rgba(107, 78, 255, 0.1);
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: rgba(107, 78, 255, 0.1);
  color: var(--primary);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 1.5rem;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Step Icons (Procedimiento) */
.feature-icon.step-icon {
  background: linear-gradient(135deg, var(--primary), #9B82FF);
  color: var(--white);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.5rem;
  box-shadow: 0 8px 15px rgba(107, 78, 255, 0.3);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.feature-card:hover .feature-icon.step-icon {
  background: linear-gradient(135deg, var(--accent), #FFC66C);
  color: var(--white);
  box-shadow: 0 12px 20px rgba(245, 166, 35, 0.4);
  transform: scale(1.1) translateY(-5px);
}

/* Contact Section */
.contact {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-color) 100%);
  position: relative;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  background: var(--white);
  border-radius: 30px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-info {
  background-color: var(--secondary);
  color: var(--white);
  padding: 4rem 3rem;
  position: relative;
  overflow: hidden;
}

.contact-info::before {
  content: '';
  position: absolute;
  bottom: -50px;
  right: -50px;
  width: 250px;
  height: 250px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(50px);
}

.contact-info h3 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.contact-info p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 3rem;
  position: relative;
  z-index: 1;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.info-icon {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent);
}

.info-text h4 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.info-text p {
  margin: 0;
}

.contact-form-wrap {
  padding: 4rem 3rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 500;
  color: var(--secondary);
}

.form-control {
  padding: 1rem 1.2rem;
  border: 1px solid var(--border-light);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg-color);
  transition: all 0.3s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(107, 78, 255, 0.1);
}

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

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  box-shadow: 2px 2px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-float i {
  margin-top: 2px;
}

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

footer p {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.5rem;
}

footer p:last-child {
  margin-bottom: 0;
}

footer a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px dashed var(--accent);
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--accent-hover);
  border-bottom-style: solid;
}

/* Animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image {
    margin-top: 3rem;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 250px;
    background: var(--white);
    flex-direction: column;
    padding: 80px 2rem 2rem;
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
  }

  .nav-links.active {
    right: 0;
  }

  .mobile-menu-btn {
    display: block;
    z-index: 1001;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
  }
}