/* Importar fuentes */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* Variables de colores */
:root {
  --primary: #2E86AB;
  --primary-light: #5AA8D0;
  --primary-dark: #1E5A7A;
  --secondary: #FF6B35;
  --secondary-light: #FF8A5C;
  --secondary-dark: #E04E1F;
  --neutral-light: #F7F7F7;
  --neutral: #E5E5E5;
  --neutral-dark: #333333;
}

/* Configuración general */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--neutral-dark);
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

@media (min-width: 768px) {
  h1 {
    font-size: 3.5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 2rem;
  }
}

/* Botones personalizados */
.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  border-color: var(--primary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(46, 134, 171, 0.3);
}

.btn-secondary {
  background-color: var(--secondary);
  border-color: var(--secondary);
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: var(--secondary-dark);
  border-color: var(--secondary-dark);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.btn-outline-primary {
  border: 2px solid var(--primary);
  color: var(--primary);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  background-color: transparent;
  transition: all 0.3s ease;
}

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

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 700px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: #f0f0f0;
  overflow: hidden;
}

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

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 10;
  color: white;
  text-align: center;
  padding: 2rem;
  margin-bottom: 20px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px rgba(0, 0, 0, 0.6);
}

.hero-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  font-weight: 300;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.9), 0 0 25px rgba(0, 0, 0, 0.7), 1px 1px 3px rgba(0, 0, 0, 1);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-buttons .btn {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-content .hero-buttons + p {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 0, 0, 0.6);
}

@media (max-width: 768px) {
  .hero-section {
    min-height: 600px;
  }

  .hero-content {
    margin-bottom: 60px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

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

/* Navbar personalizado */
.navbar {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar .container {
  justify-content: space-between;
}

.navbar-brand {
  flex: 0 0 auto;
}

.navbar-collapse {
  flex-grow: 0;
}

.navbar-nav {
  margin: 0 auto !important;
}

.navbar-brand img {
  height: 70px;
  transition: transform 0.3s ease;
}

.navbar-brand img:hover {
  transform: scale(1.05);
}

.nav-link {
  color: var(--neutral-dark);
  font-weight: 500;
  transition: color 0.3s ease;
  margin: 0 0.5rem;
}

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

/* Cards */
.card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.icon-circle {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  overflow: hidden;
  padding: 3px;
}

.icon-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: white;
}

.icon-circle i {
  font-size: 48px;
  color: white;
}

/* Fix for inline icon circles to be perfectly round and aligned */
.d-flex .icon-circle {
  flex-shrink: 0;
  min-width: 80px;
  min-height: 80px;
  width: 80px;
  height: 80px;
  margin: 0;
  align-self: flex-start;
}

.d-flex .icon-circle i {
  font-size: 32px;
}

/* Ensure alignment items start container maintains proper structure */
.d-flex.align-items-start {
  align-items: flex-start !important;
}

.d-flex.align-items-start > .icon-circle {
  margin-top: 0;
  margin-bottom: 0;
}

.icon-circle svg {
  width: 32px;
  height: 32px;
  color: white;
}

/* Sections */
.section-light {
  background-color: var(--neutral-light);
  padding: 5rem 0;
}

.section-white {
  background-color: white;
  padding: 5rem 0;
}

.section-dark {
  background-color: var(--neutral-dark);
  color: white;
  padding: 5rem 0;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  color: #ffffff;
  padding: 3rem 0 1rem;
}

footer h5 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

footer .text-muted {
  color: #d1d1d1 !important;
  opacity: 0.9;
}

footer a {
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--secondary);
  padding-left: 5px;
}

footer .bi {
  color: var(--secondary);
}

.footer-logo {
  max-width: 150px;
  height: auto;
  display: block;
}

/* Evoqia Credits */
.evoqia-credits {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #b0b0b0;
}

.evoqia-credits a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #e0e0e0;
  text-decoration: none;
  transition: all 0.3s ease;
}

.evoqia-credits a:hover {
  color: var(--secondary);
  transform: translateY(-2px);
  padding-left: 0;
}

.evoqia-logo {
  height: 24px;
  width: auto;
  vertical-align: middle;
  transition: transform 0.3s ease;
}

.evoqia-credits a:hover .evoqia-logo {
  transform: scale(1.1);
}

/* Google Reviews Section */
.google-reviews-header {
  text-align: center;
  margin-bottom: 3rem;
}

.google-rating-summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.rating-score {
  text-align: center;
}

.rating-number {
  font-size: 4rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
}

.rating-stars {
  color: #fbbc04;
  font-size: 1.5rem;
  margin: 0.5rem 0;
}

.rating-count {
  color: #666;
  font-size: 0.9rem;
}

.google-logo-link {
  display: inline-block;
  transition: transform 0.3s ease;
}

.google-logo-link:hover {
  transform: scale(1.05);
}

.google-logo-link img {
  height: 40px;
  width: auto;
}

