:root {
  --primary-color: #0b3954; /* Azul Oscuro */
  --primary-hover: #08283b;
  --secondary-color: #68842a; /* Verde Oliva */
  --secondary-hover: #9dd327;
  --dark-color: #051b27;
  --gray-color: #555555;
  --light-bg: #f4f7f9; /* Gris Claro */
  --white: #ffffff;
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
  /* Para el navbar fijo */
}

body {
  font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: var(--gray-color);
  background-color: var(--white);
  overflow-x: hidden;
  position: relative;
  /* Para scrollspy */
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #03658c;
  font-weight: 700;
  letter-spacing: -0.5px;
}

/* Typography & Utilities */
.text-primary {
  color: var(--primary-color) !important;
}

.text-secondary {
  color: var(--secondary-color) !important;
}

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

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

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

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

.btn-primary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(157, 211, 39, 0.25);
}

.btn-secondary {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: var(--white);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(157, 211, 39, 0.25);
}

.btn-outline-primary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-outline-primary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(157, 211, 39, 0.15);
}

.btn-outline-secondary {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
  padding: 12px 28px;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-outline-secondary:hover {
  background-color: var(--secondary-hover);
  border-color: var(--secondary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(157, 211, 39, 0.15);
}

/* Navbar */
.navbar {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
  padding: 12px 0;
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--primary-color) !important;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand span {
  color: var(--secondary-color);
}

.navbar-brand i {
  font-size: 1.8rem;
}

.nav-link {
  font-weight: 600;
  color: var(--dark-color) !important;
  margin: 0 8px;
  position: relative;
  transition: var(--transition);
  opacity: 0.85;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-color) !important;
  opacity: 1;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--secondary-color);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding: 180px 0 110px;
  background: linear-gradient(135deg, var(--light-bg) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(104, 132, 42, 0.08) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(11, 57, 84, 0.04) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  z-index: 0;
}

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

.hero h1 {
  font-size: 3.2rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #03658c;
}

.hero h1 span {
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 30px;
  line-height: 1.6;
}

/* Services Cards / Credit Lines */
.service-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px 30px;
  box-shadow: 0 10px 30px rgba(11, 57, 84, 0.04);
  transition: var(--transition);
  height: 100%;
  border: 1px solid rgba(11, 57, 84, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(11, 57, 84, 0.1);
  border-color: rgba(104, 132, 42, 0.15);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon {
  width: 65px;
  height: 65px;
  background: rgba(104, 132, 42, 0.1);
  color: var(--secondary-color);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  transition: var(--transition);
}

.service-card:hover .service-icon {
  background: var(--secondary-color);
  color: var(--white);
  transform: scale(1.05);
}

.credit-rate {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-color);
  background: rgba(11, 57, 84, 0.06);
  padding: 4px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 15px;
}

/* About Section */
.about-section {
  padding: 100px 0;
  position: relative;
}

.about-img {
  border-radius: 20px;
  box-shadow: 0 20px 45px rgba(11, 57, 84, 0.12);
  position: relative;
  overflow: hidden;
}

.about-img img {
  transition: var(--transition);
  width: 100%;
  object-fit: cover;
}

.about-img:hover img {
  transform: scale(1.03);
}

.experience-badge {
  position: absolute;
  bottom: 20px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: var(--white);
  padding: 20px 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(11, 57, 84, 0.3);
}

.experience-badge h3 {
  color: var(--white);
  font-size: 2.2rem;
  margin: 0;
  font-weight: 800;
}

.experience-badge p {
  font-size: 0.85rem;
  margin-bottom: 0;
  font-weight: 500;
  opacity: 0.9;
}

/* Credit Simulator Section */
.simulator-card {
  background: var(--white);
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(11, 57, 84, 0.08);
}

.simulator-result {
  background: linear-gradient(135deg, var(--primary-color) 0%, #051b27 100%);
  color: var(--white);
  border-radius: 16px;
  padding: 35px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 15px 35px rgba(11, 57, 84, 0.2);
  position: relative;
  overflow: hidden;
}

.simulator-result::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(104, 132, 42, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
}

.simulator-result h4 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 12px;
  font-weight: 600;
}

.result-item {
  margin-bottom: 20px;
}

.result-label {
  font-size: 0.85rem;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 5px;
  display: block;
}

.result-value {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
}

.result-value.highlight {
  color: #9dd327; /* Light green highlight for the monthly installment */
  font-size: 2.3rem;
  line-height: 1.1;
}

.form-range {
  height: 1.4rem;
}

.form-range::-webkit-slider-thumb {
  background: var(--secondary-color);
}
.form-range::-webkit-slider-thumb:active {
  background: var(--secondary-hover);
}
.form-range::-moz-range-thumb {
  background: var(--secondary-color);
}
.form-range::-moz-range-thumb:active {
  background: var(--secondary-hover);
}

/* Work Process / Steps */
.process-step {
  text-align: center;
  position: relative;
  margin-bottom: 30px;
  padding: 0 15px;
}

.process-icon {
  width: 85px;
  height: 85px;
  background: var(--white);
  border: 2px dashed var(--secondary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin: 0 auto 20px;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(104, 132, 42, 0.05);
}

.process-step:hover .process-icon {
  background: var(--secondary-color);
  color: var(--white);
  border-style: solid;
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(104, 132, 42, 0.2);
}

@media (min-width: 992px) {
  .process-step:not(:last-child)::after {
    content: '\F138';
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 30px;
    right: -25px;
    font-size: 1.4rem;
    color: var(--secondary-color);
    opacity: 0.4;
  }
}

/* Testimonials */
.testimonial-card {
  background: var(--white);
  padding: 35px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(11, 57, 84, 0.04);
  margin: 15px;
  border: 1px solid rgba(11, 57, 84, 0.02);
  height: calc(100% - 30px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.testimonial-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(11, 57, 84, 0.08);
}

.client-info {
  display: flex;
  align-items: center;
  margin-top: 25px;
}

.client-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  background: rgba(11, 57, 84, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.stars {
  color: #ffb703;
}

/* Contact & Footer */
.cta-section {
  background: linear-gradient(rgba(5, 27, 39, 0.92), rgba(5, 27, 39, 0.92)), url('../img/logo-white.png') center/contain no-repeat;
  background-color: var(--dark-color);
  padding: 100px 0;
  color: var(--white);
  text-align: center;
}

.cta-section h2,
.cta-section h5 {
  color: var(--white) !important;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.75) !important;
}

.cta-section .fw-semibold {
  color: var(--white) !important;
}

.cta-section h2 {
  font-size: 2.5rem;
}

.contact-form {
  background: var(--white);
  padding: 45px;
  border-radius: 16px;
  box-shadow: 0 15px 40px rgba(11, 57, 84, 0.06);
  border: 1px solid rgba(11, 57, 84, 0.03);
}

.form-control:focus,
.form-select:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.25rem rgba(104, 132, 42, 0.2);
}

.footer {
  background-color: var(--dark-color);
  color: #a0aec0;
  padding: 80px 0 25px;
  border-top: 5px solid var(--secondary-color);
}

.footer h3 {
  font-size: 1.8rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 25px;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 10px;
}

.footer h5::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #a0aec0;
  text-decoration: none;
  transition: var(--transition);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--secondary-color);
  transform: translateX(5px);
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  border-radius: 50%;
  margin-right: 10px;
  transition: var(--transition);
  text-decoration: none;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  margin-top: 50px;
  font-size: 0.9rem;
}

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #fff;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
  z-index: 1000;
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128c7e;
  color: #fff;
  transform: scale(1.1) rotate(8deg);
  box-shadow: 0 12px 25px rgba(18, 140, 126, 0.4);
}

/* Animations */
.fade-in-up {
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  opacity: 0;
  transform: translateY(40px);
}

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

.delay-1 {
  animation-delay: 0.15s;
}

.delay-2 {
  animation-delay: 0.3s;
}

.delay-3 {
  animation-delay: 0.45s;
}

/* Page Header */
.page-header {
  padding: 120px 0 60px;
  background: var(--light-bg);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  margin-bottom: 15px;
}

.page-header p {
  font-size: 1.1rem;
  color: var(--gray-color);
}

/* Color split for COBIPRO */
.text-cobi {
  color: var(--secondary-color) !important;
}

.text-pro {
  color: #03658c !important;
}