/* ==========================
   contacto.css
========================== */

/* --- Reset y básicos --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: sans-serif;
}

/* --- Fondo y overlay --- */
body {
  background: #F8F8D9;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  position: relative;
  min-height: 100vh;
  color: white;
}

/* --- Contenedor principal de contacto --- */
.contact-container {
  display: flex;
  flex-direction: column; /* siempre columna: formulario arriba, info abajo */
  align-items: center;
  gap: 30px;
  padding: 60px 20px;
  min-height: 100vh;
  margin-top: 100px;
  z-index: 1;
  position: relative;
}

/* --- Formulario y tarjeta info --- */
.contact-form,
.contact-info {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  border-radius: 12px;
  color: white;
  max-width: 500px;
  width: 100%;
  text-align: center;
  margin: 0 auto;
}

/* Titulos y texto */
.contact-info h2 {
  font-size: 2rem;
  margin-bottom: 20px;
  color: white;
}

.contact-info p {
  font-size: 1.2rem;
  line-height: 1.7;
  margin-bottom: 15px;
}

.contact-info a {
  color: #dbbba6;
  text-decoration: underline;
}

.contact-info a:hover {
  color: white;
}

.phone-number {
  font-size: 2rem;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  color: #dbbba6;
}

/* --- Animaciones --- */
@keyframes fancyLeft {
  0% { opacity: 0; transform: translateX(-70px) scale(0.8) rotate(-5deg); }
  50% { opacity: 0.5; transform: translateX(-35px) scale(1.05) rotate(2deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
}

@keyframes fancyRight {
  0% { opacity: 0; transform: translateX(70px) scale(0.8) rotate(5deg); }
  50% { opacity: 0.5; transform: translateX(35px) scale(1.05) rotate(-2deg); }
  100% { opacity: 1; transform: translateX(0) scale(1) rotate(0); }
}

.animate-fancy-left { 
  animation-name: fancyLeft;
}

.animate-fancy-right { 
  animation-name: fancyRight; 
}

/* --- Formulario --- */
.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: rgba(255, 255, 255, 0.15);
  border: 2px solid white;
  border-radius: 6px;
  padding: 20px;
  color: white;
  font-size: 18px;
  margin-bottom: 15px;
  text-align: center;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: white; /* placeholder blanco */
  opacity: 1;
  font-weight: bold;
}

.contact-form textarea {
  min-height: 120px;
  resize: none;
  overflow: hidden;
}

.button {
  font-size: 22px;
  font-weight: bold;
  border-radius: 12px;
  padding: 15px;
  margin-top: 25px;
  background-color: #dbbba6;
  border: none;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.button:hover {
  background-color:#dbbba6 ;
  color: black;
  transform: scale(1.05);
}

/* --- Tarjeta de información --- */
.contact-info h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

.contact-info p {
  margin-bottom: 12px;
  font-size: 18px;
}

.contact-info strong {
  color: white;
  display: inline-block;
  margin-bottom: 15px;
  font-size: 22px;
}

/* --- Menú móvil --- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.95);
  display: flex;
  flex-direction: column;
  padding: 2rem;
  transform: translateX(100%);
  transition: transform 0.4s ease;
  z-index: 1000;
  border-left: 3px solid #dbbba6;
  border-radius: 10px 0 0 10px;
}

.mobile-nav.is-active {
  transform: translateX(0);
}


.mobile-nav a:hover {
  background-color: #dbbba6;
  color: black;
  transform: scale(1.05);
}

.close-btn {
  font-size: 2rem;
  background: none;
  border: none;
  color: white;
  align-self: flex-end;
  margin-bottom: 2rem;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.close-btn:hover {
  color: #dbbba6;
  transform: scale(1.1);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .contact-form,
  .contact-info {
    max-width: 450px;
  }
}

@media (max-width: 767px) {
  body {
    background-position: 59% center ;
    background-size: cover;
  }

  .contact-container {
    flex-direction: column;
    align-items: center;
  }

  .contact-form,
  .contact-info {
    max-width: 90%;
  }
}
