:root {
  --primary: #072859;
  --secondary: #f9741d;
  --white: #ffffff;
  --light-gray: #f8f9fa;
  --text-dark: #333333;
}

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

html,
body {
  height: 100%;
  font-family: "Montserrat", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  scroll-behavior: smooth;
}

/* Navbar */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  z-index: 1000;
  position: fixed;
  width: 100%;
  top: 0;
  transition: all 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  font-weight: 700;
  color: var(--primary) !important;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 40px;
  margin-right: 10px;
}

.nav-link {
  color: var(--primary) !important;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.active {
  color: var(--secondary) !important;
}
.navbar-toggler {
  border-color: #072859 !important;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23072859' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Language Selector Fijo */
.language-selector-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.language-btn {
  background: var(--primary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(7, 40, 89, 0.3);
}

.language-btn:hover {
  background: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(249, 116, 29, 0.4);
}

/* Scroll Indicator */
.scroll-indicator {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.scroll-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.scroll-dot.active {
  opacity: 1;
  transform: scale(1.5);
  background: var(--secondary);
}

.scroll-dot:hover {
  opacity: 0.7;
}

/* Secciones principales - MÁS ESPACIO ENTRE SECCIONES */
.page-section {
  width: 100%;
  padding: 200px 0; /* Aumentado de 100px a 140px */
  position: relative;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
      135deg,
      rgba(7, 40, 89, 0.9) 0%,
      rgba(7, 40, 89, 0.8) 100%
    ),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?q=80&w=2000")
      center/cover;
  color: var(--white);
  text-align: center;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at 20% 50%,
    rgba(249, 116, 29, 0.15) 0%,
    transparent 50%
  );
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

/* Logo del Hero más pequeño */
.hero-logo {
  max-width: 120px; /* Reducido de 200px a 120px */
  margin-bottom: 2rem;
}

.hero-content h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
  font-size: 1.3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-primary-custom {
  background: var(--secondary);
  color: var(--white);
  padding: 1rem 2.5rem;
  border: none;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(249, 116, 29, 0.3);
  cursor: pointer;
}

.btn-primary-custom:hover {
  background: #e06915;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(249, 116, 29, 0.4);
  color: var(--white);
}

/* Animaciones de entrada - MÁS RÁPIDAS */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.4s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.4s ease-out;
}

.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.slide-in-right {
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.4s ease-out;
}

.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.scale-in {
  opacity: 0;
  transform: scale(0.8);
  transition: all 0.4s ease-out;
}

.scale-in.visible {
  opacity: 1;
  transform: scale(1);
}

/* Sections */
section h2,
section h3 {
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 2rem;
}

section h2 {
  font-size: 2.5rem;
}

section h3 {
  font-size: 2rem;
}

.bg-light {
  background-color: var(--light-gray) !important;
}

/* Estilo específico para el subtítulo de "Cómo funciona" */
.como-p {
  color: var(--primary) !important;
  font-size: 1.1rem;
}

.como-p a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 600;
}

.como-p a:hover {
  color: #e06915;
}

/* Lists */
.list-icon {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.list-icon li {
  padding: 1rem 0;
  padding-left: 2.5rem;
  position: relative;
  font-size: 1.1rem;
}

.list-icon li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
  font-size: 1.5rem;
}

/* Service Cards */
.service-card {
  border: none;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  background: var(--white);
  height: 100%;
}

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

.service-card h5 {
  color: var(--primary);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card ul {
  padding-left: 1.2rem;
}

.service-card ul li {
  margin-bottom: 0.5rem;
}

/* Accordion */
.accordion-button {
  background-color: var(--white);
  color: var(--primary);
  font-weight: 600;
  font-size: 1.1rem;
}

.accordion-button:not(.collapsed) {
  background-color: var(--primary);
  color: var(--white);
}

.accordion-button:focus {
  box-shadow: 0 0 0 0.25rem rgba(7, 40, 89, 0.25);
}

/* Form */
.form-control,
.form-select {
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 0.8rem;
  transition: all 0.3s ease;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.25rem rgba(7, 40, 89, 0.15);
}

.btn-primary-custom-2 {
  background: var(--primary);
  color: var(--white);
  padding: 1rem;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

.btn-primary-custom-2:hover {
  background: #05193d;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(7, 40, 89, 0.3);
}

/* Formulario Section */
#formulario {
  padding: 5rem 0;
  background: var(--light-gray);
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Footer con redes sociales */
footer {
  background: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 3rem 0;
  width: 100%;
}

.social-links {
  margin: 1.5rem 0;
}

.social-links a {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 1rem;
  transition: all 0.3s ease;
  display: inline-block;
}

.social-links a:hover {
  color: var(--secondary);
  transform: translateY(-3px);
}

footer p {
  margin: 0.5rem 0;
  opacity: 0.9;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2rem;
  }

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

  section h2 {
    font-size: 2rem;
  }

  section h3 {
    font-size: 1.7rem;
  }

  .page-section {
    padding: 120px 0 80px;
  }

  .navbar-logo {
    height: 30px;
  }

  .hero-logo {
    max-width: 100px; /* Ajustado para móviles */
  }

  .list-icon li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    font-size: 1rem;
  }

  .service-card {
    margin-bottom: 1.5rem;
    height: auto;
  }

  .scroll-indicator {
    right: 1rem;
  }

  .language-selector-fixed {
    bottom: 15px;
    right: 15px;
  }

  .language-btn {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

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

  section h2 {
    font-size: 1.8rem;
  }

  section h3 {
    font-size: 1.5rem;
  }

  .page-section {
    padding: 100px 0 80px;
  }

  .btn-primary-custom {
    padding: 0.8rem 2rem;
    font-size: 1rem;
  }

  .list-icon li {
    padding-left: 1.8rem;
    font-size: 0.95rem;
  }

  .social-links a {
    font-size: 1.3rem;
    margin: 0 0.5rem;
  }

  .scroll-indicator {
    display: none;
  }
}