.review-card {
  background: white;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.review-author-info {
  flex: 1;
}

.review-author {
  font-weight: 600;
  color: var(--neutral-dark);
  margin: 0;
}

.review-date {
  font-size: 0.85rem;
  color: #666;
}

.review-stars {
  color: #fbbc04;
  font-size: 1rem;
}

.review-text {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.review-platform {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

.review-platform img {
  height: 16px;
  width: 16px;
}

.view-all-reviews {
  text-align: center;
  margin-top: 3rem;
}

.btn-google {
  background-color: #4285f4;
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
}

.btn-google:hover {
  background-color: #3367d6;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.3);
}

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

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128C7E;
}

/* Testimonials */
.testimonial-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin: 1rem;
}

.testimonial-rating {
  color: var(--secondary);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  opacity: 1;
}

.carousel-control-prev {
  left: -60px;
}

.carousel-control-next {
  right: -60px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background-color: var(--primary-dark);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .carousel-control-prev {
    left: 10px;
  }
  .carousel-control-next {
    right: 10px;
  }
}

/* FAQ Accordion */
.accordion-button:not(.collapsed) {
  background-color: var(--primary-light);
  color: white;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--primary);
}

/* Timeline */
.timeline {
  position: relative;
  padding: 2rem 0;
}

.timeline-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary);
}

.timeline-item::after {
  content: '';
  position: absolute;
  left: 9px;
  top: 20px;
  width: 2px;
  height: calc(100% + 2rem);
  background-color: var(--neutral);
}

.timeline-item:last-child::after {
  display: none;
}

/* Vehicle Cards */
.vehicle-card {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.vehicle-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.vehicle-card .card-body {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.vehicle-card .card-body .btn {
  margin-top: auto;
}

.vehicle-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.vehicle-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--secondary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 2rem;
  font-weight: 600;
  font-size: 0.875rem;
}

/* Utilities */
.text-primary-custom {
  color: var(--primary);
}

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

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

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

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

/* Chat Widget Styles */
.chat-widget-card {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.chat-widget-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: white;
}

.chat-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: white;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chat-info {
  flex: 1;
}

.chat-status {
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #25d366;
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.chat-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.chat-subtitle {
  font-size: 0.875rem;
  opacity: 0.9;
}

.chat-widget-body {
  padding: 1.5rem;
}

.chat-message {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--neutral-dark);
  margin-bottom: 1rem;
}

.chat-requirement {
  background: var(--neutral-light);
  padding: 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: var(--neutral-dark);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--primary);
}

.chat-form .form-group {
  margin-bottom: 1rem;
}

.chat-form .form-label-small {
  font-size: 0.875rem;
  color: var(--neutral-dark);
  margin-bottom: 0.25rem;
  display: block;
  font-weight: 500;
}

.chat-form .form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.chat-form .form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(46, 134, 171, 0.1);
}

.chat-form .form-control.is-invalid {
  border-color: #dc3545;
}

.chat-form .form-control.is-invalid:focus {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.chat-form .invalid-feedback {
  display: none;
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}

/* Mejorar inputs de fecha en mobile */
.chat-form input[type="date"] {
  min-height: 44px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* iOS date input fix */
.chat-form input[type="date"]::-webkit-date-and-time-value {
  text-align: left;
}

.chat-form input[type="date"]::-webkit-calendar-picker-indicator {
  background: transparent;
  bottom: 0;
  color: transparent;
  cursor: pointer;
  height: auto;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}

@media (max-width: 768px) {
  .chat-form .form-control {
    font-size: 16px; /* Previene zoom automático en iOS */
  }

  .chat-form input[type="date"] {
    min-height: 48px; /* Mejor accesibilidad táctil */
  }
}

.chat-form select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
  padding-right: 2.5rem;
}

.btn-whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #128C7E);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp i {
  font-size: 1.5rem;
}

/* Process Timeline - Horizontal */
.process-timeline {
  position: relative;
}

.process-step {
  text-align: center;
  padding: 2rem 1rem;
  position: relative;
}

.process-number {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
  position: relative;
  z-index: 2;
}

.process-icon {
  width: 80px;
  height: 80px;
  background: var(--neutral-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.process-icon i {
  font-size: 2rem;
  color: var(--primary);
}

@media (min-width: 992px) {
  .process-timeline::before {
    content: '';
    position: absolute;
    top: 85px;
    left: 12.5%;
    right: 12.5%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 1;
  }
}

/* Requirement Cards */
.requirement-card {
  background: white;
  padding: 2rem 1.5rem;
  border-radius: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.requirement-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--primary);
}

.requirement-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.requirement-icon i {
  font-size: 2rem;
  color: white;
}

/* Info Boxes */
.info-box {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  height: 100%;
  border-left: 4px solid var(--primary);
  transition: all 0.3s ease;
}

.info-box:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateX(5px);
}

/* Team Cards */
.team-card {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  text-align: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-photo {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: var(--neutral-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.team-info {
  padding: 1.5rem;
}

/* Commitment Cards */
.commitment-card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: all 0.3s ease;
  height: 100%;
}

.commitment-card:hover {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

.commitment-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commitment-icon i {
  font-size: 1.5rem;
  color: white;
}

