/* apply a natural box layout model to all elements, but allowing components to change */
html {
  scroll-behavior: smooth;
}

:root {
  --primary-color: #efaa39;
  --primary-dark: #d4941f;
  --text-dark: #252934;
  --text-light: #7f8c8d;
  --bg-light: #f8f9fa;
}

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

body {
  font-family: "Ubuntu", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* -----------------Hero Section ---------------------*/
.hero {
  background-image: url(../img/fondo.svg);
  background-color: #fff;
  background-repeat: no-repeat;
  background-size: contain;
  padding: 30px 0 40px 0;
}
.hero-contenido {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}

.hero-logo {
  text-align: center;
  margin: 0 0 40px 0;
}
.hero-logo img {
  width: 220px;
}
.paises {
  background-color: #fafafa;
  border: 1px solid #c2c2c2;
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 3px 15px;
  border-radius: 20px;
  max-width: 250px;
  margin: 0 auto;
}
.paises p {
  margin: 0;
  font-size: 14px;
}
.paises img {
  width: 40px;
}

.hero-titulo {
  font-size: 30px;
  line-height: 1;
  color: #252934;
  font-weight: 700;
  text-align: center;
  margin: 0;
  margin-top: 5px;
  max-width: 550px;
    margin-left: auto;
    margin-right: auto;
}
.hero-titulo span {
  color: var(--primary-color);
}
.hero-descripcion {
  margin-top: 15px;
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}

.hero-video {
  margin: 30px 0;
  text-align: center;
}
.hero-video iframe {
  height: 220px;
  width: 90%;
  max-width: 600px;
  border-radius: 20px;
  margin: 0 auto;
}

.hero-boton {
  background-color: #f9af16;
  color: #252a34;
  display: flex;
  justify-content: center;
  gap: 8px;
  width: 220px;
  margin: 0 auto;
  text-decoration: none;
  font-size: 18px;
  padding: 10px 25px;
  font-weight: 500;
  border-radius: 30px;
}
.hero-boton:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(239, 170, 57, 0.4);
  }
@media (min-width: 425px) {
  .hero-video iframe {
    max-width: 400px;
    height: 250px;
  }
}
@media (min-width: 768px) {
    .hero{
        padding: 40px 0;
    }
  .hero-titulo {
    font-size: 40px;
  }

  
  .hero-video {
    margin: 40px 0;
  }
  .hero-video iframe {
    max-width: 500px;
    height: 300px;
  }
}
@media (min-width: 1024px) {
  .hero-logo {
    margin: 0 0 60px 0;
  }
  .hero-logo img {
    width: 300px;
  }
  .hero-titulo {
    font-size: 45px;
    max-width: 650px;
  }
  .hero-titulo span {
    display: block;
  }

  .hero-descripcion {
    margin-top: 15px;
    max-width: 600px;
  }
  .paises {
    max-width: 280px;
  }
  .paises p {
    margin: 0;
    font-size: 15px;
  }
  .paises img {
    width: 45px;
  }
  .hero-video iframe {
    max-width: 600px;
    height: 360px;
  }
}

/* ------------------Contact Section --------------------*/
.contact-section {
  background-color: var(--bg-light);
  padding: 5rem 0;
}

.contact-form-container {
  background: white;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  position: relative;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

/* Form Styles */
.form-label {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e9ecef;
  border-radius: 12px;
  padding: 15px 20px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.2rem rgba(239, 170, 57, 0.25);
  outline: none;
}

/* Custom dropdown arrow for select */
.form-select {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px 12px;
  padding-right: 3rem;
}

.form-select:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23EFAA39' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
}

/* Enhanced select styling */
.form-select option {
  padding: 12px 16px;
  background-color: #fff;
  color: var(--text-dark);
}

.form-select:disabled {
  background-color: #f8f9fa;
  opacity: 0.6;
}

/* Custom select styling to match the design */
.custom-select {
  background-color: #f8f9fa;
  border: 2px solid #dee2e6;
  color: #6c757d;
  font-weight: 400;
  height: auto;
  min-height: 54px;
}

.custom-select:focus {
  background-color: #fff;
  border-color: var(--primary-color);
  color: var(--text-dark);
}

.custom-select option:first-child {
  color: #6c757d;
  font-style: italic;
}

.custom-select option:not(:first-child) {
  color: var(--text-dark);
  font-style: normal;
  font-weight: 500;
}

/* Placeholder styling for select */
.custom-select[value=""] {
  color: #6c757d;
}

/* Transport Cards Styling */
.transport-cards-container {
  margin-top: 1rem;
}

.transport-card {
  display: block;
  padding: 2rem 1.5rem;
  background: #fff;
  border: 2px solid #e9ecef;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  height: 100%;
  min-height: 200px;
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.transport-card:hover {
  border-color: var(--primary-color);
  box-shadow: 0 8px 25px rgba(239, 170, 57, 0.15);
  transform: translateY(-2px);
}

.transport-icon {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.transport-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.75rem;
}

.transport-description {
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Hide radio buttons but keep functionality */
.btn-check {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Selected state */
.btn-check:checked + .transport-card {
  border-color: var(--primary-color);
  background: linear-gradient(
    135deg,
    rgba(239, 170, 57, 0.1),
    rgba(239, 170, 57, 0.05)
  );
  box-shadow: 0 8px 30px rgba(239, 170, 57, 0.2);
  transform: translateY(-3px);
}

.btn-check:checked + .transport-card .transport-icon {
  color: var(--primary-dark);
  animation: pulse 0.6s ease-in-out;
}

.btn-check:checked + .transport-card .transport-title {
  color: var(--primary-dark);
}

/* Pulse animation for selected icon */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

/* Focus state for accessibility */
.btn-check:focus + .transport-card {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Responsive adjustments for transport cards */
@media (max-width: 768px) {
  .transport-card {
    padding: 1.5rem 1rem;
    min-height: 160px;
  }

  .transport-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .transport-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }

  .transport-description {
    font-size: 0.9rem;
  }
}

.input-group .form-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.input-group .form-control {
  border-left: none;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.country-code {
  background-color: var(--bg-light);
  font-size: 0.9rem;
}

/* Button Styles */
.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 30px;
  box-shadow: 0 6px 20px rgba(239, 170, 57, 0.3);
  transition: all 0.3s ease;
  color: #252934;
}

.btn-primary:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: #252934;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(239, 170, 57, 0.4);
}

/* Conditional Fields Animation */
.conditional-fields {
  transition: all 0.3s ease;
  overflow: hidden;
}

.conditional-fields.show {
  display: block !important;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
  }
  to {
    opacity: 1;
    max-height: 200px;
  }
}

/* Alert Styles */
.alert {
  border-radius: 12px;
  border: none;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
}

/* Validation Styles */
.was-validated .form-control:invalid,
.was-validated .form-select:invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.was-validated .form-control:valid,
.was-validated .form-select:valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.invalid-feedback {
  display: none;
}

.was-validated .form-control:invalid ~ .invalid-feedback,
.was-validated .form-select:invalid ~ .invalid-feedback {
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .video-container {
    max-width: 100%;
  }

  .video-container iframe {
    height: 220px;
  }

  .contact-form-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .hero-cta {
    padding: 12px 30px;
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .video-container iframe {
    height: 180px;
  }

  .contact-form-container {
    padding: 1.5rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}

/* Loading animation for form submission */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
