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

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  color: #0d2137;
  line-height: 1.6;
}

.navbar {
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0d2137;
}

.nav-logo-img {
  height: 56px;
  width: auto;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu a {
  text-decoration: none;
  color: #0d2137;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-menu a:hover {
  color: #0d2137;
}

.hero {
  background: #0d2137;
  color: #ffffff;
  padding: 4rem 2rem;
  text-align: center;
  position: relative;
}

.carousel-wrapper {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
}

.carousel {
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-slide {
  min-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
}

.slide-logo {
  min-height: 250px;
  justify-content: center;
}

.hero-logo {
  max-width: 400px;
  width: 100%;
  height: auto;
}

.slide-content h1 {
  font-size: 2.75rem;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.slide-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  font-size: 2.5rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-radius: 0.5rem;
  transition: background 0.2s;
  z-index: 10;
  line-height: 1;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.carousel-prev {
  left: -3rem;
}

.carousel-next {
  right: -3rem;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}

.carousel-dot.active {
  background: #ffffff;
}

.btn-primary {
  display: inline-block;
  background: #0d2137;
  color: #ffffff;
  padding: 0.75rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.btn-primary:hover {
  background: #0a1628;
  transform: translateY(-2px);
}

.btn-primary-light {
  background: #ffffff;
  color: #0d2137;
}

.btn-primary-light:hover {
  background: #f1f5f9;
  color: #0d2137;
}

.servicios {
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.servicios h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
  color: #0d2137;
}

.servicios-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.servicio-card {
  flex: 0 1 300px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 2rem;
  border-top: 4px solid #0d2137;
  text-align: center;
  transition: box-shadow 0.3s, transform 0.3s;
}

.servicio-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.servicio-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: #0d2137;
}

.servicio-card p {
  color: #64748b;
  font-size: 0.95rem;
}

.contacto {
  background: #f8fafc;
  padding: 5rem 2rem;
}

.contacto h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #0d2137;
}

.contacto > p {
  text-align: center;
  color: #64748b;
  margin-bottom: 1rem;
}

.contacto-emails {
  text-align: center;
  color: #64748b;
  margin-bottom: 2.5rem;
  font-size: 0.9rem;
}

.contacto-emails a {
  color: #0d2137;
  text-decoration: none;
  font-weight: 500;
}

.contacto-emails a:hover {
  text-decoration: underline;
}

.contacto-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contacto-form label {
  font-weight: 500;
  color: #0d2137;
}

.contacto-form input,
.contacto-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.contacto-form input:focus,
.contacto-form textarea:focus {
  outline: none;
  border-color: #0d2137;
  box-shadow: 0 0 0 3px rgba(13, 33, 55, 0.15);
}

.trabaja {
  background: #f8fafc;
  padding: 5rem 2rem;
}

.trabaja h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: #0d2137;
}

.trabaja > p {
  text-align: center;
  color: #64748b;
  margin-bottom: 2.5rem;
}

.trabaja-form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trabaja-form label {
  font-weight: 500;
  color: #0d2137;
}

.trabaja-form input,
.trabaja-form textarea {
  padding: 0.75rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

.trabaja-form input:focus,
.trabaja-form textarea:focus {
  outline: none;
  border-color: #0d2137;
  box-shadow: 0 0 0 3px rgba(13, 33, 55, 0.15);
}

.trabaja-form input[type="file"] {
  padding: 0.5rem;
  cursor: pointer;
}

.trabaja-form input[type="file"]::file-selector-button {
  background: #0d2137;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 600;
  cursor: pointer;
  margin-right: 1rem;
  transition: background 0.2s;
}

.trabaja-form input[type="file"]::file-selector-button:hover {
  background: #0a1628;
}

.trabaja-mensaje {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 500;
  display: none;
}

.trabaja-mensaje.exito {
  display: block;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.trabaja-mensaje.error {
  display: block;
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

@media (max-width: 768px) {
  .trabaja {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .trabaja {
    padding: 2.5rem 1rem;
  }

  .trabaja h2 {
    font-size: 1.5rem;
  }

  .trabaja-form input,
  .trabaja-form textarea {
    padding: 0.6rem 0.75rem;
  }
}

.footer {
  background: #1e293b;
  color: #94a3b8;
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.9rem;
}

@media (max-width: 1024px) {
  .hero {
    padding: 3rem 1.5rem;
  }

  .carousel-wrapper {
    max-width: 550px;
  }

  .carousel-prev {
    left: -2.5rem;
  }

  .carousel-next {
    right: -2.5rem;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
  }

  .nav-logo {
    font-size: 1.25rem;
  }

  .nav-logo-img {
    height: 44px;
  }

  .nav-menu {
    gap: 1.5rem;
  }

  .hero {
    padding: 2.5rem 1.5rem;
  }

  .slide-content h1 {
    font-size: 2.25rem;
  }

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

  .servicios {
    padding: 3.5rem 1.5rem;
  }

  .contacto {
    padding: 3.5rem 1.5rem;
  }
}

@media (max-width: 640px) {
  .nav-logo-img {
    height: 40px;
  }

  .nav-menu {
    gap: 1.25rem;
  }

  .hero {
    padding: 2rem 1rem;
  }

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

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

  .hero-logo {
    max-width: 280px;
  }

  .slide-logo {
    min-height: 200px;
  }

  .carousel-prev {
    left: -1.25rem;
  }

  .carousel-next {
    right: -1.25rem;
  }

  .carousel-btn {
    font-size: 1.5rem;
    padding: 0.4rem 0.6rem;
  }

  .servicios {
    padding: 2.5rem 1rem;
  }

  .servicios h2 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .servicio-card {
    flex: 0 1 100%;
    max-width: 360px;
  }

  .contacto {
    padding: 2.5rem 1rem;
  }

  .contacto h2 {
    font-size: 1.5rem;
  }

  .contacto-emails a {
    display: inline-block;
    margin: 0.25rem 0;
  }
}

@media (max-width: 400px) {
  .hero {
    padding: 1.5rem 0.75rem;
  }

  .slide-content h1 {
    font-size: 1.5rem;
  }

  .hero-logo {
    max-width: 200px;
  }

  .slide-logo {
    min-height: 150px;
  }

  .btn-primary {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }

  .carousel-btn {
    font-size: 1.25rem;
    padding: 0.3rem 0.5rem;
  }

  .carousel-prev {
    left: -0.75rem;
  }

  .carousel-next {
    right: -0.75rem;
  }

  .carousel-dot {
    width: 8px;
    height: 8px;
  }

  .servicio-card {
    padding: 1.25rem;
  }

  .contacto-form input,
  .contacto-form textarea {
    padding: 0.6rem 0.75rem;
  }

  .trabaja {
    padding: 2rem 0.75rem;
  }

  .trabaja-form input,
  .trabaja-form textarea {
    padding: 0.6rem 0.75rem;
  }
}
