/* ESTILO GLOBAL */
:root {
  --color-primario: #d63384;
  --color-secundario: #ffe1ec;
  --color-terciario: #fff0f5;
  --color-texto: #3a3a3a;
  --color-fondo: #fffafc;
  --color-whatsapp: #25D366;
  --color-formulario: #ffffff;
  --color-exito: #4CAF50;
  --color-error: #F44336;
  --color-waze: #33CCFF;
}

body {
  margin: 0;
  font-family: 'Quicksand', sans-serif;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  line-height: 1.6;
}

/* HERO SECTION */
.hero {
  background: linear-gradient(45deg, var(--color-secundario), var(--color-terciario));
  background-size: 200% 200%;
  animation: gradient 8s ease infinite;
  padding: 4rem 2rem;
  text-align: center;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero h1 {
  font-size: 2.5rem;
  color: var(--color-primario);
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.1);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: #6b004e;
}

/* NAVBAR */
.navbar {
  background-color: var(--color-terciario);
  padding: 1rem;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}

.navbar li {
  margin: 0 15px;
}

.navbar a {
  text-decoration: none;
  color: var(--color-primario);
  font-weight: 600;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  position: relative;
}

.navbar a.activo,
.navbar a:hover {
  color: #ad2670;
}

.navbar a.activo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primario);
  transform: scaleX(1);
  transition: transform 0.3s ease;
}

/* CONTENEDOR PRINCIPAL */
.contenedor-contacto {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media(min-width: 992px) {
  .contenedor-contacto {
    grid-template-columns: 1fr 1fr;
  }
}

/* FORMULARIO */
.formulario-contacto {
  background-color: var(--color-formulario);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  animation: fadeIn 0.8s ease-out;
}

.formulario-contacto:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.formulario-contacto h2 {
  color: var(--color-primario);
  margin-top: 0;
  margin-bottom: 1.8rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.form-group {
  margin-bottom: 1.8rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.6rem;
  font-weight: 600;
  color: var(--color-primario);
  font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem;
  border: 1px solid #e0c8d4;
  border-radius: 8px;
  font-family: 'Quicksand', sans-serif;
  transition: all 0.3s ease;
  background-color: #fff9fb;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primario);
  box-shadow: 0 0 0 3px rgba(214, 51, 132, 0.15);
  background-color: white;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.btn-enviar {
  background-color: var(--color-primario);
  color: white;
  padding: 0.9rem 2rem;
  border: none;
  border-radius: 30px;
  font-family: 'Quicksand', sans-serif;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  justify-content: center;
}

.btn-enviar:hover {
  background-color: #ad2670;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.25);
}

/* ALERTAS DEL FORMULARIO */
.form-alert {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  animation: fadeIn 0.5s ease-out;
}

.form-alert-success {
  background-color: rgba(76, 175, 80, 0.15);
  color: var(--color-exito);
  border-left: 4px solid var(--color-exito);
}

.form-alert-error {
  background-color: rgba(244, 67, 54, 0.15);
  color: var(--color-error);
  border-left: 4px solid var(--color-error);
}

/* INFORMACIÓN DE CONTACTO */
.informacion-contacto {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
}

.info-card {
  background-color: var(--color-formulario);
  padding: 1.8rem;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  animation: fadeIn 0.8s ease-out 0.2s both;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.info-card h2 {
  color: var(--color-primario);
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.info-card p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  line-height: 1.5;
}

.info-card i {
  width: 22px;
  color: var(--color-primario);
  font-size: 1.1rem;
  text-align: center;
}

/* MAPA */
.mapa {
  grid-column: 1 / -1;
  animation: fadeIn 0.8s ease-out 0.4s both;
}

.mapa h2 {
  color: var(--color-primario);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.mapa-contenedor {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  height: 400px;
  border: 1px solid #e0c8d4;
}

/* BOTONES DE MAPA */
.contenedor-botones-mapa {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn-mapa {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  background-color: var(--color-primario);
  color: white;
  padding: 0.7rem 1.5rem;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  min-width: 160px;
  justify-content: center;
}

.btn-mapa:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(214, 51, 132, 0.25);
}

.btn-mapa i {
  font-size: 1em;
}

.btn-mapa.btn-waze {
  background-color: var(--color-waze);
}

.btn-mapa.btn-waze:hover {
  background-color: #2aa3d6;
}

/* FOOTER */
footer {
  background-color: #fce4ec;
  padding: 2.5rem 1rem;
  text-align: center;
  margin-top: 3rem;
}

footer .social {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

footer .social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primario);
  background-color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  transition: all 0.3s ease;
  font-size: 1.1rem;
}

footer .social a:hover {
  transform: scale(1.15);
  color: white;
  background-color: var(--color-primario);
}

footer p {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.5;
}

/* ANIMACIONES */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1.05rem;
  }
  
  .navbar li {
    margin: 0 10px 5px;
  }
  
  .formulario-contacto,
  .info-card {
    padding: 1.5rem;
  }
  
  .contenedor-contacto {
    padding: 0 1rem;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 3rem 1rem;
  }
  
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .formulario-contacto h2,
  .mapa h2 {
    font-size: 1.5rem;
  }
  
  .info-card h2 {
    font-size: 1.3rem;
  }
  
  .form-group input,
  .form-group textarea {
    padding: 0.8rem;
  }
  
  .btn-enviar,
  .btn-mapa {
    padding: 0.8rem 1.2rem;
    font-size: 0.95rem;
  }
  
  .contenedor-botones-mapa {
    flex-direction: column;
    align-items: center;
  }
  
  .btn-mapa {
    width: 100%;
    max-width: 220px;
  }
}