/* ===========================
   CONTACTO.CSS
   =========================== */

/* ---------- NAVBAR ACTIVE ---------- */
.nav-active {
  color: var(--rosa) !important;
  font-weight: 600 !important;
}

/* ---------- HEADER ---------- */
.contacto-header {
  background: linear-gradient(135deg, var(--rosa) 0%, #b84e83 100%);
  padding: 8rem 1.5rem 4rem;
  text-align: center;
}

.contacto-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.95);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
}

.contacto-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 0.75rem;
}

.contacto-desc {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  max-width: 440px;
  margin: 0 auto;
  font-weight: 300;
}


/* ---------- LAYOUT PRINCIPAL ---------- */
.contacto-main {
  padding: 3rem 1.5rem 5rem;
  background: var(--beige);
}

.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}


/* ---------- TARJETAS DE INFO ---------- */
.info-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.info-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: transform 0.2s, box-shadow 0.2s;
}

.info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.info-card-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.info-card h3 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gris);
  margin-bottom: 0.35rem;
}

.info-card p {
  font-size: 0.88rem;
  color: var(--texto);
  line-height: 1.5;
}

.info-link {
  font-size: 0.82rem;
  color: var(--rosa);
  font-weight: 500;
  display: inline-block;
  margin-top: 0.3rem;
  transition: color 0.2s;
}

.info-link:hover {
  color: var(--rosa-dark);
}

/* Horario grid */
.horario-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  margin-top: 0.25rem;
}

.horario-dia {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azul);
}

.horario-hora {
  font-size: 0.82rem;
  color: var(--gris);
}

.horario-hora.cerrado {
  color: #ef4444;
  font-weight: 500;
}

/* Botón WhatsApp inline */
.btn-wa-inline {
  display: inline-block;
  margin-top: 0.6rem;
  background: #25D366;
  color: var(--blanco);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  transition: opacity 0.2s, transform 0.2s;
}

.btn-wa-inline:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}


/* ---------- FORMULARIO ---------- */
.formulario-wrap {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.formulario-titulo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 0.3rem;
}

.formulario-sub {
  font-size: 0.88rem;
  color: var(--gris);
  margin-bottom: 1.75rem;
}

.campo-grupo {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1.1rem;
}

.campo-grupo label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azul);
  letter-spacing: 0.02em;
}

.campo-grupo input,
.campo-grupo select,
.campo-grupo textarea {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--texto);
  background: var(--beige);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  resize: none;
}

.campo-grupo input::placeholder,
.campo-grupo textarea::placeholder {
  color: #aaa;
}

.campo-grupo input:focus,
.campo-grupo select:focus,
.campo-grupo textarea:focus {
  border-color: var(--rosa);
  box-shadow: 0 0 0 3px rgba(217,108,157,0.15);
  background: var(--blanco);
}

.campo-grupo input.error,
.campo-grupo select.error,
.campo-grupo textarea.error {
  border-color: #ef4444;
}

.campo-error {
  font-size: 0.78rem;
  color: #ef4444;
  font-weight: 500;
  min-height: 1em;
}

.btn-enviar {
  width: 100%;
  background: var(--rosa);
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.9rem;
  border: none;
  border-radius: 100px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(217,108,157,0.35);
  margin-top: 0.5rem;
}

.btn-enviar:hover {
  background: var(--rosa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(217,108,157,0.45);
}

.btn-enviar:active {
  transform: translateY(0);
}

.btn-enviar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Mensaje de éxito */
.form-success {
  text-align: center;
  padding: 3rem 1rem;
}

.success-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: var(--gris);
  font-size: 0.9rem;
  max-width: 320px;
  margin: 0 auto;
  line-height: 1.6;
}


/* ---------- COLUMNA MAPA ---------- */
.contacto-col-mapa {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: sticky;
  top: 90px;
}

/* Indicador abierto/cerrado */
.estado-tienda {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--blanco);
  padding: 0.6rem 1.25rem;
  border-radius: 100px;
  box-shadow: var(--shadow-sm);
  font-size: 0.88rem;
  font-weight: 600;
  align-self: flex-start;
}

.estado-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #aaa;
  flex-shrink: 0;
}

.estado-dot.abierto {
  background: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,0.2);
  animation: pulse-green 2s infinite;
}

.estado-dot.cerrado {
  background: #ef4444;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(22,163,74,0.2); }
  50%       { box-shadow: 0 0 0 6px rgba(22,163,74,0.1); }
}

/* Mapa */
.mapa-wrap {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* Botón cómo llegar */
.btn-llegar {
  display: block;
  text-align: center;
  background: var(--azul);
  color: var(--blanco);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s;
}

.btn-llegar:hover {
  background: var(--azul-light);
  transform: translateY(-2px);
}

/* Redes sociales */
.redes {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}

.redes-titulo {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gris);
  margin-bottom: 0.9rem;
}

.redes-links {
  display: flex;
  gap: 0.75rem;
}

.red-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 100px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.2s, opacity 0.2s;
}

.red-link:hover {
  transform: translateY(-2px);
  opacity: 0.88;
}

.red-link.instagram {
  background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.red-link.whatsapp {
  background: #25D366;
  color: white;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .contacto-layout {
    grid-template-columns: 1fr;
  }

  .contacto-col-mapa {
    position: static;
    order: -1; /* mapa arriba en móvil */
  }

  .mapa-wrap {
    height: 280px;
  }
}

@media (max-width: 540px) {
  .info-cards {
    grid-template-columns: 1fr;
  }

  .redes-links {
    flex-direction: column;
  }

  .red-link {
    justify-content: center;
  }
}