/* ========== RESET ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #f4f4f4;
  background: rgb(1, 1, 30);
}

/* ========== HERO / HEADER ========== */
.hero {
  background: url("img/fondo.webp") no-repeat center/cover;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  color: white;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 32px;
  background: transparent;
  width: 100%;
  position: relative;
  z-index: 1000;
}

.logo img {
  height: 50px;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ffcc00;
}

.hero-content {
  background: url('img/monito2.webp') center no-repeat;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 600px;
  text-align: center;
  padding: 32px;
}

.hero-content h1 {
  font-size: 64px;
  transition: transform 0.3s ease, letter-spacing 0.3s ease;
}

.hero-content h1:hover {
  transform: scale(1.08);
  letter-spacing: 12px;
}

/* =========== Slider  ============= */
.slider {
  width: 100%;
  overflow: hidden;
  padding: 40px 0;
}

.title_slider {
  font-size: 45px;
  text-align: center;
  margin-bottom: 30px;
}

.slider-container {
  display: flex;
  justify-content: center;
  overflow: hidden;
}

.slides {
  display: flex;
  align-items: center;
  gap: 40px;
  transition: transform 0.8s cubic-bezier(0.5, 0, 0.175, 1);
}

.box-image {
  width: 32%;
  height: 400px;
  flex-shrink: 0;
  transform: scale(0.8);
  opacity: 0.7;
  transition: transform 0.6s ease, opacity 0.6s ease;
  border-radius: 15px;
}

.box-image.active {
  transform: scale(1.1);
  opacity: 1;
}

.image_slider {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(156, 151, 151, 0.58);
  pointer-events: none;
}

/* ========== TITULOS GENERALES ========== */
.servicios h2,
.contacto-header h2 {
  font-size: 45px;
  margin-bottom: 40px;
  text-align: center;
}

.servicio-card h3 {
  font-size: 25px;
  margin-bottom: 8px;
}

/* ========== SERVICIOS ========== */
.servicios {
  padding: 64px 32px;
  text-align: center;
}

.servicios-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}

.servicio-card {
  background: #1e1e3a;
  padding: 24px;
  border-radius: 15px;
  width: 500px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.servicio-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.servicio-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.servicio-card p {
  font-size: 18px;
  text-align: justify;
}

/* ========== CONTACTO ========== */
.contacto {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 16px;
}

.form-container {
  display: flex;
  flex-direction: column;
  width: 600px;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-weight: 500;
  font-size: 14px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  background-color: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #9ca3af;
}

.form-group input:hover:not(:disabled),
.form-group textarea:hover:not(:disabled) {
  border-color: #9ca3af;
}

.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 30px white inset !important;
  -webkit-text-fill-color: #374151 !important;
}

.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 4px;
}

.btn-submit {
  padding: 16px;
  background-color: #00bcd4;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background-color: orange;
  transform: translateY(-1px);
}

.btn-disabled {
  background-color: #9ca3af !important;
  cursor: not-allowed !important;
}

/* ========== STATUS MESSAGES ========== */
.status-message {
  margin-top: 24px;
  padding: 16px;
  border-radius: 6px;
  font-size: 15px;
  line-height: 1.5;
  animation: fadeIn 0.3s ease-out;
}

.status-message.success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.status-message.error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* ========== FOOTER ========== */
.footer {
  background-color: rgb(1, 1, 30);
  color: white;
  padding: 40px 20px;
  margin-top: 20px;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

.footer>div {
  flex: 1;
  min-width: 200px;
}

.footer img {
  width: 90px;
  height: auto;
  margin-bottom: 15px;
}

.footer p {
  font-size: 0.9rem;
  color: #ccc;
}

.footer h5 {
  color: white;
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #444;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: orange;
}


/* ========== WHATSAPP BUTTON ========== */
.whatsapp-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
  z-index: 1000;
}

.whatsapp-button img {
  width: 35px;
  height: 35px;
}

.whatsapp-button:hover {
  transform: scale(1.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .hero-content h1 {
    margin-top: 130px;
    font-size: 35px;
  }

  .title_slider,
  .servicios h2,
  .contacto-header h2 {
    font-size: 30px;
  }

  .slides {
    gap: 0;
  }

  .box-image {
    width: 100%;
    height: 400;
    margin: 0 auto;
    transform: none;
    opacity: 1;
    box-shadow: none;
    border-radius: 10px;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer > div {
    width: 80%;
    margin-bottom: 32px;
  }

  .form-container {
    width: 100%;
    max-width: 300px;
    gap: 16px;
  }

  .form-group input,
  .form-group textarea {
    padding: 10px;
    font-size: 14px;
  }

  .btn-submit {
    padding: 14px;
    font-size: 14px;
  }
}

/* ========== ANIMACIONES ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

